Working with models

Editor basics

Every model editor in Domo Modeler is built the same way, so what you learn in one applies to the rest. Document editors (ADR, Glossary, Architecture Document) share the same header but replace the canvas with a document.

An EventStorming editor: the model header on top, the toolbar below it, and the canvas filling the rest.
An EventStorming editor: the model header on top, the toolbar below it, and the canvas filling the rest.

The model header

Running across the top of every editor:

  • The domo logo, which takes you back to the dashboard.
  • A colored save dot: green when everything is saved, amber while a save is in flight, red if a save failed. Hover it for the exact status.
  • The model name. Click it (or the pencil) to rename, if you are an owner, an admin, or the model's creator.
  • A View only pill when you cannot edit. See Sharing and access.
  • The Available offline toggle for this model.
  • The collaboration indicator, showing who else is in the model right now.
  • Your avatar, which opens the user menu (Profile, Settings, Docs, Sign out).

The toolbar

The toolbar floats over the canvas. Its left half holds the element buttons for that model type. Each button is colored the way its element is drawn on the canvas, and its tooltip names the element and its keyboard shortcut. Buttons marked with a caret open a small dropdown of related elements.

The right half is the same everywhere:

Button Shortcut
Undo Ctrl + Z
Redo Ctrl + Y
Copy Ctrl + C
Cut Ctrl + X
Paste Ctrl + V
Export None

Export downloads the model. It is a paid-plan capability, and it also requires edit access to the model, so it is disabled (with an explanatory tooltip) when either is missing.

Some editors add extra buttons to the right of that group, such as a link to a related model or a sync review. Those are described on each model type's page.

Adding elements

There are three ways to add an element:

  • Click a toolbar button. The element appears on the canvas just below the toolbar.
  • Press its shortcut key. The element appears at the mouse pointer, which is usually faster once you know the letters. See Keyboard shortcuts.
  • Drag it from the toolbar onto the spot you want it. See below.

Shortcut keys only fire when you are not typing: any text field or rich-text area swallows them first, so pressing e while writing a description types an e rather than dropping a Domain Event on the canvas.

Dragging an element into place

Instead of clicking a toolbar button and then dragging the element to where you wanted it, you can drag straight from the button and drop it on the canvas. The element lands centered on the cursor, so what you point at is where it appears.

Dragging is an addition, not a replacement: every toolbar button still works by click, and every keyboard shortcut still works, so nothing you already do changes.

These editors support it:

Editor Drag from
EventStorming The toolbar, including the elements inside its dropdowns
Context Map The toolbar
Domain Model The toolbar, including the elements inside its dropdowns
Architecture: Flow The palette on the left
Architecture: Cloud The palette on the left
Architecture: C4 The toolbar
UI Mockups The widget palette on the left

Two editors deliberately leave it out, because their elements are not placed by pointing at a spot:

  • Hexagonal / Ports & Adapters places Ports, Adapters and Users on a side of the hexagon; the side decides where the element goes, so there is no free position to drop onto.
  • Mind Map and Impact Map grow from a parent node rather than from a point on the canvas.

The same reasoning applies to two individual elements: a Context Map's Bubble Context attaches to a selected Big Ball of Mud, and an EventStorming Swimlane spans the model rather than sitting anywhere, so neither is draggable while the rest of its toolbar is.

Naming, moving, and connecting

  • Rename: double-click an element and type. Press Enter to accept, Escape to cancel.
  • Move: drag it. Drag onto a container (a subdomain, a module, an aggregate) to put it inside.
  • Select: click, Shift-drag a box around several, or Ctrl + A for all.
  • Connect: drag from the handle on one element's edge to another element. What the connection means depends on the model type; on a Context Map it is a relationship you then classify.
  • Delete: select and press Delete or Backspace.

Copies and repeated elements

The same element often appears in more than one place on a canvas. Domo Modeler treats every copy as one element, and the same rules apply in every model with a canvas:

  • The same name and type in the same scope means the same element. The scope is the containers an element sits in, by name: a subdomain, a group, a frame, a module, an aggregate, nested to any depth. Two elements of the same type with the same name inside containers with the same names are one element in two places, and so are two such elements outside every container. Name an element the same as another and it joins that one, and takes its spelling. (In EventStorming you can also pick the name from the suggestions that appear as you type.)

  • A copy is the same element. Copy and paste (Ctrl + C, Ctrl + V), or Duplicate from the right-click menu, places another copy of the same element, not a new one.

  • Renaming a copy asks first. When the element has other copies, renaming one asks whether to Rename all of them (the default; press Enter) or Rename only this one. Renaming all keeps them one element. Renaming only this one makes it a separate element, and the others keep their name. Cancel renames nothing. This works the same from the element itself and from its Properties dialog.

  • Properties are shared too. Saving an element's Properties (its Purpose, Definition, Specifications, tags and status) changes every copy, without asking. Where each copy sits, its size, and a frame's icon and border stay its own. If the same save renames only this copy, the new properties go with it alone. An element's properties are kept once for all its copies, so the copies can never drift apart.

  • Joining asks to merge properties. When a rename makes copies join another element and their properties differ, you choose:

    • Merge with comments (the default; press Enter) keeps both texts. The joined element's text comes first, and the other follows a line "Merged from" and its previous name, for you to edit down. Tags are combined. Where the status differs, the joined element's is kept.
    • Use either element's properties for every copy.

    There is no way to leave the copies with different properties, because the copies of an element always share one set.

    Closing the question cancels the rename. Choosing the name from the suggestions asks the same question.

  • Containers follow the same rules. Renaming one of two subdomains, groups or frames with the same name asks the same question, and renaming them all keeps everything inside them together.

  • Elements of different types are never the same element, even with the same name.

Older models. A model made before these rules can hold copies that are the same element but were never linked. When you open it, copies whose properties match are linked for you. Where their properties differ, Domo Modeler lists them once and asks what each group's properties become: Merge with comments (the default) or Use what most copies have. Not now asks again the next time you open the model.

To add a new element, add it rather than copying one. If you want another Domain Event, press its shortcut key (E in EventStorming) and name it. A copy of an existing event starts out as that event, so renaming it asks the question above; choose Rename only this one, or the original is renamed too.

When two different things share a name, give them different names, such as Order Placed Online and Order Placed in Store. Otherwise they are treated as one element.

How each model applies it

Model What scopes an element Also
EventStorming Its subdomain, by name A repeated subdomain is the same context.
Domain Model Its context, modules and aggregate Modules can nest.
Flow Architecture Its frame An element in several swimlanes is one element: each use case it serves.
Cloud Architecture Its frame, including Kubernetes frames The same type also means the same icon, so a Postgres "Orders DB" and a Redis "Orders DB" are different. Replicas meant to stay separate need different names, such as Orders DB 1 and Orders DB 2.
Context Map The whole map A Context Map has no containers.
Mind Map and Impact Map The topic above it The same name under the same parent topic is the same topic. Notes stand alone.
C4 and Hexagonal (Names are unique) A name can be used only once in its scope, so there are no copies to join. A pasted or duplicated element gets the next free number, such as Orders 2. In C4, a component pasted into another view appears there as the same component.
UI Mockup (Does not apply) Widget text, such as many OK buttons, is not an element name.

Link elements and ADR Log elements never join by name, because they are named after what they point to. Elements that Code Dig created from code stay matched to the code they came from: a name joins only copies of the same piece of code. Two classes with the same short name in different packages are two elements, and so are two handlers with the same path in one controller. A class repeated in several same-scoped places is still one, and a copy of it renamed away and back joins it again.

Element properties

To open an element's properties, select it and press Enter, click its properties icon, or choose Properties… from its context menu. Most model types share one properties dialog with:

  • Name: the same text shown on the element.
  • Purpose: a sentence or two of plain prose describing the purpose of this element.
  • Definition: a more detailed description of what the element does and how.
  • Specifications: a richer markdown text for source code fragments, rules, examples, acceptance criteria, and other details that do not belong on the face of a sticky note.

The element properties dialog with the Name, Purpose, Definition, and Specifications fields.
The element properties dialog with the Name, Purpose, Definition, and Specifications fields.

Context Map, C4, and Hexagonal elements have their own dialog boxes suited to what those elements are.

Writing field declarations in Specifications

If a Published Language in this Domain syncs from your model, it reads Specifications for the fields of the schema it creates. Domo CodeUp! will also use the same declarations. Write them in a fenced code block and they are copied into the schema definition. Write nothing and the schema still gets created, correctly named and categorized, but with an empty body for you to fill in later.

The usual way is to list the fields on their own. Domo Modeler wraps them in the right declaration for you, using the element's name and its DDD or non-DDD-specific pattern type (Command, Query, User Interface, ...):

Emitted once payment clears.

```
string orderId
timestamp occurredOn
int quantity = 1
```

A Domain Event named OrderPlaced then produces:

event OrderPlaced {
  string orderId
  timestamp occurredOn
  int quantity = 1
}

You can also write the whole declaration yourself, which is useful when you want it to read exactly one way:

```
event OrderPlaced {
  string orderId
  data.Customer buyer
}
```

Either field syntax works, and although not recommended, you can mix them:

string orderId
orderId : string

The point is that the blend of declaration syntax does not confuse Domo Modeler tools, but it's best to chose a style and stick with it for the sake of clarity to human users. Also note that if you change a declaration style using the example same types and field names, it is not flagged as a version change. The changes are treated as equivalent at the schema level.

The follow describes a few additional functionalities worth knowing:

  • The language tag is optional: You can use the ```domo tag as a hint to human users, but a plain ``` marker is interpreted the same way to our intelligent specifications readers.
  • Tag anything that is not a declaration: A json sample or a bash command costs you nothing if you tag the code block, and Domo Modeler ignores it. An untagged block is assumed to be aimed at the model, because that is what a code block in a modeling tool usually is.
  • The first block that reads correctly wins: If you write an example above your declarations, the declarations are still found.
  • Prose between declarations is fine: Explain each field as you go. Anything that reads as a sentence is treated as a comment and skipped, and the declarations around it still come across.
  • Several blocks are fine too: Fields are collected from every block in the text, so you can write one field per block with prose in between if that reads better.
  • A bad line does not cost you the good ones: If any declaration has a typo (syntax error), the rest that are error-free are still copied from the specification to the schema definition, and the bad one is reported by name, quoting the line and the reason. As with any error in code, you can remedy the error and sync again.

Prose between declarations reads as a comment, so this works and produces both fields:

The order on which this happened:

```
string orderId
```

When it happened:

```
timestamp occurredOn
```

And if one declaration has a typo:

```
string orderId
notAType broken
```

the schema still gets orderId, and the sync tells you: "In the model, "notAType broken" could not be read ... 1 other field was read."

Nothing here changes your model. These declarations are read when a Published Language syncs from it, and they are yours to write, correct when flagged as an error, or to leave out entirely.

Status

Architecture (C4, Flow, Cloud and Hexagonal), Context Map and Domain Model elements each have a status, set in their properties: Live (the default), Future, Deprecated or Removed. It lets one model show the design as it is and as it is planned to be. Live elements are drawn as always. The others carry a colored pill on a top corner, and a style: Future is translucent, Deprecated is hatched, and Removed is faded with its name struck through. A connection to a Removed element fades with it. EventStorming, Mind Map and Impact Map have no status: they are for exploring, and a tag covers anyone who wants one there.

Once any element has a status, Status appears in the top bar. Untick a status to stop drawing it: untick Future to see the design as it is today, or Removed to see it as planned. Hiding an element hides what is inside it. This changes only what you see, not the model. Find and the outline skip whatever is hidden, and searching for Future, Deprecated or Removed finds every element with that status.

Tags

Tags are labels you make up for your elements, such as "High risk", "Team A" or "PCI scope". Every model drawn on a canvas has them, except a UI Mockup. Add them in an element's properties: type in Tags and press Enter to pick a matching tag, or to create a new one with the next unused color. Backspace in the empty box removes the last tag, and Escape closes the list of suggestions without closing the dialog. An element's tags are drawn as small colored chips with their names. An element that keeps a fixed size, such as a sticky note, shows one row: as many chips as fit, then a +N chip; hover over it to see the rest.

Tags belong to the model, so everyone working on it sees the same ones. Once the model has a tag, Tags appears in the top bar. For each tag, or a whole group at once, choose:

  • Show: drawn as usual (the default).
  • Focus: elements with a focused tag are drawn as usual. Everything else is dimmed but stays in place, so you can still see how the focused elements connect.
  • Hide: elements with the tag are not drawn, nor anything inside them. Hide wins over Focus when an element has both.

This changes only what you see, not the model. Find and the outline skip hidden elements, and searching for a tag's name finds every element that has it. Manage Tags… at the bottom of the list lets you rename and recolor tags, sort them into optional groups (such as Risk, holding High, Medium and Low), and delete them. Changes there apply when you press Save. Undo does not bring back a deleted tag, so the delete button asks first and says how many elements have the tag.

Tidying up

With several elements selected:

Key Action
^ Align tops
< Distribute horizontally
> Distribute horizontally, reversed

Right-click

Right-clicking the canvas or an element opens a context menu with the actions that apply where you clicked: add an element at that spot, open properties, duplicate, delete, and model-specific extras. Right-drag pans the canvas; the mouse wheel zooms.

Outline and Find

The outline lists every element in the model, including the ones off screen, as a tree: what each element sits inside, such as a sticky in its subdomain, a widget in its window, a Mind Map topic under the one it branches from, or a C4 container under its system. It opens on the right of the canvas, which narrows to make room, so nothing is hidden under it. Open it with Outline in the top bar, or with Find (Ctrl+F, or Find in the user menu). It starts closed, and after that opens the way you last left it in that model type.

Each element has a small colored box beside its name: its type, drawn with the same icon and color as the toolbar button that makes it. Click an element in the outline to go to it: the canvas centers on it and selects it. The arrows open and close a branch; a large model starts with its branches closed. An element with no name of its own, such as a UI Mockup placed in another model, is listed by the name its tooltip shows.

Find is the outline's search box. Typing narrows the list to the matches and what they sit inside, without moving the canvas. Enter goes to the first match, then to each next one, and Shift+Enter goes back. Escape clears the search, and a second Escape closes the outline. Matches found inside an element (a UI Mockup widget's tabs, the entries of a Context Map's internal model) are each listed under that element, so you see every one, and Enter steps through them too.

The Filter button beside the search box narrows the list to chosen types of element, statuses and tags. Each model's Filter offers only what that model has. Statuses appear once an element has one, and tags once one is used. Ticking several of one kind shows any of them (a Container or a Component). Ticking several kinds shows only what fits every one (a Container that is Deprecated). The search and Enter then work within what the filters show, and the elements they sit inside stay listed, grayed out, so you can see where each one is. A number on the button says how many filters are on, and Clear turns them all off. The filters change only the list, not the canvas; to hide elements on the canvas, use Status and Tags in the top bar.

Every model type with a canvas has the outline. A few search a little more than names:

  • EventStorming and Architecture: Flow also search swimlane names.
  • Context Map also searches inside each context: its team, subdomain and business capability, and every command, event, entity and policy in its internal model. A match says where it is listed, such as "Orders › Incoming Commands", and selects the context; a match in the internal model opens it as well. Descriptions are not searched.
  • Architecture: C4 searches every level, not just the one on screen; see Architecture.
  • UI Mockup finds a widget by its text, such as a button's caption, and a widget with no text by its kind, so "text input" finds the text inputs. Each tab, table column, list item and menu entry is a match of its own, as is an icon's name.

In the document-style models (Glossary, ADR log, Business Model Canvas, Architecture Document, Published Language), everything is already on the page, so the browser's own find does the job.

Walkthroughs

A walkthrough tells a model step by step, along its relationships: a request arriving at one element, the calls it makes, the replies that come back. It is laid over the diagram you already have, so nothing is added to the canvas and no element or relationship changes. Walkthroughs are in Architecture: C4, Cloud, Flow, as well as Context Map. A frame, a swimlane, a note, and an ADR are never included in steps. In a Context Map, a Message along a relationship starts from its kinds, such as "Customer-Supplier".

The Walkthroughs button (the footprints) in the top bar lists the model's walkthroughs and offers New walkthrough. Opening one docks its panel on the right, where the outline goes; opening the outline closes it.

Adding steps. In a new walkthrough, Add steps is already on: click a relationship to add a Message along it, and click an element to add a Process step on it. Clicking the same relationship again right after adds its Reply, which goes back the other way. Note adds text with nothing on the canvas, such as an introduction or a conclusion. A new step goes after the selected one, or at the end. Done (or Escape) stops adding, so clicks select again. In C4, double-clicking an element still drills down, and adds no step; the walkthrough closes, because it belongs to the view you left.

Editing steps. Each step's text starts from the relationship's label or the element's name; click it to change it, and select a step to give it a longer description. Drag a step by its grip (the dotted handle) to move it anywhere in the list; a violet line shows where it will land. The arrows move a step up or down one place, the double-headed arrow turns a message into a reply and back, and ✕ removes it. Rename the walkthrough in the panel's heading. Duplicate copies it, and Delete asks first, because Undo does not bring a walkthrough back.

Playing. While a walkthrough is open, each step's number is drawn on its line or element, so the whole story can be read at once. Play (or a step's number in the panel) walks through it: the current step is outlined in violet, the steps already played stay tinted, and everything else fades. A bar at the bottom shows the step's text and description, with Back and Next; the Left and Right arrow keys do the same, and Escape stops. The canvas moves to a step that is off screen, and cannot be edited while playing.

If a step's relationship or element is deleted, the step stays, marked Missing in red, and is skipped, so Undo can bring it back. A step on an element that Status or Tags hides is skipped while playing too. Anyone who can open the model can play its walkthroughs; only those who can edit it can change them.

The browser's address bar always holds a link to the model you have open. Copy it into an ADR, a document or a chat message, and whoever opens it lands in that model, as long as they have access to it.

  • The model: right-click empty canvas and choose Copy Link. This is the same link the address bar holds.
  • One element: right-click the element and choose Copy Link. The link opens the model with that element selected and centered, exactly where Find would take you. A link to an element since deleted opens the model as usual, with a note saying so.

Element links work in every model type with a canvas. In a C4 model the address bar and the canvas link also name the view on screen; see Architecture. The document-style models are linked to as a whole, from the address bar.

A model can also hold links of its own. Every canvas model has a Link button: a slate tile with a link icon, in the toolbar or the palette (in EventStorming, under Extra). A Link is a box that looks like the ADR Log element, titled Link, and goes to one of two places:

  • A web address you paste in: a wiki page, a repository, a runbook. Only http and https addresses are accepted.
  • An element in DomoModeler, of this model or another model in the same domain, picked from a searchable list. It opens that model with the element selected and centered.

Every link opens in a new tab, so the model you are working on stays open, even for a link to another place in the same model. Its name defaults to what it links to, and you can change it; hovering shows the full address or where the element is. Double-click a Link, or use its open button, to follow it; use its pencil button, or Properties, to change it.

A Link to an element of this model shows Target missing as soon as that element is deleted. A Link is never removed for you: pick a new destination or delete it. A Link to another model is checked when you open it.

A Link is not part of the model: Find and the outline leave it out, it is never a walkthrough step, it never reaches a Context Map from EventStorming nor a Glossary from a Domain Model, and in a Mind Map or Impact Map it stands free, like a Note. In a downloaded image or an Architecture Document it appears as drawn, since a picture cannot be clicked; a UI Mockup's own picture of the screen leaves it out.