Create a UML statechart diagram

The initial state is the state of an object before any events in the diagram have acted upon it.

A state represents an instant in the life of an object. Double-click a State shape to add a name and list its internal actions and activities.

TransitionsTransitions indicate that, in response to an event, an object will go from one state to another and perform an action.

The event which triggers the transition is named in the transition string. Double-click a transition to label it with a string that, in addition to an event signature, can also include a guard condition, an action expression, and more.

Open the UML model that contains the class or use case that includes behavior you want to represent in a statechart diagram.

On the File menu, point to New, point to Software, and then click UML Model Diagram.

In the tree view, right-click the icon representing the class or use case that includes behavior you want to represent in a statechart diagram. Point to New and click Statechart Diagram.

A blank page appears, and the UML Statechart stencil becomes the top-most stencil. The workspace displays 'Statechart' as a watermark. An icon representing the diagram is added to the tree view.

Note: If the tree view is not visible, on the UML menu, point to View, and then click Model Explorer.

Drag State shapes onto the drawing page to represent the sequence of states an object goes through.