BLUEPRINT · The Solution Architect's Codex
Ch 04 · Modeling Notations
Chapter 04 · The Architect's Notation Toolkit

Modeling Notations — UML, BPMN, ERD, DFD & diagram-as-code

Notations are vocabularies for drawing systems. The professional architect knows half a dozen well enough to pick the right one in the meeting, and knows that every diagram costs maintenance — so most diagrams should never be drawn at all.

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.

NotationOwner / versionBest forFamily
UML 2.5.1OMG, 2017Object-oriented design, sequences, classesVisual / classical
BPMN 2.0OMG, 2011Cross-actor business processesVisual / classical
ArchiMate 3.2The Open Group, 2022Enterprise architecture across layersVisual / classical
DMN 1.4OMG, 2022Decision tables, rule logicVisual / classical
ERD (Chen / Crow's-foot)Chen 1976 / Everest 1976Relational data modelsVisual / classical
DFD (Yourdon/DeMarco)DeMarco 1979Data flows, threat modelling (STRIDE)Visual / classical
IDEF0 / IDEF1XUS Air Force, 1981Function modelling, data modelling (govt/defence)Visual / classical
SysML 1.7OMG, 2022Systems engineering (hardware + software)Visual / classical
MermaidOpen source, ongoingMarkdown-embedded flowcharts, sequencesDiagram-as-code
PlantUMLOpen source, ongoingFull UML in textDiagram-as-code
Structurizr DSLSimon Brown, 2018+C4 model in textDiagram-as-code
D2Terrastruct, 2022General system diagrams, modern aestheticDiagram-as-code
draw.io / diagrams.netJGraph, ongoingGeneral-purpose drawing, Confluence/VS Code integrationVisual
ExcalidrawOpen source, ongoingWhiteboard-style sketches in workshopsVisual

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

FamilyDiagramShows
StructureClassClasses, attributes, operations, relationships
ObjectInstances of classes at a moment in time
ComponentSoftware components and their interfaces
Composite StructureInternal collaboration of classifiers
DeploymentArtefacts mapped onto nodes
PackageLogical grouping of model elements
ProfileUML extension mechanism (stereotypes)
BehaviourActivityControl / data flow, decisions, parallel paths
SequenceTime-ordered message exchange between lifelines
Use CaseActors and the goals they achieve
State MachineObject lifecycle as states + transitions
CommunicationMessage exchange emphasising structure not time
TimingState changes over a time axis
Interaction OverviewActivity-style overview of multiple interactions
Practical subset. In modern practice 80 % of UML use is three diagrams: Sequence (for runtime collaborations), Class (for domain models), and State Machine (for lifecycle-rich entities like orders, claims, workflows).

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 familyExamplesUsed for
Flow objectsEvents (start / intermediate / end), Activities (task, sub-process), Gateways (exclusive, parallel, event-based)The work itself
Connecting objectsSequence flow, message flow, associationHow elements relate
SwimlanesPools (organisation), Lanes (role within pool)Who does what
ArtefactsData object, group, annotationSupplementary 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.

NotationCardinality markerStrength
ChenDiamonds for relationships; labels (1, N, M)Explicit, academic; weak in dense models
Crow's-footLines + tick + crow's foot (one / many, mandatory / optional)Compact, tool-friendly (dbdiagram, DBeaver, ERwin)
IDEF1XFilled / hollow shapes; identifying vs non-identifyingUS 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 formRuleEliminates
1NFAtomic values; one value per cell.Repeating groups
2NF1NF + every non-key attribute depends on the whole key.Partial dependencies
3NF2NF + no transitive dependencies.Transitive dependencies
BCNF3NF + 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.

StakeholderSuggested viewpointShows
Executive sponsorStakeholder / Goal RealisationGoals, drivers, assessments
Business ownerBusiness Process / ProductProcesses, services, products
Application ownerApplication Cooperation / UsageComponents and their collaborations
Ops & SREInfrastructure / DeploymentNodes, devices, networks
Programme managerMigration / Implementation & DeploymentPlateaus, 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.

ToolStrengthWeakness
MermaidRenders natively in GitHub / GitLab / Notion Markdown; tiny syntax.Limited layout control; weak for complex diagrams.
PlantUMLFull UML coverage + ArchiMate + C4 macros; mature.Java dependency; old-school aesthetic.
Structurizr DSLNative C4 model; one DSL renders Context / Container / Component / Deployment.C4-only; learning curve.
D2Modern 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 drawSometimes drawRarely draw
C4 Context (L1)C4 Component (L3) for complex containersUML class diagrams of the whole system
C4 Container (L2)BPMN for workflows that cross departmentsUML object diagrams
Deployment viewERD for new domainsUML communication diagrams
Top-five Dynamic / Sequence scenariosState machine for order / claim / caseUML timing diagrams (outside embedded)
ADR indexDFD for threat-modelled flowsUML composite structure
Heuristic. If you would not notice the diagram going missing for a month, delete it. Maintenance cost is real; reader value is not automatic.
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.

4.10 · Self-check

Q1 · Which UML 2.5.1 diagram is most appropriate for showing a time-ordered exchange of messages between an API, a database, and an external service?
Class diagram
Component diagram
Sequence diagram
Use Case diagram
Q2 · The STRIDE threat-modelling framework is most commonly applied to which notation?
UML class diagram
BPMN process diagram
Data Flow Diagram (DFD)
Crow's-foot ERD