Context

Context is how Data Stores share their Schemas for Building Rules and Actions. Selecting one or more Data Stores as Context when building a Rule or Action allows their classes and attributes to be selected as parameters.

     Note: The Context is not used when running the Rules or Actions (as the Data Stores to be opened are defined within the session) but only when authoring them.

     Best Practice: When creating a Rule, setting the correct Context as the first step means that you will have access to the necessary classes and attributes, which will help identify some potential errors.

The Context option is found in the right hand panel of the Workspace of both the Rules and Actions interfaces.

An image showing the context menu in 1Integrate, including Use Schema selected.
The Context selector within the Rules interface

Enabling Context Classes

If the Context field is selected, a list of available Data Stores will appear.

     Note: Multiple Data Stores can be selected for the context.

Once at least one Data Store is selected from the list, Context Classes will be available in Rules and Actions to be selected as parameters for:

  • All Predicates except Test in Range and the logical operators

  • Any of the following Operations:

    • Loop Over Objects
    • Loop Over a Collection
    • Create Object
    • Delete Object

  • Any of the following Values:

    • Dynamic Value
    • Object or Element
    • Class Name
    • Nested Value
    • Array Element
    • Aggregate Value

     Note: For Values, attributes are also available when the context is defined.