Creating submachines

You can create a submachine from a complex state using either the Edit menu or the menu for the state.

About this task

To create a submachine. on a statechart, right-click a state and then select Create Sub-Statechart. IBM® Rational® Rhapsody® creates a submachine called <class>.<state>, which is a new statechart consisting of the submachine state and its contents.

If you decompose the doorClosed state into a submachine, the product creates a submachine.

Actions and reactions move into the top state of the submachine if the transition goes to the submachine state, and inside the submachine if the transition goes into the nested part.

Note: You cannot create submachines of inherited states. The workaround is to add a dummy state as a child of the inherited state and make that the submachine state.

Feedback