Actor: {
    expectedCount?: number;
    id: string;
    name: string;
    roles?: string[];
}

Actors are either humans or policies invoking commands

  • id actor identifier
    • for human actors, this is usually a primary key to the users table, extracted from JWT, etc
    • for process managers, this is the secondary stream used to reduce the state
  • name actor name
    • for human actors, could be the full name, email, etc ... for log auditing purposes
    • for process managers, the factory name
  • roles? array of role names used for authorization invariants (usually extracted from JWT and used by validation middleware)
  • expectedCount? expected count of actor events when process managers are enforcing transaction integrity

Type declaration

  • Optional Readonly expectedCount?: number
  • Readonly id: string
  • Readonly name: string
  • Optional Readonly roles?: string[]

Generated using TypeDoc