Skip to content

Actors, areas and journeys

Who acts in the map, how cases are grouped, and the paths people take through them.

Applies to EngineCloud
View as Markdown
On this page
  1. Actors
  2. Areas
  3. Journeys

Actors

An actor is who acts: a kind of person (customer, staff, owner) or another system (a payment provider, a scheduler). Every use case has one primary actor; steps can name others.

cases/map.yaml (actors)
actors:
  - id: customer
    name: Customer
    kind: person
    description: Someone who buys at the bakery, signed in with an e-mail code
  - id: staff
    name: Staff
    kind: person
    description: Bakery staff; sees and prepares every order
  - id: payments
    name: Payment provider
    kind: system
  - id: rappi
    name: Rappi
    kind: system
    description: Sends orders from its app, by webhook
  - id: clock
    name: The clock
    kind: system
    description: Starts the scheduled cases
  - id: system
    name: The app itself
    kind: system
    description: Runs the cases that start on another case's outcome

With Sypnia Data, a person actor is usually a role your row-level security knows. Cases shows the link: the policies of the tables a case touches, and whether they allow its actors (Data).

Areas

An area groups cases that belong together, like a module or a section of the app, in the business’s own words. Areas give the map its shape in the editor (one lane per area), keep their insides to themselves, and run together: the cases of an area run in one service (Running cases).

cases/map.yaml (areas)
areas:
  - id: menu
    title: Menu
    cases: [see-today-menu]
  - id: orders
    title: Orders
    cases: [place-order, order-for-tomorrow, rappi-order, cancel-order, see-my-orders]
    public: [place-order.OrderPlaced, order-for-tomorrow.OrderPlaced, rappi-order.OrderPlaced]
  - id: pickup
    title: Pick-up
    cases: [pick-up-order, mark-picked-up]

A case file lives in its area’s folder: cases/orders/order-for-tomorrow.case.yaml.

public lists the outcomes other areas may listen to, as <case>.<Outcome>. Everything else is internal to the area: its cases can listen to each other, and nobody outside can (Outcomes and events). An area’s public outcomes are its contract with the rest of the app.

Journeys

A journey is the path one person takes through several cases, in order. Journeys are how a client checks that the whole experience makes sense, and how a new team member learns the app.

cases/map.yaml (journeys)
journeys:
  - id: first-order
    title: A customer's first order
    actor: customer
    cases: [sign-up, see-today-menu, place-order, pick-up-order]

A journey may branch: cases: [place-order, { either: [pick-up-order, cancel-order] }].

  1. Actors
  2. Areas
  3. Journeys

    Search pages, sections and terms