Use this builder to share data between model or application instances, or between IBM® WebSphere® Portlet Factory and non- WebSphere Portlet Factory code.
For example, you may want to create a “filter” application that lets users specify values that are used by multiple other applications on the same or different web server page.
The Shared Variable builder will publish the value of a variable to the session, the request, a global data item (Java "static" field) or to a custom, user-defined repository.
The Shared Variable builder creates a two-way link between a variable and an external data store. This linkage allows the variable to be shared among models in a session, or to connect to some non- WebSphere Portlet Factory code that uses session or request attributes.
Each time the variable associated with this builder is read, its value is pulled in from the specified external storage location (session, request, and so on). Similarly, each time the variable is changed, the new value is written to the external store.
Your model code can access the variable just like any other variable, but its value is kept in synch with the external shared copy. Other models will see changes your model makes to the variable, and you will be able to see the most recent value set by other models.
Parent topic: Builder Reference: wpf7
About using the builder call editor: wpf7