Control Flow
This article is currently under review. Some content may be incomplete or inaccurate.
Category: Control flow
Control-flow activities change the path a transaction takes through the workflow instead of processing documents. Use them to branch, route, and loop.
If Condition
Branches into a true path or a false path based on a condition.
| Setting | Description |
|---|---|
| Condition | An expression that evaluates to true or false. |
The transaction follows the matching branch. Use it for simple two-way decisions (for example, "does this document have validation errors?").
Switch
Routes to one of several named branches based on the value of an expression.
| Setting | Description |
|---|---|
| Expression | The value to evaluate. |
| Cases | The values to match, each with its own branch. |
| Default | The branch taken when no case matches. |
Use Switch for multi-way routing (for example, one branch per document class).
For Each Document
Runs a set of activities once per document in the transaction, then continues after the loop ends. Use it when a step needs to act on documents individually rather than on the transaction as a whole.
Notes
- Conditions and expressions run in a secure sandbox with access to transaction and field data, similar to business rules and Data Transform.