---
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."
---

# :fa-sitemap: 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. :new7.12: 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.*  

>[!INFO]
>**To use this example in :Nodinite:,** copy the Mermaid markup below and follow the [Import Your First C4 Diagram][Import Your First C4 Diagram] walkthrough to create a [C4 Diagram Set][What is a C4 Diagram Set?] and [import][Import] the markup. With the O2C demo data, **Portal** and **ERP** bind to their Systems, and **Resolve All** creates the **Customer** as a System with the C4 Type Person.

## 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 |

:new7.12: 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.

>[!IMPORTANT]
>Honor the O2C identities that the [O2C demo data generator][Generate O2C Demo Data] creates from [Log Events][]. Do not rename generated Repository entities to make matching easier during import.

## 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. :new7.12: Each relation names the sender's Message Type after the `/` in its technology.

<table>
<tr>
<th>:fa-eye: Preview</th>
<th>:fa-code: 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 | :new7.12: 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 |

:new7.12: 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

:new7.12: 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.

## :fa-hand-point-right: Next Steps

* :fa-container-storage: [L2: Container Diagram Example][L2 Example] — Zoom into the Portal  
* :fa-hammer: [Build the Order-to-Cash C4 set][]  
* :fa-book: [Order-to-Cash C4 Examples][Hub]  
* :fa-upload: [Import Your First C4 Diagram][]  

## :fa-link-horizontal: Related Topics

* :fa-book: [Example C4 Diagrams][] — Overview of all diagram types  
* :fa-globe: [System Landscape Example][L0 Example] — All four O2C Systems in one view  
* :fa-diagram-project: [O2C Demo — C4 Architecture Diagrams][O2C C4 Diagrams] — How the O2C log events map to C4 elements  
* :fa-compass: [Navigation Between C4 Diagrams][]  
* :fa-compass: [What is C4 Diagrams?][What is C4 Diagrams?]  

[Build the Order-to-Cash C4 set]:{ndr}/Repository%20Model/C4%20Diagrams/Getting%20Started/Examples/Order-to-Cash/Build%20the%20Order-to-Cash%20C4%20set.md
[Diagram Set Fundamentals]:{ndr}/Repository%20Model/C4%20Diagrams/Features/Diagram%20Set%20Fundamentals.md
[Drawing Connectors]:{ndr}/Repository%20Model/C4%20Diagrams/Designer/Drawing%20Connectors.md
[Example C4 Diagrams]:{ndr}/Repository%20Model/C4%20Diagrams/Getting%20Started/Example%20C4%20Diagrams.md
[Generate O2C Demo Data]:{ndr}/Repository%20Model/BPMs/Examples/Order-to-Cash/Generate-O2C-Demo-Data.md
[Hero]:{ndm}/Documentation%20Pictures/IM/WebClient/Repository/C4/C4_O2C_L1Context.gif
[Hub]:{ndr}/Repository%20Model/C4%20Diagrams/Getting%20Started/Examples/Order-to-Cash/Overview.md
[Import]:{ndr}/Repository%20Model/C4%20Diagrams/Features/Import.md
[Import Your First C4 Diagram]:{ndr}/Repository%20Model/C4%20Diagrams/Getting%20Started/Import%20Your%20First%20C4%20Diagram.md
[L0 Example]:{ndr}/Repository%20Model/C4%20Diagrams/Getting%20Started/Examples/Order-to-Cash/System%20Landscape%20Diagram%20Example.md
[L2 Example]:{ndr}/Repository%20Model/C4%20Diagrams/Getting%20Started/Examples/Order-to-Cash/L2%20Container%20Diagram%20Example.md
[Log Events]:{ndr}/Core%20Services/Log%20Event/Overview.md
[Message Types]:{ndr}/Repository%20Model/Message%20Types/Overview.md
[Navigation Between C4 Diagrams]:{ndr}/Repository%20Model/C4%20Diagrams/Features/Sync.md
[O2C C4 Diagrams]:{ndr}/Repository%20Model/BPMs/Examples/Order-to-Cash/O2C-C4-Diagrams.md
[O2C Overview]:{ndr}/Repository%20Model/BPMs/Examples/Order-to-Cash/Overview.md
[Systems]:{ndr}/Repository%20Model/Systems/Overview.md
[What is a C4 Diagram Set?]:{ndr}/Repository%20Model/C4%20Diagrams/Features/What%20is%20a%20C4%20Diagram%20Set.md
[What is C4 Diagrams?]:{ndr}/Repository%20Model/C4%20Diagrams/Features/What%20is%20C4%20Diagrams.md