Changing the decision logic in a flow
You can change the way that you implement a decision in a process. By using a rule instead of a series of when conditions to define your decision logic, you can create cases that support complex decisions and are easier to maintain.
- In the navigation pane of App Studio, click Case types, and then click the case type that you want to open.
- On the Workflow tab, click Life cycle.
- Click a process that contains a Decision step, and then click Open process.
- On the Diagram tab of the Flow form, double-click the Decision shape to open the property panel.
- In the Type list, select a type of decision logic.
For more information about the supported types, see Types of decision logic.
- Associate your decision logic with the Decision shape.
For decision logic that you define in a decision table, decision tree, map value, predictive model, or scorecard:
In the Rule field, press the Down Arrow key and select the rule that defines your decision logic.
Provide input values, based on the type of rule that you select.
Input - Passes text or a property reference to a decision tree.
Row input - Passes text or a property reference to a row in a map value rule.
Column input - Passes text or a property reference to a column in a two-dimensional map value rule.
In the Result in field, enter the name of a property that stores the result of the decision.
For decision logic that you define in a Boolean expression:
In the Expression field, enter a Boolean expression that defines your decision logic.
- Optional:
To access helpful tips and built-in functions for your expression, click the Build an expression icon.
For decision in a fork. Percentage — Follows the connector for a specific percentage of flow runs.
For example, you can ensure that 20 percent of mortgage applications take a different path in the flow for auditing purposes.
This option is available only when you connect a Decision shape that is set to type Fork .
- Click Submit to close the property panel.
- Click Save.
Previous topic Types of decision logic Next topic Adding a conditional path to a flow