Dynamic Diagram Example
Section titled “ 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 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. See Example C4 Diagrams for an overview of all diagram types and when to use each.
Scope for This Example
Section titled “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 on the BPM page | none (set-wide) | — | never | ❌ No |
New 7.12 A Dynamic has no Architectural Scope 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
Section titled “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
Section titled “Generate the O2C Dynamic From the BPM”New 7.12 The O2C Dynamic isn't imported: it's generated from the BPM INT1337 - Order-to-Cash Flow of the Order-to-Cash demo.
- 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 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).
- Click C4 Dynamic. The dialog Generate C4 Dynamic opens.
- 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.
- 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.

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
Section titled “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.
| Preview | Mermaid Code |
|---|---|
|
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")
|
|
The Seven Steps
Section titled “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
Section titled “The Steps as a Sequence”New 7.12 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.

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
Section titled “Step Resolution and Issues”New 7.12 The Designer's Steps tab checks each step the same way as the grouped Log View runtime diagram. 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
Section titled “Boundaries on a Dynamic”New 7.12 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.

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
Section titled “Import and Round-Trip”You can still 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.

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. New 7.12 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
Section titled “Navigation and Promote”New 7.12 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 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.
Next Steps
Section titled “ Next Steps”- Deployment Diagram Example — Where these Services run
- Build the Order-to-Cash C4 set
- Order-to-Cash C4 Examples
Related Topics
Section titled “ Related Topics”- Example C4 Diagrams — Overview of all diagram types
- L2: Container Diagram Example — The Portal's Services
- Inspect Grouped Log Views as Runtime Diagrams — Investigation-first runtime inspection for related events
- BPM Overview
- What is C4 Diagrams?