Skip to content

Commit aaa04a1

Browse files
author
JeanMarc van Leerdam
committed
Add special shape for Strategy Value Stream
1 parent fe581a9 commit aaa04a1

File tree

4 files changed

+20
-4
lines changed

4 files changed

+20
-4
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ Shapes that support special shapes are:
184184
* Motivation Stakeholder
185185
* Motivation Meaning
186186
* Motivation Value(*)
187+
* Strategy Value Stream
187188

188189
> [!IMPORTANT]
189190
> Note: the special shapes marked with (*) do not support nesting other elements within them, so you need to add a
@@ -196,6 +197,7 @@ Shapes that support special shapes are:
196197
197198
!include <archimate/Archimate>
198199
200+
199201
Motivation_Stakeholder(MS, "Motivation Stakeholder") {
200202
Motivation_Stakeholder(MSI, "Inner Stakeholder", $special=%true())
201203
Motivation_Stakeholder(MSI2, "Another Inner Stakeholder", $special=%false())
@@ -208,6 +210,11 @@ Motivation_Value(MV, "Motivation Value", $nest=%true()) {
208210
Motivation_Value(MVI, "Inner Value", $special=%true())
209211
Motivation_Value(MVI2, "Another Inner Value", $special=%false())
210212
}
213+
Strategy_ValueStream(SV, "Strategy Value Stream", $nest=%true()) {
214+
Strategy_ValueStream(SVI, "Inner Value Stream", $special=%true())
215+
Strategy_ValueStream(SVI2, "Another Inner Value Stream", $special=%false())
216+
}
217+
211218
Business_Actor(BA, "Business Actor", $nest=%true()) {
212219
Business_Actor(BAI, "Inner Actor", $special=%true())
213220
Business_Actor(BAI2, "Another Inner Actor", $special=%false())

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,12 @@
8888
!unquoted procedure Strategy_CourseOfAction($alias, $label, $nest=0)
8989
archimate $ARCH_STRATEGY_FILLCOLOR "$label" <<strategy-courseofaction>> as $alias
9090
!endprocedure
91-
!unquoted procedure Strategy_ValueStream($alias, $label, $nest=0)
92-
archimate $ARCH_STRATEGY_FILLCOLOR "$label" <<strategy-valuestream>> as $alias
91+
!unquoted procedure Strategy_ValueStream($alias, $label, $nest=0, $special = $ARCH_SPECIAL_SHAPES)
92+
!if ($special == %true())
93+
process "$label" as $alias $ARCH_STRATEGY_FILLCOLOR
94+
!else
95+
archimate $ARCH_STRATEGY_FILLCOLOR "$label" <<strategy-valuestream>> as $alias
96+
!endif
9397
!endprocedure
9498

9599
'Business Elements

images/SpecialShapes.png

13.9 KB
Loading

samples/SpecialShapes.puml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ 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+
Strategy_ValueStream(SV, "Strategy Value Stream", $nest=%true()) {
40+
Strategy_ValueStream(SVI, "Inner Value Stream", $special=%true())
41+
Strategy_ValueStream(SVI2, "Another Inner Value Stream", $special=%false())
42+
}
43+
3944
Business_Actor(BA, "Business Actor", $nest=%true()) {
4045
Business_Actor(BAI, "Inner Actor", $special=%true())
4146
Business_Actor(BAI2, "Another Inner Actor", $special=%false())
@@ -56,6 +61,6 @@ Technology_Artifact(TA, "Technology Artifact") {
5661

5762
MS -[hidden]- BA
5863
MM -[hidden]- BS
59-
MM -[hidden]- TN
60-
MV -[hidden]- TA
64+
MV -[hidden]- TN
65+
SV -[hidden]- TA
6166
@enduml

0 commit comments

Comments
 (0)