Add and Move Transitions

After you have added states, you can add transitions via the diagram. As you move the cursor over the timeline, the cursor changes to one of three shapes.

Task

Action

See also

The move cursor (Updowncursor)

Displays when it is directly over the timeline

Hold down the mouse button and drag the line to move the timeline to a state above or below the current position; you can move the transition more than one state up or down, if necessary

 

The new transition up cursor (Timelinecursor5)

Displays when it is just below the timeline, and there is another state above the line

Press and hold ( Alt ); the cursor changes (Timelinecursor2)

Click to create a new transition to the state above the line

To push the transition up more than one state, move the cursor onto the line and drag it up

The transition is for one interval unit; you can make it longer by changing the transition time

If you do not hold ( Alt ), the cursor does not change and the whole timeline from the transition onwards moves up

Edit Transitions In State Lifeline

The new transition down cursor (Timelinecursor6)

Displays when it is just above the transition line, and there is another state below the line

Press and hold ( Alt ); the cursor changes (Timelinecursor3)

Click to create a new transition to the state below the line

To push the transition down more than one state, move the cursor onto the line and drag it down

The transition is for one interval unit; you can make it li=onger by changingthe transition time

If you do not hold ( Alt ), the cursor does not change and the whole timeline from the transition onwards moves down

Edit Transitions In State Lifeline

As you move the cursor over the vertical line of a transition, the time at which the transition occurs displays next to the line.

How to:

To edit Transitions, follow the steps below:

Step

Action

1

Click directly on the appropriate transition line, after the transition begins

Alternatively, right-click on the transition line to display the context menu, and select the Edit menu option

The Edit Transition dialog displays; the fields in this dialog are all optional

2

In the At Time field, type the point on the timescale at which the transition occurs

3

In the Transition To field, type the name of the state to which the transition occurs

4

In the Event field, type the name of the event that the transition represents; this displays on the Timeline element just above the transition line

5

In the Duration Constraint field, type any constraint on the duration of the transition; this displays on the Timeline element, along the top of the element over the transition

6

In the Time Constraint field, type any constraint on the start of the transition

This displays on the Timeline element at the start of the transition

7

Click on the OK button

Notes:

  • Once Event, Duration Constraint or Time Constraint are displayed on the diagram, you can edit them directly by clicking on them to display their specific dialog
  • You can delete them by pressing and holding ( Ctrl ) as you click on them; the cursor changes form when you press ( Ctrl )
  • You can also edit transitions using the Transitions tab of the Configure Timeline dialog

Learn More: