Adding an Open Hierarchy State

  1. Increase the area of the state that is to contain the hierarchy by dragging the handles.

  2. Add all the necessary states and transitions for the subdiagram to the state symbol in the selected hierarchy state.

  3. Select a state intended as the start state for the subdiagram.

    The method used to create a state diagram within a state symbol is identical to creating a state diagram in the drawing area.

Transitions from a substate to a state outside the hierarchy are possible. Keep in mind, however, that different actions are performed upon a transition between different hierarchy levels than upon a transition within the same hierarchy level (see Example 12 and Example 15). A state is considered outside a hierarchy when it is placed fully or partly outside the hierarchy state (state Level2_State2 in the figure).

As with closed hierarchy states, you can set up a hierarchy state with a history.

See also

Hierarchy

Working with Hierarchy States