-
Notifications
You must be signed in to change notification settings - Fork 3
/
jhipster-jdl-metamodel.jdl
398 lines (325 loc) · 10.9 KB
/
jhipster-jdl-metamodel.jdl
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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
application {
config {
applicationType monolith
authenticationType jwt
baseName EADesignIt
blueprints []
buildTool maven
cacheProvider ehcache
clientFramework vue
clientTheme none
creationTimestamp 1635576559955
databaseType sql
devDatabaseType h2Disk
enableHibernateCache false
enableSwaggerCodegen false
enableTranslation false
jhipsterVersion "8.0.0-rc.1"
jwtSecretKey "ZGNhMjhiMjkyMzk0YzhmYzgwODlmNGFjY2ZhNGI5ODJkNDg1OWUyMmU4MGVhMzJiMjQyZTlmNGNkYjdlNjgxYzY0Njg2NDUzODg3NjJiNGUwZDZmOTVlYjk4ODYwZGM4MjJhNjY5MDhlMTI0YWMyMzE5ZTZiNzhhZGIzNzJkYmQ="
messageBroker false
microfrontends []
nativeLanguage en
packageName com.mauvaisetroupe.eadesignit
prodDatabaseType postgresql
reactive false
searchEngine false
serviceDiscoveryType false
testFrameworks [cypress]
websocket false
withAdminUi true
}
entities Application, ApplicationCategory, ApplicationComponent, Capability, CapabilityApplicationMapping, DataFlow, DataFlowItem, DataFormat, ExternalReference, ExternalSystem, FlowGroup, FlowInterface, FunctionalFlow, FunctionalFlowStep, LandscapeView, Owner, Protocol, Technology, BusinessObject, DataObject, OrganizationalEntity
}
relationship ManyToMany {
LandscapeView{flows(alias)} to FunctionalFlow{landscape(diagramName) }
DataFlow{functionalFlows(alias)} to FunctionalFlow{dataFlows}
Application{categories(name)} to ApplicationCategory{applications(name)}
ApplicationComponent{categories(name)} to ApplicationCategory{components(name)}
Application{technologies(name)} to Technology{applications(name)}
ApplicationComponent{technologies(name)} to Technology{components(name)}
DataObject{technologies(name)} to Technology{dataObjects(name)}
Owner{users(login)} to User with builtInEntity
Application{externalIDS(externalID)} to ExternalReference{applications(alias)}
ApplicationComponent{externalIDS(externalID)} to ExternalReference{components(alias)}
CapabilityApplicationMapping{landscape(diagramName)} to LandscapeView{capabilityApplicationMapping}
}
relationship ManyToOne {
FlowInterface{source(name) required} to Application
FlowInterface{target(name) required} to Application
FlowInterface{sourceComponent(name)} to ApplicationComponent
FlowInterface{targetComponent(name)} to ApplicationComponent
FlowInterface{protocol(name)} to Protocol
ApplicationComponent{application(name) required} to Application{applicationsList(name)}
LandscapeView{owner(name)} to Owner
FunctionalFlow{owner(name)} to Owner
FlowInterface{owner(name)} to Owner
Application{owner(name)} to Owner
Application{itOwner(name)} to Owner
Application{businessOwner(name)} to Owner
BusinessObject{owner(name)} to Owner
DataObject{owner(name)} to Owner
DataFlow{format(name)} to DataFormat
FunctionalFlowStep{flowInterface(alias) required} to FlowInterface{steps}
FunctionalFlowStep{group(alias)} to FlowGroup{steps required}
FlowGroup{flow(alias)} to FunctionalFlow
ExternalReference{externalSystem(externalSystemID)} to ExternalSystem
CapabilityApplicationMapping to Capability
CapabilityApplicationMapping to Application
/** Archimate Access relationship, a DataObject can be composed of severals DataObject */
DataObject{application(name)} to Application{dataObjects(name)}
}
relationship OneToMany {
FlowInterface{dataFlows} to DataFlow{flowInterface(alias)}
DataFlow{items} to DataFlowItem{dataFlow}
Capability{subCapabilities(name)} to Capability{parent(name)}
FunctionalFlow{steps} to FunctionalFlowStep{flow(alias) required}
/** Archimate Specialization relationship, a BusinessObject could be specialized in a particular type (ex. Cusotmer and Prospect are specialiyzation of Party **/
BusinessObject{specializations(name)} to BusinessObject{generalization(name)}
/** Archimate Composition relationship, a BusinessObject can be composed of severals BusinessObject */
BusinessObject{components(name)} to BusinessObject{container(name)}
/** Archimate Realization relationship, a DataObject is a specific implementation of a moe abstract BusinessObject **/
BusinessObject{dataObjects(name)} to DataObject{businessObject(name)}
/** Archimate Composition relationship, a DataObject can be composed of severals DataObject */
DataObject{components(name)} to DataObject{container(name)}
}
entity ExternalReference {
externalID String
}
entity ExternalSystem {
externalSystemID String
}
entity FlowGroup {
title String maxlength(100)
url String maxlength(500)
description String
}
entity LandscapeView {
viewpoint ViewPoint
diagramName String // Example ADD_Payment_Landscape
compressedDrawXML TextBlob
compressedDrawSVG TextBlob
}
entity Owner {
name String required
firstname String
lastname String
email String pattern(/^[^@\s]+@[^@\s]+\.[^@\s]+$/)
}
entity FunctionalFlow(flow) {
alias String unique
description String maxlength(1500)
comment String maxlength(1000)
status String
documentationURL String maxlength(500)
documentationURL2 String maxlength(500)
startDate LocalDate
endDate LocalDate
}
entity FunctionalFlowStep(flowstep) {
description String maxlength(500)
stepOrder Integer
}
entity FlowInterface(interface) {
alias String required unique // mandatory for label on arrow diagram
status String
documentationURL String maxlength(500)
documentationURL2 String maxlength(500)
description String maxlength(1500)
startDate LocalDate
endDate LocalDate
}
entity Application {
alias String unique
name String required
description String maxlength(1500)
comment String maxlength(1000)
documentationURL String maxlength(500)
startDate LocalDate
endDate LocalDate
applicationType ApplicationType
softwareType SoftwareType
nickname String
}
entity Protocol {
name String required
type ProtocolType required
description String maxlength(1000)
scope String
}
/**
* DataFlow represents
* - A file when Protocol=FILE
* - A topic when Protocol=Event
* - A Swagger when Protocol=API
* - A WSDL when Protocol=SOAP
* - An XSD when Protocol=ESB, MESSAGING
*/
entity DataFlow(dataflow) {
resourceName String required /** TOPIC name for event, FileName for Files*/
resourceType String
description String maxlength(1000)
frequency Frequency
contractURL String maxlength(500) /** Swagger or XSD URL */
documentationURL String maxlength(500)
startDate LocalDate
endDate LocalDate
}
/**
* DataFlow represents
* - A Event when DataFlow.Protocol=Event
*/
entity DataFlowItem {
resourceName String required
resourceType String
description String maxlength(1000)
contractURL String maxlength(500)
documentationURL String maxlength(500)
startDate LocalDate
endDate LocalDate
}
entity ApplicationComponent(component) {
alias String unique
name String required
description String maxlength(1000),
comment String maxlength(500)
documentationURL String maxlength(500)
startDate LocalDate
endDate LocalDate
applicationType ApplicationType
softwareType SoftwareType
displayInLandscape Boolean
}
entity DataFormat {
name String required
}
entity ApplicationCategory {
name String required
type String
description String maxlength(250)
}
entity Technology {
name String required
type String
description String maxlength(250)
}
entity Capability {
name String required
description String maxlength(1500)
comment String maxlength(1500)
level Integer
}
entity CapabilityApplicationMapping{
}
/**
* Business Object as defined in Archimate
* A business object could be used to represent information assets that are relevant from a business point of view and can be realized by data objects.
*/
entity BusinessObject {
name String required
implementable Boolean // cannot be implemented by a DataObject
}
/**
* Data Object as defined in Archimate
* A data object represents data structured for automated processing.
* A data object can be accessed by an application function. A data object may realize a business object
**/
entity DataObject {
name String required
type DataObjectType
}
enum DataObjectType {
GOLDEN_SOURCE
READ_ONLY_REPLICA
READ_WRITE_REPLICA
}
enum ViewPoint {
APPLICATION_LANDSCAPE
}
enum ProtocolType {
API
ESB
EVENT
FILE
MESSAGING
SOAP
ETL
DB
FRONT
OTHER
}
enum Frequency {
HOURLY
DAILY
WEEKLY
MONTHLY
YEARLY
ON_DEMAND
NRT
ON_USER_ACTION
INTRADAY
}
enum ApplicationType {
SOFTWARE
MIDDLEWARE
HARDWARE
PARTNER
OTHER
}
enum SoftwareType {
ON_PREMISE_COTS
ON_PREMISE_CUSTOM
CLOUD_CUSTOM
CLOUD_SAAS
CLOUD_THIRD_PARTY
ON_PREMISE_EXTERNAL_LIBRARY
}
//// Business & Data Object
/**
* Business Object as defined in Archimate
* A business object could be used to represent information assets that are relevant from a business point of view and can be realized by data objects.
*/
entity BusinessObject {
name String required
abstractBusinessObject Boolean // cannot be implemented by a DataObject
}
/**
* Data Object as defined in Archimate
* A data object represents data structured for automated processing.
* A data object can be accessed by an application function. A data object may realize a business object
**/
entity DataObject {
name String required
type DataObjectType
}
enum DataObjectType {
GOLDEN_SOURCE
READ_ONLY_REPLICA
READ_WRITE_REPLICA
}
relationship OneToMany {
/** Archimate Specialization relationship, a BusinessObject could be specialized in a particular type (ex. Cusotmer and Prospect are specialiyzation of Party **/
BusinessObject{specializations(name)} to BusinessObject{generalization(name)}
/** Archimate Composition relationship, a BusinessObject can be composed of severals BusinessObject */
BusinessObject{components(name)} to BusinessObject{parent(name)}
/** Archimate Composition relationship, a DataObject can be composed of severals DataObject */
DataObject{components(name)} to DataObject{parent(name)}
/** Archimate Realization relationship, a DataObject is a specific implementation of a moe abstract BusinessObject **/
BusinessObject{dataObjects(name)} to DataObject{businessObject(name)}
}
relationship ManyToMany {
DataObject{technologies(name)} to Technology{dataObjects(name)}
DataObject{landscapes(diagramName)} to LandscapeView{dataObjects(name)}
}
relationship ManyToOne {
/** Archimate Access relationship, a DataObject can be composed of severals DataObject */
DataObject{application(name)} to Application{dataObjects(name)}
BusinessObject{owner(name)} to Owner
DataObject{owner(name)} to Owner
}
// OrganizationalEntity to Brnach, Subsidiaries, ...
entity OrganizationalEntity {
name String required unique
}
relationship ManyToOne {
Application{organizationalEntity(name)} to OrganizationalEntity{applications(name)}
}