Using an Assign to Specify an Instance of a Repeating Element

Use an Assign activity to specify a specific instance of a repeating element for a source or target node. For the target node, verify that the node exists before beginning this procedure.

  1. Create an Assign.

    The source in an Assign must be a simple or complex type to invoke the XPath editor.

  2. Expand the Properties section.
  3. Select the Assign activity in the business process canvas to see its properties in the Properties section.
  4. Select the Assign Overview tab and set the source and target values.
  5. Insert the indexes for the repeating node:
    1. Select the Assign tab to display the XPath editor and the properties for the items.
    2. Define the XPath expression for the source or target.
    3. Type the required qualifier in the XPath expression.

      For example, the following expression is used to select the first instance of the repeating element:

      OrderItems: /BPService/BPService/operation1/init/sy1:Order/sy1:OrderItems[1]
    4. Click OK.
  6. Select File > Save from the main menu bar.
Related concepts
Assign Activities

Send your feedback on this help topic to Sybase Technical Publications: pubs@sybase.com

Your comments will be sent to the technical publications staff at Sybase, Inc. For product-related issues or technical support, contact Sybase Technical Support at 1-800-8SYBASE.