-
Notifications
You must be signed in to change notification settings - Fork 6
/
views.edn
169 lines (152 loc) · 6.26 KB
/
views.edn
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
168
169
;;;;
;;;; Example architecture views for the Internet Banking System
;;;;
#{;;;
;;; System Context Views
;;;
;; System context view with criteria based selection of elements
{:el :context-view
:id :banking/context-view
:spec {:selection {:namespace-prefix "banking"}
:plantuml {:sprite-libs [:azure :devicons :font-awesome-5]}}
:title "System Context View of the Internet Banking System"
:ct [; selected elements will be included automatically
; you can include references for additional elements here
; relation references can also be specified here for layout purposes
]}
;; System context view with referenced elements (only the referenced elements will be rendered)
{:el :context-view
:id :banking/system-context-view
:title "System Context View of the Internet Banking System"
:ct [; model elements
{:ref :banking/personal-customer}
{:ref :banking/email-system}
{:ref :banking/mainframe-banking-system}
{:ref :banking/internet-banking-system}
; relations
{:ref :banking/personal-customer-uses-internet-banking-system :direction :down}
{:ref :banking/internet-banking-system-uses-email-system :direction :right}
{:ref :banking/internet-banking-system-using-mainframe-banking-system}
{:ref :banking/email-system-sends-mail-to-personal-customer :direction :up}]}
;;;
;;; Container Views
;;;
;; Container view with criteria based selection of elements
{:el :container-view
:id :banking/container-view
:spec {:selection {:namespace :banking}
:include :related
:plantuml {:sprite-libs [:azure :devicons :font-awesome-5]}}
:title "Container View of the Internet Banking System"
:ct [; selected elements will be included automatically
; you can include references for additional elements here
; relation references can also be specified here for layout purposes
]}
;;;
;;; Component Views
;;;
{:el :component-view
:id :banking/component-view
:spec {:selection {:namespace-prefix "banking"}
:include :related}
:title "Component View of the API Application"
:ct []}
;;;
;;; System Landscape View
;;;
{:el :system-landscape-view
:id :banking/system-landscape-view
:title "System Landscape View of Big Bank plc"
:ct [; model elements
{:ref :banking/big-bank-plc}
{:ref :banking/personal-customer}
; relations
{:ref :banking/personal-customer-uses-atm}
{:ref :banking/atm-uses-mainframe-banking-system}
{:ref :banking/personal-customer-asks-customer-service-stuff}
{:ref :banking/personal-customer-uses-internet-banking-system}
{:ref :banking/email-system-sends-mail-to-personal-customer}
{:ref :banking/backoffice-stuff-uses-mainframe-banking-system :direction :right}
{:ref :banking/customer-service-stuff-uses-mainframe-banking-system}
{:ref :banking/internet-banking-system-uses-email-system}
{:ref :banking/internet-banking-system-using-mainframe-banking-system}]}
{:el :deployment-view
:id :banking.deployment/deployment-view
;:spec {:include :related}
:title "Deployment View of Big Bank plc"
:ct [; model elements
{:ref :banking.deployment/personal-customers-mobile-device}
{:ref :banking.deployment/personal-customers-computer}
{:ref :banking.deployment/big-bank-plc-datacenter}
; relations
{:ref :banking/single-page-app-calls-api-application}
{:ref :banking/mobile-app-calls-api-application}
{:ref :banking/web-app-deliveres-single-page-app}
{:ref :banking/api-application-uses-mainframe-banking-system}
{:ref :banking/api-application-uses-database}
; add relations for the read database
{:el :rel
:id :banking/api-application-uses-database-read
:from :banking/api-application
:to :banking/database-read
:name "Reads from"
:tech "Datalog"}
{:el :rel
:id :banking/database-sync
:from :banking/database
:to :banking/database-read
:name "synchronises"
:direction :right}]}
{:el :deployment-structure-view
:id :banking/deployment-structure-view
:spec {:selection {:id :banking/big-bank-plc-datacenter}}
:name "Big Bank Deployment Structure View"
:title "Deployment Structure View of Big Bank Datacenter"
:desc "Shows the hierarchical structure of the infrastructure and deployment elements"}
{:el :use-case-view
:id :banking/use-case-view
:spec {:layout :left-right}
:title "Use Cases of the Internet Banking System"
:ct [; actors
{:ref :banking/personal-customer :name "Customer"}
; use cases
{:ref :banking.usecases/view-account}
{:ref :banking.usecases/make-transaction}
; relations
{:ref :banking/personal-customer-uses-view-account}
{:ref :banking/personal-customer-uses-make-transaction}]}
{:el :concept-view
:id :banking/concept-view
:spec {:selection {:namespace-prefix "banking.concepts"}
:include :related
:markdown {:references true}}
:title "Concept Map for the Banking System"
:ct []}
{:el :glossary-view
:id :banking/glossary-view
:spec {:selection {:namespace "banking"}
:markdown {:references true}}
:title "Glossary of the Banking System"
:ct [; selected elements will be included automatically
; you can include references for additional elements here
; relation references can also be specified here for layout purposes
]}
{:el :system-structure-view
:id :banking/system-structure-view
:spec {:selection {:namespace "banking" :external? false}}
:title "System Structure"
:desc "Shows the hierarchical structure of the sytems in scope."}
{:el :organization-structure-view
:id :banking/organization-structure-view
:spec {:selection {:namespace "banking" :external? false}}
:title "Organization Structure"
:desc "Shows the hierarchical structure of the organization in scope."}
{:el :model-view
:id :banking/model-view
:spec {:selection {:namespace "banking"}
:linetype :orthogonal}
:name "Banking Model View"
:title "Banking Model View"
:desc "Shows all elements in the banking model"}
;
}