You need to assign an event to the transition in order to specify an occurrence of an event which can trigger a state transition. You can assign an event type to a transition in the following ways: - Using the transition’s Specification window.
- By typing an appropriate command straight on the selected transition path.
To assign an event type in the Transition Specification window
- Open the transition’s Specification window.
In the Trigger category, select the Event Type property value cell. The list of available event types opens. Select the event type from the list. According to the selected event type, Event Element, and Trigger property values are defined and additional corresponding properties appears in the Trigger category (see the following figure). Click the Close button after you have defined desired properties.
To assign an event type straight on a transition path
- Select a transition path on the diagram pane.
- Type the command of the appropriate event type. The event type is assigned to the transition. In the following figure, see an example of the signal event type assignment.
See the list with the event type and its command syntax in the following table. Name | Command syntax |
---|
Any Receive Event | all | Call Event | <operation name ()> NOTE: Before assigning operation straight on the transition path the Call Event together with this operation should be already created in the same State Machine as the transition. | Change Event | when (<expression>) | Signal Event | <signal name> | Time Event | - after (<time>) - for an event occurring at a relative time
- at (<time>) - for an event occurring at an absolute time
|
The event type assigning by typing the command straight on the diagram pane is also available for a transition to self in the State Machine diagram, as well as for a protocol transition and protocol transition to self in the Protocol State Machine diagram. |
|