Skip to main content

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).

Decision Icon

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.

Display NameString
This is the display name of the action.

By customizing this property, you can differentiate between same type of actions.

Action IDString
Indicates the unique ID of this action.

This property is Read only and it is not customizable

DisabledBoolean
If set to true, this action is considered disabled and will not be executed.
ConditionExpression
The condition to evaluate and based on that change the process execution flow.

See more about Talos Scripting language & Expressions

tip

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
If TrueAction
This property points to the action to be executed if the condition evaluates to true.
note

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.

If FalseAction
This property points to the action to be executed if the condition evaluates to false
note

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.