ArchiMate elements and relationships

ArchiMate elements and relationships

puml.online

Introduction

ArchiMate is an enterprise architecture modeling language that splits a system into three layers of elements — business, application, and technology — plus a set of relationship types. PlantUML ships an archimate keyword, so you can declare elements with #Business, #Application, and #Technology and get the standard ArchiMate colours for free. Mermaid has no ArchiMate semantics; it can only approximate the same visual layering with flowchart plus classDef. This post uses the same “customer places an order” scenario to put the two side by side.

PlantUML version

PlantUML pulls in the ArchiMate shape library with !include <archimate/Archimate>, then declares elements with archimate #Layer "Name" as alias. Relationships use ..> (a dashed arrow) for a flow, with the label written in quotes after the colon.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
@startuml
!include <archimate/Archimate>

archimate #Business "Customer" as CUST
archimate #Application "Web Shop" as SHOP
archimate #Application "Order Service" as ORD
archimate #Technology "Database" as DB
archimate #Technology "API Gateway" as GW

CUST ..> SHOP : "uses"
SHOP ..> ORD : "calls"
ORD ..> DB : "reads/writes"
SHOP ..> GW : "protected by"
@enduml

You can also append a stereotype to the element declaration, for example archimate #Application "Web Shop" as SHOP <<application-component>>, to distinguish different element types inside the same layer.

Mermaid version

Mermaid draws the diagram with flowchart and writes a dashed arrow as -. label .->. Layer colours have to be declared manually with classDef, then attached to elements with class elementName layerName.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
flowchart LR
CUST[Customer]
SHOP[Web Shop]
ORD[Order Service]
DB[(Database)]
GW[API Gateway]

CUST -. uses .-> SHOP
SHOP -. calls .-> ORD
ORD -. reads/writes .-> DB
SHOP -. protected by .-> GW

classDef business fill:#C9FFC9,stroke:#181818,color:#181818
classDef application fill:#C2F0FF,stroke:#181818,color:#181818
classDef technology fill:#C9FFC9,stroke:#181818,color:#181818

class CUST business
class SHOP,ORD application
class DB,GW technology

Side-by-side

Aspect PlantUML Mermaid
Element declaration archimate #Application "Order Service" as ORD — one keyword per layer Three manual steps: flowchart + classDef + class
Layer semantics Built-in #Business / #Application / #Technology, ArchiMate colours applied automatically No layer concept; colours are hand-written hex values
Element type Stereotypes such as <<application-component>> No stereotypes; node shapes ([] vs [()]) carry the distinction instead
Relationship direction ..> dashed arrow is the ArchiMate flow -. label .-> is a plain dashed connector; the meaning is left to convention

Wrap-up

If you want to draw a spec-compliant ArchiMate diagram out of the box, the PlantUML archimate keyword saves a lot of work: layers, colours, and stereotypes are all built in. Mermaid wins on portability — it renders almost anywhere Markdown does — and hand-rolled classDef styling gets you a similar look, but that is imitation rather than modelling. When both engines draw the same architecture, the thing that matters most is agreeing on one relationship line style and one labelling convention, so the two diagrams can sit side by side without misleading the reader.

  • Title: ArchiMate elements and relationships
  • Author: puml.online
  • Created at : 2026-10-30 09:00:00
  • Updated at : 2026-11-26 01:07:01
  • Link: https://puml.online/blog/archimate-elements-and-relationships-en/
  • License: This work is licensed under CC BY-NC-SA 4.0.
On this page
ArchiMate elements and relationships