Adding a decision to a flow

You can use the Decision shape to add a conditional path to a flow. By defining the events that cause your flow to follow different paths, you can create cases that support more than one outcome.

For advanced decisions that you cannot define in when conditions, configure the Decision shape to use a different type of logic, such as a Boolean expression or decision tree.

  1. In the navigation panel of Dev 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.
    1. Click the Decision shape to configure it.
    2. In the When section, click Click to add condition.
      Tip: To define more conditions that your application evaluates as one expression, click the Add icon.
    3. In the Field list, select a field to evaluate in a case.
    4. In the Comparator list, select a comparator.
    5. In the Value list, enter a value to compare with the field that you select.
    6. Click OK.
    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.
  8. In the Otherwise go to list, select the shape to which the flow advances when there are no conditions that return a true value.
  9. Click Save.
  10. Click Stages & steps to return to the life cycle of your case type.