Add a Switch with Two Branch Rules
Perform the following steps to add a Switch:
-
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.
-
Click edit on the first rule. The Condition Builder page appears.
-
In the Condition Builder, enter the following information to create the condition:
All of Name = 'STATUS_CODE'andValue = '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.
-
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.
-
-
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 the illustration order_status_expression.gif
Save your work. Click Close to return to the integration.
-