Skip to content

Processes

A process (prc_) is a named, documented business flow: “order to cash”, “returns handling”, “supplier onboarding”. It describes how a piece of work moves across events, applications and people, usually as a diagram, and it lives on the platform beside the event types and subscriptions it describes.

Field Meaning
code Three segments, application:subdomain:process-name, for example orders:sales:order-to-cash. The first segment is the owning application.
name, description What the flow is called and what it is for.
body The diagram source.
diagramType How to read the body. Default mermaid.
tags Free labels for finding related processes.
status CURRENT or ARCHIVED. An archived process cannot be edited; only an archived process can be deleted.
source CODE or API (definition sync and the API) or UI (the console).

The console lists processes by application and subdomain, and draws Mermaid bodies as diagrams (flowcharts, sequence diagrams, state machines). A body of another type is shown as source.

flowchart LR
  placed["orders:sales:order:placed"] --> picked["warehouse:picking:order:picked"]
  picked --> shipped["warehouse:shipping:shipment:dispatched"]
  shipped --> invoiced["billing:invoicing:invoice:issued"]
  invoiced --> paid["billing:payments:invoice:paid"]

A typical process body: the event types that mark each step of an order-to-cash flow, across three applications.

Applications declare their processes in code and push them with definition sync (POST /api/applications/{appCode}/processes/sync), on every deploy, like their event types and subscriptions. A sync matches processes by code and:

  • creates and updates only rows that came from code or the API, never one written in the console;
  • keeps the existing diagram type when the incoming one is empty;
  • with removeUnlisted, deletes the application’s code- and API-sourced processes that are no longer declared.

Keeping the description next to the code that implements the flow means it changes in the same pull request, and the version on the platform matches what is deployed.

What processes are for, and what they are not

Section titled “What processes are for, and what they are not”

A process is documentation of a flow, shared where operators, support staff and other teams already look: in the console, next to the events and dispatch jobs the flow produces. It answers “which events make up this flow, and which applications take part?” without anyone opening the code.

A process is not an engine. The platform does not run it, track instances of it, or enforce its steps: the steps happen because applications publish events and subscribe to them. To follow one run of a flow, follow its correlationId through the events and dispatch jobs it caused.