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.

To use an assign to specify an instance of a repeating element:

  1. Create an Assign.

    Note

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

  2. Open the Properties panel.

  3. Select the assign activity in the business process canvas to enable the view of the assign activity in the Properties panel.

  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 Expression editor and the properties for the items in the Expression editor.

    2. Define the XPath expression for the source or target:

      1. In the Expression editor, select the icon that represents the source or target.

      2. Click Advanced in the Properties for the Operation view to open the XPath Workarea.

        See Using the XPath Work Area for more information.

      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. Save the service. Select File|Save from the menu bar.

Acting on Repeating Elements in Data

How Boolean Works in XPath Functions

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