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
- Bounded Context: a model boundary with its own language and ownership.
- Saga or Process Manager: a long-running workflow coordinator.
- Invariant or Business Rule: a rule that must remain true.
- Entity: a domain object with identity over time.
- Value Object: an immutable descriptive value.
- Hotspot: a visible question, risk, disagreement, or unresolved decision.
Connection Grammar
Most Code Genie models follow this story shape:
- An actor uses a user interface or external system to issue a command.
- An aggregate handles the command and enforces rules.
- The aggregate emits one or more domain events.
- Policies react to events and may trigger additional commands.
- Events update read models.
- Queries return read models to users or systems.