Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 3 Tasks : Simulating Loops in Processes

Simulating Loops in Processes
When simulating a Process you should avoid infinite loops. If you create a loop without a Simulation Control, TIBCO Business Studio reports this as an error in the Problems view and you cannot perform simulation until you correct this. This section shows how to use a loop in Process simulation.
TIBCO Business Studio supports looping in simulation when the loop is created using a Sequence Flow. However, a Loop Activity Marker is not supported for simulation.
1.
Click the Activity in the loop for which you want to add a simulation control. In the Properties view, click the Simulation Control tab.
You must add a simulation control to at least one Activity in the loop; otherwise TIBCO Business Studio generates an error in the Problems view.
2.
Click simulation control to add a Simulation control strategy.
3.
Max Loop Count - after the specified number of times through it. You must enter the Max Loop Count (the number of times you want cases to follow the loop).
Max Elapse Time - after the specified amount of simulation time has elapsed. You must specify a Time Unit and Value.
Normal Distribution - based on a normal distribution of times through it. You must enter a Min Loop Count and Max Loop Count upon which to base the distribution.
4.
Decision Activity - This informs TIBCO Business Studio which Flow Object will be used to decide whether to end the loop.
To Activity - This informs TIBCO Business Studio which Activity to proceed with once the loop is finished.
5.
6.
7.
If you have not created the Simulation control strategy correctly TIBCO Business Studio reports this in the Problems view and you cannot perform simulation until the problem is corrected.
 

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved