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.

  1. In the navigation panel of App Studio, click Case types, and then click the case type that you want to open.
  2. On the Workflow tab, click Life cycle.
  3. Hover over a process in a stage, and then click the Configure process icon.
  4. Click the Flow shapes icon, and then click Decision.
  5. Drag the Decision shape to a position on the canvas, based on where the decision occurs in the flow.
  6. 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.
  7. 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 with a condition builder.
    • To use an existing when condition, in the drop-down list, click Existing condition, and then select the condition.
  8. Optional: To add more conditional paths, click Add path, and then repeat step 7.
  9. 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.
  10. In the Otherwise go to list, select the shape to which the flow advances when no conditions return a true value.
  11. Click Save.
  12. Click Stages & steps to return to the life cycle of your case type.