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.