UI Journey Notation 0.1 · draft · proposed as a standard

The UI journey your team and your AI share

Write the screens, the steps and every trip out to the inbox or the bank app in one file. People get a clean drawing. AI assistants and tools get a checked model with permanent ids.

AI readyplain text · a validator · a JSON model with a schema · permanent ids
Checkout  CHECKOUTPay by card and approve in the bank app. Pay later is planned.Start From the cartStartFrom the cartCheckout (View) Address and card Route: /checkoutViewCheckoutAddress and card/checkoutAuthorize payment (Action) Asks the card issuerActionAuthorize paymentAsks the card issuerBank app (Handoff, returns) Approve the payment Channel: bank app Timeout: 5 minHandoff, returnsBank appApprove the paymentbank app · 5 minOrder confirmed (View) Route: /orders/:id Trace: req:PAY-04, test:e2e/checkout.spec.ts Id: unique id bd51a9c2824ViewOrder confirmed/orders/:idEnd, success Order paidEnd, successOrder paidPayment provider (System, external) Host: api.pay.exampleSystem, externalPayment providerapi.pay.exampleEnd, failure Card refusedEnd, failureCard refusedPay later (View) Invoice in 30 days Route: /checkout/later Flags: future (planned for a later release)ViewPay laterInvoice in 30 days/checkout/later»Bank transfer (View) IBAN and reference Route: /checkout/transfer Flags: legacy (old but staying)ViewBank transferIBAN and reference/checkout/transferLNo label Navigation from from_cart to CheckoutPay Navigation from Checkout to Authorize payment Payload: {card, amount}Pay{card, amount}approval needed Navigation from Authorize payment to Bank appapproval neededApprove Return, resume from Bank app to Order confirmedApproveDecline Failed return, resume from Bank app to CheckoutDeclineDone Navigation from Order confirmed to paidDoneNo label Navigation, call from Authorize payment to Payment provider Payload: {card, amount}{card, amount}card refused Negative from Authorize payment to refusedcard refusedPay later Navigation from Checkout to Pay later Flags: future (planned for a later release)Pay later»Bank transfer Navigation from Checkout to Bank transferBank transferNo label Return, reply from Payment provider to Authorize payment Payload: {result}{result}
checkout.puml
@startujnrender { arrow_spacing: 24 }journey CHECKOUT "Checkout"description: "Pay by card and approve in the bank app. Pay later is planned."unique_id_friendly: checkout start from_cart { description: "From the cart" }view checkout { title: "Checkout"; description: "Address and card"; route: /checkout }action authorize { title: "Authorize payment"; description: "Asks the card issuer" }handoff bank_app { title: "Bank app"; description: "Approve the payment"; channel: bank app; timeout: 5 min }view confirmed{  title: "Order confirmed"  route: /orders/:id  trace: [req:PAY-04, test:e2e/checkout.spec.ts]  unique_id: bd51a9c2824  ' AUTO GENERATED - DO NOT CHANGE}end paid { type: success; description: "Order paid" }system psp { type: external; title: "Payment provider"; host: api.pay.example }end refused { type: failure; description: "Card refused" }view pay_later { title: "Pay later"; description: "Invoice in 30 days"; route: /checkout/later; flags: [future] }view transfer { title: "Bank transfer"; description: "IBAN and reference"; route: /checkout/transfer; flags: [legacy] } from_cart --> checkoutcheckout --> authorize : [Pay] { payload: [card, amount] }authorize --> bank_app : approval neededbank_app ..> confirmed : [Approve]confirmed -down-> paid : [Done]authorize -up-> psp { payload: [card, amount] }psp ..> authorize { payload: [result] }authorize -down-x-> refused : card refusedbank_app .x.> checkout : [Decline]                 ' back to try another cardcheckout -down-> pay_later : [Pay later] { flags: [future] }checkout -up-> transfer : [Bank transfer]@endujn
Checkout journey drawn by UJN: from the cart to checkout, authorize the payment with the payment provider, approve in the bank app, order confirmed; a refused card ends in failure; declined goes back to checkout; Pay later is planned and Bank transfer is legacy (drawn top to bottom)

The problem

Six questions a user flow cannot answer

Boxes and arrows show the happy path. Everything else ends up in notes, or in someone's head, where no tool can check it.

Illustration: the checkout as a whiteboard user flow, with six numbered questions it cannot answer
Our illustration of a typical whiteboard user flow.
  1. 1Is the old Bank transfer page staying?
  2. 2What is sent to the payment provider?
  3. 3Where does the user go, and how do they come back?
  4. 4How long may the bank take?
  5. 5Is Pay later built yet?
  6. 6What happens when the card is refused or the payment is declined?

UJN answers each one in the journey itself. See how

What it knows

What UJN knows about a journey

Nine kinds of node, four kinds of arrow and eleven flags, each with one meaning. These four matter most.

Answers34

Leave the app and come back

When users go somewhere else to finish a step (their bank app, their inbox, an SMS code, another device), the journey does not end there. A handoff says where they go and how long the step may take, and draws every way back: approved, declined or expired.

handoff bank_app { channel: bank app; timeout: 5 min }bank_app ..> confirmed : [Approve]bank_app .x.> checkout : [Decline]
UJN drawing: Leave the app and come back
Answers15

Built or planned

Mark a screen or step as future (planned), deprecated, needs updates or legacy. Delivery flags carry down the journey: set future on Pay later, and the credit check and payment plan after it are drawn as future too, with dotted outlines and a badge.

view pay_later { route: /checkout/later; flags: [future] }pay_later --> credit_check : [Continue]
UJN drawing: Built or planned
Answers6

Success and failure

The unhappy paths are part of the journey. Ends are marked success or failure, an arrow that fails carries a cross, and one action can have several outcomes: a coupon is applied, refused, or blocked after the fifth try.

check_coupon --> applied : validcheck_coupon .x.> cart : invalidcheck_coupon -x-> blocked : fifth try
UJN drawing: Success and failure

Checked as you write

UJN is a language, so mistakes are caught: an unknown flag, a missing trigger, a handoff left the wrong way. Each warning names its line and what is wrong, in the drawing and in the model. Here are four mistakes made on purpose in the checkout.

line 21 · pay_later: unknown flag futur  > view pay_later { … flags: [futur] }line 25 · checkout --> authorize: an exit from a view needs a trigger, written after a colon: [Trigger]  > checkout --> authorize { payload: [card, amount] }line 27 · bank_app --> confirmed: a handoff is left only by its resume arrows (..>)  > bank_app --> confirmed : [Approve]line 9 · authorize: guarded and unguarded exits on one action  > action authorize { … description: "Asks the card issuer" }
UJN drawing: Checked as you write

See an example

One file, three outputs

This is the checkout from the top of the page, written in UJN. The module reads the file once and gives you a drawing, a list of checks and a model for tools.

checkout.puml
@startujnrender { arrow_spacing: 24 }journey CHECKOUT "Checkout"description: "Pay by card and approve in the bank app. Pay later is planned."unique_id_friendly: checkout start from_cart { description: "From the cart" }view checkout { title: "Checkout"; description: "Address and card"; route: /checkout }action authorize { title: "Authorize payment"; description: "Asks the card issuer" }handoff bank_app { title: "Bank app"; description: "Approve the payment"; channel: bank app; timeout: 5 min }view confirmed{  title: "Order confirmed"  route: /orders/:id  trace: [req:PAY-04, test:e2e/checkout.spec.ts]  unique_id: bd51a9c2824  ' AUTO GENERATED - DO NOT CHANGE}end paid { type: success; description: "Order paid" }system psp { type: external; title: "Payment provider"; host: api.pay.example }end refused { type: failure; description: "Card refused" }view pay_later { title: "Pay later"; description: "Invoice in 30 days"; route: /checkout/later; flags: [future] }view transfer { title: "Bank transfer"; description: "IBAN and reference"; route: /checkout/transfer; flags: [legacy] } from_cart --> checkoutcheckout --> authorize : [Pay] { payload: [card, amount] }authorize --> bank_app : approval neededbank_app ..> confirmed : [Approve]confirmed -down-> paid : [Done]authorize -up-> psp { payload: [card, amount] }psp ..> authorize { payload: [result] }authorize -down-x-> refused : card refusedbank_app .x.> checkout : [Decline]                 ' back to try another cardcheckout -down-> pay_later : [Pay later] { flags: [future] }checkout -up-> transfer : [Bank transfer]@endujn

Download checkout.puml and its model checkout.ujn.json.

Answers2 Line 29 sends [card, amount] to the payment provider, and line 30 brings back [result].

1

The drawing

The checkout journey drawn by UJN
2

The checks

Warnings0
Screens and steps10
Arrows11
Leaves the app1 handoff
Planned (future)1
Permanent ids1
3

The model

the handoff, in checkout.ujn.json
{  "key": "bank_app",  "kind": "handoff",  "type": "returns",  "title": "Bank app",  "channel": "bank app",  "timeout": "5 min"}

For people and AI

Made for teams that work with AI

Four things in the module make UJN usable by an AI assistant. Each exists today, and none of them needs the assistant to have seen UJN before. Give your assistant the primer

1Plain text

An assistant reads, writes and diffs it like code.

handoff bank_appbank_app ..> confirmed : [Approve]bank_app .x.> checkout : [Decline]

2A validator

Tells the assistant what it got wrong, by line.

line 21 · pay_later: unknown flag futurline 25 · checkout --> authorize: an exit from a view needs a trigger, written after a colon: [Trigger]

3A model with a schema

JSON that tools and tests read without parsing the text.

{  "from": "bank_app",  "to": "checkout",  "kind": "return",  "role": "resume",  "trigger": "Decline"}

4Permanent ids

Written once, so tickets and tests keep pointing at the same screen.

trace: [req:PAY-04, test:e2e/checkout.spec.ts]unique_id: bd51a9c2824

A real session

A fresh Claude Opus 5.5 session was given the primer's notation sections and the request below, on November 28, 2026. What it wrote is shown exactly as written, checked by the same module as everything else on this page.

1 · The request
Map our checkout as a UJN journey. Card payments need approval in the bank app. Pay later comes next quarter.
2 · What the assistant wrote
checkout.puml
@startujnjourney CHECKOUT "Checkout"description: "Pay for the cart by card, approved in the bank app. Pay later follows next quarter"unique_id_friendly: checkout increment { auto; view_prefix: "CO" } actor shopper { title: "Shopper" }start from_cart { description: "Shopper has items in the cart" }view cart { title: "Cart"; route: /cart }view shipping{  title: "Shipping"  description: "Address and delivery option"  route: /checkout/shipping}view payment{  title: "Payment"  description: "Choose card or pay later"  route: /checkout/payment}view pay_later { title: "Pay later"; description: "Pay within 30 days"; flags: [future] }view card_form { type: modal; title: "Card details"; description: "Card number, expiry and CVC" }action authorize { title: "Request card payment" }system psp { type: external; title: "Payment provider" }view approve { type: waiting; title: "Approve in your bank app"; description: "Waiting for the bank" }handoff bank_app { title: "Bank app approval"; channel: bank app; timeout: 10 min }action check_payment { title: "Check payment status" }view declined { type: toast; title: "Payment declined" }action place_order { title: "Place order" }data orders_db { title: "Orders"; location: table orders }action send_receipt { type: message; title: "Send receipt"; channel: email }view confirmation { title: "Order confirmed"; route: /checkout/confirmation }end done { type: success; description: "Order placed and paid" } shopper --> from_cartfrom_cart --> cartcart --> shipping : [Check out]shipping --> payment : [Continue] { payload: [address, delivery_option] }payment ..> shipping : [Back]payment --> pay_later : [Pay later]payment --> card_form : [Pay by card]card_form ..> payment : [Cancel]card_form --> authorize : [Pay] { payload: [card_token, total] }authorize --> psp { payload: [card_token, total] }psp ..> authorize { payload: [payment_id] }authorize --> approve : approval requestedauthorize -x-> declined : declinedapprove --> bank_app : [Open bank app]approve ..> payment : [Cancel]bank_app ..> check_payment : [Approve] in timebank_app .x.> payment : [Approve] expiredbank_app .x.> declined : [Reject]check_payment --> psp { payload: [payment_id] }psp ..> check_payment { payload: [status] }check_payment --> place_order : paidcheck_payment -x-> declined : not paiddeclined ..> paymentplace_order --> orders_db { payload: [order] }place_order --> send_receiptsend_receipt --> confirmationconfirmation --> done : [Continue shopping]@endujn
3 · The check

0 warnings

18 nodes, 27 arrows, drawn as written.

4 · The drawing
The checkout journey as the assistant wrote it, drawn by UJN
4741 pixels wide: scroll sideways, or open it at full size.

Give your assistant the primer

The primer is short, about 2,400 words: the nine kinds, the arrows, the flags, the common warnings and two worked examples. Paste it into your AI assistant before you ask it for a journey.

Open primer.md llms.txt

What we do not claim

  • Assistants do not know UJN yet: give them the primer first.
  • We have not measured how often assistants write UJN without mistakes.
  • A drawing with no warnings can still describe the wrong journey: the checks catch broken structure, not wrong intent.

UJN is the journey layer of a wider AI development platform we are building. More when it is public.

Side by side

Comparison with other diagrams

Many teams draw user flows in Figma, FigJam or Miro, or write Mermaid or PlantUML diagrams. UJN does not replace those tools; it adds a diagram type made for UI journeys. It runs as a PlantUML extension today (in a local build, not public yet), and a Mermaid extension is planned. Below is the same checkout journey drawn in each.

The checkout journey drawn by UJN
UJN: the handoff, the failed return, the planned and legacy steps and the payloads are part of the notation.
Illustration: the checkout as a whiteboard user flow
A user flow (Figma, FigJam or Miro): boxes and arrows. What the boxes cannot say goes into notes. Our illustration of a common style.
The checkout as a Mermaid flowchart
A Mermaid flowchart: text, ids and branches. The shapes and dashed lines carry no meaning of their own. Written by us, rendered with Mermaid 12.3.0.
The checkout as a PlantUML activity diagram
A PlantUML activity diagram: steps, decisions and notes. Written by us, rendered with the same PlantUML build as UJN.

Part by part

Each cell says how the notation expresses that part of the checkout: Built in an element made for it, Workaround a general mechanism or a convention, Note only free text that no tool reads, None not expressible. The table also has a column for IFML 1.0, the OMG standard for interaction flows (2015, grown out of WebML from 2000). IFML is drawn in modeling tools, not written as text, so it has no picture here; its column is checked against the IFML 1.0 specification.

Journey partUJNUser flow (Figma, FigJam, Miro)Mermaid flowchartPlantUML activity diagramIFML 1.0 (OMG, 2015)
Where the journey startsBuilt inA start node, drawn as a ring labeled Start.The 'start' node (start from_cart) is drawn as a ring over a plate labeled "Start", with the description "From the cart" under it. "From the cart" is only description text: the cart itself is not modeled.Built inA start oval, the flowchart terminator.A start oval, the flowchart terminator, labeled 'From the cart'; Miro's User Flow template lists 'a start or endpoint' as an element. Our drawing leaves it out and begins at Checkout.Built inA node in a Start shape, such as a circle.A node in a shape the shape table names Start, such as start@{ shape: circle, label: "From the cart" }; the small-circle Start (sm-circ) draws a dot with no label. Our version writes start((Start)).Built inThe start keyword.The start keyword draws the start node. Where the user comes from (the cart) is only an arrow label: -> from the cart;.WorkaroundNo start element; a NavigationFlow from the cart page, or a Module input Port.IFML has no start or initial element. The arrival is the NavigationFlow from a Cart ViewContainer's Checkout event, as in the spec's own bookstore (Annex B). If the checkout is packaged as a Module, the arrival is that module's input Port. Nothing marks either one as where the journey begins, and a Landmark container means reachable from everywhere, not a start.
A screenBuilt inA view node: a box with a title bar and the View icon.The 'view' node (view checkout, view confirmed) is a box with a title bar, the view icon and the type name "View", then the title and description. Other view types (modal, drawer, toast and more) change the icon and type name.WorkaroundA box; that it is a screen is a team convention.A box with the screen's name, the same box the flow uses for steps, so 'this box is a screen' is a convention the team agrees on. In Figma Design a team can place the real screen frames instead, which makes it a wireflow.Built inA node in the browser shape.The 'browser' shape draws a browser window: checkout@{ shape: browser, label: "Checkout" }. Our version uses plain rectangles, the same shape it uses for the system step.WorkaroundAn action box, like a step; told apart by a styled stereotype.A screen is an ordinary action box, :Checkout;, the same element as a system step. Telling the two apart takes a convention. Here that is a <<screen>> stereotype styled white in <style>, with a legend line to explain it.Built inA ViewContainer (page or window) holding ViewComponents, such as a «Form».Checkout and Order confirmed are ViewContainers, which Table 7.1 illustrates with 'Web page', 'Window' and 'Pane'. Their contents are ViewComponents, such as a «Form» with fields, so IFML shows more inside a screen than UJN does. The spec leaves concrete widgets to the platform mapping on purpose.
Its routeBuilt inThe route key, drawn in the box: /checkout, /orders/:id.The 'route' key on a view, drawn in monospace at the bottom left of the box ("/checkout", "/orders/:id"); :name marks a parameter. The route is kept as written: the module does not check its form.Note onlyOnly as text in the box or a sticky note.Only as text: a second line in the box, or a sticky note. Neither FigJam's nor Miro's shapes have a field for a route.Note onlyOnly as label text.Only as label text, as in our checkout["Checkout<br>/checkout"]. The documented @{ } keys are for drawing (shape, label, icon, img and their sizes), and a click href is a link for the viewer, not a route.Note onlyOnly as text in the box.A route is only text in the box: here a monospace line, ""/checkout"". No tool reads it as a route.WorkaroundNo route attribute; a team-defined extension or an Annotation holds it.IFML is platform-independent and gives a ViewContainer no URL or route; the informative HTML mapping in Annex E derives pages and links itself and names only the home page ('index'). A team can add a route tagged value through its own platform-specific extension of ViewContainer (clause 7.3), or write the route in an Annotation. The :id part can be an input Parameter of Order confirmed.
A system stepBuilt inAn action node: a box with a gear icon.The 'action' node (action authorize) is a box with no title bar, a gear icon and the type name "Action". It is defined as something the system does between views.WorkaroundA box like the screens, told apart by a color or shape the team picks.A process box that looks like the screen boxes. Telling a system step apart takes a team convention, such as another color or the predefined-process shape (PREDEFINED_PROCESS in FigJam, flow_chart_predefined_process in Miro).Built inA node in the rect (Process) shape.A node in the 'rect' shape, which the shape table names Process ('Standard process shape'). Our version draws screens as rectangles too, so screen and step look alike there.Built inAn action, the basic element.An action, :Authorize payment;, is the basic element of an activity diagram. Its swimlane (|Shop|) shows who performs it.Built inAn Action: business logic triggered by an event, drawn as a hexagon.Authorize payment is an Action, 'a piece of business logic triggered by an event'. It runs on the server by default, or is marked [Client], and is drawn as a hexagon. The Pay submit event of the checkout form triggers it.
A call to an outside service, and its replyBuilt inA system node; the model types the arrows as call and reply.A 'system' node with type: external (drawn as "System, external" with cut corners and a side band, host on the meta line). A --> from the action to it is the call and a ..> back is the reply; the model tags these 'call' and 'reply'.WorkaroundAnother box with arrows out and back; "reply" is a convention.Another box for the Payment provider, with a connector to it and a dashed one back (FigJam connectors are solid or dashed, Miro's can also be dotted); reading the dashed line as the reply is a team convention. Our drawing puts the call in a sticky note.WorkaroundTwo links, out and back; nothing marks the call and its reply.Two links, authorize --> psp out and psp -.-> authorize back, with the provider in a shape such as 'cloud' (ours uses the cylinder, which the table names Database). Nothing marks one link as the call and the other as its reply; the reader infers it.WorkaroundA swimlane for the provider; no element says "calls".No element says that a step calls a service. Here the provider gets its own swimlane, and the flow crosses into it and back. The UML shapes <<sendSignal>> and <<acceptEvent>> can mark a send and a receive, but the target is only the lane, and the host is text in the box.Built inThe Action's DynamicBehavior binds it to the called service and its result; not drawn.Every Action has exactly one DynamicBehavior, 'the binding of the system with a service or operation, which may be invoked in order to carry out business logic or return content'. Here that could be a UML operation authorize(card, amount) of a Payment provider class in the DomainModel, whose result returns to the Action. The provider is not drawn in the IFML diagram, and nothing marks it as a third party: the spec's own bookstore checkout shows its bank call in a separate UML sequence diagram, and clause 7.1 leaves web-service calls to models such as SoaML.
Data carriedBuilt inThe payload key on an arrow, drawn beside it: {card, amount}.The 'payload' key in an arrow's block, drawn as monospace braces beside the arrow: {card, amount} on the Pay arrow and on the call, {result} on the reply. The items are names only, with no data types.Note onlyText on the connectors; they have no field for data.Text on the connectors, such as 'card, amount' and 'result': a label on a FigJam connector, a caption on a Miro one. Connectors have no field for data items, so it stays plain text; our drawing puts it in a sticky note.Note onlyOnly as link text.Only as link text: authorize -->|card, amount| psp and psp -.->|result| authorize. A link has no data field; its @{ } block takes only drawing settings such as animate and curve.Built inUML object nodes on the flow: card, amount and result.The UML object node :card, amount; <<object>> sits on the flow between two actions: once before Authorize payment and once in the provider lane. The reply is :result; <<object>>. Each one is drawn as a box in the flow, not on the arrow.Built inA ParameterBindingGroup on each flow: card and amount in, result out.The Pay NavigationFlow carries a ParameterBindingGroup. Its ParameterBindings tie the form's card and amount fields, which act as Parameters, to the Action's input Parameters. The result can be an output Parameter of the Action, bound on the flow out of its ActionEvent. Parameters are typed, while UJN's payload has names only.
The user leaves for the bank app and comes backBuilt inA handoff node; its resume arrows are the ways back.The 'handoff' node (handoff bank_app, type 'returns'): a box with a dashed border labeled "Handoff, returns" and the channel "bank app". The arrow into it is where the user leaves, and the ..> and .x.> resume arrows out of it are the ways back (role 'resume' in the model).WorkaroundNo element; a box in its own color, with arrows out and back.No element for leaving the app and coming back; the template's drop-off points are for users who leave the flow. A team can draw the bank app as a box in its own color, with arrows out and back; our drawing uses a diamond and a sticky note.WorkaroundNo element; a chosen shape or a subgraph, explained in a legend.No element for leaving the app. A node in a chosen shape with dotted links back, or a subgraph titled as outside the app, can stand for it, with a legend to explain it.WorkaroundA swimlane named Bank app; nothing says the user leaves.A swimlane named Bank app: the flow moves into it and back into the Shop lane. Nothing says the user leaves the app; readers have to work that out from the lane.WorkaroundNo element for leaving the app; an Action or SystemEvent stands in.IFML models the app's own interface and has no element for the user going to another app and coming back. An Action may not lead straight to another Action, so the bank step is folded into Authorize payment, whose ActionEvents become the ways back, or drawn as a waiting ViewContainer with the return as a stand-alone SystemEvent. Either way, that the user is in the bank app meanwhile can only be said in an Annotation or a name.
How long the bank may takeBuilt inThe timeout key on the handoff, drawn as "5 min".The 'timeout' key on the handoff, drawn after the channel as "bank app · 5 min" and kept as "5 min" in the model; a value that is not a duration gets a warning. For a handoff the spec defines no exit for when the time runs out (the timeout exit of 14.3 is for actions), and the checkout draws none.Note onlyOnly as text in a label or a sticky note.Only as text in a label or a sticky note ('Timeout 5 min?' in our drawing). Miro's flowchart delay shape marks a wait, but the limit itself is still text.Note onlyOnly as label text; the delay shape takes no duration.Only as label text, for example "Bank app (5 min)". The 'delay' shape draws a wait but takes no duration.Note onlyOnly as text in the box or a note.The limit can only be text. Here it is a line, 5 min limit, in the Bank app box; a note would work the same way. The <<timeEvent>> shape draws waiting for a time event, and the docs show no interruptible region that could put a limit on a step.Built inA time-out SystemEvent holding 5 minutes; stand-alone, not on the step.A SystemEvent of type time (the spec lists 'time out event') with a triggering Expression such as '5 minutes after approval is requested'. Its own NavigationFlow says what happens when the time runs out. It is a stand-alone event, not a property of the bank-app step, and the modeler chooses the expression language.
Approved or declinedBuilt inTwo resume arrows with triggers: [Approve], and [Decline] as a failed return.Two resume arrows out of the handoff, each with its own trigger: ..> [Approve] to Order confirmed, and .x.> [Decline], a failed return to Checkout drawn dashed and red with a cross. A resume arrow without a trigger gets a warning.Built inA decision diamond with two labeled connectors.A decision diamond (DIAMOND in FigJam, flow_chart_decision in Miro) with two labeled connectors, yes and no, as in our drawing. Nothing shows that both answers come back from another app.Built inTwo labeled links out of a node.Two labeled links out of the bank node: bank -.->|Approve| confirmed and bank -.->|Decline| checkout. Branching with link text is core flowchart syntax.Built inA decision with two named branches.A decision with two named branches. Here that is repeat while () is (Decline) not (Approve); if (...) then (Approve) else (Decline) would also work.Built inTwo named ActionEvents, approved and declined, each with its own flow.Approved and declined are two named ActionEvents ('a normal termination event or exception event') of Authorize payment, with the bank step folded into it. Each one owns a NavigationFlow: one to Order confirmed, one back to Checkout. An InteractionFlowExpression can also choose between two flows, but nothing shows that the answers come back from another app.
A failure path and its endBuilt inA -x-> arrow into an end of type failure.The negative arrow -x-> (red, with a cross in a white disc, guard "card refused") leads to end refused { type: failure }, a bullseye with a cross labeled "End, failure". The cross keeps it readable in black and white.WorkaroundAn end oval; only its label or color says failure.A connector to an end oval labeled 'Card refused'; only the label, or a color the team picks, says it is a failure. Our drawing leaves this path as an open question ('Card refused: ???').WorkaroundA cross edge and a Stop shape, which carry no failure meaning.The '--x' cross edge and the Stop shapes ('dbl-circ', 'fr-circ') can draw it, but Mermaid gives neither a failure meaning. Link text such as "card refused", a classDef color and a legend tell the reader.WorkaroundA red arrow to end; only the color and a legend say failure.The refused branch is colored with -[#red]-> and ends at end, which draws a circle with a cross. end only ends the flow, like stop, so the failure is shown only by the red color and a legend line.WorkaroundAn ActionEvent named card refused; no failure type and no end element.Card refused is an ActionEvent of Authorize payment. The spec calls such outcomes exception events but gives ActionEvent no attribute to mark one, so only the name says failure, unless the team adds its own Event extension (clause 7.3). IFML has no end element, so the failure end becomes an error ViewContainer or an Annotation.
A success endBuilt inAn end of type success, drawn with a check.end paid { type: success }: a bullseye with a check, over a plate labeled "End, success" with the description "Order paid".Built inAn end oval.An end oval, the terminator shape ('Done' in our drawing). Miro's User Flow template lists the end point as an element.Built inA Stop shape; ends have no success or failure type.A Stop shape marks the end, as in paid@{ shape: dbl-circ, label: "Order paid" } (fr-circ, the other Stop shape, draws no label). Ends have no success or failure type; ours draws both ends as plain circles.Workaroundstop, with a note saying Order paid.stop draws the final node (a bullseye), but it does not say success or failure. Here the success is read from the note on it, note right: Order paid, and from the failure end being the red one.WorkaroundNo end element; Order confirmed ends it, marked by a team stereotype or Annotation.IFML has no end or final element. The flow stops at the Order confirmed ViewContainer, and that the journey ended in success (order paid) can be marked only by the team's own stereotype on that container, which clause 7.3 allows for ViewContainer, or written in an Annotation. It is the same general mechanism as for legacy and for the failure end, and only the team's convention says what the stereotype means.
A planned stepBuilt inThe future flag; what is reachable only through it is marked too.The 'future' flag (flags: [future]) on the Pay later view and its arrow: a dotted border or line and a filled tab with the glyph "»". As a delivery flag it propagates: the module marks everything reachable only through it as inherited (outlined tab, inherited in the model).WorkaroundA dashed border or color by convention, set box by box.A dashed border (Miro shapes have a dashed borderStyle), a color the team agrees on, or a sticky note as in our drawing; Figma's Dev Mode statuses are only 'Ready for dev' and 'Completed'. Nothing marks what is reachable only through Pay later, so each box is marked by hand.WorkaroundA classDef with dashes, set by hand on each node.A classDef with stroke-dasharray, set with ::: or class on the node and, through an edge id, on the link (class e1 planned). Each node reachable only through it must be marked by hand, and a legend must explain the dashes.WorkaroundA dashed stereotype style, set box by box.A stereotype styled in <style>, here <<planned>> with a dashed LineStyle, plus -[dashed]-> on the arrow and a legend line. The style applies only where it is written, so nothing marks what is reachable only through Pay later.WorkaroundA team-defined stereotype on each ViewContainer and Event; nothing propagates.IFML has no status attribute, so 'planned' is the team's own stereotype, such as «planned», on the Pay later ViewContainer and on the Event that leads there. Clause 7.3 allows extending those two, but not flows. The other option is an Annotation. Nothing marks what is reachable only through Pay later, so each element is marked by hand.
An old page that staysBuilt inThe legacy flag: a tab with the letter L (no glyph yet).The 'legacy' flag (flags: [legacy]) gives Bank transfer a dotted border and a tab showing the letter "L". The flag has no glyph designed yet, the spec lists it as pending, and whether it propagates is still open.WorkaroundA color, a sticky note or a tag, by team convention.A color, a sticky note ('Old page. Keep it' in our drawing), or a Miro tag the team names 'legacy'. Miro tags go only on sticky notes and cards, not on shapes, and the reader has to know the team's convention.WorkaroundA classDef, explained in a legend.A classDef (for example a gray fill) set with class or :::, explained in a legend. Our version only writes "(legacy)" in the label.WorkaroundA styled stereotype, with a legend line.The same mechanism: a <<legacy>> stereotype styled with a thick brown border, and a legend line that says what it means.WorkaroundA team-defined stereotype on the ViewContainer; IFML has no status.IFML has no status attribute, so 'legacy' is the team's own stereotype on the Bank transfer ViewContainer (clause 7.3), or a note in an Annotation. A reader or tool has to know what the stereotype means.
Trace to a requirement and its testBuilt inThe trace key: typed links, in the model and the hover text.The 'trace' key holds typed links (trace: [req:PAY-04, test:e2e/checkout.spec.ts]), kept as a list in the model and shown only in SVG hover text, not in the drawing. The module does not check that the links resolve.WorkaroundA link on the box; nothing says which is the requirement or the test.A link on the box: Miro's item link or a link in the box text, or Figma Dev Mode dev resources on a layer. Nothing marks one link as the requirement and another as the test.WorkaroundOne click link per node; the test goes in the tooltip or a comment.click confirmed href "URL" "tooltip" puts one link and a tooltip on a node, so the requirement can be the link; the test file goes in the tooltip text or a %% comment.WorkaroundLinks in the label text; only the text says which is which.Creole links in the label, [[req:PAY-04]] and [[test:e2e/checkout.spec.ts]], become links (<a href>) in the SVG; with a real URL they would open the item. Only the text says which is a requirement and which a test.WorkaroundNo trace link; an Annotation or a team-defined tagged value holds it.IFML has no trace link. By default the requirement and the test go in an Annotation, whose only attribute is its text. A team can make them tagged values of its own stereotype on Order confirmed (clause 7.3), and an IFML model kept in UML form (clause 11) can also use UML's «Trace» dependency; either way only a convention says which link is the requirement and which is the test.
Permanent idsBuilt inunique_id, written once by -populate_ids; a duplicate is an error.The 'unique_id' key: 11 random hex digits that -populate_ids writes into the file once in place of {{auto}} (bd51a9c2824 on Order confirmed); a duplicate is a syntax error and a malformed one a warning. "Never changes" cannot be checked from one file, the id shows only in hover text and the model, and arrows have none.Built inThe tool's own object ids: not chosen, not shown, new if redrawn.The tool gives every object an id: a Figma node id such as 1:3, which file links carry as node-id, or a Miro item id 'assigned automatically upon creation'. Tickets can link to a box this way, but you cannot choose the id, the drawing does not show it, and a box drawn again gets a new one.WorkaroundNode and edge ids you write; keeping them stable is a convention.Every node has an id written in the file (checkout, authorize), and links can have one (e1@-->). The id is also the name every link uses, so keeping it unchanged is a team convention: Mermaid does not generate one, and writing an id again reuses the node instead of reporting a duplicate.Note onlyActions take no id; only a comment can hold one.An action is written :text; and takes no id or alias; swimlanes do, as in |f| fisherman. A permanent id can only be text PlantUML ignores: here a comment, ' unique id bd51a9c2824 - do not change.Built inEvery element, flows included, has a required id in the model.Element.id: String [1], 'for unequivocally identifying a model element', is inherited by every element, NavigationFlows included, and is saved in the XMI file. The spec does not say who assigns the id, and it does not forbid changing it; both are left to the tool.
Written as textBuilt inPlain text from @startujn to @endujn.The journey is plain text from @startujn to @endujn, one statement per line, with comments; shared settings can come in through !include. The drawing and the model are both produced from that text.WorkaroundNo text source; Miro and FigJam can import Mermaid text.The drawing has no text source of its own; Miro can keep a flowchart in sync with Mermaid code until it is switched to free-form, and FigJam turns pasted Mermaid into an editable drawing. Either way the text is Mermaid, and the sticky notes are not part of it.Built inPlain text.Plain text in a .mmd file or a fenced code block, so it diffs and reviews like code.Built inPlain text.The whole diagram is a plain-text file between @startuml and @enduml, so it can be diffed and reviewed like code.WorkaroundNo text syntax; models are exchanged as XMI, an XML file that can be diffed.The spec defines a metamodel, a UML profile, a visual syntax and XMI, but no textual syntax; NamedElement mentions 'a concrete textual syntax' without defining one. Models are drawn in a modeling tool, and tools with model interchange conformance import and export them as XMI. XMI is XML, so a diff works, but it is the exchange format 'for tool portability', written by tools rather than by people.
Checked by a toolBuilt inJourney rules, each warning with its line (module not public yet).The module (not public yet) checks journey rules, not only syntax: a view exit needs a trigger, a call takes no label, a handoff is left only by its resume arrows, and once a journey has a start every node must be reachable from it. Each warning names its line and handle, in a box under the drawing and in the model, and does not stop the drawing.NoneNo checks of flow rules.Neither Figma, FigJam nor Miro documents a check of flow rules, such as whether every box can be reached or whether a branch has no exit. The canvas accepts any drawing, and there are no lines to name.NoneSyntax only, with the line named.mermaid.parse() checks the syntax, and a syntax error names the line. A link to an id never declared just draws a new node, so no rule about the journey is checked.NoneSyntax only, with the line named.PlantUML checks syntax and names the line of an error (--check-syntax; -stdrpt:2 prints file:line:error). It has no rules about the flow: an action after detach that nothing reaches still renders with no warning.Built inTen OCL well-formedness rules; tools claiming abstract syntax conformance must check them.The metamodel defines ten OCL constraints beyond grammar, for example actionsCannotCallActions (an Action's events may not lead straight to another Action) and xorMustHaveADefaultParent. A tool claiming abstract syntax conformance, which model and diagram interchange conformance imply, must validate them, and a model can add its own Constraints. There is no reachability rule, and the spec does not say how a violation is reported; with no text file, the place would be a model element, not a line.
A machine-readable modelBuilt in--ujn-model writes a JSON model; a draft JSON Schema describes it.--ujn-model writes checkout.ujn.json next to the source, listing every node and arrow plus what the module works out: arrow roles such as call, reply and resume, failure marks, inherited flags, view behavior and warnings. A draft JSON Schema (proposal/ujn-model-v5.schema.json) validates the checkout model, but neither the schema nor the module is published yet.Built inThe tool's API returns the shapes and lines as JSON.The REST APIs return the file or board as JSON, and Figma's API is described in a published OpenAPI spec: shapes such as DIAMOND or ELLIPSE, sticky notes, and connectors with the ids of the nodes they join. The model is of shapes and lines, so it tells screens from steps only as far as the drawing does.WorkaroundOnly an internal, deprecated API; no published model schema.A tool can reach nodes and links only through mermaidAPI.getDiagramFromText(text).db, which the docs mark Internal and deprecated and which has no published schema. The public mermaid.parse() returns { diagramType, config }, and the published JSON schema covers configuration.NoneNo model export for activity diagrams.PlantUML exports no model of an activity diagram: XMI export works only for class diagrams, SCXML is for state diagrams, and --vdx writes Visio drawing shapes. With the pinned build, --xmi and --scxml fail on this file and leave empty files.Built inA MOF metamodel, with models and diagrams exchanged as XMI.The IFML metamodel is defined in MOF and published by OMG as machine-readable XMI: the metamodel itself, the UML profile, and diagram interchange. A model is exchanged as XMI, and a tool can claim model interchange conformance; diagram interchange (IFML DI) carries the drawing as well.
Where it runs todayAs a PlantUML extension, in a local build that is not public yet. A Mermaid extension is planned.As a PlantUML extension, in a local build that is not public yet. A Mermaid extension is planned.In the design tool: Figma, FigJam or Miro.In the design tool: Figma, FigJam or Miro.On GitHub and GitLab, and in many editors and documentation tools.On GitHub and GitLab, and in many editors and documentation tools.On the PlantUML server and command line, and through plugins in many editors and wikis.On the PlantUML server and command line, and through plugins in many editors and wikis.In modeling tools such as WebRatio, Sparx Enterprise Architect and IFMLEdit.org.In modeling tools such as WebRatio, Sparx Enterprise Architect and IFMLEdit.org.
In totalBuilt in18of 18 partsBuilt in5 Workaround9 Note only3 None1of 18 partsBuilt in6 Workaround8 Note only3 None1of 18 partsBuilt in5 Workaround8 Note only3 None2of 18 partsBuilt in9 Workaround9of 18 parts

Where the others are ahead: Figma shows what is on each screen, and Mermaid and PlantUML render in many places today. The table and the three other drawings were made by the UJN side and checked against each tool's own documentation; corrections are welcome.