---
title: Build the Order-to-Cash C4 Diagram Set | Nodinite C4 Diagrams
description: "Build the complete Order-to-Cash Demo C4 Diagram Set in Nodinite: import the taught examples, generate the Dynamic from the BPM, and let Generate from Integration Landscape add the other 19 diagrams. The result is 25 Active diagrams that navigate with zero stored links."
---

# <i class="fal fa-hammer" aria-hidden="true"></i> Build the Order-to-Cash C4 Set

The six [Order-to-Cash C4 examples][Hub] teach one diagram per layer. This page puts them in one [C4 Diagram Set][What is a C4 Diagram Set?] and completes the picture through the product, from the same [Order-to-Cash demo][O2C Overview] data: every [System][Systems] gets its L1 and L2, and every [Service][Services] its L3.

* ✅ One set, *Order-to-Cash Demo*, with **25** Active diagrams  
* ✅ The diagrams you imported are kept; the generator adds only what is missing  
* ✅ Navigation between all 25 works with **zero stored links**  

![The Order-to-Cash Demo set walked with zero stored links: the L0 with the four Systems in their Domains and the three Persons, Portal's pill popover with the headings Inside, Context and Dynamic, Inside to Portal's Containers, Inside on INT1337-RCV-Order-Incoming to its L3 with its Endpoint and neighbouring Services, Zoom out, ERP's Context, and ERP's Dynamic with the seven business steps, each with its sender's Message Type, animated walkthrough (7.12)][Hero]  
*The walk below: every pill on the way is inferred, none is stored.*

## Understanding the Build

<sup><span class="nodinite-new-badge">New 7.12</span></sup> Three of the product's ways to make C4 diagrams work together here: the [Import][] of Mermaid markup, **C4 Dynamic** on a [BPM][BPMs] page, and [Generate from Integration Landscape][] on an [Integration][Integrations]. The generator never makes a Draft beside an Active diagram of the same type, scope and subject that it didn't make, so the imported examples stay as they are.

```mermaid
flowchart LR
    A["fa:fa-folder-plus Create the set<br/>Order-to-Cash Demo"] --> B["fa:fa-random C4 Dynamic<br/>on the BPM page<br/>1 Dynamic"]
    B --> C["fa:fa-file-import Import 5 examples<br/>L0, Portal L1, Portal L2,<br/>L3, Deployment"]
    C --> D["fa:fa-wand-magic-sparkles Generate from<br/>Integration Landscape<br/>19 Created, 3 Kept"]
    D --> E["fa:fa-check 25 Active diagrams<br/>0 stored links"]
    style A fill:#2678BD,color:#fff
    style B fill:#E47528,color:#fff
    style C fill:#E47528,color:#fff
    style D fill:#E47528,color:#fff
    style E fill:#93d16d
```

*The build in four steps: the blue start, the three orange steps that add diagrams, and the green result. See [Import][], [Generate from Integration Landscape][] and [Diagram Lifecycle][] for each step.*

| Source | Diagrams it adds | Count |
|---|---|---|
| [C4 Dynamic][C4 Dynamic from a BPM] on the [BPM][C4 Dynamic from a BPM] *INT1337 - Order-to-Cash Flow* | *INT1337 - Order-to-Cash Flow — Dynamic* | 1 |
| Import of the taught examples | *Order-to-Cash — System Landscape*, *Portal — System Context*, *Portal — L2 Container Diagram*, *INT1337-RCV-Order-Incoming — L3 Component Diagram*, *Order-to-Cash — on servers* | 5 |
| [Generate from Integration Landscape][] on *INT1337 - Order-to-Cash* | The L1 of ERP, WMS and ERP-Finance (*ERP — System Context* and so on), their L2s (*ERP — Containers* and so on), and the L3 of the other 13 Services (*INT1337-ENT-Order-Entry — Components* and so on) | 19 |

The Integration *INT1337 - Order-to-Cash* has **14** Services on four Systems: Portal, ERP, WMS and ERP-Finance. Seven of the Services are the business steps of the BPM, whose four lanes are the four [Domains][] Sales, Planning, Logistics and Finance.

## What You Need

* The [Order-to-Cash demo data][Generate O2C Demo Data] in the Repository, with its names unchanged.
* [Mapify][] licensed: [C4 Diagrams][C4 Overview] and **C4 Dynamic** need it.
* <sup><span class="nodinite-new-badge">New 7.12</span></sup> In your [Role][Roles] (see [Permission Set for C4 Diagram Sets][]):
  * **Create** and **Modify** on C4 Diagram Sets;
  * read on every Repository part the diagrams show: Systems, Services, Integrations, [Message Types][], [Endpoints][] and Domains;
  * **Create** and **Modify** on Systems, Services, Integrations and Domains (and [Contracts][] when they are in use), for **C4 Dynamic**, the generator and Promote, checked before a new set is made;
  * **Create** on Systems, Services and Domains, for the import.

  Without a right, the click answers with an error that names the missing rights.

## Step 1: Create the Set

Create the [Diagram Set][Diagram Set Fundamentals] *Order-to-Cash Demo*, or use an empty set. See [Add or manage C4 Diagram Set][].

## Step 2: Generate the Dynamic From the BPM

1. Open the BPM *INT1337 - Order-to-Cash Flow* and click **C4 Dynamic** in its toolbar.
2. In *Generate C4 Dynamic*, pick the set *Order-to-Cash Demo* and click **Confirm**.

The set gets the Draft *INT1337 - Order-to-Cash Flow — Dynamic*, with 7 steps. See the [Dynamic Diagram Example][Dynamic Example].

## Step 3: Import the Taught Examples

[Import][] the markups of the [System Landscape][L0 Example], the [Portal L1][L1 Example], the [Portal L2][L2 Example], the [L3][L3 Example] and the [Deployment][Deployment Example], each with the diagram type and scope its page names, and click **Resolve All** in **Review & Resolve**. **Resolve All** creates the three Persons, Customer, Warehouse Staff and Finance Officer, as Systems with a C4 Type Person: they aren't part of the demo data. Then **Promote** each Draft to Active.

## Step 4: Generate the Rest From the Integration Landscape

1. Open the Integration *INT1337 - Order-to-Cash*, go to its [Integration Landscape][] tab, and click **Add C4 Diagrams**. The dialog *Generate Architecture Diagrams* opens.
2. In the shared Diagram Set picker, find *Order-to-Cash Demo* on the **All** tab (type part of its name in **Filter the result**) and pick it: it moves to **Selected (1)**.
3. Under the diagram types, tick **Context**, **Container** and **Component**, and clear **System Landscape** and **Dynamic**: the set has both already.
4. Click **Generate**.

The summary reads **19 Created** and **3 Kept**. The imported Portal L1, Portal L2 and INT1337-RCV-Order-Incoming L3 are **Kept**: they are Active diagrams of the same type, scope and subject that the generator didn't make, so it made no Draft beside them. The table below the counters names each diagram with its status, and a note says that navigation is inferred, so no links need to be created. Click **Close**, then **Promote** the 19 Drafts.

![The Generate Architecture Diagrams result on Order-to-Cash Demo: 19 Created, 0 Updated and 3 Kept, and the table of diagrams with their Level and Status, Portal — System Context and Portal — L2 Container Diagram Kept, the generated ERP, WMS and ERP-Finance System Context and Containers diagrams and the Components diagrams Created (7.12)][1]  
*The summary after **Generate**: the generated names end in — System Context, — Containers and — Components, and the imported diagrams keep their own names.*

## The Result

| Layer | Active diagrams | Which |
|---|---|---|
| L0 System Landscape | 1 | The four [Systems][] in their four [Domains][] |
| L1 System Context | 4 | One per [System][Systems] |
| L2 Container | 4 | One per [System][Systems] |
| L3 Component | 14 | One per [Service][Services] |
| Dynamic | 1 | The [BPM's][C4 Dynamic from a BPM] 7 business steps |
| Deployment | 1 | The 14 [Services][] on three servers |
| **Total** | **25** | **0 stored links** |

## Walk the Set

<sup><span class="nodinite-new-badge">New 7.12</span></sup> Every pill is inferred when a diagram opens, from its type, its scope and subject, and each element's binding. Try this walk:

1. On the L0, click **Portal** and follow **Inside**: Portal's L2 opens.
2. On the L2, follow **Inside** on INT1337-RCV-Order-Incoming: its L3 opens.
3. On the L3, follow **Zoom out**: you're back on Portal's L2.
4. On Portal's L2, **ERP** sits outside the System boundary and offers its own diagrams: **Context** (*ERP — System Context*), **Inside** (*ERP — Containers*) and **Dynamic**.
5. Follow **Context** to ERP's L1, then ERP's **Dynamic**: the 7 steps resolve in the **Steps** tab with no issue, each with its sender's Message Type.

See [Navigation Between C4 Diagrams][] for every pill.

## <i class="fal fa-hand-point-right" aria-hidden="true"></i> Next Steps

* <i class="fal fa-compass" aria-hidden="true"></i> [Navigation Between C4 Diagrams][]  
* <i class="fal fa-wand-magic-sparkles" aria-hidden="true"></i> [Generate from Integration Landscape][]  
* <i class="fal fa-book" aria-hidden="true"></i> [Order-to-Cash C4 Examples][Hub]  

## <i class="fal fa-link-horizontal" aria-hidden="true"></i> Related Topics

* <i class="fal fa-globe" aria-hidden="true"></i> [System Landscape Diagram Example][L0 Example]  
* <i class="fal fa-random" aria-hidden="true"></i> [Dynamic Diagram Example][Dynamic Example]  
* <i class="fal fa-diagram-project" aria-hidden="true"></i> [O2C Demo — C4 Architecture Diagrams][O2C C4 Diagrams]  
* <i class="fal fa-diagram-project" aria-hidden="true"></i> [Order-to-Cash Example Overview][O2C Overview]  
* <i class="fal fa-arrows-rotate" aria-hidden="true"></i> [Diagram Lifecycle][]  

[1]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/WebClient/Repository/C4/C4_O2C_GenerateSummary.png

[Add or manage C4 Diagram Set]:https://docs.nodinite.com/repository-model/c4-diagrams/features/add-or-manage-c4-diagram-set/
[BPMs]:https://docs.nodinite.com/repository-model/bpms/overview/
[C4 Dynamic from a BPM]:https://docs.nodinite.com/repository-model/bpms/overview/#fa-shuffle-c4-dynamic-from-a-bpm
[C4 Overview]:https://docs.nodinite.com/repository-model/c4-diagrams/overview/
[Contracts]:https://docs.nodinite.com/getting-started/repository/contracts/overview/
[Deployment Example]:https://docs.nodinite.com/repository-model/c4-diagrams/getting-started/examples/order-to-cash/deployment-diagram-example/
[Diagram Lifecycle]:https://docs.nodinite.com/repository-model/c4-diagrams/designer/diagram-lifecycle/
[Diagram Set Fundamentals]:https://docs.nodinite.com/repository-model/c4-diagrams/features/diagram-set-fundamentals/
[Domains]:https://docs.nodinite.com/repository-model/domains/overview/
[Dynamic Example]:https://docs.nodinite.com/repository-model/c4-diagrams/getting-started/examples/order-to-cash/dynamic-diagram-example/
[Endpoints]:https://docs.nodinite.com/repository-model/endpoints/overview/
[Generate from Integration Landscape]:https://docs.nodinite.com/repository-model/c4-diagrams/features/generate-from-integration-landscape/
[Generate O2C Demo Data]:https://docs.nodinite.com/repository-model/bpms/examples/order-to-cash/generate-o2c-demo-data/
[Hero]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/WebClient/Repository/C4/C4_O2C_ZeroLinkWalk.gif
[Hub]:https://docs.nodinite.com/repository-model/c4-diagrams/getting-started/examples/order-to-cash/overview/
[Import]:https://docs.nodinite.com/repository-model/c4-diagrams/features/import/
[Integration Landscape]:https://docs.nodinite.com/getting-started/repository/integrations/integration-landscape/
[Integrations]:https://docs.nodinite.com/repository-model/integrations/overview/
[L0 Example]:https://docs.nodinite.com/repository-model/c4-diagrams/getting-started/examples/order-to-cash/system-landscape-diagram-example/
[L1 Example]:https://docs.nodinite.com/repository-model/c4-diagrams/getting-started/examples/order-to-cash/l1-context-diagram-example/
[L2 Example]:https://docs.nodinite.com/repository-model/c4-diagrams/getting-started/examples/order-to-cash/l2-container-diagram-example/
[L3 Example]:https://docs.nodinite.com/repository-model/c4-diagrams/getting-started/examples/order-to-cash/l3-component-diagram-example/
[Mapify]:https://docs.nodinite.com/mapify/overview/
[Message Types]:https://docs.nodinite.com/repository-model/message-types/overview/
[Navigation Between C4 Diagrams]:https://docs.nodinite.com/repository-model/c4-diagrams/features/sync/
[O2C C4 Diagrams]:https://docs.nodinite.com/repository-model/bpms/examples/order-to-cash/o2c-c4-diagrams/
[O2C Overview]:https://docs.nodinite.com/repository-model/bpms/examples/order-to-cash/overview/
[Permission Set for C4 Diagram Sets]:https://docs.nodinite.com/administration/access-management/roles/features/permission-set-for-c4-diagram-sets/
[Roles]:https://docs.nodinite.com/administration/access-management/roles/features/what-is-a-role/
[Services]:https://docs.nodinite.com/repository-model/services/overview/
[Systems]:https://docs.nodinite.com/repository-model/systems/overview/
[What is a C4 Diagram Set?]:https://docs.nodinite.com/repository-model/c4-diagrams/features/what-is-a-c4-diagram-set/