Switch Cases
Description
It executes one of its children out of multiple options based on the result of a conditional expression.
Common settings
Use Process Data to bind supported inputs to workflow values or upstream outputs. See Common Activity Features for shared execution, error-handling, and output-persistence settings. Availability depends on the activity.
Design-Time Configuration
Display Text
Specify the activity name that shows in your process.
Cases
Add a labeled case for each alternative and specify its Boolean condition using Liquid or JavaScript. Connect each case's outcome to its corresponding activity.
Cases are evaluated in their configured order. The first condition that evaluates to True selects the outgoing path; later cases are not evaluated. If none match, the activity follows Default. Connect Default to the fallback processing your workflow requires.
Execution settings
Configure Wait All Incoming when execution paths converge, and On Error for failure handling. Select Inherit where available to use the workflow-level error policy.
Example: Route an amount
Define cases in this order:
| Case label | Condition | Next step |
|---|---|---|
| High | Amount is greater than 10,000 | Manager review |
| Standard | Amount is greater than 0 | Standard processing |
| Default | No case matches | Handle missing or invalid amount |
Select the expression syntax and insert the amount from Process Data. An amount of 12,000 selects High, even though the Standard condition would also be true. An amount of 0 follows Default.