sysgraph Docs
Flows

Steps and blocks

A flow is a sequence of steps. This page describes each step type and when to use it.

Messages and replies

A message is one participant calling another (A->>B: text). A reply shows the return (B-->>A: text).

  • Arrow type: synchronous call, asynchronous (one-way, -)) or reply.
  • Tone: the colored dot on a message colors its arrow and text as Success (green), Error (red), Warning (orange) or Info (blue). Tones appear in the legend.
  • Endpoint: while you type a message, the target application's endpoints are suggested; pick one to link the message to it. See Endpoints and contracts.
  • Self message: a message to the same participant shows internal work.

Activation

Activation bars show that a participant is busy at that moment. With Auto activation on they are drawn from call / reply pairs automatically. With it off you manage them by hand with the ▮ button on a message: + activates the target, − deactivates the source.

Note

A note writes an explanation over one or more participants. Notes are plain text, not Markdown; line breaks are supported.

Reference

A reference is a note that links to another flow. Click it in the preview to open that flow, and use the corner button to come back. The + / − in the note's corner expands and collapses the linked flow in place. When exporting you can keep references as links or draw them inline.

Use references to split a large scenario: a "Place order" flow can reference "Payment" and "Reserve stock" flows.

Decision

The Decision step is a note linked to an architecture decision (e.g. "ADR-0003: 3D Secure for all card payments"). Click it in the preview to open the decision. If the decision is no longer valid (rejected, superseded) the diagram check warns you. To open a decision straight from a flow: Architecture decisions.

Blocks

Blocks group steps. All of Mermaid's block types are supported:

BlockMermaidWhen
If / Elsealt … else … endDifferent branches by condition (e.g. payment succeeded / declined)
Optopt … endOptional steps
Looploop … endRepeated steps (e.g. retries)
Parallelpar … and … endBranches running at the same time
Criticalcritical … option … endA critical section and its failure options
Breakbreak … endA condition that ends the flow (e.g. exit after an error)
Highlightrect … endEmphasize a section with a colored background

Use a block's menu to add a branch. An empty branch triggers a warning in the diagram check.

Code step

If you need a rare Mermaid syntax the visual editor doesn't support, add a raw line with the Code step. The line is kept exactly as written.

Note

Click a step to change its details; the panel that opens holds its text, arrow type, tone, endpoint and activation settings.