Similar to process variables, this adapter offers the option of caching arbitrary documents from a Technical Process in a global hash table so that this context can also be accessed by other processes, see the X4 Designer - Variable Block manual.
The documents stored in the global context are stored under a key and are available for the entire runtime of the X4 Server. The feature adapter can create, overwrite, and delete entries in the hash table, and list all or selected keys of the hash table entries.
Because a context applies X4 Server-wide and all Technical Processes access the same hash table, it is possible for other threads to set a document under the same key in parallel. In addition, small time differences between the Put and PutGet operations can provide ambiguous (e.g. empty) results.
Within XSL mappings, you can access previously defined context keys at run time via the globalcontext: URL protocol, see X4 Developer Guide – globalcontext: URL protocol.
Properties
|
Operation |
Describes which operation the adapter performs. Possible values:
|
Parameters
|
Key |
Key under which an entry is stored in the global context Possible values: Any string |
|
Filter |
Regular expression (regex) to filter for keys in the global context, according to Possible values: Any regular expression (e.g. |
Status values
|
1 |
The operation was successful. |
|
0 |
The operation was successful, but the result is null or an empty list. |
|
-1 |
The adapter could not be executed. |