You can use the Decision shape to branch a flow based on information in a case. By modeling decisions in your application, you can implement dynamic business requirements.
For example, a Credit Application case can assign an approval task to a manager or send a rejection email to a customer, based on the requested credit amount or credit score.
To make a decision in a flow:
Double-click the Decision shape to open the property panel.
In the Type list, select an option based on the type of rule that the Decision shape evaluates at run time.
In the Rule field, press the Down Arrow key and select the name of the rule that defines the logic to make a decision.
This field is not available for decisions that are based on Boolean Expressions.
For more information about expressions, see Building expressions with the Expression Builder.
Optional: To pass information to the rule that makes a decision, use input values.
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-dimenional map value rule.
Optional: To control which property stores the result of the decision, enter a property name in the Result in field.
Click Submit to close the property panel.
Click Save.
You can test the Decision shape by connecting it to other shapes and running your flow.