About UML statechart diagrams

Note: This article has done its job, and will be retiring soon. To prevent "Page not found" woes, we're removing links we know about. If you've created links to this page, please remove them, and together we'll keep the web connected.

Important: The UML statechart diagram is not available in Visio 2013 and newer versions. For information on UML diagrams in Visio 2013 and newer versions, see UML diagrams in Visio.

A state machine, which is attached to a class or use case, is a graph of states and transitions that describes the response of an object to outside stimuli.

A statechart diagram represents a state machine. By documenting events and transitions, a statechart diagram shows the sequence of states an object goes through during its life.

To represent a flow driven by internally generated actions rather than external events, use an activity diagram.

Statechart diagram showing the transitions an object undergoes as it responds to outside events

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

Callout 2 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.

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

Callout 4 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.

Expand your Office skills
Explore training
Get new features first
Join Office Insiders

Was this information helpful?

Thank you for your feedback!

Thank you for your feedback! It sounds like it might be helpful to connect you to one of our Office support agents.