Assigning Triggers, Priorities, Conditions and Actions to a Transition
Each transition must have a trigger and a priority, but condition and transition action are optional.
Do one of the following:
- Double-click the transition or the transition segment.
- Right-click the transition/segment and select Edit Transition from the context menu.
The Transition Editor window opens.
Enter a number in the Priority field to assign a priority to the transition.
Note
The higher the number selected, the higher the priority of the transition.
If there is more than one transition/segment with the same trigger leading from a state or junction, their conditions are checked in the order of priority. Each transition leading from a state/junction with the same trigger has to have a unique priority.
Select a trigger from the Trigger combo box.
Note
If a transition is split into two transition segments by a junction, the segments are not allowed to have different triggers.
All trigger events defined in the state diagram are listed in this box.
Select a transition action from the combo box on the Action tab.
Note
A transition segment leading into a junction must not possess an action. The combo box is deactivated.
All actions specified in an ActionCondition diagram are listed in the combo box and can be assigned as transition actions.
Select a condition from the combo box on the Condition tab.
All conditions specified in an ActionCondition diagram are listed in this box.
Note
If no condition is specified, it means that the condition is always true, i.e. the transition always takes place.
Click OK.
The trigger event name, the priority and the names of the condition and action of the transition/segments are shown in the diagram.