Docs · Learn
Copy as Markdown
Cheat sheet
This page holds UJN 0.1 draft, revision 23: statements, the nine kinds of node, arrows, flags, ids and five common warnings.
UJN 0.1 draft · revision 23 · November 29, 2026 · Changes
Download the cheat sheet: PDF, one page · PNG
Statements#
| Statement | How it is written |
|---|---|
| Journey | journey AUTH "Authentication" before every node and arrow, then key: value lines right under it (section 3) |
| Node | keyword handle [DISPLAY-ID] { key: value; key: value }; only keyword and handle are required (4.1) |
| Arrow | from TOKEN to : [Trigger] guard { key: value }, the source first (13.1) |
| Render | render { direction: down; legend }: switches that change the drawing, never the model (19.1) |
Nine kinds of node#
| Keyword | Types, default first | Use it for |
|---|---|---|
view |
plain, modal, drawer, popover, toast, tabs, wizard, embedded, new-window, waiting |
Anything the user sees as a window (11.2) |
actor |
none | A person who starts or works in the flow (12.1) |
system |
internal, external |
A service an action calls (12.1) |
action |
action, message, wait, event, auth, permission, fork, join |
What the system does between views (14.2) |
handoff |
returns, no-return |
The user leaves the app and may come back (15.2) |
data |
server-database, file, folder, browser-cache, browser-storage, api |
A store an action reads or writes (16.2) |
start |
plain, deep-link, notification, handoff-return |
Where the journey begins (17.2) |
end |
success, failure, abandoned |
How the journey ends (17.2) |
ref |
none | Another journey, drawn in its own diagram (18.1) |
Every node also takes title, description, flags, trace, unique_id and more (4.5).
Arrows#
| Token | Kind: drawn | Meaning |
|---|---|---|
--> |
navigation: solid | The flow moves on (13.2) |
-x-> |
negative: solid, a cross | A failure path: an error, a rejection (13.2) |
..> |
return: dashed | Going back: a modal closes, Back, a toast goes away (13.7) |
.x.> |
failed return: dashed, a cross | Going back because something failed (13.7) |
-down-> .left.> -up-x-> -r-> |
direction hint | Asks to place the target on that side: a wish, never an error (13.3) |
- Label
: [Trigger] guard: the trigger is what the user does, the guard when this exit is taken (13.4). - Block
payload: [email, password](13.6),returnson an arrow into arefor ahandoff(13.7),flags: [future](13.8).
Flags#
| Delivery: propagates | Meaning | Review: stays put | Meaning |
|---|---|---|---|
idea |
A concept to consider, not approved | experiment |
An A/B test or pilot |
future |
Planned for a later release | risk |
A known issue or dependency |
not-implemented |
Defined but absent from the product today | security |
Needs a security control or review |
out-of-scope |
Explicitly excluded | needs-decision |
An open product question |
deprecated |
Existing behavior being retired | needs-updates |
Exists, but its design or code is out of date |
Write flags: [future, risk] in a block, never inherited flags (section 8). Pending: legacy, old but staying (23.3). It and needs-updates have no glyph yet: the module draws the letters L and U (23.28).
Ids#
| Id | How it is written | What to know |
|---|---|---|
| Display id | view login [AUTH-10], any text except ] |
For viewing only; it may change, so never link to it (4.3) |
increment |
increment { auto; view_prefix: "AUTH" } numbers views without [ID]: AUTH-001, AUTH-002 … |
Other kinds keep their own prefix, such as ACTN; the counter skips numbers explicit ids take (section 6) |
| Unique id | unique_id: {{auto}}, filled once by -populate_ids (local build only) with 11 random hex digits |
Permanent: tests, code and other diagrams link to it. Fill it before the first commit (7.1) |
| Friendly id | auth.forgot_login: the journey's namespace, a period, the node's name |
Defaults: the journey id in lowercase, then the handle. Readable, but it changes when edited (7.4) |
Five common warnings#
| Warning, listed under the drawing | Fix (every rule: section 21) |
|---|---|
an exit from a view needs a trigger, written after a colon: [Trigger] |
Add what the user does: a --> b : [Next] (13.5) |
2 exits share [Go]; each needs a guard |
Tell them apart: : [Go] valid and : [Go] invalid (13.5) |
an exit from an action takes no trigger |
Write a guard or nothing: check --> done : valid (14.4) |
unique_id is still {{auto}}. Generate it before your first commit: … |
Run the command it prints (7.2), such as java -jar plantuml.jar -populate_ids auth.puml (local build only) |
no path from a start reaches it |
Add an arrow from a node that is reached, or remove the node (17.5) |