Skip to content

Personas

Personas name the roles that interact with the application — the vocabulary of Event Modeling’s actors. A persona has a name, an optional description, and the policies that define what the persona is allowed to do.

persona <Name>
[description "<text>"]
[policy <PolicyName>]*
persona Accountant
description "Keeps the books and approves invoices"
policy IsAccountant
policy CanManageInvoice
persona InvoiceManager
description "Registers invoices and manages their lifecycle"
policy CanManageInvoice
  • Personas are top-level declarations, alongside policies and modules.
  • Each policy line references a policy declared in the same file — an unknown policy is reported as a warning.
  • The description, when present, is the first body line and appears at most once — a quoted single line or a fenced multi-line block (see Descriptions).
  • Name personas after roles, not peopleAccountant, not Alice.
  • Personas group policies; policies define rules. A persona says who; its policies say what they must satisfy.