Skip to main content

Get help for ARIS

Add a switch

A switch is a logic action that evaluates specific conditions in a flow. Based on the result of the evaluation, the switch directs the flow to different paths called cases.

Remember that you added the Send copy to me check box to your form. To evaluate the value of this check box you need to create a switch and two cases. One case sends an e-mail without a copy, the other case sends an e-mail and a copy.

Procedure. Procedure
  1. Under the Get model links action, click Add Add. The Add action panel opens.

  2. In the Logic section, click Switch. A switch is created and the Switch panel opens.

  3. Click the Name field and enter Evaluate check box.

  4. Click the Default case field and select None.

  5. Click Add Add to add an additional case.

  6. Click the arrows in front of Case 1 and of Case 2.

  7. Enter Check box enabled into the Text field of Case 1 and Check box disabled into the Text field of Case 2.

  8. Specify the condition for the Check box enabled case.

    1. Keep TRUE in the Condition field and click Enter data Open mapping panel. The Define mapping panel opens.

    2. Enable Advanced expression. true is preset in the field.

    3. Select Send copy to me from the Dynamic content list. The expression for the Send copy to me check box is added to the field.

    4. Click Operator.

    5. Click the == Equals operator.

      Your advanced expression is now: ${Model#1.formData.page.CHECKBOX_1}==true

    6. Click Apply. The panel closes.

  9. Specify the condition for the Check box disabled case.

    1. Keep FALSE in the Condition field and click Enter data Open mapping panel. The Define mapping panel opens.

    2. Enable Advanced expression. false is preset in the field.

    3. Select Send copy to me from the Dynamic content list. The expression for the Send copy to me check box is added to the field.

    4. Click Operator.

    5. Click the == Equals operator.

      Your advanced expression is now: ${Model#1.formData.page.CHECKBOX_1}==false

    6. Click Apply. The panel closes.

  10. Close the Switch panel.

  11. Click Save Save.

The flow now contains a Switch action that directs the flow to the appropriate path, depending on whether the Send copy to me check box is enabled in the trigger form.