Rational Developer for System z

Step 4.5: Set the output parameters of the flow CatalogOrder

In this topic you will store the output parameters returned by the nonterminal application DFH0XCMN (which is invoked by the Invoke nonterminal node PlaceOrder in CatalogOrder.seqflow) into the output structure of the flow CatalogOrder.
Note: For syntax such as o_CatalogOrder.itemNumber see Note on "<Message>.<element>".
The application DFH0XCMN returns the following output parameters:

You will add the two mappings shown in Table 1 to the mapping routine of the Assign node variableAssignOutput in the flow CatalogOrder.seqflow. These mappings retrieve the values of the output parameters returned by the nonterminal application DFH0XCMN and store the values into o_CatalogOrder.
Table 1. Mappings for variableAssignOutput
SOURCE: maps to TARGET:

msg_DFH0XCMN_DFHCOMMAREA.-
CA_RETURN_CODE

maps to o_CatalogOrder.returnCode

msg_DFH0XCMN_DFHCOMMAREA.-
CA_RESPONSE_MESSAGE

maps to o_CatalogOrder.returnMessage

To create these mappings:

  1. If CatalogOrder.seqflow is not already open in the flow editor then:

    1. Open CatalogOrder.seqflow in the flow editor.

    2. In the workbench's main menu click View > Zoom Out.

  2. Open the mapping routine for the Assign node variableAssignOutput:

    1. Right-click variableAssignOutput.

    2. Click Open Mapping Routine. The mapping editor opens and displays the mapping routine variableAssignOutput.

  3. Add msg_DFH0XCMN_DFHCOMMAREA to the mapping routine as a source message. (This message contains the output parameters for the application DFH0XCMN.)

    1. On the mapping routine toolbar click the Add a source message Add a source message icon. The Select Message window opens.

    2. In the Select Message window:
      1. Click CatalogSample > CatalogSample.Nonterminal > Messages > dfh0xcmn.sfmxsd > msg_DFH0XCMN_DFHCOMMAREA.
      2. Click OK.

      The source message is added to the left side of the mapping routine area.

  4. Add o_CatalogOrder to the mapping routine as a target message. (This is the output message used by CatalogOrder.seqflow.)

    1. On the mapping routine toolbar click the Add a target message Add a target message icon. The Select Message window opens.

    2. In the Select Message window:
      1. Click CatalogSample > CatalogSample.Interface > Messages > o_CatalogOrder.sfmxsd > o_CatalogOrder.
      2. Click OK.

      The target message is added to the right side of the mapping routine area.

  5. Create a mapping that copies the contents of msg_DFH0XCMN_DFHCOMMAREA.CA_RETURN_CODE to o_CatalogOrder.returnCode.

    1. Drag msg_DFH0XCMN_DFHCOMMAREA.CA_RETURN_CODE on the left side of the mapping routine area to o_CatalogOrder.returnCode on the right side of the mapping routine area.

    The mapping editor displays a new Move transform in the center column of the mapping routine area between the two message elements with a connection running from the source element to the transform and another connection running from the transform to the target element.

  6. Create a mapping that copies the contents of msg_DFH0XCMN_DFHCOMMAREA.CA_RESPONSE_MESSAGE to o_CatalogOrder.returnMessage.

    1. Drag msg_DFH0XCMN_DFHCOMMAREA.CA_RESPONSE_MESSAGE on the left side of the mapping routine area to o_CatalogOrder.returnMessage on the right side of the mapping routine area.

    The mapping editor displays a new Move transform in the center column of the mapping routine area between the two message elements with a connection running from the source element to the transform and another connection running from the transform to the target element.

  7. Close the mapping editor.

  8. Close the flow editor.


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)