Transition shape
In a statechart or activity diagram, a simple transition is a relationship between two states or action states, or between a state and itself. (A complex transition has multiple source and/or target states.)
A simple transition indicates that an object in the first state will enter the second state and perform specified actions. The trigger that makes the transition fire is the occurrence of the event labeling the transition. A transition is shown as a solid arrow from the source state to the target state and is labeled with a transition string with the following format:
event-name (parameters) [guard condition] / action -expression > send-clause
For example:
right-mouse-down (location) [location in window] / object:=pick-object (location) > object.highlight ()
Name a Transition shape and add other property values
Open the element's UML Properties dialog box by double-clicking the icon that represents the element in the tree view or the shape that represents the element in a diagram.
Tip
Control which property values display on a shape in a diagram by right-clicking the shape, and then clicking Shape Display Options. In the UML Shape Display Options dialog box, select and clear options to display or hide property values.
Hide a Transition shape's guard condition, events, or actions
Right-click the shape, click Shape Display Options, and then clear Guard, Event, or Action.
No comments:
Post a Comment