Canvas Building Blocks

Every block on a Code Genie canvas has a modelling purpose and generation impact. Use these pages when you need to know what data to enter and how each block should connect to the rest of the model.

Core Behaviour Blocks

  • Domain Event: a business fact that happened.
  • Command: an intent to change the system.
  • Aggregate: the consistency boundary that accepts commands and emits events.
  • Policy: a reaction to an event that may trigger more work.
  • Read Model: information shaped for a screen, query, decision, or integration.
  • Query: a request for information that does not change state.

People, Interfaces, and Integrations

  • Actor: a user role, team, or system role that initiates work.
  • User Interface: the screen, form, portal, or API surface used to issue commands or run queries.
  • External System: a system outside the generated boundary.
  • Integration Event: an event published across a system boundary.

Structure And Rule Blocks

Connection Grammar

Most Code Genie models follow this story shape:

  1. An actor uses a user interface or external system to issue a command.
  2. An aggregate handles the command and enforces rules.
  3. The aggregate emits one or more domain events.
  4. Policies react to events and may trigger additional commands.
  5. Events update read models.
  6. Queries return read models to users or systems.