@5minds/processcube_engine_sdk 7.1.2 → 7.2.0-alpha.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/dist/DataModels/ApplicationInfo.d.ts +3 -0
  2. package/dist/DataModels/EngineMetadata.d.ts +13 -0
  3. package/dist/DataModels/FlowNodeInstance/CallActivityInstance.d.ts +7 -0
  4. package/dist/DataModels/ProcessInstance/ProcessInstance.d.ts +1 -0
  5. package/dist/DataModels/index.d.ts +1 -0
  6. package/dist/Engine.d.ts +22 -1
  7. package/dist/EngineConfiguration.d.ts +2 -0
  8. package/dist/EngineEventBus.d.ts +87 -0
  9. package/dist/EngineEventBusSettings.d.ts +141 -0
  10. package/dist/EngineEvents/EventPayloads/KillProcessInstanceMessage.d.ts +11 -0
  11. package/dist/EngineEvents/EventPayloads/TerminateProcessInstance.d.ts +1 -0
  12. package/dist/EngineEvents/EventPayloads/index.d.ts +1 -0
  13. package/dist/EngineEvents/index.d.ts +0 -1
  14. package/dist/EngineRestApiSettings.d.ts +2107 -0
  15. package/dist/EngineSocketIoSettings.d.ts +67 -0
  16. package/dist/ExtensionAdapter/ClusterExtensionAdapter.d.ts +14 -0
  17. package/dist/ExtensionAdapter/MessageEventExtensionAdapter.d.ts +4 -0
  18. package/dist/ExtensionAdapter/NotificationExtensionAdapter.d.ts +4 -4
  19. package/dist/ExtensionAdapter/SignalEventExtensionAdapter.d.ts +4 -0
  20. package/dist/ExtensionAdapter/index.d.ts +3 -0
  21. package/dist/ProcessModel/Model/Activities/CallActivity.d.ts +7 -0
  22. package/dist/ProcessModel/Model/Activities/SubProcess.d.ts +1 -0
  23. package/dist/ProcessModel/Model/Events/ErrorEvents.d.ts +2 -1
  24. package/dist/ProcessModel/Model/Events/EventBase.d.ts +4 -0
  25. package/dist/ProcessModel/ViewModel/Activities/CallActivityViewModel.d.ts +4 -3
  26. package/dist/commonjs/{EngineEvents/Subscription.js → DataModels/EngineMetadata.js} +1 -1
  27. package/dist/commonjs/DataModels/EngineMetadata.js.map +1 -0
  28. package/dist/commonjs/DataModels/ProcessInstance/ProcessInstance.js.map +1 -1
  29. package/dist/commonjs/DataModels/index.js +1 -0
  30. package/dist/commonjs/DataModels/index.js.map +1 -1
  31. package/dist/commonjs/Engine.js.map +1 -1
  32. package/dist/commonjs/EngineEventBus.js +3 -0
  33. package/dist/commonjs/EngineEventBus.js.map +1 -0
  34. package/dist/commonjs/EngineEventBusSettings.js +99 -0
  35. package/dist/commonjs/EngineEventBusSettings.js.map +1 -0
  36. package/dist/commonjs/EngineEvents/EventPayloads/KillProcessInstanceMessage.js +3 -0
  37. package/dist/commonjs/EngineEvents/EventPayloads/KillProcessInstanceMessage.js.map +1 -0
  38. package/dist/commonjs/EngineEvents/EventPayloads/index.js +1 -0
  39. package/dist/commonjs/EngineEvents/EventPayloads/index.js.map +1 -1
  40. package/dist/commonjs/EngineEvents/index.js +0 -1
  41. package/dist/commonjs/EngineEvents/index.js.map +1 -1
  42. package/dist/commonjs/EngineRestApiSettings.js +2139 -0
  43. package/dist/commonjs/EngineRestApiSettings.js.map +1 -0
  44. package/dist/commonjs/EngineSocketIoSettings.js +76 -0
  45. package/dist/commonjs/EngineSocketIoSettings.js.map +1 -0
  46. package/dist/commonjs/ExtensionAdapter/ClusterExtensionAdapter.js +3 -0
  47. package/dist/commonjs/ExtensionAdapter/ClusterExtensionAdapter.js.map +1 -0
  48. package/dist/commonjs/ExtensionAdapter/MessageEventExtensionAdapter.js +3 -0
  49. package/dist/commonjs/ExtensionAdapter/MessageEventExtensionAdapter.js.map +1 -0
  50. package/dist/commonjs/ExtensionAdapter/SignalEventExtensionAdapter.js +3 -0
  51. package/dist/commonjs/ExtensionAdapter/SignalEventExtensionAdapter.js.map +1 -0
  52. package/dist/commonjs/ExtensionAdapter/index.js +3 -0
  53. package/dist/commonjs/ExtensionAdapter/index.js.map +1 -1
  54. package/dist/commonjs/ProcessModel/ProcessModelParser/Parser/FlowNodeParsers/ActivityParsers/CallActivityParser.js +4 -0
  55. package/dist/commonjs/ProcessModel/ProcessModelParser/Parser/FlowNodeParsers/ActivityParsers/CallActivityParser.js.map +1 -1
  56. package/dist/commonjs/ProcessModel/ProcessModelParser/Parser/FlowNodeParsers/ActivityParsers/SubprocessParser.js +4 -0
  57. package/dist/commonjs/ProcessModel/ProcessModelParser/Parser/FlowNodeParsers/ActivityParsers/SubprocessParser.js.map +1 -1
  58. package/dist/commonjs/ProcessModel/ProcessModelParser/Parser/FlowNodeParsers/EventParser.js +7 -0
  59. package/dist/commonjs/ProcessModel/ProcessModelParser/Parser/FlowNodeParsers/EventParser.js.map +1 -1
  60. package/dist/commonjs/ProcessModel/ViewModel/Activities/CallActivityViewModel.js +2 -0
  61. package/dist/commonjs/ProcessModel/ViewModel/Activities/CallActivityViewModel.js.map +1 -1
  62. package/dist/commonjs/index.js +4 -0
  63. package/dist/commonjs/index.js.map +1 -1
  64. package/dist/index.d.ts +4 -0
  65. package/package.json +19 -21
  66. package/dist/EngineEvents/Subscription.d.ts +0 -26
  67. package/dist/commonjs/EngineEvents/Subscription.js.map +0 -1
@@ -0,0 +1,2139 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EngineRestApiSettings = void 0;
4
+ const params = {
5
+ // Id of a Correlation.
6
+ correlationId: ':correlation_id',
7
+ // Instance Id of an UntypedTask.
8
+ untypedTaskInstanceId: ':untyped_task_instance_id',
9
+ // Deprecated version of "untypedTaskInstanceId"
10
+ emptyActivityInstanceId: ':empty_activity_instance_id',
11
+ // Id of an Event.
12
+ eventId: ':event_id',
13
+ // Name of an Event.
14
+ eventName: ':event_name',
15
+ // Id of an External Task.
16
+ externalTaskId: ':external_task_id',
17
+ // Id of a FlowNode.
18
+ flowNodeId: ':flow_node_id',
19
+ // Id of a FlowNodeInstance.
20
+ flowNodeInstanceId: ':flow_node_instance_id',
21
+ // Id of a ManualTask.
22
+ manualTaskInstanceId: ':manual_task_instance_id',
23
+ // Instance Id of a Process.
24
+ processInstanceId: ':process_instance_id',
25
+ // Id of a ProcessModel.
26
+ processDefinitionId: ':process_definition_id',
27
+ // Id of a ProcessModel.
28
+ processModelId: ':process_model_id',
29
+ // Id of an anonymous session.
30
+ sessionId: ':session_id',
31
+ // Id of a user.
32
+ userId: ':user_id',
33
+ // Id of a UserTaskInstance.
34
+ userTaskInstanceId: ':user_task_instance_id',
35
+ // Key of a metadata value
36
+ userMetadataKey: ':user_metadata_key',
37
+ };
38
+ const paths = {
39
+ // ApplicationInfo
40
+ /**
41
+ * @swagger
42
+ * /info:
43
+ * get:
44
+ * description: Gets some basic info about the host application.
45
+ * tags: [ApplicationInfo]
46
+ * responses:
47
+ * 200:
48
+ * description: Returns some basic info about the host application.
49
+ * content:
50
+ * application/json:
51
+ * schema:
52
+ * $ref: '#/components/schemas/ApplicationInfo'
53
+ */
54
+ getApplicationInfo: '/info',
55
+ /**
56
+ * @swagger
57
+ * /authority:
58
+ * get:
59
+ * description: Gets the address of the authority that the host application uses for claim checks.
60
+ * tags: [ApplicationInfo]
61
+ * responses:
62
+ * 200:
63
+ * description: Returns the address of the authority.
64
+ * content:
65
+ * application/json:
66
+ * schema:
67
+ * type: string
68
+ * example: http://localhost:5000
69
+ */
70
+ getAuthorityAddress: '/authority',
71
+ // Correlations
72
+ /**
73
+ * @swagger
74
+ * /correlations:
75
+ * get:
76
+ * description: Gets all Correlations.
77
+ * tags: [Correlations]
78
+ * parameters:
79
+ * - name: limit
80
+ * in: query
81
+ * description: The maximum amount of Correlations to be returned.
82
+ * required: false
83
+ * schema:
84
+ * type: number
85
+ * example: 10
86
+ * - name: offset
87
+ * in: query
88
+ * description: The index of the first Correlation to be returned.
89
+ * required: false
90
+ * schema:
91
+ * type: number
92
+ * example: 5
93
+ * responses:
94
+ * 200:
95
+ * description: Returns all Correlations.
96
+ * content:
97
+ * application/json:
98
+ * schema:
99
+ * $ref: '#/components/schemas/CorrelationList'
100
+ */
101
+ getCorrelations: '/correlations',
102
+ /**
103
+ * @swagger
104
+ * /correlations/{correlation_id}:
105
+ * get:
106
+ * description: Gets a Correlation by its ID.
107
+ * tags: [Correlations]
108
+ * parameters:
109
+ * - name: correlation_id
110
+ * in: path
111
+ * description: The ID of the Correlation to retrieve.
112
+ * required: true
113
+ * schema:
114
+ * type: string
115
+ * example: 123
116
+ * responses:
117
+ * 200:
118
+ * description: Returns the Correlation with the given ID.
119
+ * content:
120
+ * application/json:
121
+ * schema:
122
+ * $ref: '#/components/schemas/Correlation'
123
+ */
124
+ getCorrelationById: `/correlations/${params.correlationId}`,
125
+ // Cronjobs
126
+ /**
127
+ * @swagger
128
+ * /cronjobs/query:
129
+ * get:
130
+ * description: Queries a list of deployed Cronjobs.
131
+ * tags: [Cronjobs]
132
+ * parameters:
133
+ * - name: limit
134
+ * in: query
135
+ * description: The maximum amount of Cronjobs to be returned.
136
+ * required: false
137
+ * schema:
138
+ * type: number
139
+ * example: 10
140
+ * - name: offset
141
+ * in: query
142
+ * description: The index of the first Cronjob to be returned.
143
+ * required: false
144
+ * schema:
145
+ * type: number
146
+ * example: 5
147
+ * - name: processDefinitionId
148
+ * in: query
149
+ * description: The ID of the ProcessDefinition for which to retrieve Cronjobs.
150
+ * required: false
151
+ * schema:
152
+ * type: string
153
+ * example: myProcess_12345678
154
+ * - name: processModelId
155
+ * in: query
156
+ * description: The ID of the ProcessModel for which to retrieve Cronjobs.
157
+ * required: false
158
+ * schema:
159
+ * type: string
160
+ * example: myProcessModel_12345678
161
+ * - name: startEventId
162
+ * in: query
163
+ * description: The ID of the StartEvent for which to retrieve Cronjobs.
164
+ * required: false
165
+ * schema:
166
+ * type: string
167
+ * example: myStartEvent_12345678
168
+ * - name: crontab
169
+ * in: query
170
+ * description: The crontab expression for which to retrieve Cronjobs.
171
+ * required: false
172
+ * schema:
173
+ * type: string
174
+ * example: 0 0 1 * *
175
+ * - name: enabled
176
+ * in: query
177
+ * description: The enabled state for which to retrieve Cronjobs.
178
+ * required: false
179
+ * schema:
180
+ * type: boolean
181
+ * example: true
182
+ * - name: nextExecution
183
+ * in: query
184
+ * description: The nextExecution date for which to retrieve Cronjobs.
185
+ * required: false
186
+ * schema:
187
+ * type: string
188
+ * example: 2020-01-01T00:00:00.000Z
189
+ * responses:
190
+ * 200:
191
+ * description: Returns a list of Cronjobs.
192
+ * content:
193
+ * application/json:
194
+ * schema:
195
+ * $ref: '#/components/schemas/CronjobList'
196
+ */
197
+ queryCronjobs: '/cronjobs/query',
198
+ /**
199
+ * @swagger
200
+ * /cronjobs/process_models/{processModelId}/flow_node/{flowNodeId}/enable:
201
+ * post:
202
+ * description: Enables the given Cronjob for the given ProcessModel.
203
+ * tags: [Cronjobs]
204
+ * parameters:
205
+ * - name: processModelId
206
+ * in: path
207
+ * description: The ID of the ProcessModel for which to enable the Cronjob.
208
+ * required: true
209
+ * schema:
210
+ * type: string
211
+ * example: myProcessModel_12345678
212
+ * - name: flowNodeId
213
+ * in: path
214
+ * description: The ID of the FlowNode for which to enable the Cronjob.
215
+ * required: true
216
+ * schema:
217
+ * type: string
218
+ * example: myFlowNode_12345678
219
+ * responses:
220
+ * 204:
221
+ * description: The Cronjob was successfully enabled.
222
+ */
223
+ enableCronjob: `/cronjobs/process_models/${params.processModelId}/flow_node/${params.flowNodeId}/enable`,
224
+ /**
225
+ * @swagger
226
+ * /cronjobs/process_models/{processModelId}/flow_node/{flowNodeId}/disable:
227
+ * post:
228
+ * description: Disables the given Cronjob for the given ProcessModel.
229
+ * tags: [Cronjobs]
230
+ * parameters:
231
+ * - name: processModelId
232
+ * in: path
233
+ * description: The ID of the ProcessModel for which to disable the Cronjob.
234
+ * required: true
235
+ * schema:
236
+ * type: string
237
+ * example: myProcessModel_12345678
238
+ * - name: flowNodeId
239
+ * in: path
240
+ * description: The ID of the FlowNode for which to disable the Cronjob.
241
+ * required: true
242
+ * schema:
243
+ * type: string
244
+ * example: myFlowNode_12345678
245
+ * responses:
246
+ * 204:
247
+ * description: The Cronjob was successfully disabled.
248
+ */
249
+ disableCronjob: `/cronjobs/process_models/${params.processModelId}/flow_node/${params.flowNodeId}/disable`,
250
+ // DataObjects
251
+ /**
252
+ * @swagger
253
+ * /data_object_instances/query:
254
+ * get:
255
+ * description: Gets the DataObjectInstances that match the given query.
256
+ * tags: [DataObjectInstances]
257
+ * parameters:
258
+ * - name: limit
259
+ * in: query
260
+ * description: The maximum amount of DataObjectInstances to be returned.
261
+ * schema:
262
+ * type: number
263
+ * example: 100
264
+ * - name: offset
265
+ * in: query
266
+ * description: The index of the first DataObjectInstance to be returned.
267
+ * schema:
268
+ * type: number
269
+ * example: 5
270
+ * - name: dataObjectId
271
+ * in: query
272
+ * description: The ID of the DataObject for which to retrieve DataObjectInstances.
273
+ * schema:
274
+ * type: string
275
+ * example: myDataObject_12345678
276
+ * - name: processDefinitionId
277
+ * in: query
278
+ * description: The ID of the ProcessDefinition for which to retrieve DataObjectInstances.
279
+ * schema:
280
+ * type: string
281
+ * example: myProcessDefinition_12345678
282
+ * - name: processModelId
283
+ * in: query
284
+ * description: The ID of the ProcessModel for which to retrieve DataObjectInstances.
285
+ * schema:
286
+ * type: string
287
+ * example: myProcessModel_12345678
288
+ * - name: processInstanceId
289
+ * in: query
290
+ * description: The ID of the ProcessInstance for which to retrieve DataObjectInstances.
291
+ * schema:
292
+ * type: string
293
+ * example: myProcessInstance_12345678
294
+ * - name: flowNodeInstanceId
295
+ * in: query
296
+ * description: The ID of the FlowNodeInstance for which to retrieve DataObjectInstances.
297
+ * schema:
298
+ * type: string
299
+ * example: myFlowNodeInstance_12345678
300
+ * - name: createdAt
301
+ * in: query
302
+ * description: The createdAt date for which to retrieve DataObjectInstances.
303
+ * schema:
304
+ * type: string
305
+ * example: 2020-01-01T00:00:00.000Z
306
+ * responses:
307
+ * 200:
308
+ * description: Returns a list of DataObjectInstances.
309
+ * content:
310
+ * application/json:
311
+ * schema:
312
+ * $ref: '#/components/schemas/DataObjectInstanceList'
313
+ */
314
+ getDataObjects: '/data_object_instances/query',
315
+ // FlowNodeInstance
316
+ /**
317
+ * @swagger
318
+ * /flow_node_instances:
319
+ * get:
320
+ * description: Gets all FlowNodeInstances that match the given query.
321
+ * tags: [FlowNodeInstances]
322
+ * parameters:
323
+ * - name: limit
324
+ * in: query
325
+ * description: The maximum amount of FlowNodeInstances to be returned.
326
+ * schema:
327
+ * type: number
328
+ * example: 100
329
+ * - name: offset
330
+ * in: query
331
+ * description: The index of the first FlowNodeInstance to be returned.
332
+ * schema:
333
+ * type: number
334
+ * example: 5
335
+ * - name: flowNodeInstanceId
336
+ * in: query
337
+ * description: The ID of the FlowNodeInstance to be returned.
338
+ * schema:
339
+ * type: string
340
+ * example: myFlowNodeInstance_12345678
341
+ * - name: flowNodeId
342
+ * in: query
343
+ * description: The ID of the FlowNode for which to retrieve FlowNodeInstances.
344
+ * schema:
345
+ * type: string
346
+ * example: myFlowNode_12345678
347
+ * - name: flowNodeName
348
+ * in: query
349
+ * description: The name of the FlowNode for which to retrieve FlowNodeInstances.
350
+ * schema:
351
+ * type: string
352
+ * example: myFlowNode
353
+ * - name: flowNodeLane
354
+ * in: query
355
+ * description: The name of the Lane for which to retrieve FlowNodeInstances.
356
+ * schema:
357
+ * type: string
358
+ * example: myLane
359
+ * - name: flowNodeType
360
+ * in: query
361
+ * description: The type of the FlowNode for which to retrieve FlowNodeInstances.
362
+ * schema:
363
+ * type: string
364
+ * example: bpmn:BoundaryEvent
365
+ * - name: eventType
366
+ * in: query
367
+ * description: The event type of the FlowNodeInstance to be returned.
368
+ * schema:
369
+ * type: string
370
+ * example: messageEvent
371
+ * - name: correlationId
372
+ * in: query
373
+ * description: The correlationId of the FlowNodeInstance to be returned.
374
+ * schema:
375
+ * type: string
376
+ * example: myCorrelationId_12345678
377
+ * - name: processDefinitionId
378
+ * in: query
379
+ * description: The ID of the ProcessDefinition for which to retrieve FlowNodeInstances.
380
+ * schema:
381
+ * type: string
382
+ * example: myProcessDefinition_12345678
383
+ * - name: processModelId
384
+ * in: query
385
+ * description: The ID of the ProcessModel for which to retrieve FlowNodeInstances.
386
+ * schema:
387
+ * type: string
388
+ * example: myProcessModel_12345678
389
+ * - name: processInstanceId
390
+ * in: query
391
+ * description: The ID of the ProcessInstance for which to retrieve FlowNodeInstances.
392
+ * schema:
393
+ * type: string
394
+ * example: myProcessInstance_12345678
395
+ * - name: ownerId
396
+ * in: query
397
+ * description: The ID of the FlowNodeInstance owner for which to retrieve FlowNodeInstances.
398
+ * schema:
399
+ * type: string
400
+ * example: myOwner_12345678
401
+ * - name: state
402
+ * in: query
403
+ * description: The state of the FlowNodeInstance to be returned.
404
+ * schema:
405
+ * type: string
406
+ * example: running
407
+ * - name: previousFlowNodeInstanceId
408
+ * in: query
409
+ * description: The ID of the previous FlowNodeInstance for which to retrieve FlowNodeInstances.
410
+ * schema:
411
+ * type: string
412
+ * example: myPreviousFlowNodeInstance_12345678
413
+ * - name: parentProcessInstanceId
414
+ * in: query
415
+ * description: The ID of the parent ProcessInstance for which to retrieve FlowNodeInstances.
416
+ * schema:
417
+ * type: string
418
+ * example: myParentProcessInstance_12345678
419
+ * - name: createdAt
420
+ * in: query
421
+ * description: The createdAt date for which to retrieve FlowNodeInstances.
422
+ * schema:
423
+ * type: string
424
+ * example: 2020-01-01T00:00:00.000Z
425
+ * - name: updatedAt
426
+ * in: query
427
+ * description: The updatedAt date for which to retrieve FlowNodeInstances.
428
+ * schema:
429
+ * type: string
430
+ * example: 2020-01-01T00:00:00.000Z
431
+ * - name: triggeredByFlowNodeInstance
432
+ * in: query
433
+ * description: The ID of the FlowNodeInstance that triggered the FlowNodeInstance to be returned.
434
+ * schema:
435
+ * type: Array<string> | string | SearchQuery
436
+ * oneOf:
437
+ * - type: Array<string>
438
+ * example: ['myTriggeredFlowNodeInstance_12345678', 'myTriggeredFlowNodeInstance_87654321']
439
+ * - type: string
440
+ * example: myTriggeredFlowNodeInstance_12345678
441
+ * - $ref: '#/components/schemas/SearchQuery'
442
+ * responses:
443
+ * 200:
444
+ * description: Returns a list of FlowNodeInstances.
445
+ * content:
446
+ * application/json:
447
+ * schema:
448
+ * $ref: '#/components/schemas/FlowNodeInstanceList'
449
+ */
450
+ queryFlowNodeInstances: '/flow_node_instances',
451
+ /**
452
+ * @swagger
453
+ * /messages/{eventName}/trigger:
454
+ * post:
455
+ * description: Triggers a MessageEvent by its name.
456
+ * tags: [Events]
457
+ * parameters:
458
+ * - name: eventName
459
+ * in: path
460
+ * description: The name of the MessageEvent to be triggered.
461
+ * required: true
462
+ * schema:
463
+ * type: string
464
+ * example: myMessageEvent
465
+ * - name: processInstanceId
466
+ * in: query
467
+ * description: The ID of the ProcessInstance for which to trigger the MessageEvent.
468
+ * required: false
469
+ * schema:
470
+ * type: string
471
+ * example: myProcessInstance_12345678
472
+ * requestBody:
473
+ * content:
474
+ * application/json:
475
+ * required: false
476
+ * schema:
477
+ * type: object
478
+ * properties:
479
+ * payload:
480
+ * type: string
481
+ * description: The payload to be sent with the MessageEvent.
482
+ * required: false
483
+ * example: myPayload
484
+ * responses:
485
+ * 204:
486
+ * description: Indicates the MessageEvent was successfully triggered.
487
+ */
488
+ triggerMessageEvent: `/messages/${params.eventName}/trigger`,
489
+ /**
490
+ * @swagger
491
+ * /signals/{eventName}/trigger:
492
+ * post:
493
+ * description: Triggers a SignalEvent by its name.
494
+ * tags: [Events]
495
+ * parameters:
496
+ * - name: eventName
497
+ * in: path
498
+ * description: The name of the SignalEvent to be triggered.
499
+ * required: true
500
+ * schema:
501
+ * type: string
502
+ * example: mySignalEvent
503
+ * - name: process_instance_id
504
+ * in: query
505
+ * description: The ID of the ProcessInstance for which to trigger the SignalEvent.
506
+ * required: false
507
+ * schema:
508
+ * type: string
509
+ * example: myProcessInstance_12345678
510
+ * responses:
511
+ * 204:
512
+ * description: Indicates the SignalEvent was successfully triggered.
513
+ */
514
+ triggerSignalEvent: `/signals/${params.eventName}/trigger`,
515
+ /**
516
+ * @swagger
517
+ * /timer/{flowNodeInstanceId}/trigger:
518
+ * post:
519
+ * description: Triggers a TimerEvent by its FlowNodeInstanceId immediately.
520
+ * tags: [Events]
521
+ * parameters:
522
+ * - name: flowNodeInstanceId
523
+ * in: path
524
+ * description: The FlowNodeInstanceId of the TimerEvent to be triggered.
525
+ * required: true
526
+ * schema:
527
+ * type: string
528
+ * example: 123456789
529
+ * responses:
530
+ * 204:
531
+ * description: Indicates the TimerEvent was successfully triggered.
532
+ */
533
+ triggerTimerEvent: `/timer/${params.flowNodeInstanceId}/trigger`,
534
+ /**
535
+ * @swagger
536
+ * /empty_activities/{emptyActivityInstanceId}/finish:
537
+ * put:
538
+ * deprecated: true
539
+ * description: DEPRECATED - Use `PUT /untyped_tasks/:untyped_task_instance_id/finish` instead.
540
+ * tags: [UntypedTasks]
541
+ * parameters:
542
+ * - name: emptyActivityInstanceId
543
+ * in: path
544
+ * description: The ID of the EmptyActivityInstance to be finished.
545
+ * required: true
546
+ * schema:
547
+ * type: string
548
+ * example: myEmptyActivityInstance_12345678
549
+ * responses:
550
+ * 204:
551
+ * description: Indicates the EmptyActivityInstance was successfully finished.
552
+ */
553
+ finishEmptyActivity: `/empty_activities/${params.emptyActivityInstanceId}/finish`,
554
+ /**
555
+ * @swagger
556
+ * /untyped_tasks/{untypedTaskInstanceId}/finish:
557
+ * put:
558
+ * description: Finishes a specific UntypedTask by its UntypedTaskInstanceId.
559
+ * tags: [UntypedTasks]
560
+ * parameters:
561
+ * - name: untypedTaskInstanceId
562
+ * in: path
563
+ * description: The ID of the UntypedTaskInstance to be finished.
564
+ * required: true
565
+ * schema:
566
+ * type: string
567
+ * example: myUntypedTaskInstance_12345678
568
+ * responses:
569
+ * 204:
570
+ * description: Indicates the UntypedTaskInstance was successfully finished.
571
+ */
572
+ finishUntypedTask: `/untyped_tasks/${params.untypedTaskInstanceId}/finish`,
573
+ /**
574
+ * @swagger
575
+ * /manual_tasks/{manualTaskInstanceId}/finish:
576
+ * put:
577
+ * description: Finishes a specific ManualTask by its ManualTaskInstanceId.
578
+ * tags: [ManualTasks]
579
+ * parameters:
580
+ * - name: manualTaskInstanceId
581
+ * in: path
582
+ * description: The ID of the ManualTaskInstance to be finished.
583
+ * required: true
584
+ * schema:
585
+ * type: string
586
+ * example: myManualTaskInstance_12345678
587
+ * responses:
588
+ * 204:
589
+ * description: Indicates the ManualTaskInstance was successfully finished.
590
+ */
591
+ finishManualTask: `/manual_tasks/${params.manualTaskInstanceId}/finish`,
592
+ /**
593
+ * @swagger
594
+ * /user_tasks/{userTaskInstanceId}/finish:
595
+ * put:
596
+ * description: Finishes a specific UserTask by its UserTaskInstanceId.
597
+ * tags: [UserTasks]
598
+ * parameters:
599
+ * - name: userTaskInstanceId
600
+ * in: path
601
+ * description: The ID of the UserTaskInstance to be finished.
602
+ * required: true
603
+ * schema:
604
+ * type: string
605
+ * example: myUserTaskInstance_12345678
606
+ * requestBody:
607
+ * content:
608
+ * application/json:
609
+ * required: false
610
+ * schema:
611
+ * type: object
612
+ * responses:
613
+ * 204:
614
+ * description: Indicates the UserTaskInstance was successfully finished.
615
+ */
616
+ finishUserTask: `/user_tasks/${params.userTaskInstanceId}/finish`,
617
+ /**
618
+ * @swagger
619
+ * /user_tasks/{userTaskInstanceId}/reserve:
620
+ * put:
621
+ * description: Reserves a UserTask for a specific User.
622
+ * tags: [UserTasks]
623
+ * parameters:
624
+ * - name: userTaskInstanceId
625
+ * in: path
626
+ * description: The ID of the UserTaskInstance to be reserved.
627
+ * required: true
628
+ * schema:
629
+ * type: string
630
+ * example: myUserTaskInstance_12345678
631
+ * requestBody:
632
+ * content:
633
+ * application/json:
634
+ * required: true
635
+ * schema:
636
+ * type: object
637
+ * properties:
638
+ * actualOwnerId:
639
+ * type: string
640
+ * description: The ID of the User who reserves the UserTask.
641
+ * required: true
642
+ * example: myUser_12345678
643
+ * responses:
644
+ * 204:
645
+ * description: Indicates the UserTaskInstance was successfully reserved.
646
+ */
647
+ reserveUserTaskInstance: `/user_tasks/${params.userTaskInstanceId}/reserve`,
648
+ /**
649
+ * @swagger
650
+ * /user_tasks/{userTaskInstanceId}/cancel-reservation:
651
+ * delete:
652
+ * description: Cancels the reservation of the given UserTask instance.
653
+ * tags: [UserTasks]
654
+ * parameters:
655
+ * - name: userTaskInstanceId
656
+ * in: path
657
+ * description: The ID of the UserTaskInstance for which to cancel the reservation.
658
+ * required: true
659
+ * schema:
660
+ * type: string
661
+ * example: myUserTaskInstance_12345678
662
+ * responses:
663
+ * 204:
664
+ * description: Indicates the UserTaskInstance reservation was successfully canceled.
665
+ */
666
+ cancelUserTaskInstanceReservation: `/user_tasks/${params.userTaskInstanceId}/cancel-reservation`,
667
+ // External Tasks
668
+ /**
669
+ * @swagger
670
+ * /external_tasks/deployed_topics:
671
+ * get:
672
+ * description: Fetches a list of all ExternalTask topics from all deployed Process Models.
673
+ * tags: [ExternalTasks]
674
+ * responses:
675
+ * 200:
676
+ * description: A list of all ExternalTask topics from all deployed Process Models.
677
+ * content:
678
+ * application/json:
679
+ * schema:
680
+ * description: A list of all ExternalTask topics from all deployed Process Models.
681
+ * type: array
682
+ * items:
683
+ * type: string
684
+ * example:
685
+ * - myTopic
686
+ * - myOtherTopic
687
+ * - myThirdTopic
688
+ * - myFourthTopic
689
+ */
690
+ getAllDeployedTopics: '/external_tasks/deployed_topics',
691
+ /**
692
+ * @swagger
693
+ * /external_tasks/fetch_and_lock:
694
+ * post:
695
+ * description: Fetches the tasks available for an ExternalTaskWorker and locks them for a defined time.
696
+ * tags: [ExternalTasks]
697
+ * requestBody:
698
+ * content:
699
+ * application/json:
700
+ * required: true
701
+ * schema:
702
+ * $ref: '#/components/schemas/FetchAndLockRequestPayload'
703
+ * example:
704
+ * workerId: string
705
+ * topicName: string | Array<string>
706
+ * maxTasks: 10
707
+ * longPollingTimeout: 2000
708
+ * lockDuration: 10000
709
+ * payloadFilter: string
710
+ * responses:
711
+ * 204:
712
+ * description: A list of locked ExternalTasks.
713
+ * content:
714
+ * application/json:
715
+ * schema:
716
+ * type: array
717
+ * items:
718
+ * $ref: '#/components/schemas/ExternalTask'
719
+ */
720
+ fetchAndLockExternalTasks: '/external_tasks/fetch_and_lock',
721
+ /**
722
+ * @swagger
723
+ * /external_tasks/{externalTaskId}/extend_lock:
724
+ * put:
725
+ * description: Extends the lock duration of an ExternalTask by a given amount of time.
726
+ * tags: [ExternalTasks]
727
+ * parameters:
728
+ * - name: externalTaskId
729
+ * in: path
730
+ * description: The ID of the ExternalTask for which to extend the lock duration.
731
+ * required: true
732
+ * schema:
733
+ * type: string
734
+ * example: myExternalTask_12345678
735
+ * requestBody:
736
+ * content:
737
+ * application/json:
738
+ * required: true
739
+ * schema:
740
+ * $ref: '#/components/schemas/ExtendLockRequestPayload'
741
+ * responses:
742
+ * 204:
743
+ * description: Indicates the ExternalTask lock was successfully extended.
744
+ */
745
+ extendExternalTaskLock: `/external_tasks/${params.externalTaskId}/extend_lock`,
746
+ /**
747
+ * @swagger
748
+ * /external_tasks/{externalTaskId}/error:
749
+ * put:
750
+ * description: Finishes the given External Task with the given Error.
751
+ * tags: [ExternalTasks]
752
+ * parameters:
753
+ * - name: externalTaskId
754
+ * in: path
755
+ * description: The ID of the ExternalTask for which to finish with an Error.
756
+ * required: true
757
+ * schema:
758
+ * type: string
759
+ * example: myExternalTask_12345678
760
+ * requestBody:
761
+ * content:
762
+ * application/json:
763
+ * required: true
764
+ * schema:
765
+ * $ref: '#/components/schemas/HandleExternalTaskErrorRequestPayload'
766
+ * responses:
767
+ * 204:
768
+ * description: Indicates the ExternalTask was successfully finished with an Error.
769
+ */
770
+ finishExternalTaskWithError: `/external_tasks/${params.externalTaskId}/error`,
771
+ /**
772
+ * @swagger
773
+ * /external_tasks/{externalTaskId}/finish:
774
+ * put:
775
+ * description: Finishes the ExternalTask with the given ID.
776
+ * tags: [ExternalTasks]
777
+ * parameters:
778
+ * - name: externalTaskId
779
+ * in: path
780
+ * description: The ID of the ExternalTask to finish.
781
+ * required: true
782
+ * schema:
783
+ * type: string
784
+ * example: myExternalTask_12345678
785
+ * requestBody:
786
+ * content:
787
+ * application/json:
788
+ * required: true
789
+ * schema:
790
+ * $ref: '#/components/schemas/FinishExternalTaskRequestPayload'
791
+ * responses:
792
+ * 204:
793
+ * description: Indicates the ExternalTask was successfully finished.
794
+ */
795
+ finishExternalTask: `/external_tasks/${params.externalTaskId}/finish`,
796
+ // ProcessDefinition
797
+ /**
798
+ * @swagger
799
+ * /process_definitions:
800
+ * post:
801
+ * description: Creates or updates a ProcessDefinition or a list of ProcessDefinitions.
802
+ * tags: [ProcessDefinitions]
803
+ * requestBody:
804
+ * content:
805
+ * application/json:
806
+ * required: true
807
+ * schema:
808
+ * $ref: '#/components/schemas/PersistProcessDefinitionsPayload'
809
+ * example:
810
+ * xml: string | Array<string>
811
+ * overrideExisting: true
812
+ * responses:
813
+ * 201:
814
+ * description: Indicates the ProcessDefinition(s) was/were successfully persisted.
815
+ */
816
+ persistProcessDefinitions: '/process_definitions',
817
+ /**
818
+ * @swagger
819
+ * /process_definitions:
820
+ * get:
821
+ * description: Gets all ProcessDefinitions the requesting user is allowed to see.
822
+ * tags: [ProcessDefinitions]
823
+ * parameters:
824
+ * - name: offset
825
+ * in: query
826
+ * description: The index of the first ProcessDefinition to include.
827
+ * required: false
828
+ * schema:
829
+ * type: number
830
+ * example: 0
831
+ * - name: limit
832
+ * in: query
833
+ * description: The maximum number of ProcessDefinitions to include.
834
+ * required: false
835
+ * schema:
836
+ * type: number
837
+ * example: 10
838
+ * responses:
839
+ * 200:
840
+ * description: A list of ProcessDefinitions.
841
+ * content:
842
+ * application/json:
843
+ * schema:
844
+ * $ref: '#/components/schemas/ProcessDefinitionList'
845
+ */
846
+ getProcessDefinitions: '/process_definitions',
847
+ /**
848
+ * @swagger
849
+ * /process_definitions/{processDefinitionId}:
850
+ * get:
851
+ * description: Gets a ProcessDefinition by its id.
852
+ * tags: [ProcessDefinitions]
853
+ * parameters:
854
+ * - name: processDefinitionId
855
+ * in: path
856
+ * description: The ID of the ProcessDefinition to retrieve.
857
+ * required: true
858
+ * schema:
859
+ * type: string
860
+ * example: myProcess_12345678
861
+ * responses:
862
+ * 200:
863
+ * description: A ProcessDefinitions.
864
+ * content:
865
+ * application/json:
866
+ * schema:
867
+ * $ref: '#/components/schemas/ProcessDefinition'
868
+ */
869
+ getProcessDefinitionById: `/process_definitions/${params.processDefinitionId}`,
870
+ /**
871
+ * @swagger
872
+ * /process_definitions/{processDefinitionId}:
873
+ * delete:
874
+ * description: Deletes the ProcessDefinition with the given ID.
875
+ * tags: [ProcessDefinitions]
876
+ * parameters:
877
+ * - name: processDefinitionId
878
+ * in: path
879
+ * description: The ID of the ProcessDefinition to delete.
880
+ * required: true
881
+ * schema:
882
+ * type: string
883
+ * example: myProcess_12345678
884
+ * - name: delete_all_related_data
885
+ * in: query
886
+ * description: If set to true, all ProcessInstances and ProcessModels related to the ProcessDefinition will be deleted as well.
887
+ * required: false
888
+ * schema:
889
+ * type: boolean
890
+ * example: true
891
+ * responses:
892
+ * 204:
893
+ * description: Indicates the ProcessDefinition was successfully deleted.
894
+ */
895
+ deleteProcessDefinition: `/process_definitions/${params.processDefinitionId}`,
896
+ // ProcessModels
897
+ /**
898
+ * @swagger
899
+ * /process_models:
900
+ * get:
901
+ * description: Gets all currently deployed Process Models.
902
+ * tags: [ProcessModels]
903
+ * responses:
904
+ * 200:
905
+ * content:
906
+ * application/json:
907
+ * schema:
908
+ * $ref: '#/components/schemas/ProcessModelList'
909
+ */
910
+ getAllProcessModels: '/process_models',
911
+ /**
912
+ * @swagger
913
+ * /process_models/{processModelId}/:
914
+ * get:
915
+ * description: Gets a deployed Process Model by its ID.
916
+ * tags: [ProcessModels]
917
+ * parameters:
918
+ * - name: processModelId
919
+ * in: path
920
+ * description: The ID of the ProcessModel to retrieve.
921
+ * required: true
922
+ * schema:
923
+ * type: string
924
+ * example: myProcess_12345678
925
+ * responses:
926
+ * 200:
927
+ * content:
928
+ * application/json:
929
+ * schema:
930
+ * $ref: '#/components/schemas/ProcessModel'
931
+ */
932
+ getProcessModelById: `/process_models/${params.processModelId}/`,
933
+ /**
934
+ * @swagger
935
+ * /process_models/{processModelId}/process_definition:
936
+ * get:
937
+ * description: Gets a ProcessDefinition for a given ProcessModel.
938
+ * tags: [ProcessModels]
939
+ * parameters:
940
+ * - name: processModelId
941
+ * in: path
942
+ * description: The ID of the ProcessModel for which to retrieve the ProcessDefinition.
943
+ * required: true
944
+ * schema:
945
+ * type: string
946
+ * example: myProcess_12345678
947
+ * responses:
948
+ * 200:
949
+ * content:
950
+ * application/json:
951
+ * schema:
952
+ * $ref: '#/components/schemas/ProcessDefinition'
953
+ */
954
+ getProcessDefinitionForProcessModel: `/process_models/${params.processModelId}/process_definition`,
955
+ /**
956
+ * @swagger
957
+ * /process_models/{processModelId}/start:
958
+ * post:
959
+ * description: Starts a new instance from the given set of parameters.
960
+ * tags: [ProcessModels]
961
+ * parameters:
962
+ * - name: processModelId
963
+ * in: path
964
+ * description: The ID of the ProcessModel for which to start a new instance.
965
+ * required: true
966
+ * schema:
967
+ * type: string
968
+ * example: myProcess_12345678
969
+ * requestBody:
970
+ * content:
971
+ * application/json:
972
+ * required: true
973
+ * schema:
974
+ * $ref: '#/components/schemas/ProcessStartRequest'
975
+ * responses:
976
+ * 200:
977
+ * content:
978
+ * application/json:
979
+ * schema:
980
+ * $ref: '#/components/schemas/ProcessStartResponse'
981
+ */
982
+ startProcessInstance: `/process_models/${params.processModelId}/start`,
983
+ /**
984
+ * @swagger
985
+ * /process_models/{processModelId}:
986
+ * delete:
987
+ * description: Deletes the ProcessDefinition that contains the Process Model with the given ID.
988
+ * tags: [ProcessModels]
989
+ * parameters:
990
+ * - name: processModelId
991
+ * in: path
992
+ * description: The ID of the ProcessModel for which to delete the ProcessDefinition.
993
+ * required: true
994
+ * schema:
995
+ * type: string
996
+ * example: myProcess_12345678
997
+ * - name: delete_all_related_data
998
+ * in: query
999
+ * description: If set to true, all ProcessInstances related to the ProcessDefinition will be deleted as well.
1000
+ * required: false
1001
+ * schema:
1002
+ * type: boolean
1003
+ * example: true
1004
+ * responses:
1005
+ * 204:
1006
+ * description: Indicates the ProcessDefinition was successfully deleted.
1007
+ */
1008
+ deleteProcessDefinitionByProcessModelId: `/process_models/${params.processModelId}`,
1009
+ /**
1010
+ * @swagger
1011
+ * /process_models/{processModelId}/enable:
1012
+ * post:
1013
+ * description: Enables the given Process Model.
1014
+ * tags: [ProcessModels]
1015
+ * parameters:
1016
+ * - name: processModelId
1017
+ * in: path
1018
+ * description: The ID of the ProcessModel to enable.
1019
+ * required: true
1020
+ * schema:
1021
+ * type: string
1022
+ * example: myProcess_12345678
1023
+ * responses:
1024
+ * 204:
1025
+ * description: Indicates the ProcessModel was successfully enabled.
1026
+ */
1027
+ enableProcessModel: `/process_models/${params.processModelId}/enable`,
1028
+ /**
1029
+ * @swagger
1030
+ * /process_models/{processModelId}/disable:
1031
+ * post:
1032
+ * description: Disables the given Process Model.
1033
+ * tags: [ProcessModels]
1034
+ * parameters:
1035
+ * - name: processModelId
1036
+ * in: path
1037
+ * description: The ID of the ProcessModel to disable.
1038
+ * required: true
1039
+ * schema:
1040
+ * type: string
1041
+ * example: myProcess_12345678
1042
+ * responses:
1043
+ * 204:
1044
+ * description: Indicates the ProcessModel was successfully disabled
1045
+ */
1046
+ disableProcessModel: `/process_models/${params.processModelId}/disable`,
1047
+ // ProcessInstance
1048
+ /**
1049
+ * @swagger
1050
+ * /process_instances/query:
1051
+ * get:
1052
+ * description: Gets all ProcessInstances that match the given query.
1053
+ * tags: [ProcessInstances]
1054
+ * parameters:
1055
+ * - name: offset
1056
+ * in: query
1057
+ * description: The index of the first ProcessInstance to include in the result set.
1058
+ * required: false
1059
+ * schema:
1060
+ * type: number
1061
+ * example: 0
1062
+ * - name: limit
1063
+ * in: query
1064
+ * description: The maximum number of ProcessInstances to return.
1065
+ * required: false
1066
+ * schema:
1067
+ * type: number
1068
+ * example: 10
1069
+ * - name: correlationId
1070
+ * in: query
1071
+ * description: Filter by the CorrelationId of the ProcessInstances.
1072
+ * required: false
1073
+ * schema:
1074
+ * type: Array<string> | string | SearchQuery
1075
+ * oneOf:
1076
+ * - type: string
1077
+ * example: myCorrelationId
1078
+ * - type: Array<string>
1079
+ * example: ['myCorrelationId1', 'myCorrelationId2']
1080
+ * - $ref: '#/components/schemas/SearchQuery'
1081
+ * - name: processInstanceId
1082
+ * in: query
1083
+ * description: Filter by the ID of the ProcessInstances.
1084
+ * schema:
1085
+ * type: Array<string> | string | SearchQuery
1086
+ * oneOf:
1087
+ * - type: string
1088
+ * example: myProcessInstance_12345678
1089
+ * - type: Array<string>
1090
+ * example: ['myProcessInstance_12345678', 'myProcessInstance_87654321']
1091
+ * - $ref: '#/components/schemas/SearchQuery'
1092
+ * - name: processDefinitionId
1093
+ * in: query
1094
+ * description: Filter by the ID of the ProcessDefinition that the ProcessInstances belong to.
1095
+ * schema:
1096
+ * type: Array<string> | string | SearchQuery
1097
+ * oneOf:
1098
+ * - type: string
1099
+ * example: myProcess_12345678
1100
+ * - type: Array<string>
1101
+ * example: ['myProcess_12345678', 'myProcess_87654321']
1102
+ * - $ref: '#/components/schemas/SearchQuery'
1103
+ * - name: processModelId
1104
+ * in: query
1105
+ * description: Filter by the ID of the ProcessModel that the ProcessInstances belong to.
1106
+ * schema:
1107
+ * type: Array<string> | string | SearchQuery
1108
+ * oneOf:
1109
+ * - type: string
1110
+ * example: myProcessModel_12345678
1111
+ * - type: Array<string>
1112
+ * example: ['myProcessModel_12345678', 'myProcessModel_87654321']
1113
+ * - $ref: '#/components/schemas/SearchQuery'
1114
+ * - name: processModelName
1115
+ * in: query
1116
+ * description: Filter by the name of the ProcessModel that the ProcessInstances belong to.
1117
+ * schema:
1118
+ * type: Array<string> | string | SearchQuery
1119
+ * oneOf:
1120
+ * - type: string
1121
+ * example: My Process Model
1122
+ * - type: Array<string>
1123
+ * example: ['My Process Model', 'My Other Process Model']
1124
+ * - $ref: '#/components/schemas/SearchQuery'
1125
+ * - name: processModelHash
1126
+ * in: query
1127
+ * description: Filter by the hash of the ProcessModel that the ProcessInstances belong to.
1128
+ * schema:
1129
+ * type: Array<string> | string | SearchQuery
1130
+ * oneOf:
1131
+ * - type: string
1132
+ * example: 12345678
1133
+ * - type: Array<string>
1134
+ * example: ['12345678', '87654321']
1135
+ * - $ref: '#/components/schemas/SearchQuery'
1136
+ * - name: ownerId
1137
+ * in: query
1138
+ * description: Filter by the ID of the User that owns the ProcessInstances.
1139
+ * schema:
1140
+ * type: Array<string> | string | SearchQuery
1141
+ * oneOf:
1142
+ * - type: string
1143
+ * example: 12345678
1144
+ * - type: Array<string>
1145
+ * example: ['12345678', '87654321']
1146
+ * - $ref: '#/components/schemas/SearchQuery'
1147
+ * - name: state
1148
+ * in: query
1149
+ * description: Filter by the state of the ProcessInstances.
1150
+ * schema:
1151
+ * type: Array<string> | string | SearchQuery
1152
+ * oneOf:
1153
+ * - type: string
1154
+ * example: running
1155
+ * - type: Array<string>
1156
+ * example: ['running', 'finished']
1157
+ * - $ref: '#/components/schemas/SearchQuery'
1158
+ * - name: parentProcessInstanceId
1159
+ * in: query
1160
+ * description: Filter by the ID of the parent ProcessInstance.
1161
+ * schema:
1162
+ * type: Array<string> | string | SearchQuery
1163
+ * oneOf:
1164
+ * - type: string
1165
+ * example: myParentProcessInstance_12345678
1166
+ * - type: Array<string>
1167
+ * example: ['myParentProcessInstance_12345678', 'myParentProcessInstance_87654321']
1168
+ * - $ref: '#/components/schemas/SearchQuery'
1169
+ * - name: terminatedByUserId
1170
+ * in: query
1171
+ * description: Filter by the ID of the User that terminated the ProcessInstances.
1172
+ * schema:
1173
+ * type: Array<string> | string | SearchQuery
1174
+ * oneOf:
1175
+ * - type: string
1176
+ * example: 12345678
1177
+ * - type: Array<string>
1178
+ * example: ['12345678', '87654321']
1179
+ * - $ref: '#/components/schemas/SearchQuery'
1180
+ * - name: createdBefore
1181
+ * in: query
1182
+ * description: The maximum created date of the ProcessInstances to include in the results.
1183
+ * schema:
1184
+ * type: string
1185
+ * example: 2021-01-01T00:00:00.000Z
1186
+ * - name: createdAt
1187
+ * in: query
1188
+ * description: The minimum created date of the ProcessInstances to include in the results.
1189
+ * schema:
1190
+ * type: Array<string> | string
1191
+ * oneOf:
1192
+ * - type: string
1193
+ * example: 2021-01-01T00:00:00.000Z
1194
+ * - type: array
1195
+ * items:
1196
+ * type: string
1197
+ * example: ['2021-01-01T00:00:00.000Z', '2021-01-02T00:00:00.000Z']
1198
+ * - name: createdAfter
1199
+ * in: query
1200
+ * description: The minimum created date of the ProcessInstances to include in the results.
1201
+ * schema:
1202
+ * type: string
1203
+ * example: 2021-01-01T00:00:00.000Z
1204
+ * - name: updatedBefore
1205
+ * in: query
1206
+ * description: The maximum updated date of the ProcessInstances to include in the results.
1207
+ * schema:
1208
+ * type: string
1209
+ * example: 2021-01-01T00:00:00.000Z
1210
+ * - name: updatedAt
1211
+ * in: query
1212
+ * description: The exact updated date of the ProcessInstances to include in the results.
1213
+ * schema:
1214
+ * type: Array<string> | string
1215
+ * oneOf:
1216
+ * - type: string
1217
+ * example: 2021-01-01T00:00:00.000Z
1218
+ * - type: array
1219
+ * items:
1220
+ * type: string
1221
+ * example: ['2021-01-01T00:00:00.000Z', '2021-01-02T00:00:00.000Z']
1222
+ * - name: updatedAfter
1223
+ * in: query
1224
+ * description: The minimum updated date of the ProcessInstances to include in the results.
1225
+ * schema:
1226
+ * type: string
1227
+ * example: 2021-01-01T00:00:00.000Z
1228
+ * - name: finishedBefore
1229
+ * in: query
1230
+ * description: The maximum finished date of the ProcessInstances to include in the results.
1231
+ * schema:
1232
+ * type: string
1233
+ * example: 2021-01-01T00:00:00.000Z
1234
+ * - name: finishedAt
1235
+ * in: query
1236
+ * description: The exact finished date of the ProcessInstances to include in the results.
1237
+ * schema:
1238
+ * type: Array<string> | string
1239
+ * oneOf:
1240
+ * - type: string
1241
+ * example: 2021-01-01T00:00:00.000Z
1242
+ * - type: array
1243
+ * items:
1244
+ * type: string
1245
+ * example: ['2021-01-01T00:00:00.000Z', '2021-01-02T00:00:00.000Z']
1246
+ * - name: finishedAfter
1247
+ * in: query
1248
+ * description: The minimum finished date of the ProcessInstances to include in the results.
1249
+ * schema:
1250
+ * type: string
1251
+ * example: 2021-01-01T00:00:00.000Z
1252
+ * - name: triggeredByFlowNodeInstance
1253
+ * in: query
1254
+ * description: Filter by the ID of the FlowNodeInstance that triggered the ProcessInstance.
1255
+ * schema:
1256
+ * type: Array<string> | string | SearchQuery
1257
+ * oneOf:
1258
+ * - type: string
1259
+ * example: myFlowNodeInstance_12345678
1260
+ * - type: array
1261
+ * items:
1262
+ * type: string
1263
+ * example: ['myFlowNodeInstance_12345678', 'myFlowNodeInstance_87654321']
1264
+ * - $ref: '#/components/schemas/SearchQuery'
1265
+ * responses:
1266
+ * 200:
1267
+ * content:
1268
+ * application/json:
1269
+ * schema:
1270
+ * $ref: '#/components/schemas/ProcessInstanceList'
1271
+ */
1272
+ queryProcessInstances: '/process_instances/query',
1273
+ /**
1274
+ * @swagger
1275
+ * /process_instances/{processInstanceId}/find_children:
1276
+ * get:
1277
+ * description: Gets all child ProcessInstances ids for a given ProcessInstance.
1278
+ * tags: [ProcessInstances]
1279
+ * parameters:
1280
+ * - name: processInstanceId
1281
+ * in: path
1282
+ * description: The ID of the ProcessInstance for which the child ProcessInstances should be retrieved.
1283
+ * required: true
1284
+ * schema:
1285
+ * type: string
1286
+ * example: 12345678
1287
+ * - name: parentFlowNodeType
1288
+ * in: query
1289
+ * description: Either bpmn:SubProcess or bpmn:CallActivity. Used to filter the type of child process between embedded and not embedded ones.
1290
+ * required: false
1291
+ * schema:
1292
+ * type: string
1293
+ * example: bpmn:SubProcess
1294
+ * - name: includeNested
1295
+ * in: query
1296
+ * description: Indicates whether only direct children or recursively all descendants will be returned.
1297
+ * required: false
1298
+ * schema:
1299
+ * type: boolean
1300
+ * example: true
1301
+ * default: false
1302
+ * responses:
1303
+ * 200:
1304
+ * content:
1305
+ * application/json:
1306
+ * schema:
1307
+ * type: Array<string>
1308
+ * example: ["12345678","12345679"]
1309
+ */
1310
+ getChildProcessInstanceIds: `/process_instances/${params.processInstanceId}/find_children`,
1311
+ /**
1312
+ * @swagger
1313
+ * /process_instances/{processInstanceId}/find_ancestors:
1314
+ * get:
1315
+ * description: Gets all ancestor ProcessInstances Ids for a given ProcessInstance. The first list entry is the most distant ancestor, while the last entry is the direct parent ProcessInstance.
1316
+ * tags: [ProcessInstances]
1317
+ * parameters:
1318
+ * - name: processInstanceId
1319
+ * in: path
1320
+ * description: The ID of the ProcessInstance for which the ancestor ProcessInstances should be retrieved.
1321
+ * required: true
1322
+ * schema:
1323
+ * type: string
1324
+ * example: 12345678
1325
+ * - name: onlyForEmbeddedProcesses
1326
+ * in: query
1327
+ * description: When set to true, it returns all ancestors up to the first not-embedded process. Else it returns the whole chain of ancestor ProcessInstances.
1328
+ * required: false
1329
+ * schema:
1330
+ * type: boolean
1331
+ * example: true
1332
+ * responses:
1333
+ * 200:
1334
+ * content:
1335
+ * application/json:
1336
+ * schema:
1337
+ * type: Array<string>
1338
+ * example: ["12345678","12345679"]
1339
+ */
1340
+ getAncestorProcessInstanceIds: `/process_instances/${params.processInstanceId}/find_ancestors`,
1341
+ /**
1342
+ * @swagger
1343
+ * /process_instances/{processInstanceId}/process_definition:
1344
+ * get:
1345
+ * description: Gets the ProcessDefinition for a given ProcessInstance.
1346
+ * tags: [ProcessInstances]
1347
+ * parameters:
1348
+ * - name: processInstanceId
1349
+ * in: path
1350
+ * description: The ID of the ProcessInstance for which the ProcessDefinition should be retrieved.
1351
+ * required: true
1352
+ * schema:
1353
+ * type: string
1354
+ * example: 12345678
1355
+ * responses:
1356
+ * 200:
1357
+ * content:
1358
+ * application/json:
1359
+ * schema:
1360
+ * $ref: '#/components/schemas/ProcessDefinition'
1361
+ */
1362
+ getProcessDefinitionForProcessInstance: `/process_instances/${params.processInstanceId}/process_definition`,
1363
+ /**
1364
+ * @swagger
1365
+ * /process_instances/{processInstanceId}/process_model:
1366
+ * get:
1367
+ * description: Gets the ProcessModel for a given ProcessInstance.
1368
+ * tags: [ProcessInstances]
1369
+ * parameters:
1370
+ * - name: processInstanceId
1371
+ * in: path
1372
+ * description: The ID of the ProcessInstance for which the ProcessModel should be retrieved.
1373
+ * required: true
1374
+ * schema:
1375
+ * type: string
1376
+ * example: 12345678
1377
+ * responses:
1378
+ * 200:
1379
+ * content:
1380
+ * application/json:
1381
+ * schema:
1382
+ * $ref: '#/components/schemas/ProcessModel'
1383
+ */
1384
+ getProcessModelForProcessInstance: `/process_instances/${params.processInstanceId}/process_model`,
1385
+ /**
1386
+ * @swagger
1387
+ * /process_instances/{processInstanceId}/change_owner:
1388
+ * post:
1389
+ * description: Changes the owner of the ProcessInstance with the given ID.
1390
+ * tags: [ProcessInstances]
1391
+ * parameters:
1392
+ * - name: processInstanceId
1393
+ * in: path
1394
+ * description: The ID of the ProcessInstance for which the owner should be changed.
1395
+ * required: true
1396
+ * schema:
1397
+ * type: string
1398
+ * example: 12345678
1399
+ * requestBody:
1400
+ * content:
1401
+ * application/json:
1402
+ * required: true
1403
+ * schema:
1404
+ * type: object
1405
+ * properties:
1406
+ * newOwner:
1407
+ * description: The new owner of the ProcessInstance.
1408
+ * $ref: '#/components/schemas/Identity'
1409
+ * required: true
1410
+ * responses:
1411
+ * 204:
1412
+ * description: Indicates the ProcessInstance owner was changed successfully.
1413
+ */
1414
+ changeProcessInstanceOwner: `/process_instances/${params.processInstanceId}/change_owner`,
1415
+ /**
1416
+ * @swagger
1417
+ * /process_instances/{processInstanceId}/terminate:
1418
+ * put:
1419
+ * description: Terminates the ProcessInstance with the given ID.
1420
+ * tags: [ProcessInstances]
1421
+ * parameters:
1422
+ * - name: processInstanceId
1423
+ * in: path
1424
+ * description: The ID of the ProcessInstance to terminate.
1425
+ * required: true
1426
+ * schema:
1427
+ * type: string
1428
+ * example: 12345678
1429
+ * responses:
1430
+ * 204:
1431
+ * description: Indicates the ProcessInstance was terminated successfully.
1432
+ */
1433
+ terminateProcessInstances: `/process_instances/${params.processInstanceId}/terminate`,
1434
+ /**
1435
+ * @swagger
1436
+ * /process_instances/{processInstanceId}/retry:
1437
+ * put:
1438
+ * description: Retries a failed or terminated Process Instance from the original point of failure.
1439
+ * tags: [ProcessInstances]
1440
+ * parameters:
1441
+ * - name: processInstanceId
1442
+ * in: path
1443
+ * description: The ID of the ProcessInstance to retry.
1444
+ * required: true
1445
+ * schema:
1446
+ * type: string
1447
+ * example: 12345678
1448
+ * - name: flow_node_instance_id
1449
+ * in: query
1450
+ * description: The ID of the FlowNodeInstance to retry from.
1451
+ * schema:
1452
+ * type: string
1453
+ * example: 12345678
1454
+ * requestBody:
1455
+ * content:
1456
+ * application/json:
1457
+ * required: false
1458
+ * schema:
1459
+ * type: object
1460
+ * properties:
1461
+ * newStartToken:
1462
+ * type: object
1463
+ * description: The new start token for the ProcessInstance.
1464
+ * required: false
1465
+ * responses:
1466
+ * 204:
1467
+ * description: Indicates the ProcessInstance was retried successfully.
1468
+ */
1469
+ retryProcessInstance: `/process_instances/${params.processInstanceId}/retry`,
1470
+ /**
1471
+ * @swagger
1472
+ * /process_instances:
1473
+ * delete:
1474
+ * description: Deletes the given Set of Process Instances. Multiple ProcessInstanceIds can be provided with ";" as separator.
1475
+ * tags: [ProcessInstances]
1476
+ * parameters:
1477
+ * - name: process_instance_ids
1478
+ * in: query
1479
+ * description: The IDs of the ProcessInstances to delete.
1480
+ * required: true
1481
+ * schema:
1482
+ * type: string | Array<string>
1483
+ * oneOf:
1484
+ * - type: string
1485
+ * example: 12345678
1486
+ * - type: Array<string>
1487
+ * example: [12345678, 87654321]
1488
+ * - name: delete_all_related_data
1489
+ * in: query
1490
+ * description: Flag to indicate whether all related data should be deleted as well.
1491
+ * required: false
1492
+ * schema:
1493
+ * type: boolean
1494
+ * example: true
1495
+ * responses:
1496
+ * 204:
1497
+ * description: Indicates the ProcessInstances were deleted successfully.
1498
+ */
1499
+ deleteProcessInstances: `/process_instances`,
1500
+ // Long Polling Notifications
1501
+ /**
1502
+ * @swagger
1503
+ * /notifications/long_polling/cronjob_created:
1504
+ * get:
1505
+ * description: Wait for a CronjobCreated notification and resolves with the notification's content.
1506
+ * tags: [Notifications]
1507
+ * responses:
1508
+ * 200:
1509
+ * content:
1510
+ * application/json:
1511
+ * schema:
1512
+ * $ref: '#/components/schemas/CronjobEventMessage'
1513
+ */
1514
+ onCronjobCreated: '/notifications/long_polling/cronjob_created',
1515
+ /**
1516
+ * @swagger
1517
+ * /notifications/long_polling/cronjob_executed:
1518
+ * get:
1519
+ * description: Wait for a CronjobExecuted notification and resolves with the notification's content.
1520
+ * tags: [Notifications]
1521
+ * responses:
1522
+ * 200:
1523
+ * content:
1524
+ * application/json:
1525
+ * schema:
1526
+ * $ref: '#/components/schemas/CronjobEventMessage'
1527
+ */
1528
+ onCronjobExecuted: '/notifications/long_polling/cronjob_executed',
1529
+ /**
1530
+ * @swagger
1531
+ * /notifications/long_polling/cronjob_stopped:
1532
+ * get:
1533
+ * description: Wait for a CronjobStopped notification and resolves with the notification's content.
1534
+ * tags: [Notifications]
1535
+ * responses:
1536
+ * 200:
1537
+ * content:
1538
+ * application/json:
1539
+ * schema:
1540
+ * $ref: '#/components/schemas/CronjobEventMessage'
1541
+ */
1542
+ onCronjobStopped: '/notifications/long_polling/cronjob_stopped',
1543
+ /**
1544
+ * @swagger
1545
+ * /notifications/long_polling/cronjob_updated:
1546
+ * get:
1547
+ * description: Wait for a CronjobUpdated notification and resolves with the notification's content.
1548
+ * tags: [Notifications]
1549
+ * responses:
1550
+ * 200:
1551
+ * content:
1552
+ * application/json:
1553
+ * schema:
1554
+ * $ref: '#/components/schemas/CronjobEventMessage'
1555
+ */
1556
+ onCronjobUpdated: '/notifications/long_polling/cronjob_updated',
1557
+ /**
1558
+ * @swagger
1559
+ * /notifications/long_polling/cronjob_removed:
1560
+ * get:
1561
+ * description: Wait for a CronjobRemoved notification and resolves with the notification's content.
1562
+ * tags: [Notifications]
1563
+ * responses:
1564
+ * 200:
1565
+ * content:
1566
+ * application/json:
1567
+ * schema:
1568
+ * $ref: '#/components/schemas/CronjobEventMessage'
1569
+ */
1570
+ onCronjobRemoved: '/notifications/long_polling/cronjob_removed',
1571
+ /**
1572
+ * @swagger
1573
+ * /notifications/long_polling/cronjob_enabled_changed:
1574
+ * get:
1575
+ * description: Wait for a CronjobEnabledChanged notification and resolves with the notification's content.
1576
+ * tags: [Notifications]
1577
+ * responses:
1578
+ * 200:
1579
+ * content:
1580
+ * application/json:
1581
+ * schema:
1582
+ * $ref: '#/components/schemas/CronjobEnabledChangedMessage'
1583
+ */
1584
+ onCronjobEnabledChanged: '/notifications/long_polling/cronjob_enabled_changed',
1585
+ /**
1586
+ * @swagger
1587
+ * /notifications/long_polling/process_deployed:
1588
+ * get:
1589
+ * description: Wait for a ProcessDeployed notification and resolves with the notification's content.
1590
+ * tags: [Notifications]
1591
+ * responses:
1592
+ * 200:
1593
+ * content:
1594
+ * application/json:
1595
+ * schema:
1596
+ * $ref: '#/components/schemas/ProcessDeploymentMessage'
1597
+ */
1598
+ onProcessDeployed: '/notifications/long_polling/process_deployed',
1599
+ /**
1600
+ * @swagger
1601
+ * /notifications/long_polling/process_undeployed:
1602
+ * get:
1603
+ * description: Wait for a ProcessUndeployed notification and resolves with the notification's content.
1604
+ * tags: [Notifications]
1605
+ * responses:
1606
+ * 200:
1607
+ * content:
1608
+ * application/json:
1609
+ * schema:
1610
+ * $ref: '#/components/schemas/ProcessDeploymentMessage'
1611
+ */
1612
+ onProcessUndeployed: '/notifications/long_polling/process_undeployed',
1613
+ /**
1614
+ * @swagger
1615
+ * /notifications/long_polling/process_is_executable_changed:
1616
+ * get:
1617
+ * description: Wait for a ProcessIsExecutableChanged notification and resolves with the notification's content.
1618
+ * tags: [Notifications]
1619
+ * responses:
1620
+ * 200:
1621
+ * content:
1622
+ * application/json:
1623
+ * schema:
1624
+ * $ref: '#/components/schemas/ProcessIsExecutableChangedMessage'
1625
+ */
1626
+ onProcessIsExecutableChanged: '/notifications/long_polling/process_is_executable_changed',
1627
+ /**
1628
+ * @swagger
1629
+ * /notifications/long_polling/process_starting:
1630
+ * get:
1631
+ * description: Wait for a ProcessStarting notification and resolves with the notification's content.
1632
+ * tags: [Notifications]
1633
+ * responses:
1634
+ * 200:
1635
+ * content:
1636
+ * application/json:
1637
+ * schema:
1638
+ * $ref: '#/components/schemas/EventMessage'
1639
+ */
1640
+ onProcessStarting: '/notifications/long_polling/process_starting',
1641
+ /**
1642
+ * @swagger
1643
+ * /notifications/long_polling/process_started:
1644
+ * get:
1645
+ * description: Wait for a ProcessStarted notification and resolves with the notification's content.
1646
+ * tags: [Notifications]
1647
+ * responses:
1648
+ * 200:
1649
+ * content:
1650
+ * application/json:
1651
+ * schema:
1652
+ * $ref: '#/components/schemas/EventMessage'
1653
+ */
1654
+ onProcessStarted: '/notifications/long_polling/process_started',
1655
+ /**
1656
+ * @swagger
1657
+ * /notifications/long_polling/process_resumed:
1658
+ * get:
1659
+ * description: Wait for a ProcessResumed notification and resolves with the notification's content.
1660
+ * tags: [Notifications]
1661
+ * responses:
1662
+ * 200:
1663
+ * content:
1664
+ * application/json:
1665
+ * schema:
1666
+ * $ref: '#/components/schemas/EventMessage'
1667
+ */
1668
+ onProcessResumed: '/notifications/long_polling/process_resumed',
1669
+ /**
1670
+ * @swagger
1671
+ * /notifications/long_polling/process_ended:
1672
+ * get:
1673
+ * description: Wait for a ProcessEnded notification and resolves with the notification's content.
1674
+ * tags: [Notifications]
1675
+ * responses:
1676
+ * 200:
1677
+ * content:
1678
+ * application/json:
1679
+ * schema:
1680
+ * $ref: '#/components/schemas/EventMessage'
1681
+ */
1682
+ onProcessEnded: '/notifications/long_polling/process_ended',
1683
+ /**
1684
+ * @swagger
1685
+ * /notifications/long_polling/process_owner_changed:
1686
+ * get:
1687
+ * description: Wait for a ProcessOwnerChanged notification and resolves with the notification's content.
1688
+ * tags: [Notifications]
1689
+ * responses:
1690
+ * 200:
1691
+ * content:
1692
+ * application/json:
1693
+ * schema:
1694
+ * $ref: '#/components/schemas/EventMessage'
1695
+ */
1696
+ onProcessOwnerChanged: '/notifications/long_polling/process_owner_changed',
1697
+ /**
1698
+ * @swagger
1699
+ * /notifications/long_polling/process_terminated:
1700
+ * get:
1701
+ * description: Wait for a ProcessTerminated notification and resolves with the notification's content.
1702
+ * tags: [Notifications]
1703
+ * responses:
1704
+ * 200:
1705
+ * content:
1706
+ * application/json:
1707
+ * schema:
1708
+ * $ref: '#/components/schemas/EventMessage'
1709
+ */
1710
+ onProcessTerminated: '/notifications/long_polling/process_terminated',
1711
+ /**
1712
+ * @swagger
1713
+ * /notifications/long_polling/process_error:
1714
+ * get:
1715
+ * description: Wait for a ProcessError notification and resolves with the notification's content.
1716
+ * tags: [Notifications]
1717
+ * responses:
1718
+ * 200:
1719
+ * content:
1720
+ * application/json:
1721
+ * schema:
1722
+ * $ref: '#/components/schemas/EventMessage'
1723
+ */
1724
+ onProcessError: '/notifications/long_polling/process_error',
1725
+ /**
1726
+ * @swagger
1727
+ * /notifications/long_polling/process_instances_deleted:
1728
+ * get:
1729
+ * description: Wait for a ProcessInstancesDeleted notification and resolves with the notification's content.
1730
+ * tags: [Notifications]
1731
+ * responses:
1732
+ * 200:
1733
+ * content:
1734
+ * application/json:
1735
+ * schema:
1736
+ * $ref: '#/components/schemas/EventMessage'
1737
+ */
1738
+ onProcessInstancesDeleted: '/notifications/long_polling/process_instances_deleted',
1739
+ /**
1740
+ * @swagger
1741
+ * /notifications/long_polling/external_task_created:
1742
+ * get:
1743
+ * description: Wait for an ExternalTaskCreated notification and resolves with the notification's content.
1744
+ * tags: [Notifications]
1745
+ * responses:
1746
+ * 200:
1747
+ * content:
1748
+ * application/json:
1749
+ * schema:
1750
+ * $ref: '#/components/schemas/ExternalTaskCreatedMessage'
1751
+ */
1752
+ onExternalTaskCreated: '/notifications/long_polling/external_task_created',
1753
+ /**
1754
+ * @swagger
1755
+ * /notifications/long_polling/external_task_locked:
1756
+ * get:
1757
+ * description: Wait for a ExternalTaskLocked notification and resolves with the notification's content.
1758
+ * tags: [Notifications]
1759
+ * responses:
1760
+ * 200:
1761
+ * content:
1762
+ * application/json:
1763
+ * schema:
1764
+ * $ref: '#/components/schemas/ExternalTaskLockedMessage'
1765
+ */
1766
+ onExternalTaskLocked: '/notifications/long_polling/external_task_locked',
1767
+ /**
1768
+ * @swagger
1769
+ * /notifications/long_polling/external_task_unlocked:
1770
+ * get:
1771
+ * description: Wait for a ExternalTaskUnlocked notification and resolves with the notification's content.
1772
+ * tags: [Notifications]
1773
+ * responses:
1774
+ * 200:
1775
+ * content:
1776
+ * application/json:
1777
+ * schema:
1778
+ * $ref: '#/components/schemas/ExternalTaskUnlockedMessage'
1779
+ */
1780
+ onExternalTaskUnlocked: '/notifications/long_polling/external_task_unlocked',
1781
+ /**
1782
+ * @swagger
1783
+ * /notifications/long_polling/external_task_expired:
1784
+ * get:
1785
+ * description: Wait for a ExternalTaskExpired notification and resolves with the notification's content.
1786
+ * tags: [Notifications]
1787
+ * responses:
1788
+ * 200:
1789
+ * content:
1790
+ * application/json:
1791
+ * schema:
1792
+ * $ref: '#/components/schemas/ExternalTaskExpiredMessage'
1793
+ */
1794
+ onExternalTaskExpired: '/notifications/long_polling/external_task_expired',
1795
+ /**
1796
+ * @swagger
1797
+ * /notifications/long_polling/activity_reached:
1798
+ * get:
1799
+ * description: Wait for an ActivityReached notification and resolves with the notification's content.
1800
+ * tags: [Notifications]
1801
+ * responses:
1802
+ * 200:
1803
+ * content:
1804
+ * application/json:
1805
+ * schema:
1806
+ * $ref: '#/components/schemas/EventMessage'
1807
+ */
1808
+ onActivityReached: '/notifications/long_polling/activity_reached',
1809
+ /**
1810
+ * @swagger
1811
+ * /notifications/long_polling/activity_finished:
1812
+ * get:
1813
+ * description: Wait for an ActivityFinished notification and resolves with the notification's content.
1814
+ * tags: [Notifications]
1815
+ * responses:
1816
+ * 200:
1817
+ * content:
1818
+ * application/json:
1819
+ * schema:
1820
+ * $ref: '#/components/schemas/EventMessage'
1821
+ */
1822
+ onActivityFinished: '/notifications/long_polling/activity_finished',
1823
+ /**
1824
+ * @swagger
1825
+ * /notifications/long_polling/activity_canceled:
1826
+ * get:
1827
+ * description: Wait for an ActivityCanceled notification and resolves with the notification's content.
1828
+ * tags: [Notifications]
1829
+ * responses:
1830
+ * 200:
1831
+ * content:
1832
+ * application/json:
1833
+ * schema:
1834
+ * $ref: '#/components/schemas/EventMessage'
1835
+ */
1836
+ onActivityCanceled: '/notifications/long_polling/activity_canceled',
1837
+ /**
1838
+ * @swagger
1839
+ * /notifications/long_polling/empty_activity_waiting:
1840
+ * get:
1841
+ * deprecated: true
1842
+ * description: DEPRECATED - Use `GET /notifications/long_polling/untyped_task_waiting` instead.
1843
+ * tags: [Notifications]
1844
+ * responses:
1845
+ * 200:
1846
+ * content:
1847
+ * application/json:
1848
+ * schema:
1849
+ * $ref: '#/components/schemas/EventMessage'
1850
+ */
1851
+ onEmptyActivityWaiting: '/notifications/long_polling/empty_activity_waiting',
1852
+ /**
1853
+ * @swagger
1854
+ * /notifications/long_polling/empty_activity_finished:
1855
+ * get:
1856
+ * deprecated: true
1857
+ * description: DEPRECATED - Use `GET /notifications/long_polling/untyped_task_finished` instead.
1858
+ * tags: [Notifications]
1859
+ * responses:
1860
+ * 200:
1861
+ * content:
1862
+ * application/json:
1863
+ * schema:
1864
+ * $ref: '#/components/schemas/EventMessage'
1865
+ */
1866
+ onEmptyActivityFinished: '/notifications/long_polling/empty_activity_finished',
1867
+ /**
1868
+ * @swagger
1869
+ * /notifications/long_polling/untyped_task_waiting:
1870
+ * get:
1871
+ * description: Wait for an UntypedTaskWaiting notification and resolves with the notification's content.
1872
+ * tags: [Notifications]
1873
+ * responses:
1874
+ * 200:
1875
+ * content:
1876
+ * application/json:
1877
+ * schema:
1878
+ * $ref: '#/components/schemas/EventMessage'
1879
+ */
1880
+ onUntypedTaskWaiting: '/notifications/long_polling/untyped_task_waiting',
1881
+ /**
1882
+ * @swagger
1883
+ * /notifications/long_polling/untyped_task_finished:
1884
+ * get:
1885
+ * description: Wait for an UntypedTaskFinished notification and resolves with the notification's content.
1886
+ * tags: [Notifications]
1887
+ * responses:
1888
+ * 200:
1889
+ * content:
1890
+ * application/json:
1891
+ * schema:
1892
+ * $ref: '#/components/schemas/EventMessage'
1893
+ */
1894
+ onUntypedTaskFinished: '/notifications/long_polling/untyped_task_finished',
1895
+ /**
1896
+ * @swagger
1897
+ * /notifications/long_polling/manual_task_waiting:
1898
+ * get:
1899
+ * description: Wait for a ManualTaskWaiting notification and resolves with the notification's content.
1900
+ * tags: [Notifications]
1901
+ * responses:
1902
+ * 200:
1903
+ * content:
1904
+ * application/json:
1905
+ * schema:
1906
+ * $ref: '#/components/schemas/EventMessage'
1907
+ */
1908
+ onManualTaskWaiting: '/notifications/long_polling/manual_task_waiting',
1909
+ /**
1910
+ * @swagger
1911
+ * /notifications/long_polling/manual_task_finished:
1912
+ * get:
1913
+ * description: Wait for a ManualTaskFinied notification and resolves with the notification's content.
1914
+ * tags: [Notifications]
1915
+ * responses:
1916
+ * 200:
1917
+ * content:
1918
+ * application/json:
1919
+ * schema:
1920
+ * $ref: '#/components/schemas/EventMessage'
1921
+ */
1922
+ onManualTaskFinished: '/notifications/long_polling/manual_task_finished',
1923
+ /**
1924
+ * @swagger
1925
+ * /notifications/long_polling/user_task_waiting:
1926
+ * get:
1927
+ * description: Wait for a UserTaskWaiting notification and resolves with the notification's content.
1928
+ * tags: [Notifications]
1929
+ * responses:
1930
+ * 200:
1931
+ * content:
1932
+ * application/json:
1933
+ * schema:
1934
+ * $ref: '#/components/schemas/EventMessage'
1935
+ */
1936
+ onUserTaskWaiting: '/notifications/long_polling/user_task_waiting',
1937
+ /**
1938
+ * @swagger
1939
+ * /notifications/long_polling/user_task_finished:
1940
+ * get:
1941
+ * description: Wait for a UserTaskFinished notification and resolves with the notification's content.
1942
+ * tags: [Notifications]
1943
+ * responses:
1944
+ * 200:
1945
+ * content:
1946
+ * application/json:
1947
+ * schema:
1948
+ * $ref: '#/components/schemas/EventMessage'
1949
+ */
1950
+ onUserTaskFinished: '/notifications/long_polling/user_task_finished',
1951
+ /**
1952
+ * @swagger
1953
+ * /notifications/long_polling/user_task_reserved:
1954
+ * get:
1955
+ * description: Wait for a UserTaskReserved notification and resolves with the notification's content.
1956
+ * tags: [Notifications]
1957
+ * responses:
1958
+ * 200:
1959
+ * content:
1960
+ * application/json:
1961
+ * schema:
1962
+ * $ref: '#/components/schemas/EventMessage'
1963
+ */
1964
+ onUserTaskReserved: '/notifications/long_polling/user_task_reserved',
1965
+ /**
1966
+ * @swagger
1967
+ * /notifications/long_polling/user_task_reservation_canceled:
1968
+ * get:
1969
+ * description: Wait for a UserTaskReservationCanceled notification and resolves with the notification's content.
1970
+ * tags: [Notifications]
1971
+ * responses:
1972
+ * 200:
1973
+ * content:
1974
+ * application/json:
1975
+ * schema:
1976
+ * $ref: '#/components/schemas/EventMessage'
1977
+ */
1978
+ onUserTaskReservationCanceled: '/notifications/long_polling/user_task_reservation_canceled',
1979
+ /**
1980
+ * @swagger
1981
+ * /notifications/long_polling/boundary_event_triggered:
1982
+ * get:
1983
+ * description: Wait for a BoundaryEventTriggered notification and resolves with the notification's content.
1984
+ * tags: [Notifications]
1985
+ * responses:
1986
+ * 200:
1987
+ * content:
1988
+ * application/json:
1989
+ * schema:
1990
+ * $ref: '#/components/schemas/EventMessage'
1991
+ */
1992
+ onBoundaryEventTriggered: '/notifications/long_polling/boundary_event_triggered',
1993
+ /**
1994
+ * @swagger
1995
+ * /notifications/long_polling/boundary_event_finished:
1996
+ * get:
1997
+ * description: Wait for a BoundaryEventFinished notification and resolves with the notification's content.
1998
+ * tags: [Notifications]
1999
+ * responses:
2000
+ * 200:
2001
+ * content:
2002
+ * application/json:
2003
+ * schema:
2004
+ * $ref: '#/components/schemas/EventMessage'
2005
+ */
2006
+ onBoundaryEventFinished: '/notifications/long_polling/boundary_event_finished',
2007
+ /**
2008
+ * @swagger
2009
+ * /notifications/long_polling/intermediate_throw_event_triggered:
2010
+ * get:
2011
+ * description: Wait for an IntermediateThrowEventTriggered notification and resolves with the notification's content.
2012
+ * tags: [Notifications]
2013
+ * responses:
2014
+ * 200:
2015
+ * content:
2016
+ * application/json:
2017
+ * schema:
2018
+ * $ref: '#/components/schemas/EventMessage'
2019
+ */
2020
+ onIntermediateThrowEventTriggered: '/notifications/long_polling/intermediate_throw_event_triggered',
2021
+ /**
2022
+ * @swagger
2023
+ * /notifications/long_polling/intermediate_catch_event_reached:
2024
+ * get:
2025
+ * description: Wait for an IntermediateCatchEventReached notification and resolves with the notification's content.
2026
+ * tags: [Notifications]
2027
+ * responses:
2028
+ * 200:
2029
+ * content:
2030
+ * application/json:
2031
+ * schema:
2032
+ * $ref: '#/components/schemas/EventMessage'
2033
+ */
2034
+ onIntermediateCatchEventReached: '/notifications/long_polling/intermediate_catch_event_reached',
2035
+ /**
2036
+ * @swagger
2037
+ * /notifications/long_polling/intermediate_catch_event_finished:
2038
+ * get:
2039
+ * description: Wait for a IntermediateCatchEventFinished notification and resolves with the notification's content.
2040
+ * tags: [Notifications]
2041
+ * responses:
2042
+ * 200:
2043
+ * content:
2044
+ * application/json:
2045
+ * schema:
2046
+ * $ref: '#/components/schemas/EventMessage'
2047
+ */
2048
+ onIntermediateCatchEventFinished: '/notifications/long_polling/intermediate_catch_event_finished',
2049
+ /**
2050
+ * @swagger
2051
+ * /notifications/long_polling/message_triggered:
2052
+ * get:
2053
+ * description: Wait for an MessageTriggered notification and resolves with the notification's content.
2054
+ * tags: [Notifications]
2055
+ * responses:
2056
+ * 200:
2057
+ * content:
2058
+ * application/json:
2059
+ * schema:
2060
+ * $ref: '#/components/schemas/EventMessage'
2061
+ */
2062
+ onMessageTriggered: '/notifications/long_polling/message_triggered',
2063
+ /**
2064
+ * @swagger
2065
+ * /notifications/long_polling/signal_triggered:
2066
+ * get:
2067
+ * description: Wait for an SignalTriggered notification and resolves with the notification's content.
2068
+ * tags: [Notifications]
2069
+ * responses:
2070
+ * 200:
2071
+ * content:
2072
+ * application/json:
2073
+ * schema:
2074
+ * $ref: '#/components/schemas/EventMessage'
2075
+ */
2076
+ onSignalTriggered: '/notifications/long_polling/signal_triggered',
2077
+ /**
2078
+ * @swagger
2079
+ * /notifications/long_polling/end_event_finished:
2080
+ * get:
2081
+ * description: Wait for an EndEventFinished notification and resolves with the notification's content.
2082
+ * tags: [Notifications]
2083
+ * responses:
2084
+ * 200:
2085
+ * content:
2086
+ * application/json:
2087
+ * schema:
2088
+ * $ref: '#/components/schemas/EventMessage'
2089
+ */
2090
+ onEndEventFinished: '/notifications/long_polling/end_event_finished',
2091
+ /**
2092
+ * @swagger
2093
+ * /notifications/long_polling/start_event_finished:
2094
+ * get:
2095
+ * description: Wait for an StartEventFinished notification and resolves with the notification's content.
2096
+ * tags: [Notifications]
2097
+ * responses:
2098
+ * 200:
2099
+ * content:
2100
+ * application/json:
2101
+ * schema:
2102
+ * $ref: '#/components/schemas/EventMessage'
2103
+ */
2104
+ onStartEventFinished: '/notifications/long_polling/start_event_finished',
2105
+ /**
2106
+ * @swagger
2107
+ * /notifications/long_polling/process_instance_metadata_changed:
2108
+ * get:
2109
+ * description: Wait for a ProcessInstanceMetadataChanged notification and resolves with the notification's content.
2110
+ * tags: [Notifications]
2111
+ * responses:
2112
+ * 200:
2113
+ * content:
2114
+ * application/json:
2115
+ * schema:
2116
+ * $ref: '#/components/schemas/MetadataChangedMessage'
2117
+ */
2118
+ onProcessInstanceMetadataChanged: '/notifications/long_polling/process_instance_metadata_changed',
2119
+ /**
2120
+ * @swagger
2121
+ * /notifications/long_polling/correlation_metadata_changed:
2122
+ * get:
2123
+ * description: Wait for a CorrelationMetadataChanged notification and resolves with the notification's content.
2124
+ * tags: [Notifications]
2125
+ * responses:
2126
+ * 200:
2127
+ * content:
2128
+ * application/json:
2129
+ * schema:
2130
+ * $ref: '#/components/schemas/MetadataChangedMessage'
2131
+ */
2132
+ onCorrelationMetadataChanged: '/notifications/long_polling/correlation_metadata_changed',
2133
+ };
2134
+ exports.EngineRestApiSettings = {
2135
+ params: params,
2136
+ paths: paths,
2137
+ baseRoute: 'atlas_engine/api',
2138
+ };
2139
+ //# sourceMappingURL=EngineRestApiSettings.js.map