UML Modeling Techniques > Dynamic modeling > State diagrams > Adding items to a state diagram
  
Adding items to a state diagram
You can add an existing item to a State Diagram in the following ways:
Dragging items from a Modeler pane to the State Diagram.
Through a State Diagram toolbar button.
Through the diagram background.
Through populate commands available on the diagram background and symbols.
Note that you can only add items that are child items of the State Machine that owns the State Diagram.
For information about adding Variability items to a State Diagram, see the following topics:
Adding an existing alternative choice to a diagram.
Adding an existing variant to a diagram.
Adding an existing variation point to a diagram.
Dragging an item to a State Diagram:
1. Open the State Diagram.
2. In an appropriate pane, locate the item you want to add to the State Diagram.
3. Drag the item from the appropriate pane to the State Diagram, within the frame or a Sequential State as appropriate.
* 
Dropping an item within the frame (which represents the State Machine) or within a Sequential State will scope the dropped item to that State Machine or Sequential State, if it is not already scoped to that item.
Through a State Diagram toolbar button:
1. Open the State Diagram.
2. On the diagram's toolbar, click the appropriate button, and then on the diagram right-click within the frame (for a State Machine owned item) or a Sequential State (for a Sequential State owned item).
3. From the popup menu, click the command for the item you want to add to the diagram.
Through the populate commands:
Right-click the diagram symbol you want to populate, point to Populate, and then click the appropriate command.