---
title: L1 System Context Diagram Example | Nodinite C4 Diagrams
description: "L1 System Context example built on the Order-to-Cash demo data: the Portal, its Customer, and ERP as an external System, with Flows that carry O2C Message Types. Copy-paste Mermaid markup, the Scope step, and what each element binds to."
---

# <i class="fal fa-sitemap" aria-hidden="true"></i> L1 System Context Diagram Example

The L1 Context diagram shows **one System**, its **actors** (people), and the **other [Systems][]** it exchanges messages with. It sits one level below the [System Landscape (L0)][L0 Example] and is the most accessible C4 view for non-technical audiences. <sup><span class="nodinite-new-badge">New 7.12</span></sup> An L1 has exactly one System as its [Architectural Scope][Diagram Set Fundamentals], and that System is the diagram's subject.

This page is example 2 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.

![The Order-to-Cash Demo set: Portal — System Context opened with the Person Customer, the System Portal and the external System ERP and their Flows, the pointer on Portal opening its pill popover with Inside and Dynamic, and Inside opening Portal — L2 Container Diagram with Portal's four Services inside its System Boundary and Customer and ERP outside, animated walkthrough (7.12)][Hero]  
*Animated walkthrough: the L1 Context from the markup below, scoped to the **Portal**, and **Inside** to the L2 Container scoped to it.*  

<aside aria-label="Info" class="nodinite-note nodinite-note--info">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-square-info"></i> Info</p>
<div class="nodinite-note__content"><p><strong>To use this example in <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span>,</strong> copy the Mermaid markup below and follow the <a href="https://docs.nodinite.com/repository-model/c4-diagrams/getting-started/import-your-first-c4-diagram/">Import Your First C4 Diagram</a> walkthrough to create a <a href="https://docs.nodinite.com/repository-model/c4-diagrams/features/what-is-a-c4-diagram-set/">C4 Diagram Set</a> and <a href="https://docs.nodinite.com/repository-model/c4-diagrams/features/import/">import</a> the markup. With the O2C demo data, <strong>Portal</strong> and <strong>ERP</strong> bind to their Systems, and <strong>Resolve All</strong> creates the <strong>Customer</strong> as a System with the C4 Type Person.</p></div>
</aside>

## Scope for This Example

| Example | Diagram type to pick in the import | Architectural Scope | Subject | When it is set | Needed before Promote |
|---|---|---|---|---|---|
| Portal — System Context | Context | System **Portal** | (the scope) | in the import wizard's **Scope** step: pick the System; **Next** stays disabled until you do | ✅ Yes |

<sup><span class="nodinite-new-badge">New 7.12</span></sup> The import wizard has a **Scope** step for a Context diagram: pick the System **Portal** there. A scope is always one System and is required before the diagram can be promoted to Active. To change it later, use **Set Architectural Scope** in the Designer.

<aside aria-label="Important" class="nodinite-note nodinite-note--important">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-message-exclamation"></i> Important</p>
<div class="nodinite-note__content"><p>Honor the O2C identities that the <a href="https://docs.nodinite.com/repository-model/bpms/examples/order-to-cash/generate-o2c-demo-data/">O2C demo data generator</a> creates from <a href="https://docs.nodinite.com/core-services/log-event/overview/">Log Events</a>. Do not rename generated Repository entities to make matching easier during import.</p></div>
</aside>

## When to Use

* ✅ Onboarding stakeholders: executives, business analysts, board members  
* ✅ Showing who and what one System talks to before zooming into [L2][L2 Example]  
* ✅ Documenting the System's integrations, with the [Message Types][] they carry  

## Example: Portal — System Context

This example uses the [Order-to-Cash (O2C) demo][O2C Overview] data and puts the **Portal** at the centre. In the demo, the Portal exchanges messages only with the **Customer** and with **ERP**, so ERP is drawn as a `System_Ext` neighbour. <sup><span class="nodinite-new-badge">New 7.12</span></sup> Each relation names the sender's Message Type after the `/` in its technology.

<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
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")
```

</td>
<td>

```text
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")
```

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

## What Each Element Binds To

| Markup element | Macro | Binds to | Status in Review & Resolve |
|---|---|---|---|
| Portal | `System` | The [System][Systems] **Portal**, the diagram's scope | Matched |
| ERP | `System_Ext` | The [System][Systems] **ERP** | Matched |
| Customer | `Person` | A [System][Systems] with the C4 Type Person | New: **Resolve All** creates it |
| `O2C.Forwarding/1.0`, `O2C.Order.Confirmation/1.0`, `O2C.Order.Entry/1.0` | text after the `/` in a `Rel` technology | <sup><span class="nodinite-new-badge">New 7.12</span></sup> The [Message Types][] of exactly that name, in the **Message Type** column | Resolved |
| `HTTPS` | technology without a `/` | The Flow's protocol only | Kept as text |

<sup><span class="nodinite-new-badge">New 7.12</span></sup> The three relations between **Portal** and **ERP** become **one connector with three Flows**, one per relation: Portal sends `O2C.Forwarding/1.0` and `O2C.Order.Confirmation/1.0`, and ERP returns `O2C.Order.Entry/1.0`. See [Drawing Connectors][] for how Flows work.

### Navigation From the L1

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

* **Portal** offers **Inside** (Portal's L2) and **Dynamic** (the Dynamics it takes part in).  
* **ERP** offers **Inside** and **Context** for ERP, once the set holds ERP's L2 and L1.  
* The diagram itself offers **Zoom out** to the L0 that holds Portal.  

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-container-storage" aria-hidden="true"></i> [L2: Container Diagram Example][L2 Example] — Zoom into the Portal  
* <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-upload" aria-hidden="true"></i> [Import Your First C4 Diagram][]  

## <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-globe" aria-hidden="true"></i> [System Landscape Example][L0 Example] — All four O2C Systems in one view  
* <i class="fal fa-diagram-project" aria-hidden="true"></i> [O2C Demo — C4 Architecture Diagrams][O2C C4 Diagrams] — How the O2C log events map to C4 elements  
* <i class="fal fa-compass" aria-hidden="true"></i> [Navigation Between C4 Diagrams][]  
* <i class="fal fa-compass" aria-hidden="true"></i> [What is C4 Diagrams?][What is C4 Diagrams?]  

[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/
[Diagram Set Fundamentals]:https://docs.nodinite.com/repository-model/c4-diagrams/features/diagram-set-fundamentals/
[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/
[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_L1Context.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/
[Import Your First C4 Diagram]:https://docs.nodinite.com/repository-model/c4-diagrams/getting-started/import-your-first-c4-diagram/
[L0 Example]:https://docs.nodinite.com/repository-model/c4-diagrams/getting-started/examples/order-to-cash/system-landscape-diagram-example/
[L2 Example]:https://docs.nodinite.com/repository-model/c4-diagrams/getting-started/examples/order-to-cash/l2-container-diagram-example/
[Log Events]:https://docs.nodinite.com/core-services/log-event/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/
[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/
[What is C4 Diagrams?]:https://docs.nodinite.com/repository-model/c4-diagrams/features/what-is-c4-diagrams/