ArchiMate elements and relationships
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 | @startuml |
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 | flowchart LR |
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.