Working with XPath Functions in Assign Activities

Use an Assign activity in a business process to build expressions that use XPath functions and constants.

To work with XPath functions in an assign activity:

  1. Create an assign.

  2. Either expand Properties in the Business Process Logic Page or open the Properties Panel view.

  3. Select the Assign on the Business Process canvas.

  4. Select the Assign tab in Properties.

    The Assign tab contains the Expression editor and displays the properties of a selected function or constant in the Expression editor.

    The Expression editor is enabled only when the source element is:

    • a simple type (non-constant)

    • an XSD type (non-parameter)

    If the source element is a constant, which is created in the Variable Reference dialog to set the source element, or a complex parameter, the Expression editor is disabled.

  5. To access the XPath functions and constants of the supported types you need to build an expression, do one of the following:

    • Right-click on the Expression editor canvas to open a context menu and select the function or constant that you want to use.

    • Click on the Expression editor to activate the Tool Palette and select the function or constant that you want to use.

      Note

      If the Tool Palette does not appear in the perspective or on the Fast View shortcut bar, open the Tool Palette.

      Adding functions and constants, you can graphically construct your expression.

  6. Edit the assign properties. Select a function or constant to display its properties.

  7. To add a Business Process variable to the expression, drag the variable from the Business Process Variables section or Variables Panel and drop it on the Expression editor.

  8. Connect the operands to the input nodes of the function icons and connect the output node of the function icon to the target icon.

    Note

    To delete a connector, select the line, right-click, and select Delete from the context menu.

For a detailed example, see Performing a Transformation Using Simple Data Types.

Creating an Assign the topic called “Using an Assign to Specify an Instance of a Repeating Element”

Using an Assign to Specify an Instance of a Repeating Element

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