Skip to content

Files

Every field of map.yaml and of a case file, in version 1 of the format.

Applies to EngineCloud
View as Markdown
On this page
  1. cases/map.yaml
  2. cases/navigation.yaml
  3. A case file: cases/<area>/<id>.case.yaml
  4. Rules

cases/map.yaml

FieldTypeWhat it is
format1the format version; tools refuse a version they do not know
appobjectname, description, landing (its URL), repository, telemetry (the linked Telemetry project)
actorslistid, name, kind (person or system), description
areaslistid, title, cases (case ids, in order), public (the outcomes other areas may listen to, as <case>.<Outcome>)
journeyslistid, title, actor, cases (ids, or { either: [...] } for a branch)
promiseslisttext (as on the landing) and the cases behind it
waiverslistkind, target, reason, until (a date)

cases/navigation.yaml

FieldTypeWhat it is
rootslistid, title, actors (who comes in there), route
placeslistid, title, kind (screen, tab, modal, menu, panel), parent (one), opened_by (label, kind: button, link, item, tab), route, permission
shortcutslistfrom, to, label

Described in The navigation map.

A case file: cases/<area>/<id>.case.yaml

The area is the folder; a case belongs to exactly one area.

FieldTypeDescribed in
id, title, actor, goaltextUse cases
startsin_app, or an object with external, scheduled or eventHow a case starts
wherea place idThe navigation map
preconditions, stepslists of textUse cases
inputtyped fieldsUse cases
outcomes, failuresnamed, with typed payloads; an outcome’s long form is payload, says, version, since, a failure’s when, tell, payload, version, since (since, a date, is required from version 2)Outcomes and events
datareads, writes: table namesUse cases
allowedactor idsUse cases
aitasksUse cases
filesreads, writes: bucket namesUse cases
mailsends: template namesUse cases
loopbounded (true), max, untilLoops
retriesmax (1 to 20, default 5), backoffDelivery
status, owner, notestextUse cases

Rules

  • Ids of cases, actors, areas and journeys match ^[a-z][a-z0-9-]{1,62}$ and are unique in the map. Place ids are such ids joined by dots (shop.order-for-tomorrow). Outcome and failure names are PascalCase and unique within their case.
  • Event names are <area>.<case>.<Outcome>.v<N>, where N is a whole number from 1.
  • References (an actor in a case, a case in an area or journey, a place in where, a parent, an event in starts, an outcome in public) must exist.
  • Unknown fields are kept as they are and reported as warnings. Your own fields start with x- and are never reported.
  • JSON is accepted wherever YAML is: place-order.case.json.
  • Text is UTF-8; write in any language. A map may carry translations: title: { en: Order for today, es: Pedir para hoy }.
  1. cases/map.yaml
  2. cases/navigation.yaml
  3. A case file: cases/<area>/<id>.case.yaml
  4. Rules

    Search pages, sections and terms