- 11 minutes to read

Generate from Integration Landscape

Generate from Integration Landscape creates a C4 Architecture Diagram Set directly from your Integration Landscape data, in one operation, without writing a single line of Mermaid markup.

Every generated diagram is bound to real Repository entities by ID. Systems appear on the System Landscape and System Context diagrams and as neighbours on Container diagrams, Services as Containers, and Endpoints as the Components of a Service's Component diagram. The Integration is only the generator's input: New 7.12 it is never a node or a scope. Each Flow carries the Message Types of its sender. Re-running the generator on the same Diagram Set keeps every stored Flow and never disturbs the diagrams you made yourself.

✅ Full-stack C4 output from a single action: L0, New 7.12 L1 per System, L2 per System, Dynamic, and, when you tick it, L3 per Service
✅ Message Types on every Flow: each Flow carries the Message Types of its sender's Transport Contracts
✅ No Mermaid required: repository IDs are used directly; the import wizard is not involved
✅ Keeps your work: New 7.12 an Active diagram you imported or drew yourself is Kept, with no Draft beside it
✅ Nothing to sync: New 7.12 navigation between the diagrams is inferred when they open

Generate Architecture Diagrams from the Order-to-Cash Integration Landscape: Add C4 Diagrams, the shared Diagram Set picker with the All tab 10 a page, Filter the result and Create new set, a set picked and shown under Selected (1), the Diagram Types System Landscape, Context, Container and Dynamic ticked by default, Generate, the summary saying no links need to be created, then the generated System Landscape with Portal, ERP, ERP-Finance and WMS, and Portal — Containers with Portal's Services inside a System boundary and ERP outside, animated walkthrough (7.12)
Animated walkthrough: on the Integration Landscape of the Order-to-Cash demo Integration, Add C4 Diagrams, a Diagram Set picked on the All tab, and Generate. Then the generated System Landscape, which has no Architectural Scope, and the Portal Container diagram, scoped to the System Portal.

Why This Exists

The Import wizard is designed for human-authored markup: you paste Mermaid text, and the wizard resolves element names against your Repository. That pipeline is text-first and produces one diagram per import.

The Integration Landscape is data-first. Every entity is already identified by a Repository ID, and every Service relation already knows which Message Types it carries. The dedicated generator turns that data into the diagrams directly:

Import Wizard Generate from IL
Source Mermaid / PlantUML / Structurizr / Draw.io text Repository entity IDs
Entity matching Name-based resolver Pre-resolved, no matching needed
Boundary binds to By kind: generic and Enterprise Boundary to a Domain, System Boundary to a System, Container Boundary to a Service or Contract The System (the L2's subject boundary; one per owning System on the Dynamic)
Message Types on Flows The text after / in the technology, matched by name Taken from the senders' Transport Contracts
Output 1 diagram per run A full set of diagrams in one run
Consecutive runs Manual re-import Keeps every Flow, adds what is new

What Gets Generated

A generation run takes one Integration as input, targets a Diagram Set, and produces:

Diagram Option (default) Scope Subject Content
System Landscape (L0), 1 System Landscape ✅ none none One System per System of the Integration; one connector per System pair, its Flows carrying the sending Services' Message Types, per direction
New 7.12 System Context (L1), 1 per System Context ✅ the System the scope The System plus its neighbouring Systems as System_Ext (bound); one connector per pair with the senders' Message Types; no Persons
Container (L2), 1 per System Container ✅ the System the scope The subject System_Boundary (derived from the scope) around the System's Services; New 7.12 the neighbouring Systems outside as System_Ext with the cross-System Flows
Component (L3), 1 per Service Component ☐ the Service's System the Service The subject Container_Boundary (derived from the subject); one Component per Endpoint inside; the related Services outside as Container or Container_Ext
Dynamic, 1 per Integration Dynamic ✅ none none The Services as participants in step order, one System_Boundary per owning System, steps carrying the sender's Message Types

Every generated diagram is a Draft in Free Draw mode, even in a set whose mode is Layered (see Diagram Set Fundamentals). The exception is a diagram the skip rule keeps: then no Draft is made.

The scope of a diagram is always a System. The System Landscape has none, and the Dynamic diagram needs none: you can promote it without one (see Diagram Lifecycle). The Context and Container diagrams are scoped to their System. A Component diagram is scoped to its Service's System, and its subject is the Service.

The generated diagrams are named <Integration> — System Landscape, <System> — System Context, <System> — Containers, <Service> — Components, and <Integration> — Flow (the Dynamic). For the Order-to-Cash demo, a run with the default Diagram Types on an empty set creates 10 diagrams:

  • INT1337 - Order-to-Cash — System Landscape;
  • Portal — System Context, ERP — System Context, WMS — System Context, and ERP-Finance — System Context;
  • Portal — Containers, ERP — Containers, WMS — Containers, and ERP-Finance — Containers;
  • INT1337 - Order-to-Cash — Flow (Dynamic).

No Component diagram comes out, because Component is off by default. In the taught Order-to-Cash story, you import the six example diagrams first and then generate with Context, Container, and Component: the generator adds the 19 missing diagrams and keeps the imported ones, 25 in all. See Build the Order-to-Cash C4 set.

graph TD Input["fa:fa-sitemap Integration
from Integration Landscape"] Generator["fa:fa-wand-magic-sparkles Generate from IL
Dedicated pipeline
no Mermaid text"] L0["fa:fa-globe L0 System Landscape
1 per Integration"] L1["fa:fa-circle-nodes L1 System Context
1 per System"] DYN["fa:fa-shuffle Dynamic Diagram
1 per Integration"] L2["fa:fa-cubes L2 Container
1 per System"] L3["fa:fa-cube L3 Component
1 per Service
off by default"] Set["fa:fa-folder Diagram Set
navigation inferred on open"] Input --> Generator Generator --> L0 Generator --> L1 Generator --> DYN Generator --> L2 Generator --> L3 L0 --> Set L1 --> Set DYN --> Set L2 --> Set L3 --> Set style Generator fill:#2678BD style Set fill:#FFD525

The generator (blue) writes the diagrams into one Diagram Set (yellow). Each level runs in its own transaction. Nothing is linked afterwards: inferred navigation pills connect the diagrams when they open.

Entity-to-Diagram Mapping

The mapping of Repository entities to C4 elements across the generated diagrams:

Repository entity C4 element Generated level Bound by
System System node L0, L1 (the scope) System ID
System System_Ext neighbour L1, L2 System ID
System System_Boundary L2 (the subject, derived from the scope); Dynamic (one per owning System) System ID
Service Container node L2 (inside the subject boundary); L3 neighbours (Container, or Container_Ext in another System); Dynamic participant Service ID
Service Container_Boundary L3 (the subject) Service ID
Endpoint Component node L3 (inside the Service) Endpoint ID
Message Type On a Flow, not a node every level Message Type ID

New 7.12 An Integration is never drawn. Its Services, their Systems, and their Endpoints are.

Diagram Scope Rules

L0 System Landscape

The L0 is the widest view. It shows only Systems and the Flows between them.

  • One System(...) node per distinct System of the Integration
  • One connector per System pair; its Flows carry the Message Types of the sending Services, one set per direction
  • No Services and no Endpoints appear at this zoom level
  • New 7.12 No boundaries, so no Domain boundaries either. The System Landscape example has Domain boundaries because it is imported
  • No Architectural Scope
  • Emitted Mermaid type: C4Context

L1 System Context

New 7.12 One L1 is generated per System, when Context is ticked (it is on by default).

  • Scope: the System; it is also the diagram's subject
  • The neighbouring Systems, from the cross-System Service relations, as System_Ext, each bound to its System
  • One connector per pair, with the senders' Message Types
  • Persons are not generated: draw them in the C4 Designer, or import them
  • Emitted Mermaid type: C4Context

Dynamic Diagram

The Dynamic diagram shows the runtime interaction sequence.

  • The Integration's Services are the participants, as Containers bound to the Services
  • One System_Boundary per owning System around its participants
  • Each step carries its sender's Message Types and has its own step number
  • New 7.12 The diagram reads in step order: participants and boundaries are placed in the order the steps first reach them (for the Order-to-Cash demo: Portal, ERP, WMS, ERP-Finance). This applies to a newly created diagram; a re-run keeps where you placed things
  • No Architectural Scope needed to promote it

The other generator of a Dynamic diagram is New 7.12 C4 Dynamic on a BPM's view page: it draws the BPM's Services in phase order and needs Create on C4 Diagram Sets, read on BPMs, and the same design rights as this generator (see below). Grouped Log View runtime inspection is a separate feature and can present the same runtime path in Systems mode.

L2 Container Diagrams

One L2 is generated per System.

  • Scope: the System; the subject System_Boundary(...) takes its binding from the scope and is read-only
  • One Container(...) node per Service inside the boundary, bound to the Service ID
  • New 7.12 The neighbouring Systems outside the boundary as System_Ext, with the cross-System Flows of each direction
  • Flows between Services carry the sender's Message Types
  • Emitted Mermaid type: C4Container

L3 Component Diagrams

One L3 is generated per Service, when Component is ticked under Diagram Types (it is off by default).

  • Scope: the Service's System. Subject: the Service, drawn as the subject Container_Boundary bound to it
  • Inside: one Component(...) per Endpoint of the Service's Transport Contracts, bound to the Endpoint
  • Outside: each related Service as a Container, or a Container_Ext when it belongs to another System
  • A Flow out of the subject leaves from its Endpoints that carry the Message Type; a Flow into the subject lands on its receive Endpoints
  • Emitted Mermaid type: C4Component

Entry Points

Where How
Integration Landscape The page's toolbar button Add C4 Diagrams (Create a C4 Diagram from this Integration Landscape)
New 7.12 BPM view page C4 Dynamic, for the Dynamic diagram only (see BPMs)

Add C4 Diagrams opens the Generate Architecture Diagrams dialog:

  • New 7.12 the shared Diagram Set picker, the same one C4 Dynamic on the BPM page uses. Selected shows your pick. All lists the sets 10 per page, with Filter the result. The Create new set toggle takes a Name and Description instead, and turns into Choose an existing set to go back;
  • Diagram Types: System Landscape ✅ on, New 7.12 Context ✅ on (One System Context per System: the System and the Systems it exchanges messages with. Persons are not generated.), Container ✅ on, Component ☐ off by default, and Dynamic ✅ on.

Click Generate. The action requires you to select or create a Diagram Set before generation starts.

Important

Generating diagrams from Integration Landscape requires Create permission in the C4 Diagram Set permission set, and, like every C4 design action, Create and Modify on Systems, Services, Integrations, and Domains (plus Contracts when Contracts are on). The rights are checked before a new set is made, and a refusal names each missing right. See Permission Set for C4 Diagram Sets and Role-Based Access for C4 Diagram Sets.

Consecutive Runs: Append and Update

The generator supports re-running against the same Diagram Set safely.

Situation Behavior
First run, no generated diagrams in the set Full creation: all diagrams created from scratch
Consecutive run Every stored Flow is kept; Flows are added only between node pairs where at least one node is new. Manual layout positions are preserved, and so is an Architectural Scope you picked on the System Landscape or Dynamic diagram
A Flow you deleted Never comes back
A new relation between nodes already on the diagram Not added on a re-run: add it in the Designer, or generate into a fresh set
New 7.12 The set already holds an Active diagram of the same type, scope, and subject that the generator didn't make (imported or hand-made) The generator keeps it and makes no Draft beside it; its summary row says Kept. Applies to L0, L1, L2, and L3, never to the Dynamic

So generating after you import a System's L1 and L2 and a Service's L3 adds only the missing diagrams.

Relationship to Import

Generate from Integration Landscape and Import are independent pipelines. They operate on different sources and produce different outputs.

Import accepts text. It is the right tool when you have existing C4 markup from another tool or when you want to author diagrams manually in Mermaid.

Generate from IL accepts Repository entities. It is the right tool when you want to automatically project your Integration Landscape into a structured C4 Diagram Set.

When you re-import Mermaid markup exported from a generated diagram, the boundaries resolve by kind: a System_Boundary to a System (on an L2 it is the subject and follows the scope), a Container_Boundary to a Service or Contract, and generic and Enterprise boundaries to Domains. The Message Types come back through the text after / in each technology.

Generation Summary

After a successful run the generator shows Diagrams generated successfully for <Integration> and:

  • the counters Created, Updated, and New 7.12 Kept;
  • a table with the columns Diagram, Level, and Status, one row per diagram. The Status is Created, Updated, or Kept; a Kept row has a lock icon with the tooltip The set already has an Active diagram of this scope that the generator didn't make; it was left as it is and no Draft was made beside it. Each diagram name is a link that opens the diagram in a new tab;
  • the note Navigation between these diagrams is inferred from their scope, subject and bindings when they open; no links need to be created.

The only button is Close. On a first run for the Order-to-Cash demo with the defaults, all 10 diagrams have the status Created; on a consecutive run, the existing ones are Updated.

Next Steps