Self-Transition Relationships
You can add a self-transition relationship to a state or activity in a diagram. A self-transition relationship indicates that the active state does not change to another state or activity when an object in the source state receives a specified event, performs a specific action, or meets a certain condition. Self-transition relationships are used on activity and statechart diagrams.
Note Transitions and self-transitions relationships are semantically the same. A transition changes the active state from the source shape to the target shape, whereas a self-transition has the same source and target shape.
For example, you could model a self-transition relationship on a state named "Dialing." Each time a digit is pressed, the self-transition relationship indicates that the "Dialing" state remains as the active state. When the full amount of digits are entered, an event causes the transition to move to the "ringing" state.
Self-Transition Relationship |
|
Naming Conventions
Self-transition relationships usually do not have names. If you name a self-transition relationship, the name is displayed next to the connector on the diagram.
Related Topics
|