You can use the decision table branching logic in situations where multiple conditional paths are required, as an alternative to nested If, Else If, or Else flow logic. For example, if you want to determine what kind of car insurance you need, you can add inputs such as your age, accident history, and car model to the decision table to determine a level of insurance coverage. This logic can save you time and present a more readable format than nested if conditions or switch case statements.

The Make a decision flow logic requires that you create an external decision table for its branch paths. Each decision table answer produces a separate branch path within your flow. Decision tables accept any number of inputs and support any number of decisions. You can configure the Make a decision flow logic to return a single or multiple answers and to display the answers as branch paths or record data pills. For more information on decision tables, see Exploring decision tables.
Note:
  • When the Use Branches check box is cleared, the Make a decision data pills in other flow components is supported only if there are no branches.
  • The Make a decision data pill can be used in the answer branches only when the Use Branches check box is selected.​
  • When you set a data pill value from inside an answer branch of Make a decision flow logic, the data pill value is only available to other actions in the same branch. Referencing a data pill value that was set inside an answer branch from outside of the flow logic branch produces a null value.

Inputs

Outputs

Example: Use make a decision flow logic to determine insurance coverage

In this example, the flow uses a decision from the Insurance Coverage decision table, which an administrator had configured to determine the insurance coverage that was based on three inputs. The flow displays all the inputs that were used by the decision table. These inputs can be entered manually, or by dragging data pills into the inputs from the data panel on the right side of the screen. Below this section, the branches for each answer are shown in the decision table.

Make a decision flow logic.

Execution details

Figure 1. Make a decision flow execution details
Example execution details for the make a decision flow logic.
The Flow execution details tab provides runtime information about the flow logic.
  1. The header shows the state, start time, and runtime for the flow logic.
  2. The action shows details about the decision table configuration and inputs.
  3. Each possible answer for the decision table is represented as a branch. The state field indicates whether the branch was evaluated and the evaluation result. This section also displays details about the actions that are taken within a branch. Branches that evaluate to true are highlighted in green.