Control steps

Describes how to use the control steps.

List iterator

General info
CategoryDescription
ControlThe List Iterator is a control flow statement designed for iterating through items within a collection, such as result sets or multiple fields. This step facilitates the inclusion of other steps within it. The behavior of this step encapsulates the behavior of the nested steps, enabling structured traversal of the collection.
Inputs
LabelTypeRequiredVisibilityDescription
Iterable listresultSet / field(many)yesAlwaysThe list of elements to be traversed.
Outputs
NameTypeDescription
nextElementNamerecord / fieldThe name of the next element in the list.
Sample
For each image
The flow initiates, the "foreach" step updates and saves each of the records discovered in the "find data" step, and finally, the execution concludes with the "end" step.

Condition

General info
CategoryDescription
ControlThe “Condition” step executes the subsequent steps in the path only if the specified condition evaluates to “truthy.”
Inputs
LabelTypeRequiredDefaultVisibilityDescription
Condition typechoiceyesExpressionAlwaysType of condition to be checked. Possible values are Expression and Script
Expression recordrecordCondition type is expression-Condition type is expressionThe record instance to be used to check condition.
Expression conditionconfitionCondition type is Expression. Expression record has been defined-Condition type is Expression. Expression record has been definedThe condition to be valued as true.
Script conditionconditionCondition type is Script-Condition type is ScriptThe script condition to be evaluated as true.
Outputs

No configuration required.

Sample
If Sample image
The flow starts, the if step evaluates the condition, if the condition is true, runs the script and then the execution finished with the end step.

Subflow

General info
CategoryDescription
ControlA subflow is a grouping of steps that are condensed into a single step within the execution path. It can be employed to simplify the visual representation of a flow, or to bundle a set of steps as a reusable component used across various instances.
Inputs

No configuration required.

Outputs

No configuration required.

Sample
Subflow image
The flow initiates, and the "subflow" step executes the set of steps specified within the subflow. If an error occurs during the execution of these steps, the error will be recorded, and the execution will be terminated.

Error handler

General info
CategoryDescription
ControlThe error handler step enables you to define a code block that is examined for errors while it runs. This step also permits the inclusion of other steps within it. The behavior of this step encompasses the behavior of the nested steps, providing error-handling capabilities.
Inputs

No configuration required.

Outputs

No configuration required.

Sample
Error handler image
The flow begins, and the "try-catch" step runs the script. If an error occurs during the execution of the script, the error will be recorded, and the execution will be terminated.

Loop

General info
CategoryDescription
ControlThis control flow statement enables the repeated execution of steps based on a specified boolean condition. It supports the inclusion of other steps within it, thus allowing for the nesting of steps.
Inputs
LabelTypeRequiredDefaultVisibilityDescription
Condition typechoiceyesExpressionAlwaysType of condition to be checked. Possible values are Expression and Script
Expression recordrecordCondition type is expression-Condition type is expressionThe record instance to be used to check condition.
Expression conditionconfitionCondition type is Expression. Expression record has been defined-Condition type is Expression. Expression record has been definedThe condition to be valued as true.
Script conditionconditionCondition type is Script-Condition type is ScriptThe script condition to be evaluated as true.
Outputs

No configuration required.

Sample
Loop image
The flow commences, and the "while" step logs as long as a specified condition remains true. Subsequently, the execution concludes with the "end" step.