Working with Statechart Diagram¶
To create a Statechart Diagram:
- Select first an element where a new Statechart Diagram to be contained as a child.
- Select Model | Add Diagram | Statechart Diagram in Menu Bar or select Add Diagram | Statechart Diagram in Context Menu.
In Statechart Diagram, you can use following elements.
- State
- Internal Activity
- Region
- Initial State
- Final State
- Choice
- Join
- Fork
- Junction
- Shallow History
- Deep History
- Entry Point
- Exit Point
- Terminate
- Connection Point Reference
- Transition
See also
- UML Statechart Diagram
- For more information about UML Statechart Diagram.
State¶
To create a Simple State:
- Select Simple State in Toolbox.
- Drag on the diagram as the size of Simple State.
To create a Composite State:
- Select Composite State in Toolbox.
- Drag on the diagram as the size of Composite State.
To create a Submachine State:
- Select Submachine State in Toolbox.
- Drag on the diagram as the size of Submachine State.
- Select a StateMachine in Element Picker Dialog.
To create an Orthogonal State:
- Select Orthogonal State in Toolbox.
- Drag on the diagram as the size of Orthogonal State.
To edit a State, you can do following actions:
- Use Quick Edit for State by double-click or press
Enter
on a selected State. - Add Entry Activity - See Internal Activity.
- Add Do Activity - See Internal Activity.
- Add Exit Activity - See Internal Activity.
- Add Region - See Region.
Internal Activity¶
To add an Entry Activity:
- Select a State.
- Select Model | Add | Entry Activity in Menu Bar or Add | Entry Activity in Context Menu.
- Select a kind of Activity to create.
To add a Do Activity:
- Select a State.
- Select Model | Add | Do Activity in Menu Bar or Add | Do Activity in Context Menu.
- Select a kind of Activity to create.
To add an Exit Activity:
- Select a State.
- Select Model | Add | Exit Activity in Menu Bar or Add | Exit Activity in Context Menu.
- Select a kind of Activity to create.
Region¶
To add a Region:
- Select a State.
- Select Model | Add | Region in Menu Bar or Add | Region in Context Menu.
Initial State¶
To create a Initial State:
- Select Initial State in Toolbox.
- Click at the position on the diagram.
Final State¶
To create a Final State:
- Select Final State in Toolbox.
- Click at the position on the diagram.
Shallow History¶
To create a Shallow History:
- Select Shallow History in Toolbox.
- Click at the position on the diagram.
Deep History¶
To create a Deep History:
- Select Deep History in Toolbox.
- Click at the position on the diagram.
Entry Point¶
To create a Entry Point:
- Select Entry Point in Toolbox.
- Click at the position on the diagram.
Exit Point¶
To create a Exit Point:
- Select Exit Point in Toolbox.
- Click at the position on the diagram.
Terminate¶
To create a Terminate:
- Select Terminate in Toolbox.
- Click at the position on the diagram.
Connection Point Reference¶
To create a Connection Point Reference:
- Select Connection Point Reference in Toolbox.
- Click on a State where Connection Point Reference to be contained.
Transition¶
To create a Transition (or Self Transition):
- Select Transition (or Self Transition) in Toolbox.
- Drag from a State and drop on another State. (Just click on a State if you want to create a Self Transition.)
To edit a Transition, you can do following actions:
- Use Quick Edit for Transition by double-click or press
Enter
on a selected Transition.