Skip to content

Commit 89268a8

Browse files
author
JeanMarc van Leerdam
committed
Add special shape for Business Actor
1 parent ff6d90b commit 89268a8

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ top right. Some elements can be shown in a different shape, without the stereoty
174174
you to override the setting for an individual shape.
175175

176176
Shapes that support special shapes are:
177+
* Business Actor(*)
177178
* Business Role
178179
* Business Service(*)
179180
* Application Service(*)
@@ -207,6 +208,10 @@ Motivation_Value(MV, "Motivation Value", $nest=%true()) {
207208
Motivation_Value(MVI, "Inner Value", $special=%true())
208209
Motivation_Value(MVI2, "Another Inner Value", $special=%false())
209210
}
211+
Business_Actor(BA, "Business Actor", $nest=%true()) {
212+
Business_Actor(BAI, "Inner Actor", $special=%true())
213+
Business_Actor(BAI2, "Another Inner Actor", $special=%false())
214+
}
210215
Business_Service(BS, "Business Service", $nest=%true()) {
211216
Business_Service(BSI, "Inner Service", $special=%true())
212217
Business_Service(BSI2, "Another Inner Service", $special=%false())

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,12 @@
9393
!endprocedure
9494

9595
'Business Elements
96-
!unquoted procedure Business_Actor($alias, $label, $nest=0)
97-
archimate $ARCH_BUSINESS_FILLCOLOR "$label" <<business-actor>> as $alias
96+
!unquoted procedure Business_Actor($alias, $label, $nest=0, $special = $ARCH_SPECIAL_SHAPES)
97+
!if ($special == %true() && $nest == %false())
98+
actor "$label" as $alias $ARCH_BUSINESS_FILLCOLOR
99+
!else
100+
archimate $ARCH_BUSINESS_FILLCOLOR "$label" <<business-actor>> as $alias
101+
!endif
98102
!endprocedure
99103
!unquoted procedure Business_Role($alias, $label, $nest=0, $special = $ARCH_SPECIAL_SHAPES)
100104
!if ($special == %true())

samples/SpecialShapes.puml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ Motivation_Value(MV, "Motivation Value", $nest=%true()) {
3636
Motivation_Value(MVI, "Inner Value", $special=%true())
3737
Motivation_Value(MVI2, "Another Inner Value", $special=%false())
3838
}
39+
Business_Actor(BA, "Business Actor", $nest=%true()) {
40+
Business_Actor(BAI, "Inner Actor", $special=%true())
41+
Business_Actor(BAI2, "Another Inner Actor", $special=%false())
42+
}
3943
Business_Service(BS, "Business Service", $nest=%true()) {
4044
Business_Service(BSI, "Inner Service", $special=%true())
4145
Business_Service(BSI2, "Another Inner Service", $special=%false())
@@ -50,7 +54,8 @@ Technology_Artifact(TA, "Technology Artifact") {
5054
Technology_Artifact(TAI2, "Another Inner Artifact", $special=%false())
5155
}
5256

53-
MS -[hidden]- BS
57+
MS -[hidden]- BA
58+
MM -[hidden]- BS
5459
MM -[hidden]- TN
5560
MV -[hidden]- TA
5661
@enduml

0 commit comments

Comments
 (0)