Create an expression for a complex activity with a loop condition
that verifies whether the local variable counter is equal to the length of the
interface variable str1, using the text-based XPath editor.
This example procedure assumes the following are defined in the business process:
- An interface variable of str1
- A string-length string function
- A counter local variable
- Right-click on the Business Process canvas to activate the Tool Palette.
- Select the Activities tool palette and drag and drop the Complex
activity onto the design canvas.
- Select the
Complex activity on the design canvas.
- Define a loop condition:
- Open the Properties
section and select the
Iteration Settings tab.
- In the XPath edit box,
position the cursor where you want to insert functions or operators.
- Right-click and select.
- Open the Business
Process Variables section, right-click and select
Expand to view all the categories.
- Drag the
str1 interface variable and drop it into the
string-length function as an argument.
- Drag the
counter local variable and drop it at the
beginning of the expression in the XPath edit box.
- Right-click and select
.
- Save the business process
service.
The complex activity now runs iteratively until the counter is
equal to the length of the str1.
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.