Conditional Process Runs
Set conditions when to run a digital process and its steps.
Last updated
Was this helpful?
Set conditions when to run a digital process and its steps.
Last updated
Was this helpful?
For every step of your digital process, you can add a condition that would be used by the process context to decide whether the particular step should be processed or not. You can set up a filter or a rule that serves as conditional logic for the step. All of the conditions are evaluated by the Decision Engine to affect the process.
It's possible to add conditional logic to every process step and to triggers that serve as mid-process triggers in your digital process. However, it's not possible to add logic to a start trigger, which is the first step of the whole process. Whenever you have conditional logic applied to a step, you can check the condition in the and evaluate the outcome of its execution or non-execution.
To be able to set a filter or a decision, you have to have a process step created first. Then, the +Add logic button appears.
Filters allow a step to only act on a selected event type. It is possible to add more than one filter for the same step. If you set filters for specific event types within a step, it means that the digital process step will run only if the conditions of the filter are met. If they are not met, the process step is skipped. Filters use the event types that are configured for your OE tenant.
To open the filter settings window:
Choose Add Logic in a chosen process step, it opens a window with a visible Filter tab.
Choose an Event Type from the drop-down list. The list shows event types that are configured for the tenant and available for the scenario context. It's possible to select multiple event types at one time.
Decisions work on the level of evaluating whether an action should be taken or not. It means, they allow setting up a condition for the step that is evaluated on a true
/ false
logic.
To open the decision window choose Add Logic in a chosen process step and go to the Decision tab.
Custom operators:
businessRule
- References a rule defined in the rulestore.
The first expected value is the ID for the rule that you want to use, and the others are the variables that should be available for the referenced business rule. These variables are indicated as value pairs.
Rulestore
Logic
Data
Result
context
- This is used to access a dynamic value inside the process context in a way similar to the var
operator. If access to a dotted key is needed, the dotted key should be quoted with backquotes (`
).
Logic
Process Context
Result
This operator is valid within the digital process logic. Since the process context does not exist within the Rulestore, the necessary variables must be included as parameters.
Extended behavior:
var
- Inside a digital process the data means the context with the parent key.
For example if the process context is:
Then, the data for the JSON logic expression would be:
Dotted keys must be backquoted to work.
Logic
Process Context
Result
For the decisions, we use the JSON logic expression language and extend it with custom operators. The JSON logic expression can be either a direct expression placed in the field, or it can refer to a rule created in the .
To learn about the rules creation in OE, see the documentation.
For the full list of JsonLogic operators, see the guide.