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:
Create an internal transition in the desired state.
Double-click the internal transition to enable in-place editing.
Rename using the following syntax: stereotype/actionName[argument]
Example: exit/setState(idle)
Using the Properties view:
Right click on the internal transition.
From the context menu, select Properties.
Set the event name, event arguments, and action expression properties in the Properties view.
Related Topics: