Skip to main content

Flows reference

View as Markdown

This page lists the fields, paths, and routes supported by flows.

Paths

Flows can be created in any flows folder:

/flows/{Flow Name}/index.mdx
/domains/{Domain Name}/flows/{Flow Name}/index.mdx
/services/{Service Name}/flows/{Flow Name}/index.mdx

Versioned flows use:

/flows/{Flow Name}/versioned/{version}/index.mdx

Routes

RouteDescription
/docs/flows/{flow-id}/{version}Flow documentation page.
/visualiser/flows/{flow-id}/{version}Flow diagram.

Required fields

id

  • Type: string

Unique id of the flow. EventCatalog uses this for URLs and resource references.

Example
---
id: checkout-flow
---

name

  • Type: string

Display name of the flow.

Example
---
name: Checkout Flow
---

version

  • Type: string

Version of the flow documentation.

Example
---
version: 1.0.0
---

Optional fields

summary

  • Type: string

Short description of the flow.

Example
---
summary: Describes the steps from checkout start to order confirmation.
---

owners

  • Type: array

An array of team or user ids that own the flow.

Example
---
owners:
- checkout-platform
---

steps

  • Type: array

Ordered steps in the flow.

Example
---
steps:
- id: submit-order
title: Submit order
message:
id: SubmitOrder
next_step: authorize-payment
---

badges

  • Type: array

Badges rendered on the flow page.

Example
---
badges:
- content: Critical path
backgroundColor: red
textColor: red
---

repository

  • Type: object

Repository metadata for the flow.

Example
---
repository:
language: TypeScript
url: https://github.com/acme/checkout
---

diagrams

  • Type: array

Diagrams associated with the flow.

Example
---
diagrams:
- id: checkout-sequence
version: 1.0.0
---

attachments

  • Type: array

External links or supporting documents attached to the flow.

Example
---
attachments:
- title: Checkout runbook
url: https://runbooks.example.com/checkout
type: runbook
---

Step fields

Each flow step supports:

FieldTypeDescription
idstring or numberUnique step id.
titlestringStep title.
summarystringOptional step summary.
messageobjectMessage referenced by this step.
agentobjectAgent referenced by this step.
serviceobjectService referenced by this step.
flowobjectNested flow referenced by this step.
containerobjectData store referenced by this step.
dataProductobjectData product referenced by this step.
actorobjectInline actor for this step.
customobjectCustom node for this step.
externalSystemobjectExternal system for this step.
next_stepstring or numberNext step id.
next_stepsarrayMultiple next step ids.

External services nodes

Use externalSystem when a flow step points at a third-party system.

---
steps:
- id: payment-provider
title: Payment provider
externalSystem:
name: Stripe
summary: External payment processor.
next_step: complete
---

Actor nodes

Use actor when a flow step represents a person, role, or external participant.

---
steps:
- id: customer
title: Customer starts checkout
actor:
name: Customer
next_step: submit-order
---