You can create a loop to iterate through a
complex activity.
Build a complex
activity in your business process.
Select the complex
activity to see its properties.
Properties display in the Properties section of the
Business Process Logic Page.
Select the
Iteration Settings tab.
Select This Activity Runs Iteratively to
create a loop.
Create a counter variable.
Define the counter
variable:
In
Properties, click the ellipsis
in the
Counter Variable field.
The Variable Reference Dialog opens.
Select
the variable that you want to use and click
OK.
If the Counter variable is set, the loop automatically
increments the counter variable by one at the bottom of each loop. To increment by a different amount or to decrement, set the
Counter increment. The Counter initial value allows the Counter
variable to initialize before loop execution.
Define
the Counter initial variable and the Counter increment variables:
In
Properties, click the ellipsis
in either the
Counter Initial or
Counter increment field, whichever you are
populating.
The Variable Reference dialog opens.
Choose
one of:
Option
Action
Variable
Select the variable that you want to use and click
OK.
Literal
Enter the value in the Literal field
and click
OK.
Define a single
rule for the loop.
You must define a rule for loop evaluation. The loop executes as
long as the rule evaluates to true. Usually, a counter variable is used in the
rule for the loop; however, this is not required. Any rule that evaluates to
either true or to false is supported.
Complete the flow
of the business process logic inside the loop:
Maximize
the complex activity.
Add the
activities from the Tool Palette that complete the logic.
Connect
the activities to determine the flow of execution.
Minimize
the complex activity.
The center of the activity icon is decorated to reflect the loop.
For product-related issues, contact Sybase Technical Support at 1-800-8SYBASE. Send your feedback on this
help topic directly to Sybase Technical Publications: pubs@sybase.com