In Step 4.1 you copied the value in o_CheckItemAvailability.available -- the result value returned by the recorded flow iCheckItemAvailable.seqflow -- to the working variable v_CatalogOrder.available (see Add an Assign node to the top-level flow). You will now add a new Switch node to the top-level flow to test whether the result value stored in v_CatalogOrder.available is the string YES, indicating that the requested item number was found, or an empty string indicating that the requested item number was not found.
To add the Switch node and its logic:
In the workbench's main menu click .
Add a new Switch node to the flow editor canvas and position it above and to the right of Assign. The name of the new Switch node is Switch.
Add logic to the new Switch node to check the value of the variable v_catalogOrder.available:
Open the ESQL expression for the first (topmost) output terminal of the Switch node named Switch:
Right-click the Switch node.
Click .
The Edit Expression window opens. The Messages in scope list and the expression input are blank.
Add the variable v_CatalogOrder to the scope:
Click Add. The Select Message window opens.
In the Select Message window click .
Click OK.
Encountered '<EOF>' at line 0, column 0.</EOF>This message simply indicates that the expression input area is currently empty.
Create an ESQL expression for the Switch node:
Copy the expression shown in Figure 2 into the expression input area of the Edit Expression window. You should be able to copy and paste the line from this tutorial document directly into the expression input area:
Click OK.
Close the flow editor.