Select a substitution type in a mapping pane

About this task

To select a substitution type in a mapping pane:

Procedure

  1. Upload an XML Schema that contains an XML element based on derived types into the project.
  2. In an activity that uses an XML Schema, select the node representing the XML element that is based on a derived type for the input or output parameter of the activity.

    For example, the Read XML activity uses an XML Schema to define the output parameter of the activity. In the Configure task of the Checklist for the Read XML activity, select an XML variable that defines the node of the XML Schema to use the output parameter. Using example XML Schema shown in the preceding figure, a variable based on the <shape> element can be used to define the node of the XML Schema to use as the output parameter of the Read XML activity. Since the derived type for the <shape> element is not selected, only the child element (named color) of the base type are displayed in the From Activity pane as shown in the following figure:

    Note that the child elements of the derived types are not listed in the mapping pane. In this example, the child element of circle which is named diameter is not listed, nor are the child elements of rectangle which are named width and length.

  3. In the From Activity and To Orchestration panes of an activity, select the derived type expected during run time, by right-clicking on the node and from the menu selecting the Substitute Node With ... option. The Substitute Node with a Derived Type dialog box open the menu, the available derived types for the node as defined by the XML Schema are listed. For this example, the two derived types are available from the menu as shown in the following figure:
  4. Select one of the derived types. The selected derived type determines the expected type of XML instance document during run time.

    In this example, the circle derived type is selected, so the XML data expected for this node during run time is of type circle as shown in the XML instance document displayed at the top of this page.

    In addition to the child elements of the base type, the child elements of the derived type show in the mapping panes. In this example, the child element named diameter is displayed with the child element named color (inherited from the base type) in the From Activity pane of the Read XML activity as shown in the following figure:




Feedback | Notices


Timestamp icon Last updated: Wednesday, February 17, 2016


http://pic.dhe.ibm.com/infocenter/wci/v7r0m0/topic/com.ibm.wci.doc/map_Selecting_a_Substitution_Type_in_a_Mapping_Pane.html