Adding a decision to a flow
You can add a conditional path to a flow by using the Decision shape. By defining the events that cause your flow to follow different paths, you can create cases that support more than one outcome.
- In the navigation panel of App Studio, click Case types, and then click the case type that you want to open.
- On the Workflow tab, click Life cycle.
- Hover over a process in a stage, and then click the Configure process icon.
- Click the Flow shapes icon, and then click Decision.
- Drag the Decision shape to a position on the canvas, based on where the decision occurs in the flow.
- Connect the Decision shape to the flow, by dragging the end point of a connector from a shape in the canvas to a connection point on the Decision shape.
-
Define at least one conditional path by performing one of the following actions:
- To define a custom condition with a condition builder, in the drop-down list, click Custom condition, and then click the Gear icon. For more information, see Defining conditions in the condition builder.
- To use an existing when condition, in the drop-down list, click Existing condition, and then select the condition.
- Optional: To add more conditional paths, click Add path, and then repeat step 7.
-
In the Go to list, select the shape to which the flow advances
when the conditions that you define return a true value.
Alternatively, you can add a new shape to the canvas; however, you must manually connect this shape to another shape in the canvas.
- In the Otherwise go to list, select the shape to which the flow advances when no conditions return a true value.
- Click Save.
- Click Stages & steps to return to the life cycle of your case type.