Example XPath Expression for Computing the Substring of a String Type Interface Variable

Compute the substring of a string type interface variable and assign the output using the text-based XPath Editor.


  1. Right-click on the Business Process canvas to activate the Tool Palette.
  2. Select the Activities tool palette and drag and drop the Assign activity onto the design canvas.
  3. Select the Assign activity on the design canvas.
  4. Define source and target values for the assignment.
  5. Define the XPath expression:
    1. In the Properties section, select the Assign tab for the source value to display the Source and Target XPath for this assignment.
    2. In the Source XPath edit box, position the cursor where you want to insert functions or operators.
    3. Right-click and selectString Functions > substring.

      The substring function is inserted into the edit box enclosed in parentheses.

    4. Edit the function to remove the error marker that appears to the left of the expression.
    5. Do the same for the Target XPath expression.
  6. Save the business process service definition.

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.