Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.
Triggers
Triggers represent signals and events that can activate transitions leaving the current state(s). A trigger may represent a real world signal or event such as:
For a trigger to have an effect
- Transitions have to be defined which will fire when the simulation receives the signal / event
- The current simulation state(s) or its parent(s) must have an outgoing transition that accepts that trigger
- The transition activated must be unguarded or have a guard which will evaluate to true
Managing Triggers
Action |
Detail |
See also |
---|---|---|
Creating Triggers |
Triggers are either created as an instance of a Signal element or as an anonymous event. Triggers are connected to Transitions in the 'Transition Properties' dialog as shown here. In this example a Trigger named 'Pushdown' has been defined based on the Signal 'Signal_Pushdown'.
A trigger will appear in the Project Browser as illustrated here: |
Simulation Events Window Transition Trigger |
Using Triggers |
Triggers are deployed by connecting them to transitions, as in the earlier example, and are used during simulation by 'firing' them into the running simulation as required. When using triggers these points should be taken into account:
|
Connector Type-Specific Options Re-Signal Triggers |
Firing Triggers |
Firing triggers means to signal or activate a trigger within the current simulation. This may activate zero, one or many waiting transitions depending on the state and concurrency of the current simulation. Firing triggers can be achieved in many ways. The most efficient is the 'Waiting Triggers' list. During the course of model simulation, if the simulator reaches an impasse due to required triggers not being available (fired), the list of all possible candidate triggers is shown in the 'Waiting Triggers' list of the Simulation Events window.
Double clicking a trigger in this list will fire it into the simulation. Other ways to fire a trigger include:
|
Simulation Events Window Connector Type-Specific Options |
Learn more
- Dynamic Simulation with Javascript
- Guards and Effects
- Interaction Operand Condition and Message Behavior
Learning Center topics
- Alt+F1 | Enterprise Architect | Simulation | Simulation | State Machine Table
- Alt+F1 | Enterprise Architect | Simulation | Triggers | Using Triggers in a State Machine