Adding triggers to transitions in capsule-based state machine diagrams

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

  1. In the Properties window, in the left pane, click the Triggers tab.
  2. On the toolbar on the right, click Insert New Transition Trigger (The image shows the Insert New Transition Trigger button.).
  3. 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.
  4. 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.
  5. 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.


Feedback