|
3 | 3 | ' Version |
4 | 4 | '###################################### |
5 | 5 | !function ArchimateVersion() |
6 | | - !$archimateVersion = "3.2.0" |
| 6 | + !$archimateVersion = "3.2.1" |
7 | 7 | !return $archimateVersion |
8 | 8 | !endfunction |
9 | 9 |
|
|
18 | 18 | ' Styling |
19 | 19 | '###################################### |
20 | 20 |
|
21 | | -!global $ARCH_DEBUG ?= false |
22 | | -!global $ARCH_LOCAL ?= false |
| 21 | +!global $ARCH_DEBUG ?= %false() |
| 22 | +!global $ARCH_LOCAL ?= %false() |
23 | 23 |
|
24 | | -!if ($ARCH_LOCAL == true) |
| 24 | +!if ($ARCH_LOCAL == %true()) |
25 | 25 | !include themes/shared_style.puml |
26 | 26 | !else |
27 | 27 | !include <archimate/themes/shared_style> |
28 | 28 | !endif |
29 | 29 |
|
30 | | -!if ($ARCH_DEBUG == true) |
| 30 | +!if ($ARCH_DEBUG == %true()) |
31 | 31 | left header "Created using Archimate.puml version ArchimateVersion()" |
32 | 32 | !endif |
33 | 33 |
|
34 | 34 | ' Layout |
35 | 35 | ' ################################## |
36 | 36 | !procedure LAYOUT_AS_SKETCH() |
37 | | - !option handwritten true |
| 37 | + !option handwritten %true() |
38 | 38 | <style> |
39 | 39 | root { |
40 | 40 | BackgroundColor #EEEBDC |
|
88 | 88 | !unquoted procedure Strategy_CourseOfAction($alias, $label, $nest=0) |
89 | 89 | archimate $ARCH_STRATEGY_FILLCOLOR "$label" <<strategy-courseofaction>> as $alias |
90 | 90 | !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 |
93 | 97 | !endprocedure |
94 | 98 |
|
95 | 99 | 'Business Elements |
96 | | -!unquoted procedure Business_Actor($alias, $label, $nest=0) |
97 | | - archimate $ARCH_BUSINESS_FILLCOLOR "$label" <<business-actor>> as $alias |
98 | | -!endprocedure |
99 | | -!unquoted procedure Business_Role($alias, $label, $nest=0) |
100 | | - archimate $ARCH_BUSINESS_FILLCOLOR "$label" <<business-role>> as $alias |
| 100 | +!unquoted procedure Business_Actor($alias, $label, $nest=0, $special = $ARCH_SPECIAL_SHAPES) |
| 101 | + !if ($special == %true() && $nest == %false()) |
| 102 | + actor "$label" as $alias $ARCH_BUSINESS_FILLCOLOR |
| 103 | + !else |
| 104 | + archimate $ARCH_BUSINESS_FILLCOLOR "$label" <<business-actor>> as $alias |
| 105 | + !endif |
| 106 | +!endprocedure |
| 107 | +!unquoted procedure Business_Role($alias, $label, $nest=0, $special = $ARCH_SPECIAL_SHAPES) |
| 108 | + !if ($special == %true()) |
| 109 | + queue "%n()$label%n()" as $alias $ARCH_BUSINESS_FILLCOLOR |
| 110 | + !else |
| 111 | + archimate $ARCH_BUSINESS_FILLCOLOR "$label" <<business-role>> as $alias |
| 112 | + !endif |
101 | 113 | !endprocedure |
102 | 114 | !unquoted procedure Business_Collaboration($alias, $label, $nest=0) |
103 | 115 | archimate $ARCH_BUSINESS_FILLCOLOR "$label" <<business-collaboration>> as $alias |
|
117 | 129 | !unquoted procedure Business_Event($alias, $label, $nest=0) |
118 | 130 | archimate $ARCH_BUSINESS_FILLCOLOR "$label" <<business-event>> as $alias |
119 | 131 | !endprocedure |
120 | | -!unquoted procedure Business_Service($alias, $label, $nest=0) |
121 | | - archimate $ARCH_BUSINESS_FILLCOLOR "$label" <<business-service>> as $alias |
| 132 | +!unquoted procedure Business_Service($alias, $label, $nest=0, $special = $ARCH_SPECIAL_SHAPES) |
| 133 | + !if ($special == %true() && $nest == %false()) |
| 134 | + rectangle "$label" <<service-special>> as $alias $ARCH_BUSINESS_FILLCOLOR |
| 135 | + !else |
| 136 | + archimate $ARCH_BUSINESS_FILLCOLOR "$label" <<business-service>> as $alias |
| 137 | + !endif |
122 | 138 | !endprocedure |
123 | 139 | !unquoted procedure Business_Object($alias, $label, $nest=0) |
124 | 140 | archimate $ARCH_BUSINESS_FILLCOLOR "$label" <<business-object>> as $alias |
|
129 | 145 | !unquoted procedure Business_Representation($alias, $label, $nest=0) |
130 | 146 | archimate $ARCH_BUSINESS_FILLCOLOR "$label" <<business-representation>> as $alias |
131 | 147 | !endprocedure |
132 | | -!unquoted procedure Business_Product($alias, $label, $nest=0) |
133 | | - 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 |
134 | 154 | !endprocedure |
135 | 155 | !unquoted procedure Business_Location($alias, $label, $nest=0) |
136 | 156 | archimate $ARCH_BUSINESS_FILLCOLOR "$label" <<business-location>> as $alias |
|
158 | 178 | !unquoted procedure Application_Event($alias, $label, $nest=0) |
159 | 179 | archimate $ARCH_APPLICATION_FILLCOLOR "$label" <<application-event>> as $alias |
160 | 180 | !endprocedure |
161 | | -!unquoted procedure Application_Service($alias, $label, $nest=0) |
162 | | - archimate $ARCH_APPLICATION_FILLCOLOR "$label" <<application-service>> as $alias |
| 181 | +!unquoted procedure Application_Service($alias, $label, $nest=0, $special = $ARCH_SPECIAL_SHAPES) |
| 182 | + !if ($special == %true() && $nest == %false()) |
| 183 | + rectangle "$label" <<service-special>> as $alias $ARCH_APPLICATION_FILLCOLOR |
| 184 | + !else |
| 185 | + archimate $ARCH_APPLICATION_FILLCOLOR "$label" <<application-service>> as $alias |
| 186 | + !endif |
163 | 187 | !endprocedure |
164 | 188 | !unquoted procedure Application_DataObject($alias, $label, $nest=0) |
165 | 189 | archimate $ARCH_APPLICATION_FILLCOLOR "$label" <<application-dataobject>> as $alias |
166 | 190 | !endprocedure |
167 | 191 |
|
168 | 192 | 'Technology Elements |
169 | | -!unquoted procedure Technology_Node($alias, $label, $nest=0) |
170 | | - archimate $ARCH_TECHNOLOGY_FILLCOLOR "$label" <<technology-node>> as $alias |
| 193 | +!unquoted procedure Technology_Node($alias, $label, $nest=0, $special = $ARCH_SPECIAL_SHAPES) |
| 194 | + !if ($special == %true()) |
| 195 | + node "$label" as $alias $ARCH_TECHNOLOGY_FILLCOLOR |
| 196 | + !else |
| 197 | + archimate $ARCH_TECHNOLOGY_FILLCOLOR "$label" <<technology-node>> as $alias |
| 198 | + !endif |
171 | 199 | !endprocedure |
172 | 200 | !unquoted procedure Technology_Device($alias, $label, $nest=0) |
173 | 201 | archimate $ARCH_TECHNOLOGY_FILLCOLOR "$label" <<technology-device>> as $alias |
|
199 | 227 | !unquoted procedure Technology_Event($alias, $label, $nest=0) |
200 | 228 | archimate $ARCH_TECHNOLOGY_FILLCOLOR "$label" <<technology-event>> as $alias |
201 | 229 | !endprocedure |
202 | | -!unquoted procedure Technology_Service($alias, $label, $nest=0) |
203 | | - archimate $ARCH_TECHNOLOGY_FILLCOLOR "$label" <<technology-service>> as $alias |
| 230 | +!unquoted procedure Technology_Service($alias, $label, $nest=0, $special = $ARCH_SPECIAL_SHAPES) |
| 231 | + !if ($special == %true() && $nest == %false()) |
| 232 | + rectangle "$label" <<service-special>> as $alias $ARCH_TECHNOLOGY_FILLCOLOR |
| 233 | + !else |
| 234 | + archimate $ARCH_TECHNOLOGY_FILLCOLOR "$label" <<technology-service>> as $alias |
| 235 | + !endif |
204 | 236 | !endprocedure |
205 | | -!unquoted procedure Technology_Artifact($alias, $label, $nest=0) |
206 | | - archimate $ARCH_TECHNOLOGY_FILLCOLOR "$label" <<technology-artifact>> as $alias |
| 237 | +!unquoted procedure Technology_Artifact($alias, $label, $nest=0, $special = $ARCH_SPECIAL_SHAPES) |
| 238 | + !if ($special == %true()) |
| 239 | + file "$label" as $alias $ARCH_TECHNOLOGY_FILLCOLOR |
| 240 | + !else |
| 241 | + archimate $ARCH_TECHNOLOGY_FILLCOLOR "$label" <<technology-artifact>> as $alias |
| 242 | + !endif |
207 | 243 | !endprocedure |
208 | 244 |
|
209 | 245 | 'Physical Elements |
|
221 | 257 | !endprocedure |
222 | 258 |
|
223 | 259 | 'Motivation Elements |
224 | | -!unquoted procedure Motivation_Stakeholder($alias, $label, $nest=0) |
225 | | - archimate $ARCH_MOTIVATION_FILLCOLOR "$label" <<motivation-stakeholder>> as $alias |
| 260 | +!unquoted procedure Motivation_Stakeholder($alias, $label, $nest=0, $special = $ARCH_SPECIAL_SHAPES) |
| 261 | + !if ($special == %true()) |
| 262 | + queue "%n()$label%n()" as $alias $ARCH_MOTIVATION_FILLCOLOR |
| 263 | + !else |
| 264 | + archimate $ARCH_MOTIVATION_FILLCOLOR "$label" <<motivation-stakeholder>> as $alias |
| 265 | + !endif |
226 | 266 | !endprocedure |
227 | 267 | !unquoted procedure Motivation_Driver($alias, $label, $nest=0) |
228 | 268 | archimate $ARCH_MOTIVATION_FILLCOLOR "$label" <<motivation-driver>> as $alias |
|
245 | 285 | !unquoted procedure Motivation_Constraint($alias, $label, $nest=0) |
246 | 286 | archimate $ARCH_MOTIVATION_FILLCOLOR "$label" <<motivation-constraint>> as $alias |
247 | 287 | !endprocedure |
248 | | -!unquoted procedure Motivation_Meaning($alias, $label, $nest=0) |
249 | | - archimate $ARCH_MOTIVATION_FILLCOLOR "$label" <<motivation-meaning>> as $alias |
250 | | -!endprocedure |
251 | | -!unquoted procedure Motivation_Value($alias, $label, $nest=0) |
252 | | - archimate $ARCH_MOTIVATION_FILLCOLOR "$label" <<motivation-value>> as $alias |
| 288 | +!unquoted procedure Motivation_Meaning($alias, $label, $nest=0, $special = $ARCH_SPECIAL_SHAPES) |
| 289 | + !if ($special == %true()) |
| 290 | + cloud "$label" as $alias $ARCH_MOTIVATION_FILLCOLOR |
| 291 | + !else |
| 292 | + archimate $ARCH_MOTIVATION_FILLCOLOR "$label" <<motivation-meaning>> as $alias |
| 293 | + !endif |
| 294 | +!endprocedure |
| 295 | +!unquoted procedure Motivation_Value($alias, $label, $nest=0, $special = $ARCH_SPECIAL_SHAPES) |
| 296 | + !if ($special == %true() && $nest == %false()) |
| 297 | + usecase "%n()$label%n()" as $alias $ARCH_MOTIVATION_FILLCOLOR |
| 298 | + !else |
| 299 | + archimate $ARCH_MOTIVATION_FILLCOLOR "$label" <<motivation-value>> as $alias |
| 300 | + !endif |
253 | 301 | !endprocedure |
254 | 302 |
|
255 | 303 | 'Implementation Elements |
|
0 commit comments