Edit Transitions In State Lifeline

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:

  • 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, then move the cursor onto the line and drag it up. The transition is for one interval unit; to make it longer, see Change the Transition Time below.
     
    If you do not hold [Alt], the cursor does not change and the whole timeline from the transition onwards moves up.
  • 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, then move the cursor onto the line and drag it down. The transition is for one interval unit; to make it longer, see Change the Transition Time below.
     
    If you do not hold [Alt], the cursor does not change and the whole timeline from the transition onwards moves down.

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

Edit Transitions

Follow the steps below:

  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.
     
    Edit Transition Event Dialog
     
  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 also 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.

Change the Transition Time

Move the cursor over one or other of the vertical transition lines and drag the line left or right to change the time of the transition. While on the line, the cursor shape changes to the horizontal movement cursor (Leftrightcursor).

Merge Transitions

If necessary, you can 'push' a transition to merge it with the next or previous transition point on any Lifeline element on the diagram.

Position the cursor off the appropriate side of the transition line; the cursor changes form (Mergeleft or Mergeright). Click the mouse button. The system locates the nearest transition in the required direction, on any element on the diagram, and merges the current transition with that transition.

Delete Transitions

Transitions are automatically deleted when you move the transition to the same state as the previous transition state, and release the cursor.

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