Skip to content

Commit ea19fd8

Browse files
author
JeanMarc van Leerdam
committed
Add special shape for Business Product
1 parent aaa04a1 commit ea19fd8

File tree

4 files changed

+21
-6
lines changed

4 files changed

+21
-6
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ Shapes that support special shapes are:
177177
* Business Actor(*)
178178
* Business Role
179179
* Business Service(*)
180+
* Business Product
180181
* Application Service(*)
181182
* Technology Node
182183
* Technology Artifact
@@ -197,7 +198,6 @@ Shapes that support special shapes are:
197198
198199
!include <archimate/Archimate>
199200
200-
201201
Motivation_Stakeholder(MS, "Motivation Stakeholder") {
202202
Motivation_Stakeholder(MSI, "Inner Stakeholder", $special=%true())
203203
Motivation_Stakeholder(MSI2, "Another Inner Stakeholder", $special=%false())
@@ -223,6 +223,11 @@ Business_Service(BS, "Business Service", $nest=%true()) {
223223
Business_Service(BSI, "Inner Service", $special=%true())
224224
Business_Service(BSI2, "Another Inner Service", $special=%false())
225225
}
226+
Business_Product(BP, "Business Product", $nest=%true()) {
227+
Business_Product(BPI, "Inner Product", $special=%true())
228+
Business_Product(BPI2, "Another Inner Product", $special=%false())
229+
}
230+
226231
Technology_Node(TN, "Technology Node"){
227232
Technology_Node(TNI, "Inner Node", $special=%true())
228233
Technology_Node(TNI2, "Another Inner Node", $special=%false())

dist/plantuml-stdlib/stdlib/archimate/Archimate.puml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,12 @@
145145
!unquoted procedure Business_Representation($alias, $label, $nest=0)
146146
archimate $ARCH_BUSINESS_FILLCOLOR "$label" <<business-representation>> as $alias
147147
!endprocedure
148-
!unquoted procedure Business_Product($alias, $label, $nest=0)
149-
archimate $ARCH_BUSINESS_FILLCOLOR "$label" <<business-product>> as $alias
148+
!unquoted procedure Business_Product($alias, $label, $nest=0, $special = $ARCH_SPECIAL_SHAPES)
149+
!if ($special == %true())
150+
frame "%n()$label%n()" as $alias $ARCH_BUSINESS_FILLCOLOR
151+
!else
152+
archimate $ARCH_BUSINESS_FILLCOLOR "$label" <<business-product>> as $alias
153+
!endif
150154
!endprocedure
151155
!unquoted procedure Business_Location($alias, $label, $nest=0)
152156
archimate $ARCH_BUSINESS_FILLCOLOR "$label" <<business-location>> as $alias

images/SpecialShapes.png

13.3 KB
Loading

samples/SpecialShapes.puml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@startuml
22

33
!global $ARCH_DEBUG = %false()
4-
!global $ARCH_LOCAL = %true()
4+
!global $ARCH_LOCAL = %false()
55
!global $ARCH_SPECIAL_SHAPES = %true()
66

77
!if ($ARCH_LOCAL == %false())
@@ -49,6 +49,11 @@ Business_Service(BS, "Business Service", $nest=%true()) {
4949
Business_Service(BSI, "Inner Service", $special=%true())
5050
Business_Service(BSI2, "Another Inner Service", $special=%false())
5151
}
52+
Business_Product(BP, "Business Product", $nest=%true()) {
53+
Business_Product(BPI, "Inner Product", $special=%true())
54+
Business_Product(BPI2, "Another Inner Product", $special=%false())
55+
}
56+
5257
Technology_Node(TN, "Technology Node"){
5358
Technology_Node(TNI, "Inner Node", $special=%true())
5459
Technology_Node(TNI2, "Another Inner Node", $special=%false())
@@ -61,6 +66,7 @@ Technology_Artifact(TA, "Technology Artifact") {
6166

6267
MS -[hidden]- BA
6368
MM -[hidden]- BS
64-
MV -[hidden]- TN
65-
SV -[hidden]- TA
69+
MV -[hidden]- BP
70+
BA -[hidden]- TA
71+
BS -[hidden]- TN
6672
@enduml

0 commit comments

Comments
 (0)