Decisional

12min
ο»Ώ

The Decisional action will execute one of the many branches configured, depending on whether a specified condition is met. If no condition is met, you have the option to define a Default path for the action.Β 

You can add several actions after a Decisional and build as many cases as you need. A case configuration consists in defining the condition and its successor branch (called "target"). A target action is an action connected to the Decisional as a successor.Β 

Connecting a target action to the Decisional will automatically generate a case that requires configuration.

The outcome of a case can be True or False, depending on how the condition is evaluated. The value of the evaluation determines the next action target to be processed within the flow.Β 

The process will only consider the first True evaluation, continuing the process on the correspondent target branch. All other cases will be ignored once the first True evaluation of a case is met.

How to configure the Decisional action?

Go to the Process Designer section and open a new or an existing process. Actions configuration can be performed once they are dragged and dropped on canvas from the Toolbar.

Document image
ο»Ώ

Step 1:Β Drag the Decisional action onto the canvas and click on it to open the Properties Panel.

Step 2:Β You can edit the action name.

Document image
ο»Ώ

Step 3:Β If there is at least one target action connected, you will see in the Properties Panel a case generated that requires configuration (not set).

Document image
ο»Ώ

Click on it to go to the case configuration steps.

If there are no target actions connected to Decisional, you will see a message displayed in Properties Panel guiding you to "Please connect one or more actions to start configuring your cases."

Step 4:Β Case configuration

Document image
ο»Ώ
  1. Name: set a name for you case; it will be also displayed on the connector going to this case's target action to easily identify the branches.
  2. Advanced Filtering Builder: here you can add either a condition or a group

Adding a condition

Document image
ο»Ώ

Once you press Add condition, an expression will be displayed where you will need to define:

  • First Operand (left): click on the + icon and a process variables list will open. Select the process variable to be compared or input a value manually.
  • Operator: click to select the operator
Document image
ο»Ώ

ο»Ώ

  • Second Operand (right): you can either fill in a hard-coded value (e.g. 1000, Name etc.) or select another process variable to be used as an operand;
  • Logical Operators: you can also use logical operators to join together multiple expressions and build complex conditions. On click, you can switch between AND to OR operators.

When adding a condition or a group, please note that AND has priority over OR in evaluation.

Please see below the variable/conditions matrix for dynamic conditions:

Document image
ο»Ώ

Adding a group

Document image
ο»Ώ

Once you have created a group, you can:

  • Rename it.
Document image
ο»Ώ
  • Add new conditions to the group or drag & drop previously created conditions.
  • Add a subgroup.
Document image
ο»Ώ
  • Ungroup: this action will delete the group, but the conditions will be kept and placed outside the group
  • Delete group: this action will delete the group and the conditions contained in the group

ο»Ώ

Β  Β  3.Β Target:Β select from the list the go-to action that will be processed within the flow when the specifiedΒ condition is met. The target list will include only the actions connected to the Decisional as successors.

The actions already assigned as target in previous cases will no longer be available in the list when configuring a case. To have multiple actions reach the same path, consider using a Join action.

Step 5:Β Defining a Default case is essential when configuring a Decisional. When none of the conditions defined in other cases is met, two things can happen:

  1. The flow stops - this will be the default behaviour if no Default case is defined.
Document image
ο»Ώ

Β  Β  2. The flow follows the default path - By setting a default path (a target action that will be processed only when no above condition is met), you can make sure your logic can handle cases that were not considered at first. The target action for the default path must be connected on canvas to Decisional as shown below.

Document image
ο»Ώ

Once the target action for Default path is connected it will be automatically displayed in configuration:Β 

Document image
ο»Ώ

This is an example of how the Decisional action looks on the canvas:

Document image
ο»Ώ

ο»Ώ