Working with models

Linked models

Models in Domo Modeler are not islands. Several types can be generated from another and then kept in step with it, which is what turns a workshop sketch into something the team keeps using.

The chain

EventStorming  →  Context Map  ↔  Domain Model  →  Glossary

Architecture (models)  →  ADR log
  • EventStorming → Context Map. Subdomains you group on an EventStorming canvas become bounded contexts on a Context Map, carrying their elements with them.
  • Context Map ↔ Domain Model. A Domain Model is created from a bounded context and can push its tactical elements (aggregates, entities, value objects, domain services) back to the Context Map.
  • Domain Model → Glossary. A Glossary builds its table from a Domain Model's elements.
  • Architecture → ADR log. A decision log can be attached to an architecture model so the decisions sit with the design they explain.

The dashboard nests linked models under their source, so the chain is visible without opening anything.

The dashboard showing a Context Map nested under the EventStorming model it came from.
The dashboard showing a Context Map nested under the EventStorming model it came from.

Auto and manual sync

When you link a Context Map to an EventStorming model, you choose how updates travel:

  • Auto: changes on the EventStorming canvas flow to the Context Map as they happen.
  • Manual: changes are collected, and the Context Map shows a pending-changes badge. You open the review, see exactly what would change, and apply it when you are ready.

A new Context Map is built from the EventStorming model the same way a later update reaches it, so everything an update would carry is there from the start, aggregates and read models included. In manual mode a new Context Map starts empty, with the EventStorming model's subdomains and elements waiting in the review.

Manual is the right choice once a Context Map has been shaped by hand and you do not want a workshop session rearranging it underneath you.

The pending sync review, listing the changes waiting to be applied from the source model.
The pending sync review, listing the changes waiting to be applied from the source model.

Crossing between linked models

Linked editors carry a button on the right of the toolbar that opens the model at the other end of the link: the Context Map from an EventStorming model, the EventStorming model from a Context Map, or the Context Map from a Domain Model. They open in a new tab, so you keep your place in both.

The button also shows the sync mode, and a Context Map in manual mode adds a second button for reviewing pending changes.

An EventStorming model with no Context Map yet has a Create linked Context Map button in the same place. It creates a Context Map from the model's subdomains, links the two in auto mode, and opens it in a new tab. The open button then takes its place.

Merging, not overwriting

A bounded context's behavior on a Context Map is the union of what EventStorming contributed and what the Domain Model contributed. Re-running a sync from EventStorming merges into what is there rather than replacing it, so work that came from the Domain Model survives an unrelated EventStorming edit. When something genuinely disappears from the source, the sync review offers to remove it rather than removing it silently.

Incoming and outgoing commands and events

A subdomain repeated along the timeline is one bounded context: every occurrence adds its elements, and a name it shows twice appears once. It is the name that makes them one, so new subdomains that still share the toolbar's name "Subdomain" share a context until you rename them; each rename gives a subdomain the context of its new name. Each command and event lands under Incoming, under Outgoing, or inside the context, decided in this order:

  1. A connector from an element in another context makes the receiving end Incoming and the sending end Outgoing.
  2. The same command or event repeated in the neighboring subdomain of another context: the earlier copy on the timeline is Outgoing, the later one Incoming. The name must match exactly, apart from case and extra spaces, so a misspelled copy shows up as a separate entry where you can spot it.
  3. Position: the command or event nearest a subdomain's right end flows out, and the one nearest its left end flows in. When they all sit in one column, an event flows out and a command flows in.

An Interchange subdomain lists, without any repetition, what flows out of the business subdomain just before it as its Incoming, and what flows into the one just after it as its Outgoing. A command or event you repeat inside an Interchange belongs to the business context that also shows it, so the Interchange lists it only under Incoming or Outgoing. "Just before" and "just after" mean the nearest subdomain on the same row.

Every Outgoing Event is also listed under Events in the center, because an event a context publishes is still one of its own events. The Incoming, Events and Outgoing sections are in timeline order: left to right as the stickies sit on the canvas, top to bottom within a column. Entries contributed by a Domain Model have no place on the timeline and follow the rest.

Moving a sticky or a subdomain can change these sections or their order, and the sync picks that up like any other edit.

If a linked model is deleted

Opening a model whose linked partner no longer exists does not leave you at a dead end. Domo Modeler checks first and then offers the sensible repair: recreate the downstream model from its source, or unlink and carry on.