---
title: Dynamic Diagram Example | Nodinite C4 Diagrams
description: "Dynamic C4 diagram example built on the Order-to-Cash demo: generated with C4 Dynamic on the BPM page, the seven business steps run across Portal, ERP, WMS and ERP-Finance, one System Boundary per System, each step carrying its sender's Message Type. The product's Mermaid export, steps, and step resolution."
---

# <i class="fal fa-random" aria-hidden="true"></i> Dynamic Diagram Example

The Dynamic diagram shows how [Services][] and [Systems][] **interact at runtime** for one business scenario: the runtime sequence of numbered steps, and the [Message Type][Message Types] each step carries. Its participants are Services or [Contracts][] (Containers), Persons and external Systems.

This page is example 5 of the six [Order-to-Cash C4 examples][Hub]. See [Example C4 Diagrams][] for an overview of all diagram types and when to use each.

## Scope for This Example

| Example | Diagram type to pick in the import | Architectural Scope | Subject | When it is set | Needed before Promote |
|---|---|---|---|---|---|
| INT1337 - Order-to-Cash Flow — Dynamic | not imported: [C4 Dynamic][C4 Dynamic] on the [BPM][] page | none (set-wide) | — | never | ❌ No |

<sup><span class="nodinite-new-badge">New 7.12</span></sup> A Dynamic has no [Architectural Scope][Diagram Set Fundamentals] or one System, and it can be promoted without one. Unlike the other types, a set may hold several Active Dynamics for the same scope.

## When to Use

* ✅ Documenting and reviewing a specific business workflow end to end  
* ✅ Troubleshooting integration failures: trace where a message flow breaks  
* ✅ Checking that each step's Message Type is carried by the [Transport Contracts][] of its Services  
* ⚠️ Focuses on one scenario at a time, not a complete system overview  

## Generate the O2C Dynamic From the BPM

<sup><span class="nodinite-new-badge">New 7.12</span></sup> The O2C Dynamic isn't imported: it's generated from the BPM *INT1337 - Order-to-Cash Flow* of the [Order-to-Cash demo][O2C Overview].

1. Open the BPM's view page. The toolbar has **C4 Dynamic** (green, shuffle icon) next to **Mapify** and **Mermaid**. It shows for a live BPM when [Mapify][] is licensed and your [Role][Roles] has **Create** on [C4 Diagram Sets][], plus **Create** and **Modify** on Systems, Services, [Integrations][] and [Domains][], and on Contracts when they are in use (see [Permission Set for C4 Diagram Sets][]).
2. Click **C4 Dynamic**. The dialog *Generate C4 Dynamic* opens.
3. Pick the Diagram Set in the shared set picker (**Selected** and **All** tabs, or **Create new set**), here *Order-to-Cash Demo*, and click **Confirm**.
4. The result reads **Generated** in the Diagram Set. The set now holds the Draft *INT1337 - Order-to-Cash Flow — Dynamic*, with no scope.

The generator takes the BPM's Services in phase order (phase, lane, position) as participants, and draws one `System_Boundary` per owning System around them. The steps are the BPM's arrows between two of those Services, plus direct Service relations between them; each step carries its **sender's** Message Types. On a new diagram the participants and boundaries are placed in the order the steps first reach them, so the O2C Dynamic reads Portal, ERP, WMS, ERP-Finance. Click **C4 Dynamic** again to update the same Draft: the result reads **Updated**, no step is added twice, steps you removed don't come back, and the placement you made is kept.

![The BPM INT1337 - Order-to-Cash Flow with C4 Dynamic in its toolbar, the Generate C4 Dynamic dialog with the shared Diagram Set picker (Selected and All tabs, Filter the result, Create new set), the generated Dynamic Draft with one System Boundary per owning System, Portal, ERP, WMS and ERP-Finance, and the BPM's seven business steps numbered in phase order, then C4 Dynamic again into the same set with the result Updated and no step added twice, animated walkthrough (7.12)][3]  
*Animated walkthrough: **C4 Dynamic** on the BPM page, first into a new set, then again into the same set.*  

## Example: INT1337 - Order-to-Cash Flow — Dynamic

The generated diagram has **7 participants** and **7 numbered steps**. Below is the product's own Mermaid export of it, without the `%% nodinite:node` metadata lines that the export writes after each node. Each technology is written as `/` followed by the step's Message Type, because the generated steps have no protocol.

<table>
<tr>
<th><i class="fal fa-eye" aria-hidden="true"></i> Preview</th>
<th><i class="fal fa-code" aria-hidden="true"></i> Mermaid Code</th>
</tr>
<tr>
<td>

```mermaid
C4Dynamic
    title INT1337 - Order-to-Cash Flow — Dynamic
    System_Boundary(sys_179, "Portal") {
    Container(svc_559, "INT1337-RCV-Order-Incoming", "", "Component type: Azure App Service")
    Container(svc_551, "INT1337-SND-Confirm-Outgoing", "", "Component type: Azure App Service")
    }
    System_Boundary(sys_178, "ERP") {
    Container(svc_553, "INT1337-ENT-Order-Entry", "", "Component type: ERP System")
    Container(svc_548, "INT1337-PLN-Order-Scheduled", "", "Component type: ERP System")
    }
    System_Boundary(sys_177, "WMS") {
    Container(svc_549, "INT1337-PKG-Order-Packed", "", "Component type: Warehouse Management System (WMS)")
    Container(svc_546, "INT1337-RCV-Order-Delivered", "", "Component type: Warehouse Management System (WMS)")
    }
    System_Boundary(sys_180, "ERP-Finance") {
    Container(svc_547, "INT1337-INV-Order-Invoiced", "", "Component type: Dynamics 365")
    }
    Rel(svc_559, svc_553, "Order Entry", "/ O2C.Order.Received/1.0")
    Rel(svc_553, svc_551, "Confirmation Sent", "/ O2C.Order.Entry/1.0")
    Rel(svc_553, svc_548, "Order Planned", "/ O2C.Order.Entry/1.0")
    Rel(svc_551, svc_548, "Order Planned", "/ O2C.Order.Confirmation/1.0")
    Rel(svc_548, svc_549, "Ready for Transport", "/ O2C.Order.Scheduled/1.0")
    Rel(svc_549, svc_546, "Order Delivered", "/ O2C.Order.Ready/1.0")
    Rel(svc_546, svc_547, "Order Invoiced", "/ O2C.Order.Delivered/1.0")
```

</td>
<td>

```text
C4Dynamic
title INT1337 - Order-to-Cash Flow — Dynamic
System_Boundary(sys_179, "Portal") {
Container(svc_559, "INT1337-RCV-Order-Incoming", "", "Component type: Azure App Service")
Container(svc_551, "INT1337-SND-Confirm-Outgoing", "", "Component type: Azure App Service")
}
System_Boundary(sys_178, "ERP") {
Container(svc_553, "INT1337-ENT-Order-Entry", "", "Component type: ERP System")
Container(svc_548, "INT1337-PLN-Order-Scheduled", "", "Component type: ERP System")
}
System_Boundary(sys_177, "WMS") {
Container(svc_549, "INT1337-PKG-Order-Packed", "", "Component type: Warehouse Management System (WMS)")
Container(svc_546, "INT1337-RCV-Order-Delivered", "", "Component type: Warehouse Management System (WMS)")
}
System_Boundary(sys_180, "ERP-Finance") {
Container(svc_547, "INT1337-INV-Order-Invoiced", "", "Component type: Dynamics 365")
}
Rel(svc_559, svc_553, "Order Entry", "/ O2C.Order.Received/1.0")
Rel(svc_553, svc_551, "Confirmation Sent", "/ O2C.Order.Entry/1.0")
Rel(svc_553, svc_548, "Order Planned", "/ O2C.Order.Entry/1.0")
Rel(svc_551, svc_548, "Order Planned", "/ O2C.Order.Confirmation/1.0")
Rel(svc_548, svc_549, "Ready for Transport", "/ O2C.Order.Scheduled/1.0")
Rel(svc_549, svc_546, "Order Delivered", "/ O2C.Order.Ready/1.0")
Rel(svc_546, svc_547, "Order Invoiced", "/ O2C.Order.Delivered/1.0")
```

</td>
</tr>
</table>

## The Seven Steps

| Step | Label | From | To | Message Type (the sender's) |
|---|---|---|---|---|
| 1 | Order Entry | INT1337-RCV-Order-Incoming | INT1337-ENT-Order-Entry | `O2C.Order.Received/1.0` |
| 2 | Confirmation Sent | INT1337-ENT-Order-Entry | INT1337-SND-Confirm-Outgoing | `O2C.Order.Entry/1.0` |
| 3 | Order Planned | INT1337-ENT-Order-Entry | INT1337-PLN-Order-Scheduled | `O2C.Order.Entry/1.0` |
| 4 | Order Planned | INT1337-SND-Confirm-Outgoing | INT1337-PLN-Order-Scheduled | `O2C.Order.Confirmation/1.0` |
| 5 | Ready for Transport | INT1337-PLN-Order-Scheduled | INT1337-PKG-Order-Packed | `O2C.Order.Scheduled/1.0` |
| 6 | Order Delivered | INT1337-PKG-Order-Packed | INT1337-RCV-Order-Delivered | `O2C.Order.Ready/1.0` |
| 7 | Order Invoiced | INT1337-RCV-Order-Delivered | INT1337-INV-Order-Invoiced | `O2C.Order.Delivered/1.0` |

Every participant is a `Container` bound to its Service, and each `System_Boundary` is bound to the System that owns the Services inside it.

### The Steps as a Sequence

<sup><span class="nodinite-new-badge">New 7.12</span></sup> A Dynamic diagram's page has a **Sequence** button next to **Mermaid**; no other diagram type has it. It opens the [Mermaid Rendering][] window with **Sequence** picked: one numbered arrow per step from sender to receiver, in the step order, with the Message Type in brackets, such as *1. Order Entry (O2C.Order.Received/1.0)*. A person is drawn as a stick figure, and the nodes of one boundary stand in one box. Flows without a step number are left out, and a note says how many. A Dynamic without numbered steps shows *No numbered steps: number the Dynamic's Flows in its Steps panel*. You need read access to the Diagram Set.

![The Order-to-Cash Demo set's Dynamic INT1337 - Order-to-Cash Flow — Dynamic, the Sequence button, and the seven steps in one box per System from the diagram's step numbers, animated walkthrough (7.12)][4]  
*Animated walkthrough: the same seven steps as a Mermaid Sequence. The BPM's own **Mermaid** button gives the same Sequence, with a note on its branch.*  

### Step Resolution and Issues

<sup><span class="nodinite-new-badge">New 7.12</span></sup> The Designer's **Steps** tab checks each step the same way as the [grouped Log View runtime diagram][Log Runtime Inspection]. A step resolves when one of the Transport Contracts of its Service or Contract ends carries the step's Message Type. Persons and external Systems may start and end a step. These step issues are shown but never refused:

* an internal System as a participant;
* an unbound participant, or a Component;
* a Message Type that no Transport Contract of the step's ends carries.

The tab shows an **Issues** count badge and a banner, and each step shows its resolution line, or the reasons on the selected step. The O2C Dynamic resolves all seven steps with no issue. See [Drawing Connectors][] for the Steps panel.

### Boundaries on a Dynamic

<sup><span class="nodinite-new-badge">New 7.12</span></sup> A Dynamic holds boundaries. The Toolbox offers **System Boundary**, **Enterprise Boundary** and **Boundary**, and the generators draw one `System_Boundary` per owning System. An imported Dynamic keeps its boundaries, including a `Container_Boundary`, which only an import can add. A binding the rules don't allow is dropped with a warning, and the boundary stays, unbound. The interactive view, the [Mermaid View][] and the Mermaid and PlantUML exports all draw the boundaries.

![The start of the Dynamic example with a Boundary Sales around the Portal side imported: Review and Resolve lists the boundary Sales as a Domain or unbound, Import, the interactive view drawing the Sales boundary around the Portal side, and the Mermaid view drawing the steps and the boundary, animated walkthrough (7.12)][2]  
*Animated walkthrough: a Dynamic diagram imported with a `Boundary` block, from Review & Resolve to the interactive view and the Mermaid view, which both draw the boundary.*  

### Import and Round-Trip

You can still [import][Import] a `C4Dynamic` markup. Numeric step prefixes in relationship labels (for example `1. Submits order`) are read as the step order, and the label is stored without the number. The Mermaid generator writes the steps in that order, and Mermaid numbers them when it draws the diagram, so re-importing the generated markup keeps the order and the labels.

![A Diagram Set's Import: a C4Dynamic markup pasted, its labels starting with the step numbers 1. to 14., Next, Import, the Dynamic diagram opened with 14 participants and 14 steps in the Steps side tab, then the Mermaid view numbering the steps 1 to 14 and the generated Mermaid listing them in the stored order with their technologies, without the numbers, animated walkthrough (7.12)][1]  
*Animated walkthrough: a numbered Dynamic imported in order, its steps in the **Steps** side tab, and the [Mermaid View][] numbering them the same way.*

Each step's technology is written back as the fourth argument of its `Rel` or `Rel_Back`; a step without one keeps the three-argument form. <sup><span class="nodinite-new-badge">New 7.12</span></sup> The text after the `/` in the technology is resolved by exact name to the step's Message Type, and renumbering steps keeps each step's Message Type.

### Navigation and Promote

<sup><span class="nodinite-new-badge">New 7.12</span></sup> The pills are inferred when a diagram opens, inside the set:

* Each participant offers **Owner**: the L2 of its System, such as the [Portal L2][L2 Example] for INT1337-RCV-Order-Incoming.  
* System and Service nodes on the set's other diagrams offer **Dynamic** to this diagram.  

**Promote** of a Dynamic Draft replaces only the diagram it was cloned from; a generated Draft without an origin replaces nothing. See [Navigation Between C4 Diagrams][] and [Diagram Lifecycle][].

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

* <i class="fal fa-server" aria-hidden="true"></i> [Deployment Diagram Example][Deployment Example] — Where these Services run  
* <i class="fal fa-hammer" aria-hidden="true"></i> [Build the Order-to-Cash C4 set][]  
* <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-book" aria-hidden="true"></i> [Example C4 Diagrams][] — Overview of all diagram types  
* <i class="fal fa-container-storage" aria-hidden="true"></i> [L2: Container Diagram Example][L2 Example] — The Portal's Services  
* <i class="fal fa-share-nodes" aria-hidden="true"></i> [Inspect Grouped Log Views as Runtime Diagrams][Log Runtime Inspection] — Investigation-first runtime inspection for related events  
* <i class="fal fa-diagram-project" aria-hidden="true"></i> [BPM Overview][BPM]  
* <i class="fal fa-compass" aria-hidden="true"></i> [What is C4 Diagrams?][What is C4 Diagrams?]  

[1]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/WebClient/Repository/C4/Examples/C4Example_Dynamic.gif
[2]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/WebClient/Repository/C4/Examples/C4Example_DynamicWithBoundary.gif
[3]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/WebClient/Repository/C4/Examples/C4Dynamic_GenerateFromBpm.gif
[4]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/Mapify/Mermaid_Sequence_Dynamic.gif

[BPM]:https://docs.nodinite.com/repository-model/bpms/overview/
[Build the Order-to-Cash C4 set]:https://docs.nodinite.com/repository-model/c4-diagrams/getting-started/examples/order-to-cash/build-the-order-to-cash-c4-set/
[C4 Diagram Sets]:https://docs.nodinite.com/administration/customize/c4-diagram-sets/overview/
[C4 Dynamic]:https://docs.nodinite.com/repository-model/bpms/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/
[Drawing Connectors]:https://docs.nodinite.com/repository-model/c4-diagrams/designer/drawing-connectors/
[Example C4 Diagrams]:https://docs.nodinite.com/repository-model/c4-diagrams/getting-started/example-c4-diagrams/
[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/
[Integrations]:https://docs.nodinite.com/repository-model/integrations/overview/
[L2 Example]:https://docs.nodinite.com/repository-model/c4-diagrams/getting-started/examples/order-to-cash/l2-container-diagram-example/
[Log Runtime Inspection]:https://docs.nodinite.com/repository-model/c4-diagrams/features/inspect-grouped-log-views-as-runtime-diagrams/
[Mapify]:https://docs.nodinite.com/mapify/overview/
[Mermaid Rendering]:https://docs.nodinite.com/mapify/features/mermaid-rendering/
[Mermaid View]:https://docs.nodinite.com/repository-model/c4-diagrams/features/mermaid-view/
[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 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/
[Transport Contracts]:https://docs.nodinite.com/repository-model/services/overview/#fa-microchip-transport-contracts-the-heart-of-service-definitions
[What is C4 Diagrams?]:https://docs.nodinite.com/repository-model/c4-diagrams/features/what-is-c4-diagrams/