The sequenceDiagram text form (spec/02 §11.3, spec/13 §7.3): a sequence diagram
written as mermaid writes one, read into a design whose sequence step lays its
participants across and its events down (Macaw.Frame.TextForms).
sequenceDiagram
participant C as Client
actor U
C->>+API: GET /orders
API-->>-C: 200
C-)U: notify
Note over C,API: cached- A participant is
participant Idoractor Id, withas Label; one named only by a message is a participant labeled by its id. They are lanes in order of first appearance. - A message is
From<arrow>To: text, the arrow->>(sync),-->>(reply) or-)(async); a+beforeToopens an activation on it, a-closes the sender's. - A note is
Note left of Id: text,Note right of Id: textorNote over Id[,Id]: text.
Rows: nodes (id, label, shape actor or rect); messages (from, to,
label, kind (sync, reply, async, note, note_left, note_right),
activate, deactivate) in order, one an event. Faults, every one at once:
{:expected, :message}, {:expected, :participant}. print/1 writes the participants,
then the events.