Branch Action
Branch Action is a flow control action that enables conditional workflow branching based on specified criteria or expressions. It evaluates a given condition and, depending on the result (true or false), directs the automation flow to different subsequent actions. This allows for dynamic decision-making within workflow automations, supporting complex logic and adaptive process execution. Typical use cases include debugging, processing different data types, or responding to varying user inputs within an automated workflow.
Appearance
In Talos, Branch Action appears as a diamond-shaped node, symbolizing a decision point. It visually distinguishes itself from other actions by indicating multiple possible outgoing paths, each corresponding to a different evaluation result (e.g., true/false).
Properties
As all Actions, Branch Action has a few unique properties that are essential for it's functionality.
Common properties
Common properties inherited from Action.
By customizing this property, you can differentiate between same type of actions.
This property is Read only and it is not customizable
See more about Talos Scripting language & Expressions
The type of the evaluated condition must always resolve to a Boolean value. In any other case, a TypeError will be thrown.
Examples
Below are a few valid expressions for this property. Assuming a declared Integer variable with name index and a String variable str.
// Valid Expressions
true
false
${index} < 10
${index} == 10
${str}.IndexOf("/") != -1
${str}.Length() > 10
// Invalid Expressions
${index} --> Will throw TypeError
"Hello World" --> Will throw TypeError
0 --> Will throw TypeError
1 --> Will throw TypeError
You can use the Workflow Designer UI to automatically populate this property and connect the action to the next actions. See more in Workflow Designer documentation.
You can use the Workflow Designer UI to automatically populate this property and connect the action to the next actions. See more in Workflow Designer documentation.