-
Notifications
You must be signed in to change notification settings - Fork 0
/
legend.puml
100 lines (89 loc) · 2.41 KB
/
legend.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
@startuml legend
skinparam dummy 0
!global $gitpath ?= "https://raw.githubusercontent.com/JohnLeyva/plantuml-assets/master"
!global $commonincludepath ?= $gitpath
!global $commonincludepath ?= "\code\puml\assets"
!global $this_legend_puml = $commonincludepath + '/legend.puml'
!global $this_style_puml = $commonincludepath + '/style.puml'
!include $this_style_puml
!unquoted procedure $legend_componentExample($type,$description='')
rectangle $type <<$type>> [
$description
]
!endprocedure
!procedure $legend_States_Content()
$legend_componentExample(any)
$legend_componentExample(review)
$legend_componentExample(new)
$legend_componentExample(alt)
$legend_componentExample(wip)
$legend_componentExample(done)
$legend_componentExample(ready)
$legend_componentExample(live)
$legend_componentExample(notouch)
$legend_componentExample(change)
$legend_componentExample(temporary)
$legend_componentExample(remove)
'$legend_componentExample('out-of-scope')
rectangle out_of_scope <<out-of-scope>> [
]
any -> review <<review>>
review -> new <<new>>
new -> alt <<alt>>
alt -> wip <<wip>>
wip -> ready <<ready>>
ready -> done <<done>>
done -> live <<live>>
live -> notouch <<notouch>>
notouch -> change <<change>>
change -> temporary <<temporary>>
temporary -> remove <<remove>>
remove -> out_of_scope <<out-of-scope>>
!endprocedure
!procedure $legend_Arrows_Content()
rectangle A
rectangle B
rectangle C
rectangle D
rectangle E
rectangle F
rectangle G
rectangle H
rectangle I
A -> B : Information Flow
B =\\ C : Push Message
C =r(0=> D : API POST
D <=r(0= E : API GET
E -> F <<eventually>> : Eventually
F -|> G : Is A
G *- H : Composed by
H -0 I : Used In-process by
!endprocedure
!procedure $legend_Content()
$legend_States_Content()
$legend_Arrows_Content()
!endprocedure
!procedure $legend($open=0,$scale="0.5")
!if ($open==0)
legend
!endif
{{
scale $scale
'title Conventions
!include $this_legend_puml
$legend_States_Content()
}}
{{
scale $scale
!include $this_legend_puml
$legend_Arrows_Content()
}}
More about [[$gitpath/style-simple.svg Conventions]]
<size:8> Plantuml %version() | %date("yyyy-MMM-dd") %filename()</size>
!if ($open==0)
end legend
!endif
!endprocedure
'$legend_Content()
'$legend(0)
@enduml