Specifying entry/exit actions for a state

Entry and exit actions are executed upon entering or leaving a state, respectively. You can create entry and exit actions in Together state diagrams as stereotyped internal transitions. Use either method that follows to specify entry/exit actions for a state.

Using the in-place editor:

  1. Create an internal transition in the desired state.


  2. Double-click the internal transition to enable in-place editing.


  3. Rename using the following syntax: stereotype/actionName[argument]


    Example: exit/setState(idle)

Using the Properties view:

  1. Right click on the internal transition.


  2. From the context menu, select Properties.


  3. Set the event name, event arguments, and action expression properties in the Properties view.


Related Topics:

Creating Internal Transitions