Using an Assign to Specify an Instance of a Repeating Element

Use an Assign activity to specific a specific instance of a repeating element.

To specify a specific instance of a repeating element:

  1. Create an Assign.

    Note

    The source in an Assign must be a simple type or an XSD complex or simple type to invoke the Expression editor. A complex parameter cannot be used to create an XPath expression.

  2. Expand Properties or open the Properties Panel view.

  3. With the Assign selected on the canvas, select the Assign tab in Properties.

    This tab contains the Expression editor and displays properties for the selected item in the Expression editor.

  4. In the Expression editor, select the icon that represents the source to see its properties.

  5. In Properties for the Operation, click Advanced.

    The XPath Workarea opens.

  6. Type the required qualifier in the XPath expression.

    For example, the following expression would be used to select the first instance of the repeating element OrderItems:

    /BPService/BPService/operation1/init/sy1:Order/sy1:OrderItems[1]

  7. Click OK.

Acting on Repeating Elements in Data

Assign

How Boolean Works in XPath Functions

Send your feedback on this help topic to Sybase Tech Pubs: pubs@sybase.com