4.1 · The notation map
A modelling notation is an agreed graphical or textual vocabulary for expressing systems. Notations divide into visual-classical (drawn in a tool) and diagram-as-code (rendered from text). The professional architect keeps the table below within reach.
| Notation | Owner / version | Best for | Family |
|---|---|---|---|
| UML 2.5.1 | OMG, 2017 | Object-oriented design, sequences, classes | Visual / classical |
| BPMN 2.0 | OMG, 2011 | Cross-actor business processes | Visual / classical |
| ArchiMate 3.2 | The Open Group, 2022 | Enterprise architecture across layers | Visual / classical |
| DMN 1.4 | OMG, 2022 | Decision tables, rule logic | Visual / classical |
| ERD (Chen / Crow's-foot) | Chen 1976 / Everest 1976 | Relational data models | Visual / classical |
| DFD (Yourdon/DeMarco) | DeMarco 1979 | Data flows, threat modelling (STRIDE) | Visual / classical |
| IDEF0 / IDEF1X | US Air Force, 1981 | Function modelling, data modelling (govt/defence) | Visual / classical |
| SysML 1.7 | OMG, 2022 | Systems engineering (hardware + software) | Visual / classical |
| Mermaid | Open source, ongoing | Markdown-embedded flowcharts, sequences | Diagram-as-code |
| PlantUML | Open source, ongoing | Full UML in text | Diagram-as-code |
| Structurizr DSL | Simon Brown, 2018+ | C4 model in text | Diagram-as-code |
| D2 | Terrastruct, 2022 | General system diagrams, modern aesthetic | Diagram-as-code |
| draw.io / diagrams.net | JGraph, ongoing | General-purpose drawing, Confluence/VS Code integration | Visual |
| Excalidraw | Open source, ongoing | Whiteboard-style sketches in workshops | Visual |
4.2 · UML 2.5.1 — fourteen diagrams in two families
The Unified Modeling Language (OMG UML 2.5.1, 2017) defines 14 diagram types split into structure (7) and behaviour (7).
| Family | Diagram | Shows |
|---|---|---|
| Structure | Class | Classes, attributes, operations, relationships |
| Object | Instances of classes at a moment in time | |
| Component | Software components and their interfaces | |
| Composite Structure | Internal collaboration of classifiers | |
| Deployment | Artefacts mapped onto nodes | |
| Package | Logical grouping of model elements | |
| Profile | UML extension mechanism (stereotypes) | |
| Behaviour | Activity | Control / data flow, decisions, parallel paths |
| Sequence | Time-ordered message exchange between lifelines | |
| Use Case | Actors and the goals they achieve | |
| State Machine | Object lifecycle as states + transitions | |
| Communication | Message exchange emphasising structure not time | |
| Timing | State changes over a time axis | |
| Interaction Overview | Activity-style overview of multiple interactions |
4.3 · BPMN 2.0 — modelling business processes
Business Process Model and Notation (OMG BPMN 2.0, 2011) is the standard for cross-actor process modelling. Four element families cover most needs.
| Element family | Examples | Used for |
|---|---|---|
| Flow objects | Events (start / intermediate / end), Activities (task, sub-process), Gateways (exclusive, parallel, event-based) | The work itself |
| Connecting objects | Sequence flow, message flow, association | How elements relate |
| Swimlanes | Pools (organisation), Lanes (role within pool) | Who does what |
| Artefacts | Data object, group, annotation | Supplementary context |
Use BPMN when the audience contains business analysts or operations staff, when the process crosses departmental boundaries, or when you intend to execute the process in a workflow engine (Camunda 8, Flowable, Zeebe). Use UML Activity for developer-facing logic flows.
4.4 · ERD & data modelling
An Entity-Relationship Diagram (ERD) describes the structure of stored data — entities, attributes, relationships, and cardinality. Originated by Peter Chen (1976); the more compact Crow's-foot notation (Gordon Everest, 1976) dominates modern tooling.
| Notation | Cardinality marker | Strength |
|---|---|---|
| Chen | Diamonds for relationships; labels (1, N, M) | Explicit, academic; weak in dense models |
| Crow's-foot | Lines + tick + crow's foot (one / many, mandatory / optional) | Compact, tool-friendly (dbdiagram, DBeaver, ERwin) |
| IDEF1X | Filled / hollow shapes; identifying vs non-identifying | US government / federal standard |
| UML class (data) | Multiplicities (0..1, 1..*, *) | Useful when domain model = data model |
Distinguish three model levels: conceptual (entities only, no attributes, business-readable), logical (entities + attributes + relationships, normalised, no PK/FK choice), physical (tables, columns, types, indexes — the DDL).
| Normal form | Rule | Eliminates |
|---|---|---|
| 1NF | Atomic values; one value per cell. | Repeating groups |
| 2NF | 1NF + every non-key attribute depends on the whole key. | Partial dependencies |
| 3NF | 2NF + no transitive dependencies. | Transitive dependencies |
| BCNF | 3NF + every determinant is a candidate key. | Remaining anomalies |
4.5 · DFD — Data Flow Diagrams & STRIDE
The Yourdon/DeMarco DFD (DeMarco, 1979) uses four element types — processes (circles), data stores (parallel lines), external entities (squares), and data flows (labelled arrows). DFDs are decomposed hierarchically: a level-0 "context diagram" expands into level-1, level-2, etc.
DFDs are the preferred substrate for threat modelling using Microsoft's STRIDE framework (Loren Kohnfelder & Praerit Garg, 1999): for each data flow that crosses a trust boundary, ask whether it is vulnerable to Spoofing, Tampering, Repudiation, Information disclosure, Denial of service, Elevation of privilege. See Ch 12.
4.6 · ArchiMate viewpoints — pick by stakeholder
ArchiMate 3.2 defines ~22 example viewpoints. Selecting the right one means filtering the universe of elements down to a useful subset for one audience.
| Stakeholder | Suggested viewpoint | Shows |
|---|---|---|
| Executive sponsor | Stakeholder / Goal Realisation | Goals, drivers, assessments |
| Business owner | Business Process / Product | Processes, services, products |
| Application owner | Application Cooperation / Usage | Components and their collaborations |
| Ops & SRE | Infrastructure / Deployment | Nodes, devices, networks |
| Programme manager | Migration / Implementation & Deployment | Plateaus, gaps, work packages |
4.7 · Capability maps & value-stream maps
Two business-architecture artefacts deserve their own paragraph because they are routinely misnamed.
- Capability map. A hierarchical, noun-based taxonomy of what a business is able to do (e.g. Customer onboarding, Fraud detection, Settlement) — independent of how. Stable over years; used to align IT investment with business value. Industry reference maps: BIAN (banking), eTOM (telecoms), APQC PCF (cross-industry).
- Value-stream map. An end-to-end, verb-based sequence of activities delivering value to a stakeholder (e.g. quote-to-cash, application-to-decision). Often expressed with VSM lean notation (cycle time, lead time, %-complete-and-accurate). Inputs to capability maps and team topology design.
4.8 · Diagram-as-code — version, review, render
Diagram-as-code stores diagrams in plain text in the same repo as the system they describe. Diffs are reviewable, CI can fail on render errors, and the diagram cannot drift without a commit.
| Tool | Strength | Weakness |
|---|---|---|
| Mermaid | Renders natively in GitHub / GitLab / Notion Markdown; tiny syntax. | Limited layout control; weak for complex diagrams. |
| PlantUML | Full UML coverage + ArchiMate + C4 macros; mature. | Java dependency; old-school aesthetic. |
| Structurizr DSL | Native C4 model; one DSL renders Context / Container / Component / Deployment. | C4-only; learning curve. |
| D2 | Modern aesthetic; readable syntax; supports themes. | Newer (2022); smaller ecosystem. |
| Diagrams (Python) | Cloud-vendor icons (AWS / GCP / Azure) for infra diagrams. | Python runtime; not declarative. |
A trivial Mermaid sequence:
sequenceDiagram
participant U as User
participant API
participant DB
U->>API: POST /orders
API->>DB: INSERT order
DB-->>API: order_id
API-->>U: 201 Created
The same idea in PlantUML:
@startuml
actor User
User -> API : POST /orders
API -> DB : INSERT order
DB --> API : order_id
API --> User : 201 Created
@enduml
4.9 · What to model (and what to skip)
Every diagram you publish is a promise to maintain it. Most projects only need four or five durable diagrams plus ephemeral whiteboards.
| Always draw | Sometimes draw | Rarely draw |
|---|---|---|
| C4 Context (L1) | C4 Component (L3) for complex containers | UML class diagrams of the whole system |
| C4 Container (L2) | BPMN for workflows that cross departments | UML object diagrams |
| Deployment view | ERD for new domains | UML communication diagrams |
| Top-five Dynamic / Sequence scenarios | State machine for order / claim / case | UML timing diagrams (outside embedded) |
| ADR index | DFD for threat-modelled flows | UML composite structure |
Mermaid or PlantUML for a new repo?
Default to Mermaid for anything that renders inside Markdown on GitHub / GitLab / Bitbucket — the zero-tool path wins. Reach for PlantUML when you need full UML semantics (state machines, deployment, advanced sequence) or the C4-PlantUML macros. Use Structurizr DSL when the team genuinely commits to C4 as the primary lens.
Are UML use-case diagrams still relevant?
Marginally. They are useful in early scoping workshops with non-technical stakeholders, where actors-and-goals communicates better than user stories. Beyond that, use-case narratives (text) outperform use-case diagrams (boxes) at almost every later stage.