Skip to content
Documentation
Updated 16 minutes to read
Markdown

Import brings existing C4 diagrams from Mermaid, PlantUML, Structurizr DSL, or Draw.io XML directly into your Nodinite Repository, mapping every node to the real Systems, Services, Contracts, Endpoints (on L3 Component diagrams), and Domains that already live there, and every relationship to its Message Type. The import wizard resolves entities, handles conflicts, and asks you to confirm required metadata when the Draw.io source cannot provide it reliably. New 7.12 It never binds an Integration and stores no links: navigation within the Diagram Set is inferred when a diagram opens.

Import on a Diagram Set page: the Portal System Context markup pasted with its preview, the name from the title and the Level Context, the Scope step with Use on the System Portal, Review and Resolve with Portal and ERP matched to Systems and Customer as a Person, Resolve All, Import, and the imported Draft with Customer, Portal and ERP, animated walkthrough (7.12)
Animated walkthrough: Import on the set page, the Mermaid snippet below pasted, the Scope step (the System Portal), then Review & Resolve: Portal and ERP match their Systems of the Order-to-Cash demo, and Customer is a Person. The new Draft, opened from the set's list, shows Customer, Portal and ERP, with Portal and ERP bound to Repository Systems.

The walkthrough imports this snippet:

C4Context
title Portal — System Context
Person(customer, "Customer", "Places orders and receives order confirmations")
System(portal, "Portal", "Receives customer orders and delivers order confirmations")
System_Ext(erp, "ERP", "Enters orders and schedules production")
Rel(customer, portal, "Places orders", "HTTPS")
Rel(portal, erp, "Forwards the order", "XML / O2C.Forwarding/1.0")
Rel(portal, erp, "Sends the confirmation for planning", "CSV / O2C.Order.Confirmation/1.0")
Rel(erp, portal, "Returns the order entry", "XML / O2C.Order.Entry/1.0")

Import button on the Diagram Set page (7.x)
Example of where to start an import: the Import button on the Diagram Set page opens the import wizard for that set.

Import creates a diagram of one type, with an Architectural Scope (always a System) where the type has one, and, on an L3 Component diagram, a subject: the Service or Contract whose inside it shows. New 7.12 The C4 rules for that diagram type decide what each element may bind to. Type, scope, subject, and bindings then decide the navigation pills the diagram gets when it opens.

The import pipeline runs as two separate server operations. Both are required; neither alone produces a complete diagram.

graph TD Markup["fa:fa-code Paste Source
Mermaid / PlantUML / Structurizr DSL / Draw.io XML"] Validate["fa:fa-magnifying-glass Validate
Parse + Match + Preview"] Review["fa:fa-list-check Review and Resolve
Conflict Resolution UI"] Apply["fa:fa-check Apply
Create Diagram + Nodes + Boundaries + Connectors + Flows"] Diagram["fa:fa-sitemap Draft Diagram
Repository-bound, live entity names"] Markup --> Validate Validate --> Review Review --> Apply Apply --> Diagram style Markup fill:#2678BD style Validate fill:#2678BD style Review fill:#FFD525 style Apply fill:#93d16d style Diagram fill:#93d16d

Diagram: The import pipeline — validate (blue) parses your markup and matches Repository entities, review (yellow) lets you resolve ambiguities, and apply (green) creates the diagram with its boundaries, nodes, connectors, and Flows.

Click Import on the Diagram Set page to open the wizard. It has:

  • format tabs Mermaid Markup, Structurizr DSL, PlantUML, and Draw.io XML, each with Paste and Upload File;
  • a live Preview of the markup;
  • Diagram Name (taken from the markup's title), Level, and Diagram State. The Level is detected from the markup: C4Context gives Context, so choose System Landscape yourself when that is what you import;
  • Next, which validates the markup and matches its nodes against the Repository;
  • Review & Resolve, with the badges matched, conflicts to resolve, will be created, and relationships, a Resolve All button, and per row Matched (with a check mark), Unlink, or Resolve ▾, and Unbound on a row whose status is Unbound. New 7.12 The Relationships table has the columns Technology and Message Type, and its header counts the relationships with a Message Type and those kept as text;
  • Import, which creates the diagram.

The step counter adapts to the markup. Set, Markup, and Review & Resolve always count, and an Icon step is added when Draw.io icons need resolving. New 7.12 A Scope step (Set Diagram Architectural Scope) is added for every type except System Landscape: required for Context, Container, and Component, optional for Dynamic and Deployment (Skip). A Context import therefore has 4 steps. The wizard takes the scope itself when the markup's top-level System_Boundary (L2) or a top-level Container_Boundary named after a Service (L3, scope and subject) matches. The System doesn't have to exist before the import: see Set the Architectural Scope.

During validation, each element parsed from your markup is compared against your Nodinite Repository. Matching is an exact name match that ignores case; there is no similarity match. New 7.12 The shape and the diagram type decide what an element may match:

Parsed element On diagram type Matched against Unmatched
Person, Person_Ext all but Deployment A System only New: Create new makes a System with the C4 Type Person (Person_Ext: Person (Ext)). Left unresolved: unbound
System, System_Ext, SystemDb, SystemQueue (+_Ext) all but Deployment A System only New
Container, ContainerDb, ContainerQueue (+_Ext) L2, L3, Dynamic A Service by name (typed match first), a contract_{id} alias, or a Contract by name; never a System New (Create new Service). Named after a System: Unbound, with the note to draw it as a System shape
Container shapes L0, L1 Stored as a System (ContainerDb as System Db, ContainerQueue as System Queue, _Ext as System Ext), matched to a System New
Component (+Db/Queue/_Ext) L3 The one Endpoint of exactly that name (needs read on Endpoints) Unbound; nothing is created
Component (+variants) Dynamic Not bound Unbound
Container_Instance Deployment A Service or Contract As Container
Container_Instance_Ext Deployment Not searched Unbound
Boundary, Enterprise_Boundary, Draw.io group any A Domain by name New (Create new Domain) or unbound
System_Boundary L2, Dynamic A System; on an L2 the subject boundary Follows the scope Unbound
Container_Boundary L3, Dynamic A Service or Contract; on an L3 the subject row (Subject of the Component diagram) Unbound / No subject
Deployment_Node Deployment Nothing Unbound label

Only a top-level System_Boundary (L2) or Container_Boundary (L3) is taken as the subject boundary. A generic Boundary, an Enterprise_Boundary, or a kindless draw.io group nested inside the L3 subject Container_Boundary is an unbound grouping: it matches no Domain and none is created, not even by Resolve All. On an L2, a grouping inside the subject System_Boundary still matches a Domain by name. An element whose binding the rules refuse is imported unbound with a warning, never refused. A shape or boundary kind the diagram type doesn't hold is imported as it is, but the Designer can't add one, and a save that changes it gets the rule's message.

Import of the Order-to-Cash L2 scoped to the System Portal: Portal drawn as a Container stays unbound and no Service is created, Resolve shows that a Container binds to a Service or Contract and never a System, INT1337-RCV-Order-Incoming matches its Service, then Resolve All and Import, animated walkthrough (7.13)
Animated walkthrough: on an L2, Containers are Services. A System drawn as a Container stays unbound, with nothing created.

Import of the Order-to-Cash L3 scoped to Portal: the Components stay unbound or bind to an Endpoint, the Container_Boundary row is the subject and is resolved to the Service INT1337-RCV-Order-Incoming, Resolve All creates the Customer as a System, and the imported Draft has its boundary bound to the Service, animated walkthrough (7.13)
Animated walkthrough: on an L3, the top-level Container_Boundary is the subject, and Components are never Integrations: unbound, or bound to an Endpoint.

The name compared is the display name (the second argument of the C4 macro). The alias (the first argument) also matches a Contract when it has the form contract_{id}; with UseContracts on, the Resolve dialog of a Container row also has a Use existing Contract tab. Each imported node keeps the alias from your markup (for example portal); there are no generated svc_/sys_ aliases.

The C4 properties on the Repository items only help pick between same-name candidates and seed new nodes: a ContainerDb(...) prefers a Service whose C4 Container Type is Database, and the node's shape always comes from the markup. See C4 Troubleshooting for the common matching problems and their fixes, and Repository Properties for C4 Diagramming for the properties themselves.

New 7.12 A relationship's technology text carries its Flow's Message Type as <protocol> / <Message Type>, for example "XML / O2C.Forwarding/1.0" (or "/ O2C.Order.Entry/1.0" without a protocol). The import resolves the text after / by exact name, which needs read on Message Types, and shows it in the Message Type column. Without a match, the whole text stays the protocol and the Flow has no Message Type. Text such as "REST / Event" therefore tries to resolve Event: write protocol-only text as "REST, Event".

Mermaid and PlantUML relationships with several items joined by ; and a space, and on a BiRel marked →, ←, or ↔, are split back into one Flow per item, the way Nodinite exports them. A relation from another tool (one item, no marker) is one Flow; a;b without a space is not split.

Import of the Order-to-Cash L2 where JSON / O2C.Order.Received/1.0 names a Message Type and HTTPS / JSON stays text, the Flow filter with the four O2C Message Types, Export as Mermaid, and the exported markup imported into a new set with every Flow's Message Type kept, animated walkthrough (7.13)
Animated walkthrough: Message Types survive the round trip from import to Mermaid export and back into a new set.

New 7.12 Import stores no links between diagrams. When a diagram opens, its navigation pills are computed from the diagram type, its scope and subject, and each element's binding, inside the set (see Navigation Between C4 Diagrams). An L1's System node bound to ERP shows an Inside pill to the L2 scoped to ERP, whether that L2 was imported before or after it.

In Layered Mode, node and boundary adds and removes propagate to the related Layered Drafts. In Free Draw, local edits stay local.

If your Integration Landscape data already lives in the Nodinite Repository, Generate from Integration Landscape builds the other diagrams of the set from it, and keeps the Active diagrams you imported.

Paste or upload Mermaid C4 (the native format), PlantUML C4, Structurizr DSL, or Draw.io XML. Which diagram types, macros, directives and constructs each format may hold, and the metadata you confirm for Draw.io, is on Import Source Formats.

The Validate step runs when you click Next in the wizard. It parses your markup without creating any database records. It is safe to run multiple times — validate, inspect, adjust your markup, and validate again until the preview matches your expectations.

Validate returns:

  • Parsed diagram model — all nodes, boundaries, and connectors extracted from your markup
  • Entity matches — for each node: Matched, Conflict, New, or Unbound, with the suggested Repository entity
  • Mermaid preview — a rendered preview. For PlantUML and Structurizr DSL sources this shows the normalized Mermaid output the server produced, making it easy to spot translation issues before committing to Apply
  • Parse warnings — skipped directives and unrecognized but non-fatal constructs
  • Parse errors — fatal issues with line and column number (Mermaid parse exceptions)

New 7.12 The Scope step (Set Diagram Architectural Scope) links a Context, Container, or Component diagram to the System it shows, its Architectural Scope. Next stays disabled until you make one of these choices:

Choice Offered What happens
A System from Search Systems... Always. The boundaries in the markup suggest candidates, and Used in diagrams shows where each one already appears That existing System becomes the scope
Use the System this import creates: name For each L1 System, SystemDb, or SystemQueue (not _Ext), or L2 top-level System_Boundary, that matched no System The import creates that System and makes it the scope. On an L2 the subject boundary follows the scope, and new Services inside it belong to that System
Set the scope later In the card The System doesn't exist yet? below the search The diagram is imported as a Draft without a scope. Set the scope in Edit Properties before you promote it to Active

The Set Diagram Architectural Scope step of an L2 for Contoso Freight Planner: no suggested candidates, and the card The System doesn't exist yet with Use the System this import creates and Set the scope later (7.12)
The Scope step when no System matches: the card below the search offers to create the System on import, or to set the scope later.

Review & Resolve has the last word. Its Scope: line follows the row of the System this import creates:

  • Point the row at an existing System with Use existing: that System becomes the scope, and nothing is created.
  • Choose Leave unbound: the diagram has no scope and is imported as a Draft.
  • Otherwise the import creates the System.

Import of an L2 for the new System Contoso Freight Planner: Use the System this import creates, Review and Resolve with the Scope line and the Resolve All note, Resolve All, Import, and the Draft scoped to the new System, animated walkthrough (7.12)
Animated walkthrough: an L2 Container diagram of Contoso Freight Planner, a System the Repository doesn't have yet. Use the System this import creates on the Scope step, then Review & Resolve shows the scope line and the note on what Resolve All adds. After Resolve All and Import, the Draft has the new System as its scope.

A Context import whose scope can only be a System, as no Domain is offered, then a Component import whose boundary, named after INT1337-RCV-Order-Incoming, sets the scope to its System Portal and the subject to the Service, animated walkthrough (7.13)
Animated walkthrough: the scope of a Context diagram is a System, never a Domain; a Component import takes its scope from the Service's System and its subject from the Service.

After validation, the Review & Resolve step lists every node parsed from your markup, with badges counting what is matched, the conflicts to resolve, what will be created, and the relationships. Rows auto-matched with high confidence are pre-filled — you confirm or override. Rows with conflicts or unresolved names require a deliberate choice. New 7.12 Above the table, Scope: names the diagram's Architectural Scope, for example Contoso Freight Planner (the System this import creates).

When the source is Draw.io XML, check the diagram metadata first. The name comes from the page name and is only a suggestion; the Level / Diagram Type stays empty, and Next stays disabled until you pick one, unless the file was exported from Nodinite. See Draw.io XML.

Status Meaning Default in UI
Matched Name found in Repository with no ambiguity Pre-selected — confirm or override
Conflict Multiple Repository entities share the same display name Requires manual entity selection
New No Repository entity matches the node name Defaults to Create new where the row may create something
Unbound The row binds to nothing: no match where nothing may be created, a binding the rules refuse, or a Container_Instance_Ext Not a conflict, does not block Apply

After a choice, a row shows Replaced or Modified. New 7.12 _Ext rows are matched like their internal shape.

Each row shows Matched (with a check mark) when it is matched, an Unlink button, and a Resolve ▾ button. A row with the status Unbound shows an Unbound button instead (Unbound: click to bind it to what the C4 model allows, or leave it unbound.), which opens the same dialog. Resolve ▾ opens the Resolve dialog; Resolve All works through every open row. New 7.12 The dialog's tabs follow what the row may bind to: Use existing Service, Use existing Contract, Use existing System, Use existing Endpoint, Use existing (Persons, with the C4 Type filter, and Domain boundaries), Create new, and Leave unbound (No subject on the L3 subject row). For each row you end up with one of the following:

Choice Where What happens during Apply
Use existing Resolve dialog Binds this element to what the row's rules allow: a Service or Contract for a Container, a System for a System shape or Person, an Endpoint for an L3 Component, a Domain for a generic or Enterprise boundary. It writes nothing back to an Integration
Create new Resolve dialog Creates a new Domain, Service, or System as part of Apply; never an Integration, Endpoint, or Contract
Leave unbound Resolve dialog Keeps the element without a binding; on the L3 subject row, the diagram has no subject
Unlink (keep as placeholder) Row button Includes the node in the diagram without any Repository binding — useful for external or out-of-scope elements

New 7.12 Save as Domain defaults applies to Domain rows only. Its Default Boundary Type offers Not set, Boundary, and Enterprise Boundary: the boundaries a Domain can be bound to. Unbound elements can be bound later in the C4 Designer.

Optional overrides per row (available for any row):

  • Target display name
  • Component type or icon
  • Container type and technology
  • System type
  • Description and C4 actor attributes

Resolve All creates what is missing: the Systems and Services that match nothing, and a Domain for each generic grouping boundary that matches none. New 7.12 When the markup has such a grouping, Review & Resolve says so in the note Resolve All fills the Nodinite Repository. Mapify shows everything that has relations, so what the import creates becomes part of your landscape. A boundary that only groups shapes in the drawing, such as Ingress Messaging or a Receive Port, is not a business Domain: choose Leave unbound for it.

Review and Resolve of the Contoso Freight Planner L2: the Scope line naming the System this import creates, the note that Resolve All fills the Nodinite Repository, and the rows booking as a new Service, ingress as a new Domain, and planner following the scope (7.12)
Review & Resolve with the scope line and the Resolve All note: the Layer boundary Contoso Freight Ingress would become a Domain.

When you confirm the Review & Resolve step and click Import, the Apply operation creates the complete diagram in a single transaction:

  1. Creates the diagram record with the selected type, scope, and name
  2. Creates all boundary records, bound by kind (the L2 or L3 subject boundary takes the scope or subject; generic and Enterprise boundaries a Domain where matched or created, label-only where left unbound)
  3. Creates the New rows' Systems, Services, and Domains, and all node records bound to the resolved Repository entities. New 7.12 A Service created for a Container inside an L2's subject System_Boundary, also under a grouping, belongs to the scope System; one created outside it belongs to none.
  4. Creates all connector records in the original sequence from the parsed markup, each with its Flows and their Message Types

The wizard then closes on the set page with Import successful. The new diagram is in the set's list in Draft state; it does not open by itself, so click it in the list to open it. Promote it to Active when you are satisfied with the resolved entity names and the Mermaid preview.

  • Include a valid diagram type declaration — every Mermaid import must begin with C4Context, C4Container, C4Component, C4Deployment, or C4Dynamic. A missing declaration causes a parse error.
  • Keep aliases unique and stable — relationships in C4 markup are alias-based. If two nodes share an alias, relationship resolution fails. Stable aliases also make re-importing revised markup easier.
  • For Draw.io XML — pick the Level and check the Diagram Name before continuing. If the XML contains a name, treat it as a suggestion rather than ground truth.
  • Set C4ContainerType on Services before importing — the import wizard matches by exact name; a matching container type lets a ContainerDb(...) or ContainerQueue(...) prefer the right Service when several share a name, and seeds the right type on nodes you create.
  • Use Validate before Apply — the Validate step is free and does not write to the database. Use it to inspect match counts, review warnings, and confirm the Mermaid preview before committing.
  • Always select a Diagram Set — Apply requires a C4DiagramSetId > 0 to be selected.
  • Name Message Types exactly — write "<protocol> / <Message Type>" in a relationship's technology to bind its Flow; use commas for protocol-only text such as "SOAP, REST".
  • Draw a System as a System shape — a Container(...) never binds a System.
  • For PlantUML — keep to C4-PlantUML style macros and !include directives. Non-C4 PlantUML constructs outside the normalization path are not supported.
  • For Structurizr DSL — keep to core workspace, model, views, person, softwareSystem, container, and relationship constructs.
  • Check connectors against the connection rules — imported connectors that break the connection validation rules for the diagram type are kept, not deleted. The canvas draws them with an invalid style and shows the reason as a tooltip, so review and fix them after Apply.

...

Version:
Release date: N/A
Loading...

Explore Nodinite for 30 days – completely free

  • Find out why this is the leading O&M software
  • Prove your business case
  • Test the self-service for the business side

Loading...

See how Nodinite resolves your technical issues, in a LIVE Demo!

Once you submit this request:

  • We will give you a short call to understand the issues you want to tackle.
  • Understand solutions you have tried and why were you not happy with them.
  • Book a convenient slot for a LIVE demo!

Loading...