In capsule-based state machine diagrams, you can add trigger
events to transitions to define which events cause the transition
to fire from one state to another.
About this task
You must select a transition and have the Properties view visible.
To add a trigger to a transition:
Procedure
- In the Properties window, in the left
pane, click the Triggers tab.
- On the toolbar on the right, click Insert New
Transition Trigger (
).
- In the Add Trigger dialog box, in
the Port section on the left, complete one of
the following steps:
- To add an existing port, select the corresponding check box.
- To add a new port, click Add New Port. In the Add Port for Trigger dialog box, name
the port, specify a protocol, and click OK.
- In the Available Events section on
the right, complete one of the following steps:
- To specify an existing event, select the corresponding check
box.
- To add a new event, if the selected protocol allows it, click Add Event. In the Add Event dialog
box, name the event, set the dataclass, and click OK.
- Click OK.
The
triggers list is updated with each event that you select. The ports
are displayed in a comma-separated list in the Ports column. The event name that you add as a trigger is displayed in
the Events column. A corresponding element is
added to the model for each event in the list.