forked from idmitrievmsk/C4Templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
C4_Colored_v1.puml
167 lines (129 loc) · 9.91 KB
/
C4_Colored_v1.puml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
@startuml
!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Deployment.puml
skinparam wrapWidth 300
skinparam linetype polyline
!$COMPONENT_CREATE_COLOR ?= "#2c890a"
!$COMPONENT_UPDATE_COLOR ?= "#ca9705"
!$COMPONENT_DELETE_COLOR ?= "#a30505"
!$COMPONENT_ORIG_COLOR ?= $COMPONENT_BG_COLOR
!$COMPONENT_EXT_COLOR ?= $EXTERNAL_COMPONENT_BG_COLOR
!procedure LAYOUT_WITH_LEGEND_EXT()
hide stereotype
legend right
|<color:$LEGEND_TITLE_COLOR>**Легенда**</color> |
|<$COMPONENT_CREATE_COLOR> Новый компонент |
|<$COMPONENT_UPDATE_COLOR> Изменяемый компонент |
|<$COMPONENT_DELETE_COLOR> Удаляемый компонент |
|<$COMPONENT_ORIG_COLOR> Компонент без изменений |
|<$COMPONENT_EXT_COLOR> Внешний компонент |
endlegend
!endprocedure
!unquoted procedure NewSystem($alias, $label, $techn="", $descr="", $sprite="", $tags="", $link="")
$getElementLine("rectangle", "new_system", $alias, $label, $techn, $descr, $sprite, $tags, $link)
!endprocedure
!unquoted procedure NewSystemDb($alias, $label, $techn="", $descr="", $sprite="", $tags="", $link="")
$getElementLine("database", "new_system_db", $alias, $label, $techn, $descr, $sprite, $tags, $link)
!endprocedure
!unquoted procedure NewSystemQueue($alias, $label, $techn="", $descr="", $sprite="", $tags="", $link="")
$getElementLine("queue", "new_system_queue", $alias, $label, $techn, $descr, $sprite, $tags, $link)
!endprocedure
!unquoted procedure UpdatedSystem($alias, $label, $techn="", $descr="", $sprite="", $tags="", $link="")
$getElementLine("rectangle", "updated_system", $alias, $label, $techn, $descr, $sprite, $tags, $link)
!endprocedure
!unquoted procedure UpdatedSystemDb($alias, $label, $techn="", $descr="", $sprite="", $tags="", $link="")
$getElementLine("database", "updated_system_db", $alias, $label, $techn, $descr, $sprite, $tags, $link)
!endprocedure
!unquoted procedure UpdatedSystemQueue($alias, $label, $techn="", $descr="", $sprite="", $tags="", $link="")
$getElementLine("queue", "updated_system_queue", $alias, $label, $techn, $descr, $sprite, $tags, $link)
!endprocedure
!unquoted procedure DeletedSystem($alias, $label, $techn="", $descr="", $sprite="", $tags="", $link="")
$getElementLine("rectangle", "deleted_system", $alias, $label, $techn, $descr, $sprite, $tags, $link)
!endprocedure
!unquoted procedure DeletedSystemDb($alias, $label, $techn="", $descr="", $sprite="", $tags="", $link="")
$getElementLine("database", "deleted_system_db", $alias, $label, $techn, $descr, $sprite, $tags, $link)
!endprocedure
!unquoted procedure DeletedSystemQueue($alias, $label, $techn="", $descr="", $sprite="", $tags="", $link="")
$getElementLine("queue", "deleted_system_queue", $alias, $label, $techn, $descr, $sprite, $tags, $link)
!endprocedure
!unquoted procedure NewContainer($alias, $label, $techn="", $descr="", $sprite="", $tags="", $link="")
$getElementLine("rectangle", "new_container", $alias, $label, $techn, $descr, $sprite, $tags, $link)
!endprocedure
!unquoted procedure NewContainerDb($alias, $label, $techn="", $descr="", $sprite="", $tags="", $link="")
$getElementLine("database", "new_container_db", $alias, $label, $techn, $descr, $sprite, $tags, $link)
!endprocedure
!unquoted procedure NewContainerQueue($alias, $label, $techn="", $descr="", $sprite="", $tags="", $link="")
$getElementLine("queue", "new_container_queue", $alias, $label, $techn, $descr, $sprite, $tags, $link)
!endprocedure
!unquoted procedure UpdatedContainer($alias, $label, $techn="", $descr="", $sprite="", $tags="", $link="")
$getElementLine("rectangle", "updated_container", $alias, $label, $techn, $descr, $sprite, $tags, $link)
!endprocedure
!unquoted procedure UpdatedContainerDb($alias, $label, $techn="", $descr="", $sprite="", $tags="", $link="")
$getElementLine("database", "updated_container_db", $alias, $label, $techn, $descr, $sprite, $tags, $link)
!endprocedure
!unquoted procedure UpdatedContainerQueue($alias, $label, $techn="", $descr="", $sprite="", $tags="", $link="")
$getElementLine("queue", "updated_container_queue", $alias, $label, $techn, $descr, $sprite, $tags, $link)
!endprocedure
!unquoted procedure DeletedContainer($alias, $label, $techn="", $descr="", $sprite="", $tags="", $link="")
$getElementLine("rectangle", "deleted_container", $alias, $label, $techn, $descr, $sprite, $tags, $link)
!endprocedure
!unquoted procedure DeletedContainerDb($alias, $label, $techn="", $descr="", $sprite="", $tags="", $link="")
$getElementLine("database", "deleted_container_db", $alias, $label, $techn, $descr, $sprite, $tags, $link)
!endprocedure
!unquoted procedure DeletedContainerQueue($alias, $label, $techn="", $descr="", $sprite="", $tags="", $link="")
$getElementLine("queue", "deleted_container_queue", $alias, $label, $techn, $descr, $sprite, $tags, $link)
!endprocedure
!unquoted procedure NewComponent($alias, $label, $techn="", $descr="", $sprite="", $tags="", $link="")
$getElementLine("rectangle", "new_component", $alias, $label, $techn, $descr, $sprite, $tags, $link)
!endprocedure
!unquoted procedure NewComponentDb($alias, $label, $techn="", $descr="", $sprite="", $tags="", $link="")
$getElementLine("database", "new_component_db", $alias, $label, $techn, $descr, $sprite, $tags, $link)
!endprocedure
!unquoted procedure NewComponentQueue($alias, $label, $techn="", $descr="", $sprite="", $tags="", $link="")
$getElementLine("queue", "new_component_queue", $alias, $label, $techn, $descr, $sprite, $tags, $link)
!endprocedure
!unquoted procedure UpdatedComponent($alias, $label, $techn="", $descr="", $sprite="", $tags="", $link="")
$getElementLine("rectangle", "updated_component", $alias, $label, $techn, $descr, $sprite, $tags, $link)
!endprocedure
!unquoted procedure UpdatedComponentDb($alias, $label, $techn="", $descr="", $sprite="", $tags="", $link="")
$getElementLine("database", "updated_component_db", $alias, $label, $techn, $descr, $sprite, $tags, $link)
!endprocedure
!unquoted procedure UpdatedComponentQueue($alias, $label, $techn="", $descr="", $sprite="", $tags="", $link="")
$getElementLine("queue", "updated_component_queue", $alias, $label, $techn, $descr, $sprite, $tags, $link)
!endprocedure
!unquoted procedure DeletedComponent($alias, $label, $techn="", $descr="", $sprite="", $tags="", $link="")
$getElementLine("rectangle", "deleted_component", $alias, $label, $techn, $descr, $sprite, $tags, $link)
!endprocedure
!unquoted procedure DeletedComponentDb($alias, $label, $techn="", $descr="", $sprite="", $tags="", $link="")
$getElementLine("database", "deleted_component_db", $alias, $label, $techn, $descr, $sprite, $tags, $link)
!endprocedure
!unquoted procedure DeletedComponentQueue($alias, $label, $techn="", $descr="", $sprite="", $tags="", $link="")
$getElementLine("queue", "deleted_component_queue", $alias, $label, $techn, $descr, $sprite, $tags, $link)
!endprocedure
UpdateElementStyle("new_system", $COMPONENT_CREATE_COLOR, $COMPONENT_FONT_COLOR, $COMPONENT_BORDER_COLOR)
UpdateElementStyle("new_system_db", $COMPONENT_CREATE_COLOR, $COMPONENT_FONT_COLOR, $COMPONENT_BORDER_COLOR)
UpdateElementStyle("new_system_queue", $COMPONENT_CREATE_COLOR, $COMPONENT_FONT_COLOR, $COMPONENT_BORDER_COLOR)
UpdateElementStyle("updated_system", $COMPONENT_UPDATE_COLOR, $COMPONENT_FONT_COLOR, $COMPONENT_BORDER_COLOR)
UpdateElementStyle("updated_system_db", $COMPONENT_UPDATE_COLOR, $COMPONENT_FONT_COLOR, $COMPONENT_BORDER_COLOR)
UpdateElementStyle("updated_system_queue", $COMPONENT_UPDATE_COLOR, $COMPONENT_FONT_COLOR, $COMPONENT_BORDER_COLOR)
UpdateElementStyle("deleted_system", $COMPONENT_DELETE_COLOR, $COMPONENT_FONT_COLOR, $COMPONENT_BORDER_COLOR)
UpdateElementStyle("deleted_system_db", $COMPONENT_DELETE_COLOR, $COMPONENT_FONT_COLOR, $COMPONENT_BORDER_COLOR)
UpdateElementStyle("deleted_system_queue", $COMPONENT_DELETE_COLOR, $COMPONENT_FONT_COLOR, $COMPONENT_BORDER_COLOR)
UpdateElementStyle("new_container", $COMPONENT_CREATE_COLOR, $COMPONENT_FONT_COLOR, $COMPONENT_BORDER_COLOR)
UpdateElementStyle("new_container_db", $COMPONENT_CREATE_COLOR, $COMPONENT_FONT_COLOR, $COMPONENT_BORDER_COLOR)
UpdateElementStyle("new_container_queue", $COMPONENT_CREATE_COLOR, $COMPONENT_FONT_COLOR, $COMPONENT_BORDER_COLOR)
UpdateElementStyle("updated_container", $COMPONENT_UPDATE_COLOR, $COMPONENT_FONT_COLOR, $COMPONENT_BORDER_COLOR)
UpdateElementStyle("updated_container_db", $COMPONENT_UPDATE_COLOR, $COMPONENT_FONT_COLOR, $COMPONENT_BORDER_COLOR)
UpdateElementStyle("updated_container_queue", $COMPONENT_UPDATE_COLOR, $COMPONENT_FONT_COLOR, $COMPONENT_BORDER_COLOR)
UpdateElementStyle("deleted_container", $COMPONENT_DELETE_COLOR, $COMPONENT_FONT_COLOR, $COMPONENT_BORDER_COLOR)
UpdateElementStyle("deleted_container_db", $COMPONENT_DELETE_COLOR, $COMPONENT_FONT_COLOR, $COMPONENT_BORDER_COLOR)
UpdateElementStyle("deleted_container_queue", $COMPONENT_DELETE_COLOR, $COMPONENT_FONT_COLOR, $COMPONENT_BORDER_COLOR)
UpdateElementStyle("new_component", $COMPONENT_CREATE_COLOR, $COMPONENT_FONT_COLOR, $COMPONENT_BORDER_COLOR)
UpdateElementStyle("new_component_db", $COMPONENT_CREATE_COLOR, $COMPONENT_FONT_COLOR, $COMPONENT_BORDER_COLOR)
UpdateElementStyle("new_component_queue", $COMPONENT_CREATE_COLOR, $COMPONENT_FONT_COLOR, $COMPONENT_BORDER_COLOR)
UpdateElementStyle("updated_component", $COMPONENT_UPDATE_COLOR, $COMPONENT_FONT_COLOR, $COMPONENT_BORDER_COLOR)
UpdateElementStyle("updated_component_db", $COMPONENT_UPDATE_COLOR, $COMPONENT_FONT_COLOR, $COMPONENT_BORDER_COLOR)
UpdateElementStyle("updated_component_queue", $COMPONENT_UPDATE_COLOR, $COMPONENT_FONT_COLOR, $COMPONENT_BORDER_COLOR)
UpdateElementStyle("deleted_component", $COMPONENT_DELETE_COLOR, $COMPONENT_FONT_COLOR, $COMPONENT_BORDER_COLOR)
UpdateElementStyle("deleted_component_db", $COMPONENT_DELETE_COLOR, $COMPONENT_FONT_COLOR, $COMPONENT_BORDER_COLOR)
UpdateElementStyle("deleted_component_queue", $COMPONENT_DELETE_COLOR, $COMPONENT_FONT_COLOR, $COMPONENT_BORDER_COLOR)
@enduml