Draw messages
Draw a message between two lifelines, change who sends or receives it, and wrap messages in a fragment.
Draw a message by dragging from one lifeline to another. Then change its ends, or wrap it with others in a fragment.
Draw a message
- Move the pointer near a participant's lifeline. A small + handle follows it up and down the line.
- Drag the handle to another lifeline. A caption beside the pointer says what you'll get.
- Let go. The app adds a call message at that height, between the messages above and below.
- Type its label and press Enter.
The new message stays selected, so the bar can make it a reply or an async message. Esc cancels while you drag.
Draw within a fragment's frame and the message goes inside that fragment, in the branch you drew it in. For a message to itself, leave the lifeline and drag back onto it.
Change who sends or receives it
A selected message has a handle at each end. Drag the end where it arrives onto another lifeline to change who receives it. Drag the end where it leaves to change who sends it.
You can drop anywhere along the column, on the head or the line. Drop on the lifeline at the message's other end and it becomes a message to itself. The diagram shows the change while you drag. Dropping on empty canvas, or where the end already is, changes nothing.
The message keeps its row, label, arrow and fragment. Two things can change:
- It stops ending the sender's bar if the new sender has no bar there.
- It stops creating its receiver once the receiver is someone else.
From and To in More on the selection bar do the same without dragging. Either can be Outside, for a message from or to outside the diagram.
Each drawn or reconnected message is one undo step. On a touch screen a finger pans, as it does everywhere on the canvas. Use Add message, From and To instead.
Wrap messages in a fragment
Select the messages, then do one of these:
- Press F.
- Choose Fragment in the palette.
- Choose Wrap in fragment… in the selection bar.
The Wrap in menu lists the common kinds, each with its own letter key:
| Kind | Key |
|---|---|
| Alternatives (alt) | A |
| Optional (opt) | O |
| Loop | L |
| Parallel (par) | P |
| Break | B |
| Critical | C |
| Group | G |
UML's other operators are under More UML operators. Type to find one.
The new fragment opens for naming its condition. A parallel fragment is the exception, since it has none to start with.
The messages must sit next to each other, in the same place. If they don't, the canvas says to select adjacent messages.
Change a fragment
With a fragment selected, its selection bar has these:
- Change kind lists the seven everyday kinds, with UML's other operators under More UML operators. Type to search them all.
- Add else branch for alt, Add parallel branch for par, or Add option for critical, to add a branch.
- Unwrap, in More, removes the frame and keeps the messages in it.
- Remove branch, in More, removes a later branch.
A fragment with several branches can only become another kind that has branches.