Statecharts The following sections describe how to use these tools to draw the parts of a statechart. For basic information on diagrams, including how to create, open, and delete them, see Graphic editors . Drawing a state To draw a state: 1. Click the State button in the Diagram Tools . 2. Click-and-drag or click in the drawing area to create a state with a default name of state_n , where n is an incremental integer starting with 0. 3. If wanted, change the state name, then press Enter . States include a standard name compartment. State name guidelines When naming states, follow these guidelines: Љ Must be identifiers.
728 User Guide Drawing Tool Name Description Diagram connector Joins physically distant transition segments. Matching names on the source and target diagram connectors define the jump from one segment to the next. For more information, see Diagram connectors. EnterExit point Represents the entry to / exit from sub-statecharts. For more information, see EnterExit points. Join node Merges multiple incoming transitions into a single outgoing transition. For more information, see Activity diagrams. Fork Node Separates a single incoming transition into multiple outgoing transitions. For more information, see Activity diagrams. Transition Label Add or modify a text describing an transition.
Termination State Signifies either local or global termination, depending on where they are placed in the diagram. Dependency Indicates a dependent relationship between two items in the diagram. For more information, see Activity diagrams. Send Action Represents the sending of events to external entities. For more information, see Send action elements.