Rule editor

The Rule editor enables the creation and editing of rule configurations based on parameterisable rule modules of different Rule types.

In every context that provides a rule configuration, a placeholder appears in the form of a diamond with a images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/add.svg icon, which can be used to open a context menu for defining rules.

Context: Association criteria

Context: Event handling / Client workflows

Context: Resolvers




images/download/attachments/201666309/image-2025-4-1_13-49-23-version-1-modificationdate-1743508163074-api-v2.png





images/download/attachments/201666309/image-2025-4-1_13-50-1-version-1-modificationdate-1743508201225-api-v2.png




images/download/attachments/201666309/image-2025-4-1_13-50-39-version-1-modificationdate-1743508239827-api-v2.png
images/download/attachments/201666309/image-2025-4-1_13-51-0-version-1-modificationdate-1743508260195-api-v2.png

The configuration of Association criteria is exclusively concerned with the definition of a more or less complex rule that is deemed to have passed or failed at runtime depending on the overall data context.

In the context of Event handling and Client workflows, the Validating rule decides whether Action on passed rule are executed at all.

If the configured rule is ‘not passed’ at runtime, No action is taken.

Certain Resolvers, such as those shown above as an example (Rule value and Rule list resolver, also refer to the Rule editor to configure a condition.

Special Rule typesWith rule

Special Event actionsIf then else

Special ResolversConditional value




images/download/attachments/201666309/image-2025-4-1_13-51-54-version-1-modificationdate-1743508314807-api-v2.png




images/download/attachments/201666309/image-2025-4-1_13-52-22-version-1-modificationdate-1743508342057-api-v2.png





images/download/attachments/201666309/image-2025-4-1_13-52-53-version-1-modificationdate-1743508373345-api-v2.png



In the configuration of the With rule, a temporary reference object is first set via a value configuration.

A rule configuration follows below, which is executed in the context of the value resolved as a reference object.


Within an If then else event action, a case differentiation can be configured with one or more branches. Each branch provides a rule configuration on which the execution of the Event actions configured in the branch depends.

A Conditional value resolver adapts the concept of case differentiation (see If then else event action, left) for the context of a value configuration. Each branch assigns a specific value configuration to a rule configuration.

Symbolism and logic for rules

The evaluation of a rule always returns a truth value (true or false) at runtime. This check result determines further processing according to the following scheme:

images/download/attachments/201666309/image-2025-4-1_13-54-45-version-1-modificationdate-1743508485620-api-v2.png





If the 'Rule failed', the test result 'false' is returned and the path is followed 'to the right'.

If the test result is 'true', the rule is considered 'passed' and the 'downwards' path is continued.


NOTE◄ If no other rule is configured ‘below’ (or when ‘passing’) the Check type rule selected as an example, a type hint appears for the expected return value, depending on the context, which largely covers the arrowhead of the connecting line. A Check type can even ‘set’ this type hint, as it ‘declares’ a type for the downward path.

images/download/attachments/201666309/image-2025-4-1_13-54-5-version-1-modificationdate-1743508445185-api-v2.png

Click on the (+) icon at the top of the diamond to expand the ‘rule’ so that the specific configuration interface for the rule type appears, which provides access to the specific parameterisation (if available).

Click on the (-) symbol at the top right of the configuration interface to close the rule.

images/download/attachments/201666309/image-2025-4-1_13-53-46-version-1-modificationdate-1743508426142-api-v2.png

  • The Check type provides a Combobox for the Type parameter.

  • Two further parameters are each represented as options by a Check box element.

  • These parameters are statically determined and can therefore only be adjusted by configuration.

  • A ‘dynamic’ value assignment (at runtime) may enable value configurations.

NOTE◄ The configuration interface can contain elements for conditional parameters whose visibility or activation status depends on assignments for other parameters.

Rule graph

Using an interactive visualisation, the ‘rule graph’, the Rule editor enables the step-by-step creation of more complex logical structures based on a single rule.

►NOTE◄ The screenshots in the following sections refer to the context of an association criterion. In other environments, the display differs in details..

Functionally, the rule configuration shown on the right and therefore the association criterion as a whole should be considered ‘passed’ if the following conditions are met:

  1. The reference object in the context is either a user account of the type ‘User’ (see Users) →OR ‘Guest user’ (see Guest users).

  2. In addition (↓AND) at least one of the following →OR-linked criteria must be fulfilled:

    1. The Company of session defined by the login context is also the ‘owner’ (ownerId) of the user account specified as the reference object.

    2. If the reference object is a guest user account, no Guest users are found in the database (negated Check existence rule) that fulfil a complex Where condition (account does not match the reference object, but relates to the same company).


At runtime, the rule graph is processed step by step along the relevant connection arrows, beginning at Start.

For the specific example, this means

  • The Check type for Users is performed first. Only if this is 'failed' is the →OR-linked Check type for Guest users performed (right). If this also fails, the overall →Rule failed (far right) applies.

  • If a Check type ↓ has been passed, the match (Equals) between the Object property ‘User’ (ownerId) and the ‘ID’ (id) field of the Company of session is first checked in an Entity property rule (bottom left).


    IMPORTANT◄ Only if →not passed is the →OR-linked ↓AND Junction (bottom right) executed at all.


  • A new Check type within the ↓AND Junction ensures that a request is only made to the database via a Check existence if a guest user exists as a reference object. If a ‘competing’ guest user account is identified using the Where condition, the negation ((!) symbol see Not rule) for the association criterion as a whole →Rule failed.


images/download/attachments/201666309/image-2025-4-1_13-55-52-version-1-modificationdate-1743508551957-api-v2.png

IMPORTANT◄ As soon as the step-by-step check reaches one of the end points of the rule graph (Rule passed or Rule failed), the evaluation ends. Depending on the check results and the linking logic, more or fewer of the configured rules must therefore be checked.

  • Within an OR Junction, it can be advantageous to arrange more complex checks (such as the Check existence with database access) as far to the ‘right’ as possible so that they are executed less frequently.

  • Within an AND Junction, it can be advantageous to place critical checks as high up as possible so that exclusion criteria are recognised as early as possible within the link.

  • A Check type may influence the type hint for subsequent ↓AND-linked rules. This can make configuration easier, as ‘suitable’ selection options for the data model then appear in value configurations for parameters (here: ownerId in the Object property resolver).

Context menu for rules

The context menu for rules can be opened using different mechanisms:

  • Click on the menu icon of a collapsed rule module (at the bottom of the diamond) or at the top right within the configuration interface of an expanded rule module.
    Diamond:images/download/attachments/201666309/image-2025-4-1_13-56-58-version-1-modificationdate-1743508618489-api-v2.png Configuration interface: images/download/attachments/201666309/image-2025-4-1_13-56-43-version-1-modificationdate-1743508602934-api-v2.png

  • Right-click in the area of an expanded or collapsed rule module (diamond/configuration interface.


IMPORTANT◄ The mechanisms mentioned above focus on the existing rule module, which has an effect on the functions offered in the context menu.

The following mechanisms, on the other hand, relate to a rule module that is to be added to the configuration so that certain functions do not appear in the menu.


  • Click on an insertion point for a rule module:

    • images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/add.svg icon in the placeholder for a rule configuration without rule module.

    • <OR> icon on the left or right edge of an expanded or collapsed rule module to create/expand an OR Junction.

    • <AND> icon at the top or bottom rank of an expanded or collapsed rule module to create/expand an AND Junction.

images/download/attachments/201666309/image-2025-3-31_19-33-45-version-1-modificationdate-1743442424964-api-v2.png

Insertion positions:
images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/add.svg icon:images/download/attachments/201666309/image-2025-4-1_14-3-49-version-1-modificationdate-1743509029261-api-v2.png OR (left/right):images/download/attachments/201666309/image-2025-4-1_14-4-45-version-1-modificationdate-1743509085040-api-v2.png images/download/attachments/201666309/image-2025-4-1_14-5-45-version-1-modificationdate-1743509145215-api-v2.png AND (below/above):images/download/attachments/201666309/image-2025-4-1_14-7-30-version-1-modificationdate-1743509250717-api-v2.png images/download/attachments/201666309/image-2025-4-1_14-8-13-version-1-modificationdate-1743509293755-api-v2.png

Menu functions for rule modules

Function

... for selected rule/Junction

... at an insertion point

Details

Add

replaces the selection with a new instance for the rule type chosen in the context menu.

adds a new instance to the rule graph for the rule type selected in the context menu.

►NOTE◄ When adding a rule module to an existing configuration, a Junction is created implicitly if required.

Remove

removes the selection from the rule graph (but unlike cutting, does not copy it to the Lobster Data Platform / Orchestration clipboard).

images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/error.svg n/a

images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/warning.svg CAUTIONimages/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/warning.svg When a Junction is removed, all directly and indirectly contained rule modules are also removed, i.e. the entire substructure downwards from the selection in the rule graph.

Test mode

enables Tests for selection.

images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/error.svg n/a

NOTETests for a rule only return a Boolean value ($true/$false). However, the 'Log' can contain information on errors that are intercepted in Association criteria by default with the return value $false.

Edit as XML

starts XML editor with the structure for the selection
(incl. all 'contained' components).

starts an empty XML editor for a new rule
(e.g. for pasting XML from the clipboard).

NOTE◄ In addition to direct editing of the XML structure, the editor also allows sections of a rule graph to be copied and pasted via the clipboard of the client operating system. In contrast to the Lobster Data Platform / Orchestration clipboard (see below), configurations can also be ‘transferred’ across systems.

Functions of the Lobster Data Platform / Orchestration clipboard

Copy
Shortcut: Strg+C

copies the selection to the Lobster Data Platform / Orchestration clipboard.

images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/error.svg n/a

NOTE◄ The Lobster Data Platform / Orchestration clipboard is based on a cookie stored locally by the browser, the value of which is overwritten when using the Cut or Copy functions. As long as the cookie exists, the content is available for subsequent sessions with the same browser under the same URL, even if different login data (user, company, role) is used.

The Paste function only appears in the context menu if the clipboard contains content and this is compatible with the context.

Cut
Shortcut: Strg+X

copies the selection to the Lobster Data Platform / Orchestration clipboard and immediately removes it from the rule graph.

images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/error.svg n/a

Paste
Shortcut: Strg+V

images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/error.svg n/a

inserts (suitable) content of the Lobster Data Platform / Orchestration clipboard at the insertion point in the rule graph.

not

reverses the status of the ‘negation’ for the selection (removes or adds a Nicht (Regeln above the selection).

images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/error.svg n/a

negated rules: images/download/attachments/201666309/image-2025-4-1_14-22-36-version-1-modificationdate-1743510156441-api-v2.png images/download/attachments/201666309/image-2025-4-1_14-23-8-version-1-modificationdate-1743510188190-api-v2.png

Description

opens a modal text editor to edit the description for the selection.

NOTE◄ As can be seen in the screenshot on the right, the presence of a description is signalled by a red marker in the top right-hand corner of the display for the rule or Junction. When the mouse cursor is moved closer, the highlighted text appears as a tooltip (see screenshot).

images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/error.svg n/a

images/download/attachments/201666309/image-2025-4-1_14-25-44-version-1-modificationdate-1743510344684-api-v2.png

images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/warning.svg CAUTIONimages/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/warning.svg A Description is generally well suited to providing a functional summary for a more complex logical aggregate at the level of the parent Junction. It should be noted that a (non-negated) Junction is automatically deleted from the rule graph when contained components are removed or cut out if it becomes superfluous because it would only contain one component after the interaction. Any assigned Description is lost without further enquiry.

Help

opens the manual entry (if available) for the rule type of the selection or for the context applicable Online help.

opens the parent manual entry for all Rule types or Online help applicable to the context.

NOTE◄ Entries in the manual only appear if the 'Administration/Master data/Online help/Display default help' authorisation is available. However, the Help function always appears in the Context menu, as it also affects any assigned custom Online help.