Work with composite state shapes in UML statechart diagrams

Work with composite state shapes.

Important: The UML statechart diagram is not available in Visio 2013 and newer versions. In those versions of Visio, use the UML State Machine diagram.

Add a history indicator to a state region

  1. In a statechart diagram, create a state region by dragging a Composite State shape onto the drawing page.

  2. Double-click the new statechart drawing page icon in the tree view to navigate to the drawing page that represents the composite state.

In the diagram that represents the composite state or state region, drag a Shallow History or Deep History shape onto the drawing page.

  • Use Transition shapes to indicate the transitions that come from outside the state region. Glue the endpoints of the Transition shapes with arrowheads to connection points Connection point image - blue X on the history indicator shape. Double-click the Transition shapes to add transition strings.

  • Use a Transition shape to indicate the outgoing transition from the history indicator shape. Glue the Transition shape endpoint without an arrowhead to a connection point Connection point image - blue X on the history indicator shape. Glue the Transition shape endpoint with an arrowhead to the destination state shape.

Create a composite or nested state in a statechart diagram

  1. In a statechart diagram, drag a CompositeState shape onto the drawing page.

    The composite state icon appears in the tree view and a new statechart drawing page appears that represents the composite state.

  2. Double-click the new statechart drawing page icon in the tree view to navigate to the drawing page that represents the composite state.

  3. Drag State, Transition, Shallow or Deep History indicators, and other shapes onto the drawing page to represent concurrent, mutually exclusive, or nested substates within the composite state.

Name

Type the name of the composite state as a string.

Stereotype

Choose the stereotype you want from the drop-down list. If a stereotype you want to use isn't listed, you can add a new stereotype or edit an existing one by clicking Stereotypes on the UML menu.

IsConcurrent

Select if the composite state can be decomposed into components that can be executed concurrently.

IsRegion

Select if the composite state is a substate of a concurrent state.

Documentation

Type any documentation you want to add to the element as a tagged value. When you select the shape or icon representing the element, the documentation you type here also appears in the Documentation window.

Use the Internal Transitions category to add or delete transitions or edit existing ones.

Internal Transitions

Lists the transitions you have defined for the composite state.

To quickly edit the most commonly used settings for a transition, click a field in the Internal Transitions list, and then select or type a value.

To access all of the settings for a transition, select the transition in the list, and then click Properties.

  • Transition  Type a name for the internal transition.

  • Stereotype  Choose the stereotype you want from the drop-down list. If a stereotype you want to use isn't listed, you can add a new stereotype or edit an existing one by clicking Stereotypes on the UML menu.

  • Event  Choose the event or signal event that causes the internal transition to take place. If the event you want isn't listed, click New.

New

Click to add an undefined transition to the list of Internal Transitions.

To quickly edit the most commonly used settings for a transition, click a field in the Internal Transitions list, and then select or type a value.

To access all of the settings for a transition, select the transition in the list, and then click Properties.

Duplicate

Click to add a new transition to the list with the same property values as the selected transition.

Delete

Click to delete the selected transition from the list.

See Also

Create a UML statechart diagram

Composite State shape

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.

×