- 8 minutes to read

Organising with Boundaries

Boundaries are the organisational containers in a C4 diagram in the C4 Designer. They visually group related elements, represent architectural partitions, and can be bound to your Nodinite Repository: New 7.12 what a boundary binds to follows its kind. An Enterprise Boundary or a generic Boundary binds a Domain, a System Boundary a System, a Container Boundary a Service or Contract, and a Deployment Node nothing.

In a large landscape, boundaries are also a navigation tool — you can collapse them to reduce clutter, focus on a single boundary to highlight it against a dimmed background, or isolate one boundary by hiding everything else.

Bind a boundary to the Domain Sales, drag WMS into the Operations boundary, and move Operations with its contents, animated walkthrough (7.12)
Animated walkthrough: a Draft Context diagram over the Order-to-Cash demo with the boundaries Sales and Operations, from binding Sales to a Domain to moving Operations by its header with everything inside kept in place. Every element keeps its Repository binding throughout.

What Boundaries Represent

Nodinite has five boundary kinds, each mapped to a layer of your architecture. The diagram type decides which ones the Toolbox offers:

Boundary type Represents Available in Binds to
Enterprise Boundary Your whole organisation or a large division L0, L1, Dynamic A Domain, or nothing
Boundary (generic) Any grouping: a Domain, a Layer, a BizTalk receive port L0, L1, L2, L3, Dynamic A Domain, or nothing (on L2 and L3 usually an unbound grouping)
System Boundary A single Software System and its Containers L2, Dynamic A System
Container Boundary One Service or Contract and its Components L3 (Dynamic only from an import) A Service or Contract
Deployment Node An infrastructure zone or server Deployment Nothing (an unbound label)
graph TB Domain["fa:fa-sitemap Domain"] Sys1["fa:fa-server System"] Svc["fa:fa-gears Service or Contract"] subgraph Ent["Enterprise Boundary or Boundary"] subgraph Sys["System Boundary"] Cont["fa:fa-box Container"] end end subgraph Con["Container Boundary on a Component diagram"] Comp["fa:fa-puzzle-piece Component"] end Domain -.->|"Shape Binding"| Ent Sys1 -.->|"Shape Binding"| Sys Svc -.->|"Shape Binding"| Con style Domain fill:#2678BD style Sys1 fill:#2678BD style Svc fill:#2678BD style Comp fill:#93d16d style Cont fill:#93d16d

Diagram: each boundary kind binds its own kind of Repository entity (blue): an Enterprise Boundary or Boundary a Domain, a System Boundary a System, a Container Boundary a Service or Contract. The elements inside (green) are the nodes the boundary groups. On a Dynamic diagram an Enterprise Boundary can hold System Boundaries like this; the Container Boundary lives on a Component diagram.

In Nodinite, an Enterprise Boundary or a generic Boundary can be bound to a Domain. When you bind a boundary to a Domain, the boundary header displays the Domain name and the boundary becomes a live representation of that Domain. Changes to the Domain name in the Repository are reflected automatically.

New 7.12 On a Component diagram, a generic Boundary (or an Enterprise Boundary) inside the subject Container Boundary is an unbound grouping: an import matches it to no Domain and creates none, not even with Resolve All. On a Container diagram, a grouping inside the subject System Boundary still matches a Domain by name.

Adding a Boundary from the Toolbox

  1. Expand the Boundaries section in the Toolbox (visible in Draft mode only)
  2. Drag a boundary type onto the canvas
  3. Drop it at the position you want — the boundary is created with a default size
  4. Resize by dragging the bottom-right handle
  5. Drop element nodes inside the boundary to assign them to it

Binding a Boundary to a Domain

Bind the boundary in Boundary Properties:

  1. Click the boundary header: Boundary Properties opens.
  2. Under Shape Binding, click Resolve….
  3. Choose Use existing, the only tab a generic boundary offers.
  4. Pick the Domain, for example Sales.
  5. Click Confirm.

The same panel binds the other kinds to what they allow: a System Boundary to a System, a Container Boundary to a Service or Contract; a Deployment Node has no Resolve…. Once bound to a Domain:

  • The boundary header shows the Domain name
  • The boundary hamburger menu gains actions: View Domain, Quick Edit Domain, and Go to Edit Domain (new tab)
  • With a Mapify license: Show in Mapify (Mapify Rendering) and Show in Mermaid (Mermaid Rendering) become available

Use the Unbind button to remove the association at any time.

The subject boundary

New 7.12 On a Container diagram, the System Boundary around the diagram's Containers is its subject boundary: it is bound from the diagram's Architectural Scope. On a Component diagram, the Container Boundary is bound from the diagram's Subject, the Service or Contract whose inside it shows. Next layer, the import, and the generators make the subject boundary. Its Shape Binding shows the binding with a lock and Bound from the diagram's Architectural Scope. Change it in Edit Properties. (Container) or Bound from the diagram's Subject. Change it in Edit Properties. (Component), and has no Unbind or Resolve…. A System Boundary you drop from the Toolbox is an ordinary System Boundary that you bind by hand.

Moving Elements Between Boundaries

To move a node into a different boundary, simply drag it. When you release the mouse button, the Designer checks which boundary most tightly contains the node's centre point. If that boundary is different from the node's current parent, the node is automatically reparented.

The target boundary lights up while you drag — a visual cue showing which boundary will adopt the node when you release.

Info

A node's parent boundary determines where it appears in the Mermaid output. Reparenting a node also updates the Mermaid representation immediately. New 7.12 Navigation comes from bindings, not from nesting: a boundary shows only its own navigation pills and no longer rolls up those of the nodes inside it. Following a pill to a diagram makes every element bound to the same Repository item blink, a Domain boundary included. See Navigation Between C4 Diagrams.

Moving a boundary with its contents

Drag the boundary header to move the entire boundary. All elements inside the boundary — including any nested child boundaries — move together, maintaining their relative positions.

Collapsing and Expanding Boundaries

Each boundary has a collapse/expand toggle button in its header. Collapsing a boundary hides all of its contents and shrinks it to a minimal size.

Collapse the Operations boundary so its connectors end on the boundary, then expand it again, animated walkthrough (7.12)
Animated walkthrough: the Operations boundary with ERP, ERP-Finance, and WMS collapsed to its header, the connectors ending on the boundary, and expanded again with everything back in place.

Action Effect
Collapse Children are hidden; boundary shrinks to its header; connectors reroute to the boundary edge
Expand Children are restored; connectors return to their original endpoints

Connector Rerouting

When a boundary is collapsed, any connector that would normally connect to a hidden node is rerouted to attach to the collapsed boundary's outline. The connector still shows its label and protocol but connects to the boundary box rather than the individual node. Expanding the boundary restores all connectors to their precise endpoints.

Collapse State Persistence

Collapse states are saved per viewer, in the browser's local storage, not with the diagram, so other users are not affected. If you close and reopen the diagram, reload the page, or sign out and in again, boundaries are restored to their last collapsed or expanded state. Another browser, or a browser with cleared storage, opens the diagram with every boundary expanded.

Focus Mode

Focus mode dims the entire canvas except for one boundary, which is raised to the foreground. Use it when you want to present or inspect one part of a complex diagram without visual distractions.

To enter Focus mode:

  1. Open the boundary's hamburger menu (three-line icon in the boundary header)
  2. Choose Focus from the menu

To exit, click anywhere outside the elevated boundary.

Isolate Mode

Isolate mode collapses all sibling boundaries and leaves only the selected one expanded. Where Focus mode is a visual overlay effect that is not stored, Isolate mode actually modifies the collapse state of other boundaries, which is kept per browser like any other collapse.

Use Isolate mode when you want to explore a single Domain in detail without the distraction of adjacent boundaries.

Access Isolate through the same boundary hamburger menu.

Nesting Boundaries

Boundaries can be nested inside other boundaries. To nest a boundary, drag it so that its centre point falls inside another boundary and release. The inner boundary becomes a child of the outer one.

Common patterns are an L2 subject System Boundary with generic Boundaries inside it (Layers, BizTalk receive ports), and, on a Dynamic diagram, an Enterprise Boundary around the System Boundaries of the owning Systems.

Automatic ancestor expansion

When you move or resize an element so that it extends beyond its parent boundary, the parent boundary automatically expands to contain it. This expansion continues up the nesting chain — all ancestor boundaries grow as needed to ensure no element overflows.

Frequently Asked Questions

I moved a node but it went into the wrong boundary

Drag the node again and aim for an empty area of the correct boundary. The boundary must contain the centre point of the node to adopt it. If boundaries are overlapping, the smallest containing boundary wins.

My boundary collapsed but I cannot expand it — the expand button is gone

If you have collapsed a boundary and then zoomed out, the boundary may be very small. Zoom in on the boundary header area to see the expand toggle button.

Boundary headers are not showing the Domain name after binding

The Domain binding takes effect immediately, but if a re-render has not occurred since the binding, refresh the page or move any element to trigger a re-render.

I can't rebind the boundary around my Containers or Components

That is the subject boundary of a Container or Component diagram: it follows the diagram's Architectural Scope or Subject. Change the scope or subject in Edit Properties (Diagram Lifecycle), and the boundary follows.

Next Steps