- Shell 83.6%
- Dockerfile 16.4%
| .devcontainer | ||
| dist | ||
| images | ||
| samples | ||
| scripts | ||
| src/resources | ||
| .gitignore | ||
| Archimate.puml | ||
| CHANGES.md | ||
| Dockerfile | ||
| LICENSE | ||
| README.md | ||
Archimate-PlantUML
Overview
PlantUML macros and includes for creating Archimate Diagrams easily.
Detected project type: Shell.
This repository was migrated from upstream source github.com/shafiqalibhai/Archimate-PlantUML and is preserved here for archival, reference, or continued local development.
At a glance
- Default branch:
master - Visibility: public
- Size: 6.2 MB
- Created: 2026-04-27
- Last updated: 2026-04-27
- Stars / Forks / Open issues: 0 / 0 / 0
- License: MIT
Languages
| Language | Bytes | Share |
|---|---|---|
| Shell | 4,138 bytes | 100.0% |
Repository structure
.devcontainer/dist/images/samples/scripts/src/.gitignore(5,590 B)Archimate.puml(324 B)CHANGES.md(8,715 B)LICENSE(1,067 B)README.md(21,902 B)
Getting started
Clone the repository:
git clone https://forgejo.deployview.com/ssa/Archimate-PlantUML.git
cd Archimate-PlantUML
Installation
git clone https://forgejo.deployview.com/ssa/Archimate-PlantUML.git
cd Archimate-PlantUML
Usage
Refer to the source files in this repository for entry points and intended usage. Update this section with concrete examples once they are established.
Original README
The content below is preserved from the previous README. Headings have been demoted so they don't compete with the new top-level sections.
PlantUML macros and includes for creating Archimate Diagrams easily.
Table of Contents
Background
PlantUML
PlantUML is an open-source project that allows you to create UML diagrams using a simple text language. It utilizes Graphviz for diagram layout, generating images in PNG, SVG, or LaTeX formats.
ArchiMate
ArchiMate is an enterprise architecture modeling language that supports the description, analysis, and visualization of architecture across business domains.
ArchiMate offers a common language for describing the construction and operation of business processes, organizational structures, information flows, IT systems, and technical infrastructure. This is just like an architectural drawing in classical building where the architecture describes the various aspects of the construction and use of a building. This insight helps the different stakeholders to design, assess, and communicate the consequences of decisions and changes within and between these business domains.
Archimate-PlantUML combines the benefits of PlantUML and ArchiMate for providing a simple way of creating and managing ArchiMate diagrams. The Archimate-PlantUML is a set of macros and other includes written on top of PlantUML Archimate specification, with an aim to simplify the syntax for creating elements and defining relationships.
Getting Started
Include the Archimate.puml file in your .puml or .wsd file. There are multiple options, depending on how current you want to be
Using built-in support
' to use the built-in support
!include <archimate/Archimate>
' optionally choose one of the available themes
'!theme archimate-alternate from <archimate/themes>
'!theme archimate-handwriting from <archimate/themes>
'!theme archimate-lowsaturation from <archimate/themes>
'!theme archimate-saturated from <archimate/themes>
'!theme archimate-standard from <archimate/themes>
Using a version available on the internet
You will need to:
- download the latest version of
Archimate.puml, including the themes folder and store them some place locally./dist/plantuml/plantuml-stdlib/stdlib/archimate/Archimate.puml./dist/plantuml/plantuml-stdlib/stdlib/archimate/themes/folder plus files
- Add a
!global $ARCH_LOCAL = %true()to your PlantUML file prior to the include statement
!global $ARCH_LOCAL = %true()
!$LOCAL_FOLDER = "[path to the folder that holds Archimate.puml]"
!include $LOCAL_FOLDER/Archimate.puml
' optionally choose one of the available themes
'!theme archimate-alternate from $LOCAL_FOLDER/themes
'!theme archimate-handwriting from $LOCAL_FOLDER/themes
'!theme archimate-lowsaturation from $LOCAL_FOLDER/themes
'!theme archimate-saturated from $LOCAL_FOLDER/themes
'!theme archimate-standard from $LOCAL_FOLDER/themes
Important
Using
!includeonhttps://raw.githubusercontent.com/plantuml-stdlib/Archimate-PlantUML/master/dist/plantuml-stdlib/stdlib/archimate/Archimate.pumlmay not work, because that file by default relies on the built-in themes, which may not be compatible with the latest version ofArchimate.pumlonmaster.
Usage
After you have included Archimate.puml you can use the defined macros for ArchiMate elements.
ArchiMate Elements
The ArchiMate elements are defined in the following pattern, with two mandatory parameters and two optional parameters:
Category_ElementName(nameOfTheElement, "description", $nest=%false(), $special=$ARCH_SPECIAL_SHAPES)
Nesting and special shapes are explained further down this page.
For example:
- To define a
Stakeholderelement, which is part ofMotivationcategory, the syntax will be
Output:Motivation_Stakeholder(StakeholderElement, "Stakeholder Description")

- To define a
Business Serviceelement,
Output:Business_Service(BService, "Business Service")

ArchiMate Relationships
The ArchiMate relationships are defined with the following pattern:
Rel_RelationType(fromElement, toElement, "description")
and to define the direction / orientation of the two elements:
Rel_RelationType_Direction(fromElement, toElement, "description")
The RelationTypes supported are:
- Access, Access_r, Access_rw, Access_w
- Aggregation
- Assignment
- Association, Association_dir
- Composition
- Flow
- Influence
- Realization
- Serving
- Specialization
- Triggering
The Directions supported are:
- Up
- Down
- Left
- Right
For example:
- To denote a
compositionrelationship between the Stakeholder and Business Service defined above, the syntax will be
Output:Rel_Composition(StakeholderElement, BService, "Description for the relationship")

- To orient the two elements in left-right position, the syntax will be
Output:Rel_Composition_Right(StakeholderElement, BService, "Description for the relationship")

ArchiMate Groups
Groups in ArchiMate are denoted using one of the following 3 possible ways:
Group(nameOfTheGroup, "Group"){
//Define the ArchiMate Elements
}
Grouping(nameOfTheGroup, "Grouping"){
//Define the ArchiMate Elements
}
Other_Grouping(nameOfTheGroup, "Other_Grouping Type"){
//Define the ArchiMate Elements
}
For example
| Group Type | Result |
|---|---|
| Group | ![]() |
| Grouping | ![]() |
| Other_Grouping | ![]() |
Special shapes
By default, all shapes are rectangular (either with sharp, rounded, or beveled corners) and show a stereotype icon in the
top right. Some elements can be shown in a different shape, without the stereotype. This is controlled by setting
$ARCH_SPECIAL_SHAPES to %true() (default is %false()). The supported elements have an optional named parameter that allows
you to override the setting for an individual shape.
Shapes that support special shapes are:
- Business Actor*
- Business Role
- Business Service*
- Business Product
- Application Service*
- Technology Node
- Technology Artifact
- Technology Service*
- Motivation Stakeholder
- Motivation Meaning
- Motivation Value*
- Strategy Value Stream
Important
The special shapes marked with * do not support nesting other elements within them, so you need to add a
$nest=%true()parameter when nesting using these elements with special shapes.
@startuml
!global $ARCH_SPECIAL_SHAPES = %true()
!include <archimate/Archimate>
Motivation_Stakeholder(MS, "Motivation Stakeholder") {
Motivation_Stakeholder(MSI, "Inner Stakeholder", $special=%true())
Motivation_Stakeholder(MSI2, "Another Inner Stakeholder", $special=%false())
}
Motivation_Meaning(MM, "Motivation Meaning") {
Motivation_Meaning(MMI, "Inner Meaning", $special=%true())
Motivation_Meaning(MMI2, "Another Inner Meaning", $special=%false())
}
Motivation_Value(MV, "Motivation Value", $nest=%true()) {
Motivation_Value(MVI, "Inner Value", $special=%true())
Motivation_Value(MVI2, "Another Inner Value", $special=%false())
}
Strategy_ValueStream(SV, "Strategy Value Stream", $nest=%true()) {
Strategy_ValueStream(SVI, "Inner Value Stream", $special=%true())
Strategy_ValueStream(SVI2, "Another Inner Value Stream", $special=%false())
}
Business_Actor(BA, "Business Actor", $nest=%true()) {
Business_Actor(BAI, "Inner Actor", $special=%true())
Business_Actor(BAI2, "Another Inner Actor", $special=%false())
}
Business_Service(BS, "Business Service", $nest=%true()) {
Business_Service(BSI, "Inner Service", $special=%true())
Business_Service(BSI2, "Another Inner Service", $special=%false())
}
Business_Product(BP, "Business Product", $nest=%true()) {
Business_Product(BPI, "Inner Product", $special=%true())
Business_Product(BPI2, "Another Inner Product", $special=%false())
}
Technology_Node(TN, "Technology Node"){
Technology_Node(TNI, "Inner Node", $special=%true())
Technology_Node(TNI2, "Another Inner Node", $special=%false())
}
Technology_Artifact(TA, "Technology Artifact") {
Technology_Artifact(TAI, "Inner Artifact", $special=%true())
Technology_Artifact(TAI2, "Another Inner Artifact", $special=%false())
}
@enduml
Result:
Nesting of Components
Nesting allows grouping components hierarchically, improving diagram clarity. There are no limitations on the number of levels of nesting. The implementation allows nesting of any components inside any other components. When nesting, the element will be displayed in its normal shape, with the archimate archetype on the top right corner.
Nesting is automatic by default, just add the nested elements between curly braces { ... }:
Category_ElementName(nameOfTheElement, "description") {
Category_ElementName(uniqueName, "description)
}
For example:
Business_Product("BusProduct01", "Business Product 01") {
Business_Service("BusService01", "Business Service 01")
Business_Service("BusService02", "Business Service 02")
Business_Service("BusService03", "Business Service 03"){
Business_Function("BusFunction", "Business Function")
}
}
Technology_Node("TechDevice01", "Technology Device 01") {
Technology_Node("TechDevice02", "Technology Device 02")
Technology_Node("TechnDevice03", "Technology Device 03") {
Technology_Node("TechnDevice04", "Technology Device 04")
Technology_Node("TechnDevice05", "Technology Device 05")
}
}
Output:
Nesting with special shapes
Important
As mentioned above, some elements support special shapes. However, when using special shapes, nesting is not always possible using the special shape. This applies to all
Serviceelements, theMotivation_Valueelement, and theBusiness_Actorelement. If you have special shapes active, you have to add a$nest=%true()parameter to these elements to avoid errors or unexpected results.
Theme Support
Theme support is enabled and 5 variations are available. All the themes are based on Archimate specifications.
Theme can be enabled by adding the following line.
!theme [theme-name] from <archimate/themes>
// Example
!theme archimate-saturated from <archimate/themes>
| Theme Name | Preview |
|---|---|
| Default (No line added) | ![]() |
| archimate-standard | ![]() |
| archimate-alternate | ![]() |
| archimate-saturated | ![]() |
| archimate-lowsaturation | ![]() |
| archimate-handwriting | ![]() |
Sequence Diagrams using Archimate elements
Additional support for using ArchiMate elements in sequence diagrams is provided by setting a global variable prior to activating ArchiMate support:
!global $ARCH_SEQUENCE_SUPPORT = %true()
!include <archimate/Archimate>
Alternatively, you can choose to only include the sequence support file directly:
!include <archimate/ArchimateSequenceDiagramSupport>
Both methods define additional procedures that can be used to create participants in sequence diagrams using Archimate elements. For example:
@startuml
!global $ARCH_SEQUENCE_SUPPORT = %true()
!include <archimate/Archimate>
title Archi Print Usage
' Define Elements
$actor("Architect","architect")
$applicationComponent("Archi","archi")
$applicationFunction("Update\nModel","update")
$applicationFunction("Print\nView","print")
$systemSoftware("Windows\nPrint\nService","windowsPrint")
$equipment("Printer", "printer")
' Define Sequence
architect->archi ++
archi->update ++ : Make changes
note right update #FFFFA5: <&document> Not exactly correct!\nBut you get the idea.
return Updated Model
archi ->print ++ : Click print
print -\windowsPrint ++
print –> archi -–: Sent to printer
windowsPrint -> printer ++
return Complete
archi –> architect --
@enduml
Output:
Call the procedure with a label, and if the label is not unique within the diagram also provide an ID to refer to the participant.
$elementType("Label")
$elementType("Label", ID)
The supported elements for sequence diagrams are listed in the table below.
Click to show the table
| Aspect | Type | Procedure |
|---|---|---|
| Application | Component | $applicationComponent |
| Application | Collaboration | $applicationCollaboration |
| Application | Data Object | $dataObject |
| Application | Event | $applicationEvent |
| Application | Function | $applicationFunction |
| Application | Interaction | $applicationInteraction |
| Application | Interface | $applicationInterface |
| Application | Process | $applicationProcess |
| Application | Service | $applicationService |
| Business | Actor | $actor |
| Business | Collaboration | $businessCollaboration |
| Business | Contract | $contract |
| Business | Event | $businessEvent |
| Business | Function | $businessFunction |
| Business | Interaction | $businessInteraction |
| Business | Interface | $businessInterface |
| Business | Object | $businessObject |
| Business | Process | $businessProcess |
| Business | Product | $product |
| Business | Role | $role |
| Business | Service | $businessService |
| Business | Representation | $representation |
| Implementation and Migration | Deliverable | $deliverable |
| Implementation and Migration | Gap | $gap |
| Implementation and Migration | Implementation Event | $implementationEvent |
| Implementation and Migration | Plateau | $plateau |
| Implementation and Migration | Work Package | $workPackage |
| Motivation | Assessment | $assessment |
| Motivation | Constraint | $constraint |
| Motivation | Driver | $driver |
| Motivation | Goal | $goal |
| Motivation | Meaning | $meaning |
| Motivation | Outcome | $outcome |
| Motivation | Principle | $principle |
| Motivation | Requirement | $requirement |
| Motivation | Stakeholder | $stakeholder |
| Motivation | Value | $value |
| Strategy | Capability | $capability |
| Strategy | Course Of Action | $courseOfAction |
| Strategy | Resource | $resource |
| Strategy | Value Stream | $valueStream |
| Technology | Artifact | $artifact |
| Technology | Collaboration | $technologyCollaboration |
| Technology | Communication Network | $communicationNetwork |
| Technology | Device | $device |
| Technology | Event | $technologyEvent |
| Technology | Function | $technologyFunction |
| Technology | Interaction | $technologyInteraction |
| Technology | Interface | $technologyInterface |
| Technology | Node | $node |
| Technology | Path | $path |
| Technology | Process | $technologyProcess |
| Technology | Service | $technologyService |
| Technology | System Software | $systemSoftware |
| Technology - Physical | Distribution Network | $distributionNetwork |
| Technology - Physical | Equipment | $equipment |
| Technology - Physical | Facility | $facility |
| Technology - Physical | Material | $material |
Example
@startuml
!include <archimate/Archimate>
!theme archimate-standard from <archimate/themes>
title Archimate Sample - Requirement & Application Services
'Elements'
Motivation_Requirement(ReqPayrollStandard, "Do Payroll with a standard system")
Motivation_Requirement(ReqBudgetPlanning, "Do budget planning within the ERP system")
Application_Service(ASPayroll,"Payroll Service")
Application_Service(ASBudgetPlanning,"Budget Planning Service")
Application_Component(ACSAPFinanceAccRec, "SAP Finance - Accounts Recievables")
Application_Component(ACSAPHR, "SAP Human Resources")
Application_Component(ACSAPFin, "SAP Finance")
Application_Component(ACSAP,"SAP")
'Relationships'
Rel_Realization_Up(ASPayroll, ReqPayrollStandard)
Rel_Realization_Up(ASBudgetPlanning, ReqBudgetPlanning)
Rel_Realization_Up(ACSAPFinanceAccRec, ASBudgetPlanning)
Rel_Realization_Up(ACSAPHR, ASPayroll)
Rel_Composition_Up(ACSAPFin, ACSAPFinanceAccRec)
Rel_Composition_Up(ACSAP, ACSAPHR)
Rel_Composition_Up(ACSAP, ACSAPFin)
@enduml
Contributing
If you have any ideas, open an issue or fork the repository and submit a pull request.
License
This project is licensed under the MIT License - see the LICENSE file for details
Acknowledgments
- PlantUML Reference Guide - PlantUML Reference Guide
- Archimate 3.1 Specification - Archimate Specifications
- Plant UML Archimate Specifications - for archimate spec in PlantUML
- C4-PlantUML - for inspiration, base structure and scripts idea
- Steven Mileham, for allowing inclusion of his Sequence Diagram support for Archimate elements
Contributing
Contributions are welcome. The typical workflow is:
- Open an issue describing the change you'd like to make.
- Fork the repository (or create a feature branch if you have write access).
- Commit your changes with clear, descriptive messages.
- Open a pull request against the
masterbranch.
Please follow the existing code style and include tests or reproduction steps where relevant.
License
This project is licensed under the MIT license. See the LICENSE file for the full text.
Repository
- Browse: https://forgejo.deployview.com/ssa/Archimate-PlantUML
- Clone (HTTPS):
https://forgejo.deployview.com/ssa/Archimate-PlantUML.git - Clone (SSH):
ssh://git@forgejo.deployview.com:30143/ssa/Archimate-PlantUML.git - Upstream / origin: github.com/shafiqalibhai/Archimate-PlantUML
This README was generated automatically based on repository metadata, contents, and any prior README content. Edit any section above to add project-specific detail.













