You can create state machines to describe objects that
have complicated or significant behavior. When you create a state machine,
a single diagram and a region are created by default. A region is
the container that holds the states and transitions that you add
to the diagram to graphically describe the behavior of an object.
You can create a state machine for classes, components, and operations.
Before you can add state machines to a model,
you must have a UML modeling project open in the Modeling perspective.
To create a state machine:
- In the Model Explorer view,
right-click a class, component, or operation; then click Add
UML and complete one of the following steps.
- To add a state machine to an operation, click State
Machine Method
- To add a state machine to a class or component, click State
Machine
- Type a name for the state machine and press Enter.