Goals of this lesson
- Learn how to set up the prerequisites for multiple sequential activities
Model 7a represents a process which mainly consists of two activities. The first one declares a variable x, which we then use to define the number of iterations for the second activity that will be executed sequentially. This means that the number assigned to x determines how often the sequential activity will be executed.
Figure 1: Model 7a - Multiple Sequential Activity / IYOPRO-Link
- First we will define a variable called x which will serve our purposes to determine the number of executions of the sequential activity
- Click the first activity and define the variable x with a value of 5
- Now we set the second activity to be Sequential
- Click the second activity
- Select Sequential from the drop-down-box next to the Multiple Instances property
- To go on make sure you selected Simulation from the Property Set drop-down-box
- Now we need to specify the Number of Iterations of our sequential activity
- Click the Edit button next to the Number of Iterations property under the Must-Have Simulation Parameters
- Enter the variable's name that we defined in the first activity (x)
We defined a variable x with a value of 5. The Variable x is used to determine the number of the second activity's iterations. This means the second (sequential) activity will be executed 5 times, before the process proceeds to the end event.
- The Number of Iterations property can contain either a variable (which holds an integer value) or an expression (that evaluates to an integer value).
- You can assign the value 5 directly or use expressions like x + 2, which would be evaluated to 7.