The ability to pass data between a Business Process (BP) and a Ruleset actuated by that BP is based on a concept called the context point. This allows the Storage Manager to store multiple values – it is basically “data in memory” for the life of the Business Process.
Context points work with the use of variables made available in the Ruleset editor's Variable panel. These variables will assigned a value at runtime.
Video: See the Community video on using context point Business Process tasks.
Using Variables as Context Points in the Ruleset Editor
There are two approaches to using variables as context points:
- Selecting from several Cleo-provided variables that exist in the env folder.
- Creating a Ruleset Data Object in the glb folder. The example below shows 6 objects that have been created. By default, this folder is empty.
BP Tasks used with Context Points
Three tasks are associated with using context points.
Context Point - Create (CreateContextPoint)
Creates an object in the Storage Manager that can store multiple values, and return a single StorageNode as the result.
Parameter | Type | Description | Required |
---|---|---|---|
Result | StorageNode | Output | Yes |
Context Point - Set Value (SetContextPoint)
Sets a Value for a specific Variable Name in a Context Point.
Parameter | Type | Description | Required |
---|---|---|---|
Context Point | StorageNode | Where the context point is stored. | Yes |
Variable Name | String |
Uses the name of the field identified in the variable (located in either the env or glb area of the Ruleset Editor's Variables pane). Note: Specific naming conventions must be used in this field. For example:
The "env.var" or "glb.var" (for RDOs) must exist for the Variable Name to be identified. |
Yes |
Result | String or StorageNode | This will be set in the glb or env area of the Ruleset Editor’s Variables pane. | Yes |
Context Point - Get Value (GetContextPoint)
Inspects a Context Point to obtain the value (Result) that was previously assigned to a single Variable Name.
Parameter | Type | Description | Required |
---|---|---|---|
Context Point | StorageNode | The context point to be inspected. | Yes |
Variable Name | String |
Uses the name of the field identified in the variable (located in either the env or glb area of the Ruleset Editor's Variables pane).
The "env.var" or "glb.var" (for RDOs) must exist for the Variable Name to be identified. |
Yes |
Result | String or StorageNode | Output | Yes |
Comments
0 comments
Please sign in to leave a comment.