---
title: Drawing Connectors – C4 Designer | Nodinite
description: Learn how to draw connections between elements in the C4 Designer — using port handles, C4 validation rules per diagram level, choosing connector types (including numbered steps for Dynamic diagrams), setting display names and protocols per flow, and inspecting connectors in View mode.
---

# :fa-arrow-right-arrow-left: Drawing Connectors

Connectors represent the relationships between elements in your architecture — API calls, event streams, database reads, user interactions. In the [C4 Designer][Designer Overview], you draw them by dragging from a port handle on one element to another element.

On static diagrams, one visible connector can carry several **flows**. This keeps the canvas readable when the same two elements exchange multiple business messages or protocols. :new7.12: Each flow has at most one [Message Type][Message Types], so several Message Types between the same two elements are several flows on one connector.

The Designer validates each connection as you draw it, and the server checks the same rules again, so connections that violate the C4 model rules for the current diagram level are never saved (see [Connection Validation Rules](#connection-validation-rules)).

![Draw a valid connector from Customer to Portal, set its Display Name and Protocol, then try a second connector back and see it refused, animated walkthrough (7.13)][1]  
*Animated walkthrough: the port handles on Customer, a valid connector to Portal (Person to [System][Systems] on a Context diagram) with its **Display Name** and **Protocol**, and a second connector Portal → Customer that turns red and is refused: a connector already exists between these nodes. It ends on that message.*  

## :fa-gavel: Why Connections Are Validated

A C4 diagram is only useful when each level stays at its own abstraction. A Person wired straight to a Component on a Context diagram, or two copies of the same relationship, makes the picture lie about the architecture. :Nodinite: therefore treats the connection rules as part of the data model, not as a hint.

## How to Draw a Connector

<div class="mermaid">
graph LR
    A["fa:fa-hand Hover over source node"] --> B["fa:fa-circle Port handles appear on N/E/S/W edges"]
    B --> C["fa:fa-arrow-right Drag from a port handle"]
    C --> D{"fa:fa-circle-check Valid target?"}
    D -->|"Yes"| E["fa:fa-check Release — connector saved,<br/>Connector created. toast"]
    D -->|"No"| F["fa:fa-xmark Red line + tooltip shown"]
    F --> G["fa:fa-ban Release — red message, no connector created"]
    style E fill:#93d16d
    style F fill:#c33d34
    style G fill:#c33d34
</div>

*Diagram: The port-drag workflow for drawing a connector. The Designer validates the target in real time; green marks a created connector, red marks a rejected connection.*

### Step-by-step

1. Optionally, select a connector type in the toolbox's **Connectors** section first (*Select a type, then drag between node ports to connect*). The new connector gets that line style; with no type selected, it is **Synchronous**
2. **Hover** the cursor over the source element — four small circular **port handles** appear on the North, East, South, and West edges of the element
3. **Click and drag** from any port handle — a drag line extends from the port to your cursor
4. **Hover over a target element** — the Designer validates the connection live:
   * Valid target: the drag line stays its default colour
   * Invalid target: the drag line turns red and a tooltip explains why the connection is not allowed
5. **Release the mouse button** over a valid target — the connector is saved at once, a *Connector created.* toast shows, and the canvas reloads. The connector properties do **not** open by themselves
6. **Click the connector line** to open **Connector Properties** and set the **Display Name** and **Protocol** (see [Setting a Label and Protocol](#setting-a-label-and-protocol))

If you release on nothing, or back on the source node, the drag is cancelled silently.

>[!INFO]
>Port handles disappear when the cursor leaves the source element during a drag. If the handles vanish before you reach the target, start the drag again from the source.

## Connection Validation Rules

This section is the one home for the connection rules; other C4 pages link here.

The C4 model defines which connections are meaningful at each diagram level. :Nodinite: enforces these rules: both ends of a connector must be one of the element types allowed for the diagram type.

| Diagram type | Element types a connector may join |
|---|---|
| **L0 System Landscape** | Person, [System][Systems] |
| **L1 Context** | Person, [System][Systems] |
| **L2 Container** | Person, [System][Systems], Container |
| **L3 Component** | Person, [System][Systems], Container, Component |
| **Dynamic** | Person, [System][Systems], Container, Component |
| **Deployment** | Container, Container Instance, Infrastructure Node |

Components on a Dynamic diagram come only from imports, and the Deployment Toolbox has no Container: a Mermaid `Container` on a Deployment diagram is stored as a Container Instance.

On top of the type rules, **duplicate connectors** between the same two nodes, in either direction, are blocked on every diagram type except Dynamic, where each repeated interaction is its own numbered step. The Designer then shows *A connector already exists between these nodes. Edit its Direction property instead.* A connector from a node to itself (a self-link) is rejected by the server; in the Designer, a drop back on the source node is simply ignored, with no message.

### Where the Rules Are Enforced

| Where | What happens |
|---|---|
| **Designer (while you draw)** | The drag line turns red while you hover an invalid target. If you release there, a red toast notification explains why, and no connector is created. |
| **Server ([Web API][])** | The API rejects the same illegal pairings, plus self-links and duplicates, so the rules hold for scripts and other API callers as well as for the Designer. |
| **Existing connectors** | Connectors that already break the rules, for example after an [Import][] or after you change the diagram type, are **not deleted**. The canvas draws them with an invalid style and shows the reason as a tooltip, so you can fix or remove them yourself. |

>[!TIP]
>If a cross-level relationship is what you need, such as a Person calling a Component, the detail usually belongs on another diagram. Dynamic diagrams allow every element type from Person to Component.

### Same-Pair Relationships on Static Diagrams

Every diagram type except Dynamic keeps the canvas compact by allowing **one visible connector per node pair**. If those two elements exchange several named messages, they are managed as **flows** behind that visible line. :new7.12: The System Landscape and Deployment diagrams fold their flows like this too; they used to draw one line per flow.

When you need another flow between the same two elements:

1. Click the existing connector to open **Connector Properties**
2. Under **FLOWS**, click **Add flow** instead of drawing a second overlapping line
3. Give the new flow its own **Display Name**, **Protocol**, **Direction**, and optional Message Type link (**Link a Message Type…**)

A count badge in **Connector Properties** reads *1 flow* or *N flows*. When more than one flow exists, the visible connector label changes from the individual flow name to a count such as `3 flows`.

The Designer still prevents overlapping duplicate lines on the canvas. If what you need is a true two-way interaction rather than several distinct messages, use the **Bidirectional** connector type instead.

:new7.12: Flows are never lost. Regenerating a diagram keeps every stored flow and only adds missing ones, Next layer keeps flows that differ only by Message Type and copies the step order, renumbering Dynamic steps keeps each step's Message Type, and permanently deleting a Message Type unbinds its flows instead of deleting them: they stay on their diagrams without a Message Type.

### Flows in the Mermaid and PlantUML Source

:new7.12: Every export (Mermaid, PlantUML, Structurizr DSL, Draw.io, and the in-app [Mermaid View][]) writes a flow's technology as `protocol / Message Type`, or `/ Message Type` without a protocol. Mermaid and PlantUML fold a node pair into one `Rel` (one way) or one `BiRel` (both ways): the labels and technology items are joined by a semicolon and a space, and on a `BiRel` each technology item is marked `→`, `←`, or `↔` (`-` for none). The [Import][] splits them back into flows and resolves the text after the slash to a Message Type by exact name; no match keeps the text as the protocol and leaves the flow without a Message Type. A relation from another tool (one item, no marker) is one flow. Structurizr DSL and Draw.io write one relation per flow.

## Connector Types

The connector types available in the toolbox depend on the diagram level. Standard diagrams use three relationship types; Dynamic diagrams use a different set built for sequence modelling.

### Standard Connectors (L0–L3 and Deployment)

| Type | Visual | When to use |
|---|---|---|
| :fa-link-simple: **Synchronous** | Solid line, single arrowhead | A caller waits for a response — HTTP calls, gRPC, database queries |
| :fa-right-left: **Bidirectional** | Solid line, double arrowhead | Both parties initiate interactions — two-way sync |
| :fa-link-simple: **Asynchronous** | Dashed line, single arrowhead | Fire-and-forget, event-driven — message queues, pub/sub, SFTP drops |

You choose the connector type when you draw the connection, by selecting its tile in the toolbox's **Connectors** section first; with none selected, a new connector is **Synchronous**. You can change it afterwards with the **Type** switch (**Synchronous** / **Asynchronous** / **Bidirectional**) in **Connector Properties** (see [Editing Elements][]); the switch applies to all the connector's flows. Each flow keeps its own **Direction**.

### Dynamic Connectors (Dynamic Diagrams) {#dynamic-connectors-l4-dynamic-diagrams}

Dynamic diagrams model a runtime interaction sequence. Every connector carries a **step number** that defines its position in the flow, and the toolbox offers three types suited to sequencing:

| Type | Visual | When to use |
|---|---|---|
| :fa-list-ol: **Numbered Step** | Solid line, single arrowhead + step badge | A synchronous call where the caller waits — e.g. "1. Submit order" |
| :fa-list-ol: **Numbered Step (Async)** | Dashed line, single arrowhead + step badge | An async or fire-and-forget delivery — e.g. "3. Enqueue shipment notice" |
| :fa-reply: **Return / Callback** | Solid line, reversed direction arrow | The response flowing back — shows the return journey of an earlier step |

When you draw a Numbered Step or Numbered Step (Async) connector, the **step number is assigned automatically** as the next integer after the highest existing step in the diagram. You can change it using the **Step** field in the connector's properties (*Order in the dynamic interaction sequence.*, see [Editing Elements][]) — all other steps renumber automatically to keep the sequence gapless, and each step keeps its Message Type. The same panel has a **Style** switch, **Solid** or **Dashed**.

![A Dynamic diagram with three numbered steps, each with its Message Type: step 3 becomes the first step, the other steps move down one, and a renumbered step's Connector Properties still shows its Message Type O2C.Order.Scheduled/1.0, animated walkthrough (7.13)][2]  
*Animated walkthrough: renumber a step, and every step keeps its Message Type.*  

:new7.12: A Dynamic doesn't have to be drawn by hand. **C4 Dynamic** on a [BPM][BPMs]'s view page, and the [Integration Landscape][] generator ([Generate from Integration Landscape][]), make one: one System Boundary per owning System, each step carrying its sender's Message Types. A generated Dynamic reads in **step order**: the participants and owner boundaries are placed in the order the steps first reach them (in the Order-to-Cash Dynamic: Portal, ERP, WMS, ERP-Finance). That applies to a new diagram; a re-run keeps where you placed things.

>[!INFO]
>Dynamic diagrams do **not** collapse repeated interactions into flows on one connector. Each step stays as its own explicit connector in the runtime sequence.

## Setting a Label and Protocol

Every connector should carry a label — the flow's **Display Name** (what the relationship does) — and a **protocol** (how it is implemented). These display directly on the connector line in the diagram.

After drawing a connector, click its line to open **Connector Properties**. On every static diagram type, a new connector starts with one flow. If you later add more flows between the same two elements, you edit the display name and protocol **per flow** rather than on the connector as a whole.

The **Connector Properties** panel holds:

* the **Type** switch (**Synchronous** / **Asynchronous** / **Bidirectional**), which applies to all the connector's flows;
* the **FLOWS** list with **Add flow** and a *1 flow* / *N flows* count badge;
* per flow: **Display Name**, **Protocol**, **Direction**, and **Message Type** (**Link a Message Type…**);
* **Delete Connector**.

| Field | Example values | Description |
|---|---|---|
| **Display Name** | "Sends purchase orders", "Queries inventory" | Describes what the relationship does |
| **Protocol** | `HTTP`, `HTTPS`, `gRPC`, `AMQP`, `MQTT`, `SFTP`, `REST`, `SOAP` | The technical protocol — the field offers suggested values but accepts any text |

Both fields save automatically as you type (with a short debounce delay). There is no Save button.

When a static connector shows `N flows`, each flow keeps its own **Display Name**, **Protocol**, **Direction**, and optional **Message Type** link. Exports write each flow's technology as `protocol / Message Type` (see [Flows in the Mermaid and PlantUML Source](#flows-in-the-mermaid-and-plantuml-source)).

## Connector Direction

The **Direction** dropdown controls the visual routing of the connector arrow on the canvas. This is a layout hint, not a data-model change:

| Direction value | Meaning |
|---|---|
| Auto | :Nodinite: chooses the best routing based on node positions |
| Forward | Left to right |
| Down | Top to bottom |
| Up | Bottom to top |
| Left | Right to left |
| Back | Opposite of the natural direction |
| Neighbor | Short routing for adjacent elements |

When [UseContracts][UseContracts] is enabled and the edited flow is bound to a [Contract][Contracts] (see [Repository Bindings][]), direction handling follows contract semantics. The UI avoids the full service-oriented direction list for that path and applies the agreed outbound-initiating behavior.

## Steps Panel (Dynamic Diagrams)

When editing a Dynamic diagram, the **Steps** panel on the right edge of the canvas gives you a scrollable list of every numbered connector in step order. It is the quickest way to review the full interaction sequence, check step labels, or reorder steps — without hunting for individual connector lines on the canvas.

### Opening and pinning the panel {#opening-pinning-and-detaching-the-panel}

* **Hover** over the **STEPS** tab on the right edge of the canvas to expand the panel temporarily.
* Click the **pin** icon (:fa-thumbtack:) to keep the panel open while you work. The pinned state is remembered the next time you open the diagram.
* Click **Renumber steps** in the panel header (Designer only) to renumber all steps in one go. It asks for confirmation first: *This is a one-way operation and cannot be undone.*

The panel stays docked on the right edge of the canvas; its header holds **Renumber steps**, the pin, and close. The **View** page of a Dynamic has the same panel without **Renumber steps**.

### What the panel shows

Each entry in the list displays:

* The **step number**
* The connector **label**
* The **source → target** relationship names
* :new7.12: Its resolution line, or *n issues*, with the reasons on the selected step

### Step resolution and issues

:new7.12: Each step resolves the same way as a [grouped Log View's runtime diagram][Inspect Grouped Log Views as Runtime Diagrams]. A Service or Contract end resolves when one of its [Transport Contracts][] carries the step's Message Type (a Contract when exactly one does). Persons and external Systems start and end a sequence. An **issue** is an internal System participant, an unbound or Component participant, or a Message Type that no Transport Contract of the step's ends carries. Issues are shown, never refused. A step without a Message Type has nothing to check.

When a step has issues, the **Steps** tab shows a red **Issues** count badge (*n step issue(s): see the Steps panel*), and the panel shows the banner *Issues: n. Steps resolve through the Transport Contracts of their Services and Contracts.*

![Two Active Dynamic diagrams for ERP: the Steps panel resolves each step through the Transport Contract that carries its Message Type, steps 2 and 3 have one issue each, an internal System participant and a Message Type no Transport Contract carries, and the Designer lists the same issues, animated walkthrough (7.13)][3]  
*Animated walkthrough: open the **Steps** panel, see how each step resolves, and select a step to read its issue.*  

### Editing steps inline

You can edit a step's number or label directly in the Steps panel without clicking the connector on the canvas:

1. Click the **step number** or **label** field for the step you want to change
2. Type the new value
3. Press **Enter** or click elsewhere: it saves at once, and sibling steps renumber if needed to keep the sequence gapless. A small check mark (*Saved*) confirms it; *Error* shows when the save failed

>[!INFO]
>Changing a step number does not delete or reorder the connector on the canvas — only the numeric label changes, and the surrounding steps adjust accordingly.

## Connector Label and Protocol Visibility

Two toggle buttons in the canvas toolbar control what text appears on connector lines across the whole diagram:

| Toggle | Default state | Effect when active |
|---|---|---|
| **Label** | On | Displays the connector's label at the midpoint of each line |
| **Protocol** | Off | Displays the protocol text directly beneath the label |

Clicking a toggle immediately refreshes all connectors — no page reload needed. The toggles are available in both the Designer and the View page (in View mode, they appear only when the **Interactive** view is active, not in Mermaid view).

>[!INFO]
>Regardless of toggle state, hovering over any connector line always shows a tooltip with the label and protocol together — so the information is never completely hidden from view.

## Inspecting Connectors (View Mode)

You do not need to open the Designer to inspect a connector. In the **View** page with **Interactive** mode active, clicking any connector line opens a read-only **Connector Inspector popover** showing:

| Field | What it shows |
|---|---|
| Source → Target | The two element names with a directional arrow |
| Flow list | One row per flow when the connector groups several flows |
| Label | What the relationship does (the flow's Display Name) for the selected flow or single-flow connector |
| Protocol and style | How the flow is implemented, including whether it is solid or dashed |
| Message Type | The linked Message Type, if the flow is bound |
| Direction | The routing hint used on the canvas |

Linked flows expose **Open Message Type** and, when the user has permission, **Edit Message Type** actions. Unlinked flows remain read-only in View mode and guide the user back to the Designer for linking work.

The popover also includes a **Highlight** button. Clicking it draws a red highlight on that connector — useful when presenting the diagram to an audience and you want to draw attention to a specific call or flow.

Click anywhere else on the canvas to dismiss the popover.

>[!INFO]
>The View mode Inspector is read-only. To edit a connector's display name, protocol, direction, or step number, switch to the Designer page.

## Deleting a Connector

Click the connector line to open **Connector Properties**.

* To remove the whole connector, with all its flows, click **Delete Connector**.
* For a static connector with several flows, remove the specific flow you no longer need. When the last flow is removed, the visible connector disappears from the canvas.

## Frequently Asked Questions

### I cannot see the port handles when hovering

Port handles only appear in **edit mode** (Draft state). If the diagram is Active, switch to Draft first by clicking **Create Draft** in the read-only banner above the canvas (needs Create permission; same as **Clone as Draft**). See [Navigating the Canvas][].

### My drag line turns red while hovering over a target

Two reasons cause the drag line to turn red:

1. **Incompatible element types** — the source or target type is not allowed at this diagram level. Check the [validation rules](#connection-validation-rules) table. If you intended a cross-level relationship, consider whether the detail belongs in a different diagram type (for example, a Dynamic diagram allows Person, System, Container, and Component).
2. **Existing visible connector** — on every diagram type except Dynamic there is already a connector between these two nodes. The Designer shows *A connector already exists between these nodes. Edit its Direction property instead.* Open the existing connector and click **Add flow** instead of drawing a second overlapping line. If the relationship is really two-way, use the **Bidirectional** connector type or change the **Direction** property on the existing connector.

### Can I have multiple connectors between the same two elements?

Yes, but on static diagrams they are managed as **several flows behind one visible connector**, not as overlapping lines on the canvas. Open the existing connector and click **Add flow** for each additional flow you want to document. In Dynamic diagrams, repeated interactions are modelled as separate numbered steps because the sequence itself matters.

### Why does my connector say `3 flows` instead of the message name?

That label means the visible connector contains several **flows** between the same two elements. :Nodinite: collapses them into one canvas line to reduce clutter. Open the connector to review each flow individually and see which ones are linked to a **Message Type**.

### How do I reorder steps in a Dynamic diagram?

Change the **Step** on the connector you want to move — either by clicking the connector line to open its properties (see [Editing Elements][]), or inline in the **Steps** panel on the right edge of the canvas. All other connectors in the diagram renumber automatically to keep the sequence gapless.

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

* :fa-sliders: [Editing Elements – Node, Connector, and Boundary Properties][Editing Elements]  
* :fa-link: [Repository Bindings][]  

## :fa-link-horizontal: Related Topics

* :fa-pen-ruler: [C4 Designer Overview][Designer Overview]  
* :fa-diagram-project: [Building a Diagram][]  
* :fa-shapes: [Shapes and Toolbox Reference][Shapes and Toolbox]  
* :fa-code: [Mermaid View – How Connectors Appear in Markup][Mermaid View]  
* :fa-envelope: [Message Types in the Repository][Message Types]  
* :fa-keyboard: [Keyboard Shortcuts Reference][Keyboard Shortcuts]  

[1]:{ndm}/Documentation%20Pictures/IM/WebClient/Repository/C4/Diagram/C4_Connector.gif
[2]:{ndm}/Documentation%20Pictures/IM/WebClient/Repository/C4/Diagram/C4_RenumberStepsKeepsMessageTypes.gif
[3]:{ndm}/Documentation%20Pictures/IM/WebClient/Repository/C4/Diagram/C4Dynamic_StepIssues.gif

[BPMs]:{ndr}/Repository%20Model/BPMs/Overview.md
[Building a Diagram]:{ndr}/Repository%20Model/C4%20Diagrams/Designer/Building%20a%20Diagram.md
[Contracts]:{ndr}/Getting%20Started/4.%20Repository/Contracts/Overview.md
[Designer Overview]:{ndr}/Repository%20Model/C4%20Diagrams/Designer/Overview.md
[Editing Elements]:{ndr}/Repository%20Model/C4%20Diagrams/Designer/Editing%20Elements.md
[Generate from Integration Landscape]:{ndr}/Repository%20Model/C4%20Diagrams/Features/Generate%20from%20Integration%20Landscape.md
[Import]:{ndr}/Repository%20Model/C4%20Diagrams/Features/Import.md
[Inspect Grouped Log Views as Runtime Diagrams]:{ndr}/Repository%20Model/C4%20Diagrams/Features/Inspect%20Grouped%20Log%20Views%20as%20Runtime%20Diagrams.md
[Integration Landscape]:{ndr}/Getting%20Started/4.%20Repository/Integrations/Integration%20Landscape.md
[Keyboard Shortcuts]:{ndr}/Repository%20Model/C4%20Diagrams/Designer/Reference/Keyboard%20Shortcuts.md
[Mermaid View]:{ndr}/Repository%20Model/C4%20Diagrams/Features/Mermaid%20View.md
[Message Types]:{ndr}/Repository%20Model/Message%20Types/Overview.md
[Navigating the Canvas]:{ndr}/Repository%20Model/C4%20Diagrams/Designer/Navigating%20the%20Canvas.md
[Repository Bindings]:{ndr}/Repository%20Model/C4%20Diagrams/Designer/Repository%20Bindings.md
[Shapes and Toolbox]:{ndr}/Repository%20Model/C4%20Diagrams/Features/Shapes%20and%20Toolbox.md
[Systems]:{ndr}/Repository%20Model/Systems/Overview.md
[Transport Contracts]:{ndr}/Repository%20Model/Services/Overview.md#fa-microchip-transport-contracts-the-heart-of-service-definitions
[UseContracts]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/UseContracts.md
[Web API]:{ndr}/Core%20Services/Web%20API/Overview.md