Prev | Next |
Initialize Variables and Conditions
For a BPMN simulation model, you can initialize your variables in an Execution Analyzer script. You can also initialize these variables in the Tagged Values of the first Activity element of the process, which gives you greater flexibility in adding and changing variables as the simulation proceeds. Similarly, you can define the conditions and values to apply at the various decision points (Gateways) in the process, in the Tagged Values of the Sequence Flow connectors.
If you want to incorporate a user-interface into your simulation process, using Win32, you again use Tagged Values to identify the dialog or prompt to display, in the Activity element just prior to the point at which the value or decision is processed.
For the simulation of UML diagrams, variables inside the 'sim' object and 'this' object are displayed in the Local Variables window.
Access
Display the Tagged Values window, using one of the methods outlined here.
Ribbon |
Start > Explore > Properties > Tagged Values Show > Portals > Window > Properties > Tagged Values |
Keyboard Shortcuts |
|
Initialize Variables
sim.loan=true; sim.status="undefined';
Define Conditions
sim.status=="Hold"
Incorporate Win32 User Interface
dialog.Screen1.Show=True;
(This statement displays the dialog Screen1. You can temporarily hide the dialog by changing 'Show' to False.)
Learn more