Glossary

Docs · Learn

Copy as Markdown
View as Markdown

Glossary

These are the terms you meet when you write or read a UJN journey, each with the spec section that defines it.

UJN 0.1 draft · revision 23 · November 29, 2026 · Changes

Delivery flag. One of the five flags that say where a part of the journey stands: idea, future, not-implemented, out-of-scope and deprecated. It propagates to everything reachable only through the flagged node or arrow, and the module works out these inherited flags, so you never write them (section 8).

Display id. An optional label for viewing, written in square brackets after the handle, such as [AUTH-10], or assigned by an increment block with auto. It may change when nodes move, so nothing should link to it (sections 4.3 and 6).

Exit rule. The rule for the arrows that leave a node, which depends on its kind: a navigation or negative exit from a view needs a trigger, an exit from an action takes none, and a handoff is left only by its resume arrows. An arrow that breaks an exit rule gets a warning (13.5).

Failed return. A return written .x.>: the user goes back because something failed, such as a declined payment or an expired link. It follows every rule of a return and is drawn dashed, with the cross of a failure (13.7).

Flag. A word in the flags list of a node or an arrow that marks its status, such as future, risk or legacy; there are eleven. A flag never changes a shape: the border or the line goes dotted, and a tab shows the flag (section 8).

Friendly id. A readable name for a node across files: the journey's namespace, a period and the node's name, such as checkout.confirmed. It changes whenever someone edits it, so a link that must survive edits uses the unique id (7.4).

Guard. The text after the trigger in an arrow's label, which says when this exit is the one taken, such as card refused. Guards tell apart the exits that share a trigger, and out of an action they alone decide which exit is taken (13.4).

Handle. The name a node is known by inside its file: letters, digits and _, starting with a letter. Arrows use it; it is drawn only when the node has no title, and you may rename it freely (4.2).

Handoff. A node where the user leaves the app or its channel and may come back: an email link, a bank app, an identity provider. It is drawn with a dashed border, and its channel and timeout say where the user goes and how long the step out there stays valid (section 15).

Journey reference. A ref node that stands for another journey, named by its journey id and drawn in its own diagram. An arrow into it goes on to that journey or, with { returns }, calls it and comes back (section 18).

Model. The JSON file the module writes beside the diagram when PlantUML runs with --ujn-model: every node and arrow with its meaning worked out, and the warnings. Tools read it instead of the text, and across versions of a file they key a node on its unique id (section 20).

Module. The PlantUML module that draws a journey, checks it and writes the model. It runs only in a local build today; a Mermaid extension is planned (About this spec).

Payload. The payload key in an arrow's block, which lists what crosses the arrow: fields, a record, a file. It is drawn in monospace braces beside the arrow and moves with its pill (13.6).

Pill. The rounded label on an arrow, which shows the trigger and the guard joined by a middle dot. The module places it at the middle of a straight piece of its arrow, off other lines and boxes, and warns when it finds no free place (13.10).

Render block. The render { … } block that sets the drawing switches for the whole diagram: colors or black and white, corners, flow direction, legend, warnings box, where display ids go and arrow spacing. It changes the drawing, never the model (19.1).

Resume. The way back from a handoff or a journey reference, written as a ..> arrow out of it, or .x.> when the resume failed. Out of a handoff each resume arrow needs a trigger, and the handoff's resume key holds the deep link the user comes back through (15.4, 18.3).

Return. An arrow written ..> and drawn dashed: the user goes back, as when a modal closes or a toast goes away. With { returns } on an arrow into a handoff or a journey reference, the module draws the return for you (13.7).

Trigger. The part of an arrow's label in square brackets, such as [Pay]: what the user, or an inline actor, does to take this exit. Every navigation or negative exit from a view needs one, and an exit from an action takes none (13.4).

Unique id. A node's permanent identity: 11 random lowercase hex digits that -populate_ids writes into the file once, in place of {{auto}}. Tests, code and other diagrams link to it, because it does not change when the handle, the title or the position does (section 7).

Warning. A message for a rule the journey breaks, listed in a box under the drawing with its line and the handle it concerns. Unlike a syntax error, a warning never stops the drawing (section 21).