Add a Switch with Two Branch Rules

Perform the following steps to add a Switch:

  1. Drag and drop the "Switch" action from the Actions section on the right to the integration right after the Order_Status_Update activity.

    This action adds two rules allowing you to define routing expression branches for your integration.

  2. Click edit on the first rule. The Condition Builder page appears.

  3. In the Condition Builder, enter the following information to create the condition: All of Name = 'STATUS_CODE' and Value = 'BOOKED':

    • Enter "Booked Order" as the Expression Name.

    • In Source section, expand the BusinessEvent_Input node, then the InputParameters node, then the BusinessEvent node, then the ParameterList node, and then the Parameter node.

      1. Drag and drop the Name element to the right top under the New Condition section.

        • Select = from the drop-down list.

        • Enter 'STATUS_CODE' in the text box as the condition value.

        Click the Add Condition (+) icon.

      2. Drag and drop the Value element to the right top under the New Condition section.

        • Select = from the drop-down list.

        • Enter 'BOOKED' in the text box as the condition value.

        Click the Add Condition (+) icon.

    • In the Match field, select "All of" from the list.


      Description of order_status_expression.gif follows
      Description of the illustration order_status_expression.gif

    Save your work. Click Close to return to the integration.