- 31 Jan 2024
- 1 Minute to read
- DarkLight
Operators
- Updated on 31 Jan 2024
- 1 Minute to read
- DarkLight
These are the operators at your disposal, enabling you to steer and define the flow of your workflows. Each operator is linked to a page outlining more advanced options. Additionally, in the designer, you have the flexibility to disable operators, allowing you to execute the workflow without them while retaining the implemented logic and the option to enable it.
If
Directs the workflow based on the evaluation of whether the condition is true or false.
Switch
Executes one of several branches, with conditions evaluated from left to right. The first branch whose condition is met will be executed. If none are met, the default branch will be executed. The Switch operator is available when hovering over the If operator.
Loop
- Loop: Repeats one or more steps for each member in a collection, a specified number of times, or until a condition is met.
- Collect: Gathers the outcome of each loop iteration into an array. The Collect operator is available when hovering over the Loop operator and must be placed within a loop.
- Break: Terminates the loop process immediately, allowing the workflow to continue to the next step after the loop. The Break operator is available when hovering over the Loop operator and must be placed within a loop.
Wait
Pauses the workflow, changing the execution status to On hold for the defined duration.
Nested Workflow
Runs the specified workflow as a step (subroutine) in the current workflow.
Exit
Terminates the workflow. Add parameters to the Exit operator to create an output schema for the workflow, enabling the passing of information from the workflow execution to the entity that triggered it.
Parallel Executions
Executes two or more branches concurrently. To create parallel branches, drag a step onto the one you wish to run in parallel.
After adding an operator, rename it from If, Loop, Break, etc., to a meaningful name that explains the logic you've implemented for anyone reviewing the workflow.
Disable operators
Disabling an operator keeps it in the designer but excludes it from workflow executions.
To disable an operator, select it in the designer and click the Disable icon in the menu above it. The steps in the scope of the operator will also be disabled.