Syntax

Data objects and stores

Show the documents and systems your process uses, and which steps read or write them.

Steps often work with information: a purchase order someone fills in, an invoice that's checked, a CRM where customers are kept. Declare each one near the top:

  • data <name> is a data object, a document or record the process passes along. Add (list) when there are many of them, as in data Order lines (list).
  • store <name> is a data store, a system or database that keeps data beyond the process, such as a CRM or an ERP.

Then say which steps use them, on lines under each step. writes: means the step creates or changes it. reads: means the step uses it.

Flowmark
process Purchase request
data Purchase order
data Order lines (list)
store ERP

start Need identified
user Write request
  writes: Purchase order
service Check budget
  reads: Purchase order
  reads: ERP
  writes: Order lines
service Place order
  reads: Order lines
  writes: ERP
end Order placed

How data is drawn

  • The app draws data below each step that uses it, joined by a dotted line.
  • The arrowhead shows which way the data goes. It points into the data when the step writes it, and toward the step when the step reads it.
  • A data object or store used by several steps is drawn once under each, as BPMN tools do with data references. This keeps the lines short.
  • Data no step uses yet sits after the last step.
  • An event that uses data has its name beside it, so the line has room.

Rules

  • Activities can read and write data. A start or catch event can only write it, for what arrives. An end or throw event can only read it, for what it sends on.
  • Gateways and boundary events don't use data. Put it on the step before or after the decision, or on the step a boundary event leads to.
  • Data names are unique. A step lists each one once per reads: or writes:.
  • The checks note data that no step reads or writes. See What each check means.
  • In the BPMN XML, a data object becomes a dataObject, with a dataObjectReference under each step that uses it. A store becomes a dataStoreReference, and the lines become data input and output associations.

Data names with special characters

Some names need an id: a name with -> or //, a name with a # word at its end, or one that ends in (list). Its reads: and writes: lines name it by that id:

store Ledger #main #ledger

service Post invoice
  writes: #ledger

On this page