-
Notifications
You must be signed in to change notification settings - Fork 2
/
ModuleDescriptor-template.json
511 lines (511 loc) · 18.1 KB
/
ModuleDescriptor-template.json
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
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
{
"id": "[email protected]@",
"name": "Workflow Module",
"provides": [
{
"id": "workflow-actions",
"version": "1.0",
"handlers": [
{
"methods": ["GET"],
"pathPattern": "/actions",
"permissionsRequired": ["workflow.actions.collection.get"]
}
]
},
{
"id": "workflow-events",
"version": "1.0",
"handlers": [
{
"methods": ["GET"],
"pathPattern": "/events/*",
"permissionsRequired": ["workflow.events.collection.get"]
},
{
"methods": ["POST"],
"pathPattern": "/events/*",
"permissionsRequired": ["workflow.events.collection.post"]
}
]
},
{
"id": "workflow-nodes",
"version": "1.0",
"handlers": [
{
"methods": ["GET"],
"pathPattern": "/nodes",
"permissionsRequired": ["workflow.nodes.collection.get"]
},
{
"methods": ["POST"],
"pathPattern": "/nodes",
"permissionsRequired": ["workflow.nodes.item.post"]
},
{
"methods": ["DELETE"],
"pathPattern": "/nodes/{id}",
"permissionsRequired": ["workflow.nodes.item.delete"]
},
{
"methods": ["GET"],
"pathPattern": "/nodes/{id}",
"permissionsRequired": ["workflow.nodes.item.get"]
},
{
"methods": ["PUT"],
"pathPattern": "/nodes/{id}",
"permissionsRequired": ["workflow.nodes.item.put"]
}
]
},
{
"id": "workflow-triggers",
"version": "1.0",
"handlers": [
{
"methods": ["GET"],
"pathPattern": "/triggers",
"permissionsRequired": ["workflow.triggers.collection.get"]
},
{
"methods": ["POST"],
"pathPattern": "/triggers",
"permissionsRequired": ["workflow.triggers.item.post"]
},
{
"methods": ["DELETE"],
"pathPattern": "/triggers/{id}",
"permissionsRequired": ["workflow.triggers.item.delete"]
},
{
"methods": ["GET"],
"pathPattern": "/triggers/{id}",
"permissionsRequired": ["workflow.triggers.item.get"]
},
{
"methods": ["PUT"],
"pathPattern": "/triggers/{id}",
"permissionsRequired": ["workflow.triggers.item.put"]
}
]
},
{
"id": "workflow-tasks",
"version": "1.0",
"handlers": [
{
"methods": ["GET"],
"pathPattern": "/tasks",
"permissionsRequired": ["workflow.tasks.collection.get"]
},
{
"methods": ["POST"],
"pathPattern": "/tasks",
"permissionsRequired": ["workflow.tasks.item.post"]
},
{
"methods": ["DELETE"],
"pathPattern": "/tasks/{id}",
"permissionsRequired": ["workflow.tasks.item.delete"]
},
{
"methods": ["GET"],
"pathPattern": "/tasks/{id}",
"permissionsRequired": ["workflow.tasks.item.get"]
},
{
"methods": ["PUT"],
"pathPattern": "/tasks/{id}",
"permissionsRequired": ["workflow.tasks.item.put"]
}
]
},
{
"id": "workflow-workflows",
"version": "1.0",
"handlers": [
{
"methods": ["GET"],
"pathPattern": "/workflows",
"permissionsRequired": ["workflow.workflows.collection.get"]
},
{
"methods": ["POST"],
"pathPattern": "/workflows",
"permissionsRequired": ["workflow.workflows.item.post"]
},
{
"methods": ["POST"],
"pathPattern": "/workflows/import",
"permissionsRequired": ["workflow.workflows.item.post"]
},
{
"methods": ["GET"],
"pathPattern": "/workflows/search",
"permissionsRequired": ["workflow.workflows.collection.get"]
},
{
"methods": ["DELETE"],
"pathPattern": "/workflows/{id}",
"permissionsRequired": ["workflow.workflows.item.delete"]
},
{
"methods": ["GET"],
"pathPattern": "/workflows/{id}",
"permissionsRequired": ["workflow.workflows.item.get"]
},
{
"methods": ["PATCH"],
"pathPattern": "/workflows/{id}",
"permissionsRequired": ["workflow.workflows.item.patch"]
},
{
"methods": ["PUT"],
"pathPattern": "/workflows/{id}",
"permissionsRequired": ["workflow.workflows.item.put"]
},
{
"methods": ["PUT"],
"pathPattern": "/workflows/{id}/activate",
"permissionsRequired": ["workflow.workflows.item.activate"]
},
{
"methods": ["PUT"],
"pathPattern": "/workflows/{id}/deactivate",
"permissionsRequired": ["workflow.workflows.item.deactivate"]
},
{
"methods": ["DELETE"],
"pathPattern": "/workflows/{id}/delete",
"permissionsRequired": ["workflow.workflows.item.delete"]
},
{
"methods": ["GET"],
"pathPattern": "/workflows/{id}/history",
"permissionsRequired": ["workflow.workflows.item.get"]
},
{
"methods": ["POST"],
"pathPattern": "/workflows/{id}/start",
"permissionsRequired": ["workflow.workflows.item.startTrigger"]
},
{
"methods": ["DELETE"],
"pathPattern": "/workflows/{id}/startTrigger",
"permissionsRequired": ["workflow.workflows.item.startTrigger"]
},
{
"methods": ["GET"],
"pathPattern": "/workflows/{id}/startTrigger",
"permissionsRequired": ["workflow.workflows.item.startTrigger"]
},
{
"methods": ["PUT"],
"pathPattern": "/workflows/{id}/startTrigger",
"permissionsRequired": ["workflow.workflows.item.startTrigger"]
},
{
"methods": ["GET"],
"pathPattern": "/workflows/{id}/tasks",
"permissionsRequired": ["workflow.workflows.item.tasks"]
}
]
},
{
"id": "_jsonSchemas",
"version": "1.0",
"interfaceType" : "multiple",
"handlers" : [
{
"methods" : [ "GET" ],
"pathPattern" : "/_/jsonSchemas"
}
]
},
{
"id": "_ramls",
"version": "1.0",
"interfaceType" : "multiple",
"handlers" : [
{
"methods" : [ "GET" ],
"pathPattern" : "/_/ramls"
}
]
},
{
"id": "_tenant",
"version": "1.0",
"interfaceType" : "system",
"handlers" : [
{
"methods" : [ "POST", "DELETE" ],
"pathPattern" : "/_/tenant"
}
]
}
],
"permissionSets" : [
{
"permissionName": "workflow.actions.collection.get",
"displayName": "Workflow - action - get collection",
"description": "Get action collection"
},
{
"permissionName": "workflow.actions.all",
"displayName": "Workflow - action - all permissions",
"description": "Entire set of permissions needed to use the workflow actions",
"subPermissions": [
"workflow.actions.collection.get"
],
"visible": false
},
{
"permissionName": "workflow.events.collection.get",
"displayName": "Workflow - event - get event",
"description": "Get event"
},
{
"permissionName": "workflow.events.collection.post",
"displayName": "Workflow - event - emit event",
"description": "Emit event"
},
{
"permissionName": "workflow.events.all",
"displayName": "Workflow - event - all permissions",
"description": "Entire set of permissions needed to use the workflow events",
"subPermissions": [
"workflow.events.collection.get",
"workflow.events.collection.post"
],
"visible": false
},
{
"permissionName": "workflow.nodes.collection.get",
"displayName": "Workflow - node - get node collection",
"description": "Get node collection"
},
{
"permissionName": "workflow.nodes.item.delete",
"displayName": "Workflow - node - delete node item",
"description": "Delete node item"
},
{
"permissionName": "workflow.nodes.item.get",
"displayName": "Workflow - node - get node item",
"description": "Get node item"
},
{
"permissionName": "workflow.nodes.item.post",
"displayName": "Workflow - node - post node item",
"description": "Create node item"
},
{
"permissionName": "workflow.nodes.item.put",
"displayName": "Workflow - node - put node item",
"description": "Update node item"
},
{
"permissionName": "workflow.nodes.all",
"displayName": "Workflow - node - all permissions",
"description": "Entire set of permissions needed to use the workflow triggers",
"subPermissions": [
"workflow.nodes.collection.get",
"workflow.nodes.item.delete",
"workflow.nodes.item.get",
"workflow.nodes.item.post",
"workflow.nodes.item.put"
],
"visible": false
},
{
"permissionName": "workflow.triggers.collection.get",
"displayName": "Workflow - trigger - get trigger collection",
"description": "Get trigger collection"
},
{
"permissionName": "workflow.triggers.item.delete",
"displayName": "Workflow - trigger - delete trigger item",
"description": "Delete trigger item"
},
{
"permissionName": "workflow.triggers.item.get",
"displayName": "Workflow - trigger - get trigger item",
"description": "Get trigger item"
},
{
"permissionName": "workflow.triggers.item.post",
"displayName": "Workflow - trigger - post trigger item",
"description": "Create trigger item"
},
{
"permissionName": "workflow.triggers.item.put",
"displayName": "Workflow - trigger - put trigger item",
"description": "Update trigger item"
},
{
"permissionName": "workflow.triggers.all",
"displayName": "Workflow - trigger - all permissions",
"description": "Entire set of permissions needed to use the workflow triggers",
"subPermissions": [
"workflow.triggers.collection.get",
"workflow.triggers.item.delete",
"workflow.triggers.item.get",
"workflow.triggers.item.post",
"workflow.triggers.item.put"
],
"visible": false
},
{
"permissionName": "workflow.tasks.collection.get",
"displayName": "Workflow - task - get task collection",
"description": "Get task collection"
},
{
"permissionName": "workflow.tasks.item.delete",
"displayName": "Workflow - task - delete task item",
"description": "Delete task item"
},
{
"permissionName": "workflow.tasks.item.get",
"displayName": "Workflow - task - get task item",
"description": "Get task item"
},
{
"permissionName": "workflow.tasks.item.post",
"displayName": "Workflow - task - post task item",
"description": "Create task item"
},
{
"permissionName": "workflow.tasks.item.put",
"displayName": "Workflow - task - put task item",
"description": "Update task item"
},
{
"permissionName": "workflow.tasks.all",
"displayName": "Workflow - task - all permissions",
"description": "Entire set of permissions needed to use the workflow tasks",
"subPermissions": [
"workflow.tasks.collection.get",
"workflow.tasks.item.delete",
"workflow.tasks.item.get",
"workflow.tasks.item.post",
"workflow.tasks.item.put"
],
"visible": false
},
{
"permissionName": "workflow.workflows.collection.get",
"displayName": "Workflow - item - get workflow item collection",
"description": "Get workflow collection"
},
{
"permissionName": "workflow.workflows.item.activate",
"displayName": "Workflow - item - activate workflow item",
"description": "Activate workflow item"
},
{
"permissionName": "workflow.workflows.item.deactivate",
"displayName": "Workflow - item - deactivate workflow item",
"description": "Deactivate workflow item"
},
{
"permissionName": "workflow.workflows.item.delete",
"displayName": "Workflow - item - delete workflow item",
"description": "Delete workflow item"
},
{
"permissionName": "workflow.workflows.item.get",
"displayName": "Workflow - item - get workflow item",
"description": "Get workflow item"
},
{
"permissionName": "workflow.workflows.item.patch",
"displayName": "Workflow - item - patch workflow item",
"description": "Patch workflow item"
},
{
"permissionName": "workflow.workflows.item.post",
"displayName": "Workflow - item - post workflow item",
"description": "Create workflow item"
},
{
"permissionName": "workflow.workflows.item.put",
"displayName": "Workflow - item - put workflow item",
"description": "Update workflow item"
},
{
"permissionName": "workflow.workflows.item.startTrigger",
"displayName": "Workflow - item - start trigger",
"description": "Add, remove, or initiate start trigger on workflow item"
},
{
"permissionName": "workflow.workflows.item.tasks",
"displayName": "Workflow - item - workflow item tasks",
"description": "Get workflow item tasks"
},
{
"permissionName": "workflow.workflows.all",
"displayName": "Workflow - item - all permissions",
"description": "Entire set of permissions needed to use the workflow items",
"subPermissions": [
"workflow.workflows.collection.get",
"workflow.workflows.item.activate",
"workflow.workflows.item.deactivate",
"workflow.workflows.item.delete",
"workflow.workflows.item.get",
"workflow.workflows.item.patch",
"workflow.workflows.item.post",
"workflow.workflows.item.put",
"workflow.workflows.item.startTrigger",
"workflow.workflows.item.tasks"
],
"visible": false
}
],
"requires": [ ],
"launchDescriptor": {
"dockerImage": "mod-workflow:@project.version@",
"dockerPull" : false,
"dockerArgs": {
"HostConfig": {
"Memory": 402653184,
"PortBindings": {
"8081/tcp": [ { "HostPort": "%p" } ]
}
}
},
"env": [
{ "name": "JAVA_OPTIONS", "value": "-XX:MaxRAMPercentage=66.0", "description": "Java options." },
{ "name": "DB_HOST", "value": "postgres", "description": "Postgres host name." },
{ "name": "DB_PORT", "value": "5432", "description": "Postgres port." },
{ "name": "DB_USERNAME", "value": "folio_admin", "description": "Postgres user name." },
{ "name": "DB_PASSWORD", "value": "folio_admin", "description": "Postgres user name password." },
{ "name": "DB_DATABASE", "value": "okapi_modules", "description": "Postgres database name." },
{ "name": "DB_QUERYTIMEOUT", "value": "60000", "description": "Database query timeout." },
{ "name": "DB_CHARSET", "value": "UTF-8", "description": "Database charset." },
{ "name": "DB_MAXPOOLSIZE", "value": "16", "description": "Database max pool size." },
{ "name": "ENV", "value": "folio", "description": "The environment name." },
{ "name": "KAFKA_HOST", "value": "https://kafka", "description": "Kafka broker URL." },
{ "name": "KAFKA_PORT", "value": "9092", "description": "Kafka broker port." },
{ "name": "KAFKA_SECURITY_PROTOCOL", "value": "PLAINTEXT", "description": "Kafka security protocol used to communicate with brokers (SSL or PLAINTEXT)." },
{ "name": "KAFKA_SSL_KEYSTORE_LOCATION", "value": "", "description": "The location of the Kafka key store file. This is optional for client and can be used for two-way authentication for client." },
{ "name": "KAFKA_SSL_KEYSTORE_PASSWORD", "value": "", "description": "The store password for the Kafka key store file. This is optional for client and only needed if 'ssl.keystore.location' is configured." },
{ "name": "KAFKA_SSL_TRUSTSTORE_LOCATION", "value": "", "description": "The location of the Kafka trust store file." },
{ "name": "KAFKA_SSL_TRUSTSTORE_PASSWORD", "value": "", "description": "The password for the Kafka trust store file. If a password is not set, trust store file configured will still be used, but integrity checking is disabled." },
{ "name": "OKAPI_URL", "value": "http://10.0.2.15:9130", "description": "The URL to the OKAPI service." },
{ "name": "OKAPI_CAMUNDA_BASEPATH", "value": "/", "description": "The base path in the OKAPI service representing the particular back-end workflow engine base path to get the module descriptor from." },
{ "name": "OKAPI_CAMUNDA_RESTPATH", "value": "/camunda", "description": "The base path in the OKAPI service representing the particular back-end workflow engine to use." },
{ "name": "SERVER_PORT", "value": "8081", "description": "The port to listen on that must match the PortBindings." },
{ "name": "SERVER_SERVLET_CONTEXTPATH", "value": "/", "description": "The context path, or base path, to host at." },
{ "name": "SPRING_FLYWAY_ENABLED", "value": "false", "description": "Database migration support via Spring Flyway." },
{ "name": "SPRING_JPA_HIBERNATE_DDLAUTO", "value": "update", "description": "Auto-configure database on startup." },
{ "name": "TENANT_DEFAULTTENANT", "value": "diku", "description": "The name of the default tenant to use." },
{ "name": "TENANT_FORCETENANT", "value": "false", "description": "Forcibly add or overwrite the tenant name using the default tenant." },
{ "name": "TENANT_INITIALIZEDEFAULTTENANT", "value": "true", "description": "Perform initial auto-creation of tenant in the DB (schema, tables, etc..)." },
{ "name": "TENANT_RECREATEDEFAULTTENANT", "value": "false", "description": "When TENANT_INITIALIZEDEFAULTTENANT is true and the DB already exists, then drop and re-create." }
]
}
}