@5minds/processcube_engine_sdk 6.1.0-develop-c028f8-m209uxnd → 6.1.0-feature-361d3e-m20dodea

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.
@@ -0,0 +1,2052 @@
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
+ * /empty_activities/{emptyActivityInstanceId}/finish:
518
+ * put:
519
+ * deprecated: true
520
+ * description: DEPRECATED - Use `PUT /untyped_tasks/:untyped_task_instance_id/finish` instead.
521
+ * tags: [UntypedTasks]
522
+ * parameters:
523
+ * - name: emptyActivityInstanceId
524
+ * in: path
525
+ * description: The ID of the EmptyActivityInstance to be finished.
526
+ * required: true
527
+ * schema:
528
+ * type: string
529
+ * example: myEmptyActivityInstance_12345678
530
+ * responses:
531
+ * 204:
532
+ * description: Indicates the EmptyActivityInstance was successfully finished.
533
+ */
534
+ finishEmptyActivity: `/empty_activities/${params.emptyActivityInstanceId}/finish`,
535
+ /**
536
+ * @swagger
537
+ * /untyped_tasks/{untypedTaskInstanceId}/finish:
538
+ * put:
539
+ * description: Finishes a specific UntypedTask by its UntypedTaskInstanceId.
540
+ * tags: [UntypedTasks]
541
+ * parameters:
542
+ * - name: untypedTaskInstanceId
543
+ * in: path
544
+ * description: The ID of the UntypedTaskInstance to be finished.
545
+ * required: true
546
+ * schema:
547
+ * type: string
548
+ * example: myUntypedTaskInstance_12345678
549
+ * responses:
550
+ * 204:
551
+ * description: Indicates the UntypedTaskInstance was successfully finished.
552
+ */
553
+ finishUntypedTask: `/untyped_tasks/${params.untypedTaskInstanceId}/finish`,
554
+ /**
555
+ * @swagger
556
+ * /manual_tasks/{manualTaskInstanceId}/finish:
557
+ * put:
558
+ * description: Finishes a specific ManualTask by its ManualTaskInstanceId.
559
+ * tags: [ManualTasks]
560
+ * parameters:
561
+ * - name: manualTaskInstanceId
562
+ * in: path
563
+ * description: The ID of the ManualTaskInstance to be finished.
564
+ * required: true
565
+ * schema:
566
+ * type: string
567
+ * example: myManualTaskInstance_12345678
568
+ * responses:
569
+ * 204:
570
+ * description: Indicates the ManualTaskInstance was successfully finished.
571
+ */
572
+ finishManualTask: `/manual_tasks/${params.manualTaskInstanceId}/finish`,
573
+ /**
574
+ * @swagger
575
+ * /user_tasks/{userTaskInstanceId}/finish:
576
+ * put:
577
+ * description: Finishes a specific UserTask by its UserTaskInstanceId.
578
+ * tags: [UserTasks]
579
+ * parameters:
580
+ * - name: userTaskInstanceId
581
+ * in: path
582
+ * description: The ID of the UserTaskInstance to be finished.
583
+ * required: true
584
+ * schema:
585
+ * type: string
586
+ * example: myUserTaskInstance_12345678
587
+ * requestBody:
588
+ * content:
589
+ * application/json:
590
+ * required: false
591
+ * schema:
592
+ * type: object
593
+ * responses:
594
+ * 204:
595
+ * description: Indicates the UserTaskInstance was successfully finished.
596
+ */
597
+ finishUserTask: `/user_tasks/${params.userTaskInstanceId}/finish`,
598
+ /**
599
+ * @swagger
600
+ * /user_tasks/{userTaskInstanceId}/reserve:
601
+ * put:
602
+ * description: Reserves a UserTask for a specific User.
603
+ * tags: [UserTasks]
604
+ * parameters:
605
+ * - name: userTaskInstanceId
606
+ * in: path
607
+ * description: The ID of the UserTaskInstance to be reserved.
608
+ * required: true
609
+ * schema:
610
+ * type: string
611
+ * example: myUserTaskInstance_12345678
612
+ * requestBody:
613
+ * content:
614
+ * application/json:
615
+ * required: true
616
+ * schema:
617
+ * type: object
618
+ * properties:
619
+ * actualOwnerId:
620
+ * type: string
621
+ * description: The ID of the User who reserves the UserTask.
622
+ * required: true
623
+ * example: myUser_12345678
624
+ * responses:
625
+ * 204:
626
+ * description: Indicates the UserTaskInstance was successfully reserved.
627
+ */
628
+ reserveUserTaskInstance: `/user_tasks/${params.userTaskInstanceId}/reserve`,
629
+ /**
630
+ * @swagger
631
+ * /user_tasks/{userTaskInstanceId}/cancel-reservation:
632
+ * delete:
633
+ * description: Cancels the reservation of the given UserTask instance.
634
+ * tags: [UserTasks]
635
+ * parameters:
636
+ * - name: userTaskInstanceId
637
+ * in: path
638
+ * description: The ID of the UserTaskInstance for which to cancel the reservation.
639
+ * required: true
640
+ * schema:
641
+ * type: string
642
+ * example: myUserTaskInstance_12345678
643
+ * responses:
644
+ * 204:
645
+ * description: Indicates the UserTaskInstance reservation was successfully canceled.
646
+ */
647
+ cancelUserTaskInstanceReservation: `/user_tasks/${params.userTaskInstanceId}/cancel-reservation`,
648
+ // External Tasks
649
+ /**
650
+ * @swagger
651
+ * /external_tasks/deployed_topics:
652
+ * get:
653
+ * description: Fetches a list of all ExternalTask topics from all deployed Process Models.
654
+ * tags: [ExternalTasks]
655
+ * responses:
656
+ * 200:
657
+ * description: A list of all ExternalTask topics from all deployed Process Models.
658
+ * content:
659
+ * application/json:
660
+ * schema:
661
+ * description: A list of all ExternalTask topics from all deployed Process Models.
662
+ * type: array
663
+ * items:
664
+ * type: string
665
+ * example:
666
+ * - myTopic
667
+ * - myOtherTopic
668
+ * - myThirdTopic
669
+ * - myFourthTopic
670
+ */
671
+ getAllDeployedTopics: '/external_tasks/deployed_topics',
672
+ /**
673
+ * @swagger
674
+ * /external_tasks/fetch_and_lock:
675
+ * post:
676
+ * description: Fetches the tasks available for an ExternalTaskWorker and locks them for a defined time.
677
+ * tags: [ExternalTasks]
678
+ * requestBody:
679
+ * content:
680
+ * application/json:
681
+ * required: true
682
+ * schema:
683
+ * $ref: '#/components/schemas/FetchAndLockRequestPayload'
684
+ * example:
685
+ * workerId: string
686
+ * topicName: string | Array<string>
687
+ * maxTasks: 10
688
+ * longPollingTimeout: 2000
689
+ * lockDuration: 10000
690
+ * payloadFilter: string
691
+ * responses:
692
+ * 204:
693
+ * description: A list of locked ExternalTasks.
694
+ * content:
695
+ * application/json:
696
+ * schema:
697
+ * type: array
698
+ * items:
699
+ * $ref: '#/components/schemas/ExternalTask'
700
+ */
701
+ fetchAndLockExternalTasks: '/external_tasks/fetch_and_lock',
702
+ /**
703
+ * @swagger
704
+ * /external_tasks/{externalTaskId}/extend_lock:
705
+ * put:
706
+ * description: Extends the lock duration of an ExternalTask by a given amount of time.
707
+ * tags: [ExternalTasks]
708
+ * parameters:
709
+ * - name: externalTaskId
710
+ * in: path
711
+ * description: The ID of the ExternalTask for which to extend the lock duration.
712
+ * required: true
713
+ * schema:
714
+ * type: string
715
+ * example: myExternalTask_12345678
716
+ * requestBody:
717
+ * content:
718
+ * application/json:
719
+ * required: true
720
+ * schema:
721
+ * $ref: '#/components/schemas/ExtendLockRequestPayload'
722
+ * responses:
723
+ * 204:
724
+ * description: Indicates the ExternalTask lock was successfully extended.
725
+ */
726
+ extendExternalTaskLock: `/external_tasks/${params.externalTaskId}/extend_lock`,
727
+ /**
728
+ * @swagger
729
+ * /external_tasks/{externalTaskId}/error:
730
+ * put:
731
+ * description: Finishes the given External Task with the given Error.
732
+ * tags: [ExternalTasks]
733
+ * parameters:
734
+ * - name: externalTaskId
735
+ * in: path
736
+ * description: The ID of the ExternalTask for which to finish with an Error.
737
+ * required: true
738
+ * schema:
739
+ * type: string
740
+ * example: myExternalTask_12345678
741
+ * requestBody:
742
+ * content:
743
+ * application/json:
744
+ * required: true
745
+ * schema:
746
+ * $ref: '#/components/schemas/HandleExternalTaskErrorRequestPayload'
747
+ * responses:
748
+ * 204:
749
+ * description: Indicates the ExternalTask was successfully finished with an Error.
750
+ */
751
+ finishExternalTaskWithError: `/external_tasks/${params.externalTaskId}/error`,
752
+ /**
753
+ * @swagger
754
+ * /external_tasks/{externalTaskId}/finish:
755
+ * put:
756
+ * description: Finishes the ExternalTask with the given ID.
757
+ * tags: [ExternalTasks]
758
+ * parameters:
759
+ * - name: externalTaskId
760
+ * in: path
761
+ * description: The ID of the ExternalTask to finish.
762
+ * required: true
763
+ * schema:
764
+ * type: string
765
+ * example: myExternalTask_12345678
766
+ * requestBody:
767
+ * content:
768
+ * application/json:
769
+ * required: true
770
+ * schema:
771
+ * $ref: '#/components/schemas/FinishExternalTaskRequestPayload'
772
+ * responses:
773
+ * 204:
774
+ * description: Indicates the ExternalTask was successfully finished.
775
+ */
776
+ finishExternalTask: `/external_tasks/${params.externalTaskId}/finish`,
777
+ // ProcessDefinition
778
+ /**
779
+ * @swagger
780
+ * /process_definitions:
781
+ * post:
782
+ * description: Creates or updates a ProcessDefinition or a list of ProcessDefinitions.
783
+ * tags: [ProcessDefinitions]
784
+ * requestBody:
785
+ * content:
786
+ * application/json:
787
+ * required: true
788
+ * schema:
789
+ * $ref: '#/components/schemas/PersistProcessDefinitionsPayload'
790
+ * example:
791
+ * xml: string | Array<string>
792
+ * overrideExisting: true
793
+ * responses:
794
+ * 201:
795
+ * description: Indicates the ProcessDefinition(s) was/were successfully persisted.
796
+ */
797
+ persistProcessDefinitions: '/process_definitions',
798
+ /**
799
+ * @swagger
800
+ * /process_definitions:
801
+ * get:
802
+ * description: Gets all ProcessDefinitions the requesting user is allowed to see.
803
+ * tags: [ProcessDefinitions]
804
+ * parameters:
805
+ * - name: offset
806
+ * in: query
807
+ * description: The index of the first ProcessDefinition to include.
808
+ * required: false
809
+ * schema:
810
+ * type: number
811
+ * example: 0
812
+ * - name: limit
813
+ * in: query
814
+ * description: The maximum number of ProcessDefinitions to include.
815
+ * required: false
816
+ * schema:
817
+ * type: number
818
+ * example: 10
819
+ * responses:
820
+ * 200:
821
+ * description: A list of ProcessDefinitions.
822
+ * content:
823
+ * application/json:
824
+ * schema:
825
+ * $ref: '#/components/schemas/ProcessDefinitionList'
826
+ */
827
+ getProcessDefinitions: '/process_definitions',
828
+ /**
829
+ * @swagger
830
+ * /process_definitions/{processDefinitionId}:
831
+ * get:
832
+ * description: Gets a ProcessDefinition by its id.
833
+ * tags: [ProcessDefinitions]
834
+ * parameters:
835
+ * - name: processDefinitionId
836
+ * in: path
837
+ * description: The ID of the ProcessDefinition to retrieve.
838
+ * required: true
839
+ * schema:
840
+ * type: string
841
+ * example: myProcess_12345678
842
+ * responses:
843
+ * 200:
844
+ * description: A ProcessDefinitions.
845
+ * content:
846
+ * application/json:
847
+ * schema:
848
+ * $ref: '#/components/schemas/ProcessDefinition'
849
+ */
850
+ getProcessDefinitionById: `/process_definitions/${params.processDefinitionId}`,
851
+ /**
852
+ * @swagger
853
+ * /process_definitions/{processDefinitionId}:
854
+ * delete:
855
+ * description: Deletes the ProcessDefinition with the given ID.
856
+ * tags: [ProcessDefinitions]
857
+ * parameters:
858
+ * - name: processDefinitionId
859
+ * in: path
860
+ * description: The ID of the ProcessDefinition to delete.
861
+ * required: true
862
+ * schema:
863
+ * type: string
864
+ * example: myProcess_12345678
865
+ * - name: delete_all_related_data
866
+ * in: query
867
+ * description: If set to true, all ProcessInstances and ProcessModels related to the ProcessDefinition will be deleted as well.
868
+ * required: false
869
+ * schema:
870
+ * type: boolean
871
+ * example: true
872
+ * responses:
873
+ * 204:
874
+ * description: Indicates the ProcessDefinition was successfully deleted.
875
+ */
876
+ deleteProcessDefinition: `/process_definitions/${params.processDefinitionId}`,
877
+ // ProcessModels
878
+ /**
879
+ * @swagger
880
+ * /process_models:
881
+ * get:
882
+ * description: Gets all currently deployed Process Models.
883
+ * tags: [ProcessModels]
884
+ * responses:
885
+ * 200:
886
+ * content:
887
+ * application/json:
888
+ * schema:
889
+ * $ref: '#/components/schemas/ProcessModelList'
890
+ */
891
+ getAllProcessModels: '/process_models',
892
+ /**
893
+ * @swagger
894
+ * /process_models/{processModelId}/:
895
+ * get:
896
+ * description: Gets a deployed Process Model by its ID.
897
+ * tags: [ProcessModels]
898
+ * parameters:
899
+ * - name: processModelId
900
+ * in: path
901
+ * description: The ID of the ProcessModel to retrieve.
902
+ * required: true
903
+ * schema:
904
+ * type: string
905
+ * example: myProcess_12345678
906
+ * responses:
907
+ * 200:
908
+ * content:
909
+ * application/json:
910
+ * schema:
911
+ * $ref: '#/components/schemas/ProcessModel'
912
+ */
913
+ getProcessModelById: `/process_models/${params.processModelId}/`,
914
+ /**
915
+ * @swagger
916
+ * /process_models/{processModelId}/process_definition:
917
+ * get:
918
+ * description: Gets a ProcessDefinition for a given ProcessModel.
919
+ * tags: [ProcessModels]
920
+ * parameters:
921
+ * - name: processModelId
922
+ * in: path
923
+ * description: The ID of the ProcessModel for which to retrieve the ProcessDefinition.
924
+ * required: true
925
+ * schema:
926
+ * type: string
927
+ * example: myProcess_12345678
928
+ * responses:
929
+ * 200:
930
+ * content:
931
+ * application/json:
932
+ * schema:
933
+ * $ref: '#/components/schemas/ProcessDefinition'
934
+ */
935
+ getProcessDefinitionForProcessModel: `/process_models/${params.processModelId}/process_definition`,
936
+ /**
937
+ * @swagger
938
+ * /process_models/{processModelId}/start:
939
+ * post:
940
+ * description: Starts a new instance from the given set of parameters.
941
+ * tags: [ProcessModels]
942
+ * parameters:
943
+ * - name: processModelId
944
+ * in: path
945
+ * description: The ID of the ProcessModel for which to start a new instance.
946
+ * required: true
947
+ * schema:
948
+ * type: string
949
+ * example: myProcess_12345678
950
+ * requestBody:
951
+ * content:
952
+ * application/json:
953
+ * required: true
954
+ * schema:
955
+ * $ref: '#/components/schemas/ProcessStartRequest'
956
+ * responses:
957
+ * 200:
958
+ * content:
959
+ * application/json:
960
+ * schema:
961
+ * $ref: '#/components/schemas/ProcessStartResponse'
962
+ */
963
+ startProcessInstance: `/process_models/${params.processModelId}/start`,
964
+ /**
965
+ * @swagger
966
+ * /process_models/{processModelId}:
967
+ * delete:
968
+ * description: Deletes the ProcessDefinition that contains the Process Model with the given ID.
969
+ * tags: [ProcessModels]
970
+ * parameters:
971
+ * - name: processModelId
972
+ * in: path
973
+ * description: The ID of the ProcessModel for which to delete the ProcessDefinition.
974
+ * required: true
975
+ * schema:
976
+ * type: string
977
+ * example: myProcess_12345678
978
+ * - name: delete_all_related_data
979
+ * in: query
980
+ * description: If set to true, all ProcessInstances related to the ProcessDefinition will be deleted as well.
981
+ * required: false
982
+ * schema:
983
+ * type: boolean
984
+ * example: true
985
+ * responses:
986
+ * 204:
987
+ * description: Indicates the ProcessDefinition was successfully deleted.
988
+ */
989
+ deleteProcessDefinitionByProcessModelId: `/process_models/${params.processModelId}`,
990
+ /**
991
+ * @swagger
992
+ * /process_models/{processModelId}/enable:
993
+ * post:
994
+ * description: Enables the given Process Model.
995
+ * tags: [ProcessModels]
996
+ * parameters:
997
+ * - name: processModelId
998
+ * in: path
999
+ * description: The ID of the ProcessModel to enable.
1000
+ * required: true
1001
+ * schema:
1002
+ * type: string
1003
+ * example: myProcess_12345678
1004
+ * responses:
1005
+ * 204:
1006
+ * description: Indicates the ProcessModel was successfully enabled.
1007
+ */
1008
+ enableProcessModel: `/process_models/${params.processModelId}/enable`,
1009
+ /**
1010
+ * @swagger
1011
+ * /process_models/{processModelId}/disable:
1012
+ * post:
1013
+ * description: Disables the given Process Model.
1014
+ * tags: [ProcessModels]
1015
+ * parameters:
1016
+ * - name: processModelId
1017
+ * in: path
1018
+ * description: The ID of the ProcessModel to disable.
1019
+ * required: true
1020
+ * schema:
1021
+ * type: string
1022
+ * example: myProcess_12345678
1023
+ * responses:
1024
+ * 204:
1025
+ * description: Indicates the ProcessModel was successfully disabled
1026
+ */
1027
+ disableProcessModel: `/process_models/${params.processModelId}/disable`,
1028
+ // ProcessInstance
1029
+ /**
1030
+ * @swagger
1031
+ * /process_instances/query:
1032
+ * get:
1033
+ * description: Gets all ProcessInstances that match the given query.
1034
+ * tags: [ProcessInstances]
1035
+ * parameters:
1036
+ * - name: offset
1037
+ * in: query
1038
+ * description: The index of the first ProcessInstance to include in the result set.
1039
+ * required: false
1040
+ * schema:
1041
+ * type: number
1042
+ * example: 0
1043
+ * - name: limit
1044
+ * in: query
1045
+ * description: The maximum number of ProcessInstances to return.
1046
+ * required: false
1047
+ * schema:
1048
+ * type: number
1049
+ * example: 10
1050
+ * - name: correlationId
1051
+ * in: query
1052
+ * description: Filter by the CorrelationId of the ProcessInstances.
1053
+ * required: false
1054
+ * schema:
1055
+ * type: Array<string> | string | SearchQuery
1056
+ * oneOf:
1057
+ * - type: string
1058
+ * example: myCorrelationId
1059
+ * - type: Array<string>
1060
+ * example: ['myCorrelationId1', 'myCorrelationId2']
1061
+ * - $ref: '#/components/schemas/SearchQuery'
1062
+ * - name: processInstanceId
1063
+ * in: query
1064
+ * description: Filter by the ID of the ProcessInstances.
1065
+ * schema:
1066
+ * type: Array<string> | string | SearchQuery
1067
+ * oneOf:
1068
+ * - type: string
1069
+ * example: myProcessInstance_12345678
1070
+ * - type: Array<string>
1071
+ * example: ['myProcessInstance_12345678', 'myProcessInstance_87654321']
1072
+ * - $ref: '#/components/schemas/SearchQuery'
1073
+ * - name: processDefinitionId
1074
+ * in: query
1075
+ * description: Filter by the ID of the ProcessDefinition that the ProcessInstances belong to.
1076
+ * schema:
1077
+ * type: Array<string> | string | SearchQuery
1078
+ * oneOf:
1079
+ * - type: string
1080
+ * example: myProcess_12345678
1081
+ * - type: Array<string>
1082
+ * example: ['myProcess_12345678', 'myProcess_87654321']
1083
+ * - $ref: '#/components/schemas/SearchQuery'
1084
+ * - name: processModelId
1085
+ * in: query
1086
+ * description: Filter by the ID of the ProcessModel that the ProcessInstances belong to.
1087
+ * schema:
1088
+ * type: Array<string> | string | SearchQuery
1089
+ * oneOf:
1090
+ * - type: string
1091
+ * example: myProcessModel_12345678
1092
+ * - type: Array<string>
1093
+ * example: ['myProcessModel_12345678', 'myProcessModel_87654321']
1094
+ * - $ref: '#/components/schemas/SearchQuery'
1095
+ * - name: processModelName
1096
+ * in: query
1097
+ * description: Filter by the name of the ProcessModel that the ProcessInstances belong to.
1098
+ * schema:
1099
+ * type: Array<string> | string | SearchQuery
1100
+ * oneOf:
1101
+ * - type: string
1102
+ * example: My Process Model
1103
+ * - type: Array<string>
1104
+ * example: ['My Process Model', 'My Other Process Model']
1105
+ * - $ref: '#/components/schemas/SearchQuery'
1106
+ * - name: processModelHash
1107
+ * in: query
1108
+ * description: Filter by the hash of the ProcessModel that the ProcessInstances belong to.
1109
+ * schema:
1110
+ * type: Array<string> | string | SearchQuery
1111
+ * oneOf:
1112
+ * - type: string
1113
+ * example: 12345678
1114
+ * - type: Array<string>
1115
+ * example: ['12345678', '87654321']
1116
+ * - $ref: '#/components/schemas/SearchQuery'
1117
+ * - name: ownerId
1118
+ * in: query
1119
+ * description: Filter by the ID of the User that owns the ProcessInstances.
1120
+ * schema:
1121
+ * type: Array<string> | string | SearchQuery
1122
+ * oneOf:
1123
+ * - type: string
1124
+ * example: 12345678
1125
+ * - type: Array<string>
1126
+ * example: ['12345678', '87654321']
1127
+ * - $ref: '#/components/schemas/SearchQuery'
1128
+ * - name: state
1129
+ * in: query
1130
+ * description: Filter by the state of the ProcessInstances.
1131
+ * schema:
1132
+ * type: Array<string> | string | SearchQuery
1133
+ * oneOf:
1134
+ * - type: string
1135
+ * example: running
1136
+ * - type: Array<string>
1137
+ * example: ['running', 'finished']
1138
+ * - $ref: '#/components/schemas/SearchQuery'
1139
+ * - name: parentProcessInstanceId
1140
+ * in: query
1141
+ * description: Filter by the ID of the parent ProcessInstance.
1142
+ * schema:
1143
+ * type: Array<string> | string | SearchQuery
1144
+ * oneOf:
1145
+ * - type: string
1146
+ * example: myParentProcessInstance_12345678
1147
+ * - type: Array<string>
1148
+ * example: ['myParentProcessInstance_12345678', 'myParentProcessInstance_87654321']
1149
+ * - $ref: '#/components/schemas/SearchQuery'
1150
+ * - name: terminatedByUserId
1151
+ * in: query
1152
+ * description: Filter by the ID of the User that terminated the ProcessInstances.
1153
+ * schema:
1154
+ * type: Array<string> | string | SearchQuery
1155
+ * oneOf:
1156
+ * - type: string
1157
+ * example: 12345678
1158
+ * - type: Array<string>
1159
+ * example: ['12345678', '87654321']
1160
+ * - $ref: '#/components/schemas/SearchQuery'
1161
+ * - name: createdBefore
1162
+ * in: query
1163
+ * description: The maximum created date of the ProcessInstances to include in the results.
1164
+ * schema:
1165
+ * type: string
1166
+ * example: 2021-01-01T00:00:00.000Z
1167
+ * - name: createdAt
1168
+ * in: query
1169
+ * description: The minimum created date of the ProcessInstances to include in the results.
1170
+ * schema:
1171
+ * type: Array<string> | string
1172
+ * oneOf:
1173
+ * - type: string
1174
+ * example: 2021-01-01T00:00:00.000Z
1175
+ * - type: array
1176
+ * items:
1177
+ * type: string
1178
+ * example: ['2021-01-01T00:00:00.000Z', '2021-01-02T00:00:00.000Z']
1179
+ * - name: createdAfter
1180
+ * in: query
1181
+ * description: The minimum created date of the ProcessInstances to include in the results.
1182
+ * schema:
1183
+ * type: string
1184
+ * example: 2021-01-01T00:00:00.000Z
1185
+ * - name: updatedBefore
1186
+ * in: query
1187
+ * description: The maximum updated date of the ProcessInstances to include in the results.
1188
+ * schema:
1189
+ * type: string
1190
+ * example: 2021-01-01T00:00:00.000Z
1191
+ * - name: updatedAt
1192
+ * in: query
1193
+ * description: The exact updated date of the ProcessInstances to include in the results.
1194
+ * schema:
1195
+ * type: Array<string> | string
1196
+ * oneOf:
1197
+ * - type: string
1198
+ * example: 2021-01-01T00:00:00.000Z
1199
+ * - type: array
1200
+ * items:
1201
+ * type: string
1202
+ * example: ['2021-01-01T00:00:00.000Z', '2021-01-02T00:00:00.000Z']
1203
+ * - name: updatedAfter
1204
+ * in: query
1205
+ * description: The minimum updated date of the ProcessInstances to include in the results.
1206
+ * schema:
1207
+ * type: string
1208
+ * example: 2021-01-01T00:00:00.000Z
1209
+ * - name: finishedBefore
1210
+ * in: query
1211
+ * description: The maximum finished date of the ProcessInstances to include in the results.
1212
+ * schema:
1213
+ * type: string
1214
+ * example: 2021-01-01T00:00:00.000Z
1215
+ * - name: finishedAt
1216
+ * in: query
1217
+ * description: The exact finished date of the ProcessInstances to include in the results.
1218
+ * schema:
1219
+ * type: Array<string> | string
1220
+ * oneOf:
1221
+ * - type: string
1222
+ * example: 2021-01-01T00:00:00.000Z
1223
+ * - type: array
1224
+ * items:
1225
+ * type: string
1226
+ * example: ['2021-01-01T00:00:00.000Z', '2021-01-02T00:00:00.000Z']
1227
+ * - name: finishedAfter
1228
+ * in: query
1229
+ * description: The minimum finished date of the ProcessInstances to include in the results.
1230
+ * schema:
1231
+ * type: string
1232
+ * example: 2021-01-01T00:00:00.000Z
1233
+ * - name: triggeredByFlowNodeInstance
1234
+ * in: query
1235
+ * description: Filter by the ID of the FlowNodeInstance that triggered the ProcessInstance.
1236
+ * schema:
1237
+ * type: Array<string> | string | SearchQuery
1238
+ * oneOf:
1239
+ * - type: string
1240
+ * example: myFlowNodeInstance_12345678
1241
+ * - type: array
1242
+ * items:
1243
+ * type: string
1244
+ * example: ['myFlowNodeInstance_12345678', 'myFlowNodeInstance_87654321']
1245
+ * - $ref: '#/components/schemas/SearchQuery'
1246
+ * responses:
1247
+ * 200:
1248
+ * content:
1249
+ * application/json:
1250
+ * schema:
1251
+ * $ref: '#/components/schemas/ProcessInstanceList'
1252
+ */
1253
+ queryProcessInstances: '/process_instances/query',
1254
+ /**
1255
+ * @swagger
1256
+ * /process_instances/{processInstanceId}/process_definition:
1257
+ * get:
1258
+ * description: Gets the ProcessDefinition for a given ProcessInstance.
1259
+ * tags: [ProcessInstances]
1260
+ * parameters:
1261
+ * - name: processInstanceId
1262
+ * in: path
1263
+ * description: The ID of the ProcessInstance for which the ProcessDefinition should be retrieved.
1264
+ * required: true
1265
+ * schema:
1266
+ * type: string
1267
+ * example: 12345678
1268
+ * responses:
1269
+ * 200:
1270
+ * content:
1271
+ * application/json:
1272
+ * schema:
1273
+ * $ref: '#/components/schemas/ProcessDefinition'
1274
+ */
1275
+ getProcessDefinitionForProcessInstance: `/process_instances/${params.processInstanceId}/process_definition`,
1276
+ /**
1277
+ * @swagger
1278
+ * /process_instances/{processInstanceId}/process_model:
1279
+ * get:
1280
+ * description: Gets the ProcessModel for a given ProcessInstance.
1281
+ * tags: [ProcessInstances]
1282
+ * parameters:
1283
+ * - name: processInstanceId
1284
+ * in: path
1285
+ * description: The ID of the ProcessInstance for which the ProcessModel should be retrieved.
1286
+ * required: true
1287
+ * schema:
1288
+ * type: string
1289
+ * example: 12345678
1290
+ * responses:
1291
+ * 200:
1292
+ * content:
1293
+ * application/json:
1294
+ * schema:
1295
+ * $ref: '#/components/schemas/ProcessModel'
1296
+ */
1297
+ getProcessModelForProcessInstance: `/process_instances/${params.processInstanceId}/process_model`,
1298
+ /**
1299
+ * @swagger
1300
+ * /process_instances/{processInstanceId}/change_owner:
1301
+ * post:
1302
+ * description: Changes the owner of the ProcessInstance with the given ID.
1303
+ * tags: [ProcessInstances]
1304
+ * parameters:
1305
+ * - name: processInstanceId
1306
+ * in: path
1307
+ * description: The ID of the ProcessInstance for which the owner should be changed.
1308
+ * required: true
1309
+ * schema:
1310
+ * type: string
1311
+ * example: 12345678
1312
+ * requestBody:
1313
+ * content:
1314
+ * application/json:
1315
+ * required: true
1316
+ * schema:
1317
+ * type: object
1318
+ * properties:
1319
+ * newOwner:
1320
+ * description: The new owner of the ProcessInstance.
1321
+ * $ref: '#/components/schemas/Identity'
1322
+ * required: true
1323
+ * responses:
1324
+ * 204:
1325
+ * description: Indicates the ProcessInstance owner was changed successfully.
1326
+ */
1327
+ changeProcessInstanceOwner: `/process_instances/${params.processInstanceId}/change_owner`,
1328
+ /**
1329
+ * @swagger
1330
+ * /process_instances/{processInstanceId}/terminate:
1331
+ * put:
1332
+ * description: Terminates the ProcessInstance with the given ID.
1333
+ * tags: [ProcessInstances]
1334
+ * parameters:
1335
+ * - name: processInstanceId
1336
+ * in: path
1337
+ * description: The ID of the ProcessInstance to terminate.
1338
+ * required: true
1339
+ * schema:
1340
+ * type: string
1341
+ * example: 12345678
1342
+ * responses:
1343
+ * 204:
1344
+ * description: Indicates the ProcessInstance was terminated successfully.
1345
+ */
1346
+ terminateProcessInstances: `/process_instances/${params.processInstanceId}/terminate`,
1347
+ /**
1348
+ * @swagger
1349
+ * /process_instances/{processInstanceId}/retry:
1350
+ * put:
1351
+ * description: Retries a failed or terminated Process Instance from the original point of failure.
1352
+ * tags: [ProcessInstances]
1353
+ * parameters:
1354
+ * - name: processInstanceId
1355
+ * in: path
1356
+ * description: The ID of the ProcessInstance to retry.
1357
+ * required: true
1358
+ * schema:
1359
+ * type: string
1360
+ * example: 12345678
1361
+ * - name: flow_node_instance_id
1362
+ * in: query
1363
+ * description: The ID of the FlowNodeInstance to retry from.
1364
+ * schema:
1365
+ * type: string
1366
+ * example: 12345678
1367
+ * requestBody:
1368
+ * content:
1369
+ * application/json:
1370
+ * required: false
1371
+ * schema:
1372
+ * type: object
1373
+ * properties:
1374
+ * newStartToken:
1375
+ * type: object
1376
+ * description: The new start token for the ProcessInstance.
1377
+ * required: false
1378
+ * responses:
1379
+ * 204:
1380
+ * description: Indicates the ProcessInstance was retried successfully.
1381
+ */
1382
+ retryProcessInstance: `/process_instances/${params.processInstanceId}/retry`,
1383
+ /**
1384
+ * @swagger
1385
+ * /process_instances:
1386
+ * delete:
1387
+ * description: Deletes the given Set of Process Instances. Multiple ProcessInstanceIds can be provided with ";" as separator.
1388
+ * tags: [ProcessInstances]
1389
+ * parameters:
1390
+ * - name: process_instance_ids
1391
+ * in: query
1392
+ * description: The IDs of the ProcessInstances to delete.
1393
+ * required: true
1394
+ * schema:
1395
+ * type: string | Array<string>
1396
+ * oneOf:
1397
+ * - type: string
1398
+ * example: 12345678
1399
+ * - type: Array<string>
1400
+ * example: [12345678, 87654321]
1401
+ * - name: delete_all_related_data
1402
+ * in: query
1403
+ * description: Flag to indicate whether all related data should be deleted as well.
1404
+ * required: false
1405
+ * schema:
1406
+ * type: boolean
1407
+ * example: true
1408
+ * responses:
1409
+ * 204:
1410
+ * description: Indicates the ProcessInstances were deleted successfully.
1411
+ */
1412
+ deleteProcessInstances: `/process_instances`,
1413
+ // Long Polling Notifications
1414
+ /**
1415
+ * @swagger
1416
+ * /notifications/long_polling/cronjob_created:
1417
+ * get:
1418
+ * description: Wait for a CronjobCreated notification and resolves with the notification's content.
1419
+ * tags: [Notifications]
1420
+ * responses:
1421
+ * 200:
1422
+ * content:
1423
+ * application/json:
1424
+ * schema:
1425
+ * $ref: '#/components/schemas/CronjobEventMessage'
1426
+ */
1427
+ onCronjobCreated: '/notifications/long_polling/cronjob_created',
1428
+ /**
1429
+ * @swagger
1430
+ * /notifications/long_polling/cronjob_executed:
1431
+ * get:
1432
+ * description: Wait for a CronjobExecuted notification and resolves with the notification's content.
1433
+ * tags: [Notifications]
1434
+ * responses:
1435
+ * 200:
1436
+ * content:
1437
+ * application/json:
1438
+ * schema:
1439
+ * $ref: '#/components/schemas/CronjobEventMessage'
1440
+ */
1441
+ onCronjobExecuted: '/notifications/long_polling/cronjob_executed',
1442
+ /**
1443
+ * @swagger
1444
+ * /notifications/long_polling/cronjob_stopped:
1445
+ * get:
1446
+ * description: Wait for a CronjobStopped notification and resolves with the notification's content.
1447
+ * tags: [Notifications]
1448
+ * responses:
1449
+ * 200:
1450
+ * content:
1451
+ * application/json:
1452
+ * schema:
1453
+ * $ref: '#/components/schemas/CronjobEventMessage'
1454
+ */
1455
+ onCronjobStopped: '/notifications/long_polling/cronjob_stopped',
1456
+ /**
1457
+ * @swagger
1458
+ * /notifications/long_polling/cronjob_updated:
1459
+ * get:
1460
+ * description: Wait for a CronjobUpdated notification and resolves with the notification's content.
1461
+ * tags: [Notifications]
1462
+ * responses:
1463
+ * 200:
1464
+ * content:
1465
+ * application/json:
1466
+ * schema:
1467
+ * $ref: '#/components/schemas/CronjobEventMessage'
1468
+ */
1469
+ onCronjobUpdated: '/notifications/long_polling/cronjob_updated',
1470
+ /**
1471
+ * @swagger
1472
+ * /notifications/long_polling/cronjob_removed:
1473
+ * get:
1474
+ * description: Wait for a CronjobRemoved notification and resolves with the notification's content.
1475
+ * tags: [Notifications]
1476
+ * responses:
1477
+ * 200:
1478
+ * content:
1479
+ * application/json:
1480
+ * schema:
1481
+ * $ref: '#/components/schemas/CronjobEventMessage'
1482
+ */
1483
+ onCronjobRemoved: '/notifications/long_polling/cronjob_removed',
1484
+ /**
1485
+ * @swagger
1486
+ * /notifications/long_polling/cronjob_enabled_changed:
1487
+ * get:
1488
+ * description: Wait for a CronjobEnabledChanged notification and resolves with the notification's content.
1489
+ * tags: [Notifications]
1490
+ * responses:
1491
+ * 200:
1492
+ * content:
1493
+ * application/json:
1494
+ * schema:
1495
+ * $ref: '#/components/schemas/CronjobEnabledChangedMessage'
1496
+ */
1497
+ onCronjobEnabledChanged: '/notifications/long_polling/cronjob_enabled_changed',
1498
+ /**
1499
+ * @swagger
1500
+ * /notifications/long_polling/process_deployed:
1501
+ * get:
1502
+ * description: Wait for a ProcessDeployed notification and resolves with the notification's content.
1503
+ * tags: [Notifications]
1504
+ * responses:
1505
+ * 200:
1506
+ * content:
1507
+ * application/json:
1508
+ * schema:
1509
+ * $ref: '#/components/schemas/ProcessDeploymentMessage'
1510
+ */
1511
+ onProcessDeployed: '/notifications/long_polling/process_deployed',
1512
+ /**
1513
+ * @swagger
1514
+ * /notifications/long_polling/process_undeployed:
1515
+ * get:
1516
+ * description: Wait for a ProcessUndeployed notification and resolves with the notification's content.
1517
+ * tags: [Notifications]
1518
+ * responses:
1519
+ * 200:
1520
+ * content:
1521
+ * application/json:
1522
+ * schema:
1523
+ * $ref: '#/components/schemas/ProcessDeploymentMessage'
1524
+ */
1525
+ onProcessUndeployed: '/notifications/long_polling/process_undeployed',
1526
+ /**
1527
+ * @swagger
1528
+ * /notifications/long_polling/process_is_executable_changed:
1529
+ * get:
1530
+ * description: Wait for a ProcessIsExecutableChanged notification and resolves with the notification's content.
1531
+ * tags: [Notifications]
1532
+ * responses:
1533
+ * 200:
1534
+ * content:
1535
+ * application/json:
1536
+ * schema:
1537
+ * $ref: '#/components/schemas/ProcessIsExecutableChangedMessage'
1538
+ */
1539
+ onProcessIsExecutableChanged: '/notifications/long_polling/process_is_executable_changed',
1540
+ /**
1541
+ * @swagger
1542
+ * /notifications/long_polling/process_starting:
1543
+ * get:
1544
+ * description: Wait for a ProcessStarting notification and resolves with the notification's content.
1545
+ * tags: [Notifications]
1546
+ * responses:
1547
+ * 200:
1548
+ * content:
1549
+ * application/json:
1550
+ * schema:
1551
+ * $ref: '#/components/schemas/EventMessage'
1552
+ */
1553
+ onProcessStarting: '/notifications/long_polling/process_starting',
1554
+ /**
1555
+ * @swagger
1556
+ * /notifications/long_polling/process_started:
1557
+ * get:
1558
+ * description: Wait for a ProcessStarted notification and resolves with the notification's content.
1559
+ * tags: [Notifications]
1560
+ * responses:
1561
+ * 200:
1562
+ * content:
1563
+ * application/json:
1564
+ * schema:
1565
+ * $ref: '#/components/schemas/EventMessage'
1566
+ */
1567
+ onProcessStarted: '/notifications/long_polling/process_started',
1568
+ /**
1569
+ * @swagger
1570
+ * /notifications/long_polling/process_resumed:
1571
+ * get:
1572
+ * description: Wait for a ProcessResumed notification and resolves with the notification's content.
1573
+ * tags: [Notifications]
1574
+ * responses:
1575
+ * 200:
1576
+ * content:
1577
+ * application/json:
1578
+ * schema:
1579
+ * $ref: '#/components/schemas/EventMessage'
1580
+ */
1581
+ onProcessResumed: '/notifications/long_polling/process_resumed',
1582
+ /**
1583
+ * @swagger
1584
+ * /notifications/long_polling/process_ended:
1585
+ * get:
1586
+ * description: Wait for a ProcessEnded notification and resolves with the notification's content.
1587
+ * tags: [Notifications]
1588
+ * responses:
1589
+ * 200:
1590
+ * content:
1591
+ * application/json:
1592
+ * schema:
1593
+ * $ref: '#/components/schemas/EventMessage'
1594
+ */
1595
+ onProcessEnded: '/notifications/long_polling/process_ended',
1596
+ /**
1597
+ * @swagger
1598
+ * /notifications/long_polling/process_owner_changed:
1599
+ * get:
1600
+ * description: Wait for a ProcessOwnerChanged notification and resolves with the notification's content.
1601
+ * tags: [Notifications]
1602
+ * responses:
1603
+ * 200:
1604
+ * content:
1605
+ * application/json:
1606
+ * schema:
1607
+ * $ref: '#/components/schemas/EventMessage'
1608
+ */
1609
+ onProcessOwnerChanged: '/notifications/long_polling/process_owner_changed',
1610
+ /**
1611
+ * @swagger
1612
+ * /notifications/long_polling/process_terminated:
1613
+ * get:
1614
+ * description: Wait for a ProcessTerminated notification and resolves with the notification's content.
1615
+ * tags: [Notifications]
1616
+ * responses:
1617
+ * 200:
1618
+ * content:
1619
+ * application/json:
1620
+ * schema:
1621
+ * $ref: '#/components/schemas/EventMessage'
1622
+ */
1623
+ onProcessTerminated: '/notifications/long_polling/process_terminated',
1624
+ /**
1625
+ * @swagger
1626
+ * /notifications/long_polling/process_error:
1627
+ * get:
1628
+ * description: Wait for a ProcessError notification and resolves with the notification's content.
1629
+ * tags: [Notifications]
1630
+ * responses:
1631
+ * 200:
1632
+ * content:
1633
+ * application/json:
1634
+ * schema:
1635
+ * $ref: '#/components/schemas/EventMessage'
1636
+ */
1637
+ onProcessError: '/notifications/long_polling/process_error',
1638
+ /**
1639
+ * @swagger
1640
+ * /notifications/long_polling/process_instances_deleted:
1641
+ * get:
1642
+ * description: Wait for a ProcessInstancesDeleted notification and resolves with the notification's content.
1643
+ * tags: [Notifications]
1644
+ * responses:
1645
+ * 200:
1646
+ * content:
1647
+ * application/json:
1648
+ * schema:
1649
+ * $ref: '#/components/schemas/EventMessage'
1650
+ */
1651
+ onProcessInstancesDeleted: '/notifications/long_polling/process_instances_deleted',
1652
+ /**
1653
+ * @swagger
1654
+ * /notifications/long_polling/external_task_created:
1655
+ * get:
1656
+ * description: Wait for an ExternalTaskCreated notification and resolves with the notification's content.
1657
+ * tags: [Notifications]
1658
+ * responses:
1659
+ * 200:
1660
+ * content:
1661
+ * application/json:
1662
+ * schema:
1663
+ * $ref: '#/components/schemas/ExternalTaskCreatedMessage'
1664
+ */
1665
+ onExternalTaskCreated: '/notifications/long_polling/external_task_created',
1666
+ /**
1667
+ * @swagger
1668
+ * /notifications/long_polling/external_task_locked:
1669
+ * get:
1670
+ * description: Wait for a ExternalTaskLocked notification and resolves with the notification's content.
1671
+ * tags: [Notifications]
1672
+ * responses:
1673
+ * 200:
1674
+ * content:
1675
+ * application/json:
1676
+ * schema:
1677
+ * $ref: '#/components/schemas/ExternalTaskLockedMessage'
1678
+ */
1679
+ onExternalTaskLocked: '/notifications/long_polling/external_task_locked',
1680
+ /**
1681
+ * @swagger
1682
+ * /notifications/long_polling/external_task_unlocked:
1683
+ * get:
1684
+ * description: Wait for a ExternalTaskUnlocked notification and resolves with the notification's content.
1685
+ * tags: [Notifications]
1686
+ * responses:
1687
+ * 200:
1688
+ * content:
1689
+ * application/json:
1690
+ * schema:
1691
+ * $ref: '#/components/schemas/ExternalTaskUnlockedMessage'
1692
+ */
1693
+ onExternalTaskUnlocked: '/notifications/long_polling/external_task_unlocked',
1694
+ /**
1695
+ * @swagger
1696
+ * /notifications/long_polling/external_task_expired:
1697
+ * get:
1698
+ * description: Wait for a ExternalTaskExpired notification and resolves with the notification's content.
1699
+ * tags: [Notifications]
1700
+ * responses:
1701
+ * 200:
1702
+ * content:
1703
+ * application/json:
1704
+ * schema:
1705
+ * $ref: '#/components/schemas/ExternalTaskExpiredMessage'
1706
+ */
1707
+ onExternalTaskExpired: '/notifications/long_polling/external_task_expired',
1708
+ /**
1709
+ * @swagger
1710
+ * /notifications/long_polling/activity_reached:
1711
+ * get:
1712
+ * description: Wait for an ActivityReached notification and resolves with the notification's content.
1713
+ * tags: [Notifications]
1714
+ * responses:
1715
+ * 200:
1716
+ * content:
1717
+ * application/json:
1718
+ * schema:
1719
+ * $ref: '#/components/schemas/EventMessage'
1720
+ */
1721
+ onActivityReached: '/notifications/long_polling/activity_reached',
1722
+ /**
1723
+ * @swagger
1724
+ * /notifications/long_polling/activity_finished:
1725
+ * get:
1726
+ * description: Wait for an ActivityFinished notification and resolves with the notification's content.
1727
+ * tags: [Notifications]
1728
+ * responses:
1729
+ * 200:
1730
+ * content:
1731
+ * application/json:
1732
+ * schema:
1733
+ * $ref: '#/components/schemas/EventMessage'
1734
+ */
1735
+ onActivityFinished: '/notifications/long_polling/activity_finished',
1736
+ /**
1737
+ * @swagger
1738
+ * /notifications/long_polling/activity_canceled:
1739
+ * get:
1740
+ * description: Wait for an ActivityCanceled notification and resolves with the notification's content.
1741
+ * tags: [Notifications]
1742
+ * responses:
1743
+ * 200:
1744
+ * content:
1745
+ * application/json:
1746
+ * schema:
1747
+ * $ref: '#/components/schemas/EventMessage'
1748
+ */
1749
+ onActivityCanceled: '/notifications/long_polling/activity_canceled',
1750
+ /**
1751
+ * @swagger
1752
+ * /notifications/long_polling/empty_activity_waiting:
1753
+ * get:
1754
+ * deprecated: true
1755
+ * description: DEPRECATED - Use `GET /notifications/long_polling/untyped_task_waiting` instead.
1756
+ * tags: [Notifications]
1757
+ * responses:
1758
+ * 200:
1759
+ * content:
1760
+ * application/json:
1761
+ * schema:
1762
+ * $ref: '#/components/schemas/EventMessage'
1763
+ */
1764
+ onEmptyActivityWaiting: '/notifications/long_polling/empty_activity_waiting',
1765
+ /**
1766
+ * @swagger
1767
+ * /notifications/long_polling/empty_activity_finished:
1768
+ * get:
1769
+ * deprecated: true
1770
+ * description: DEPRECATED - Use `GET /notifications/long_polling/untyped_task_finished` instead.
1771
+ * tags: [Notifications]
1772
+ * responses:
1773
+ * 200:
1774
+ * content:
1775
+ * application/json:
1776
+ * schema:
1777
+ * $ref: '#/components/schemas/EventMessage'
1778
+ */
1779
+ onEmptyActivityFinished: '/notifications/long_polling/empty_activity_finished',
1780
+ /**
1781
+ * @swagger
1782
+ * /notifications/long_polling/untyped_task_waiting:
1783
+ * get:
1784
+ * description: Wait for an UntypedTaskWaiting notification and resolves with the notification's content.
1785
+ * tags: [Notifications]
1786
+ * responses:
1787
+ * 200:
1788
+ * content:
1789
+ * application/json:
1790
+ * schema:
1791
+ * $ref: '#/components/schemas/EventMessage'
1792
+ */
1793
+ onUntypedTaskWaiting: '/notifications/long_polling/untyped_task_waiting',
1794
+ /**
1795
+ * @swagger
1796
+ * /notifications/long_polling/untyped_task_finished:
1797
+ * get:
1798
+ * description: Wait for an UntypedTaskFinished notification and resolves with the notification's content.
1799
+ * tags: [Notifications]
1800
+ * responses:
1801
+ * 200:
1802
+ * content:
1803
+ * application/json:
1804
+ * schema:
1805
+ * $ref: '#/components/schemas/EventMessage'
1806
+ */
1807
+ onUntypedTaskFinished: '/notifications/long_polling/untyped_task_finished',
1808
+ /**
1809
+ * @swagger
1810
+ * /notifications/long_polling/manual_task_waiting:
1811
+ * get:
1812
+ * description: Wait for a ManualTaskWaiting notification and resolves with the notification's content.
1813
+ * tags: [Notifications]
1814
+ * responses:
1815
+ * 200:
1816
+ * content:
1817
+ * application/json:
1818
+ * schema:
1819
+ * $ref: '#/components/schemas/EventMessage'
1820
+ */
1821
+ onManualTaskWaiting: '/notifications/long_polling/manual_task_waiting',
1822
+ /**
1823
+ * @swagger
1824
+ * /notifications/long_polling/manual_task_finished:
1825
+ * get:
1826
+ * description: Wait for a ManualTaskFinied notification and resolves with the notification's content.
1827
+ * tags: [Notifications]
1828
+ * responses:
1829
+ * 200:
1830
+ * content:
1831
+ * application/json:
1832
+ * schema:
1833
+ * $ref: '#/components/schemas/EventMessage'
1834
+ */
1835
+ onManualTaskFinished: '/notifications/long_polling/manual_task_finished',
1836
+ /**
1837
+ * @swagger
1838
+ * /notifications/long_polling/user_task_waiting:
1839
+ * get:
1840
+ * description: Wait for a UserTaskWaiting notification and resolves with the notification's content.
1841
+ * tags: [Notifications]
1842
+ * responses:
1843
+ * 200:
1844
+ * content:
1845
+ * application/json:
1846
+ * schema:
1847
+ * $ref: '#/components/schemas/EventMessage'
1848
+ */
1849
+ onUserTaskWaiting: '/notifications/long_polling/user_task_waiting',
1850
+ /**
1851
+ * @swagger
1852
+ * /notifications/long_polling/user_task_finished:
1853
+ * get:
1854
+ * description: Wait for a UserTaskFinished notification and resolves with the notification's content.
1855
+ * tags: [Notifications]
1856
+ * responses:
1857
+ * 200:
1858
+ * content:
1859
+ * application/json:
1860
+ * schema:
1861
+ * $ref: '#/components/schemas/EventMessage'
1862
+ */
1863
+ onUserTaskFinished: '/notifications/long_polling/user_task_finished',
1864
+ /**
1865
+ * @swagger
1866
+ * /notifications/long_polling/user_task_reserved:
1867
+ * get:
1868
+ * description: Wait for a UserTaskReserved notification and resolves with the notification's content.
1869
+ * tags: [Notifications]
1870
+ * responses:
1871
+ * 200:
1872
+ * content:
1873
+ * application/json:
1874
+ * schema:
1875
+ * $ref: '#/components/schemas/EventMessage'
1876
+ */
1877
+ onUserTaskReserved: '/notifications/long_polling/user_task_reserved',
1878
+ /**
1879
+ * @swagger
1880
+ * /notifications/long_polling/user_task_reservation_canceled:
1881
+ * get:
1882
+ * description: Wait for a UserTaskReservationCanceled notification and resolves with the notification's content.
1883
+ * tags: [Notifications]
1884
+ * responses:
1885
+ * 200:
1886
+ * content:
1887
+ * application/json:
1888
+ * schema:
1889
+ * $ref: '#/components/schemas/EventMessage'
1890
+ */
1891
+ onUserTaskReservationCanceled: '/notifications/long_polling/user_task_reservation_canceled',
1892
+ /**
1893
+ * @swagger
1894
+ * /notifications/long_polling/boundary_event_triggered:
1895
+ * get:
1896
+ * description: Wait for a BoundaryEventTriggered notification and resolves with the notification's content.
1897
+ * tags: [Notifications]
1898
+ * responses:
1899
+ * 200:
1900
+ * content:
1901
+ * application/json:
1902
+ * schema:
1903
+ * $ref: '#/components/schemas/EventMessage'
1904
+ */
1905
+ onBoundaryEventTriggered: '/notifications/long_polling/boundary_event_triggered',
1906
+ /**
1907
+ * @swagger
1908
+ * /notifications/long_polling/boundary_event_finished:
1909
+ * get:
1910
+ * description: Wait for a BoundaryEventFinished notification and resolves with the notification's content.
1911
+ * tags: [Notifications]
1912
+ * responses:
1913
+ * 200:
1914
+ * content:
1915
+ * application/json:
1916
+ * schema:
1917
+ * $ref: '#/components/schemas/EventMessage'
1918
+ */
1919
+ onBoundaryEventFinished: '/notifications/long_polling/boundary_event_finished',
1920
+ /**
1921
+ * @swagger
1922
+ * /notifications/long_polling/intermediate_throw_event_triggered:
1923
+ * get:
1924
+ * description: Wait for an IntermediateThrowEventTriggered notification and resolves with the notification's content.
1925
+ * tags: [Notifications]
1926
+ * responses:
1927
+ * 200:
1928
+ * content:
1929
+ * application/json:
1930
+ * schema:
1931
+ * $ref: '#/components/schemas/EventMessage'
1932
+ */
1933
+ onIntermediateThrowEventTriggered: '/notifications/long_polling/intermediate_throw_event_triggered',
1934
+ /**
1935
+ * @swagger
1936
+ * /notifications/long_polling/intermediate_catch_event_reached:
1937
+ * get:
1938
+ * description: Wait for an IntermediateCatchEventReached notification and resolves with the notification's content.
1939
+ * tags: [Notifications]
1940
+ * responses:
1941
+ * 200:
1942
+ * content:
1943
+ * application/json:
1944
+ * schema:
1945
+ * $ref: '#/components/schemas/EventMessage'
1946
+ */
1947
+ onIntermediateCatchEventReached: '/notifications/long_polling/intermediate_catch_event_reached',
1948
+ /**
1949
+ * @swagger
1950
+ * /notifications/long_polling/intermediate_catch_event_finished:
1951
+ * get:
1952
+ * description: Wait for a IntermediateCatchEventFinished notification and resolves with the notification's content.
1953
+ * tags: [Notifications]
1954
+ * responses:
1955
+ * 200:
1956
+ * content:
1957
+ * application/json:
1958
+ * schema:
1959
+ * $ref: '#/components/schemas/EventMessage'
1960
+ */
1961
+ onIntermediateCatchEventFinished: '/notifications/long_polling/intermediate_catch_event_finished',
1962
+ /**
1963
+ * @swagger
1964
+ * /notifications/long_polling/message_triggered:
1965
+ * get:
1966
+ * description: Wait for an MessageTriggered notification and resolves with the notification's content.
1967
+ * tags: [Notifications]
1968
+ * responses:
1969
+ * 200:
1970
+ * content:
1971
+ * application/json:
1972
+ * schema:
1973
+ * $ref: '#/components/schemas/EventMessage'
1974
+ */
1975
+ onMessageTriggered: '/notifications/long_polling/message_triggered',
1976
+ /**
1977
+ * @swagger
1978
+ * /notifications/long_polling/signal_triggered:
1979
+ * get:
1980
+ * description: Wait for an SignalTriggered notification and resolves with the notification's content.
1981
+ * tags: [Notifications]
1982
+ * responses:
1983
+ * 200:
1984
+ * content:
1985
+ * application/json:
1986
+ * schema:
1987
+ * $ref: '#/components/schemas/EventMessage'
1988
+ */
1989
+ onSignalTriggered: '/notifications/long_polling/signal_triggered',
1990
+ /**
1991
+ * @swagger
1992
+ * /notifications/long_polling/end_event_finished:
1993
+ * get:
1994
+ * description: Wait for an EndEventFinished notification and resolves with the notification's content.
1995
+ * tags: [Notifications]
1996
+ * responses:
1997
+ * 200:
1998
+ * content:
1999
+ * application/json:
2000
+ * schema:
2001
+ * $ref: '#/components/schemas/EventMessage'
2002
+ */
2003
+ onEndEventFinished: '/notifications/long_polling/end_event_finished',
2004
+ /**
2005
+ * @swagger
2006
+ * /notifications/long_polling/start_event_finished:
2007
+ * get:
2008
+ * description: Wait for an StartEventFinished notification and resolves with the notification's content.
2009
+ * tags: [Notifications]
2010
+ * responses:
2011
+ * 200:
2012
+ * content:
2013
+ * application/json:
2014
+ * schema:
2015
+ * $ref: '#/components/schemas/EventMessage'
2016
+ */
2017
+ onStartEventFinished: '/notifications/long_polling/start_event_finished',
2018
+ /**
2019
+ * @swagger
2020
+ * /notifications/long_polling/process_instance_metadata_changed:
2021
+ * get:
2022
+ * description: Wait for a ProcessInstanceMetadataChanged notification and resolves with the notification's content.
2023
+ * tags: [Notifications]
2024
+ * responses:
2025
+ * 200:
2026
+ * content:
2027
+ * application/json:
2028
+ * schema:
2029
+ * $ref: '#/components/schemas/MetadataChangedMessage'
2030
+ */
2031
+ onProcessInstanceMetadataChanged: '/notifications/long_polling/process_instance_metadata_changed',
2032
+ /**
2033
+ * @swagger
2034
+ * /notifications/long_polling/correlation_metadata_changed:
2035
+ * get:
2036
+ * description: Wait for a CorrelationMetadataChanged notification and resolves with the notification's content.
2037
+ * tags: [Notifications]
2038
+ * responses:
2039
+ * 200:
2040
+ * content:
2041
+ * application/json:
2042
+ * schema:
2043
+ * $ref: '#/components/schemas/MetadataChangedMessage'
2044
+ */
2045
+ onCorrelationMetadataChanged: '/notifications/long_polling/correlation_metadata_changed',
2046
+ };
2047
+ exports.EngineRestApiSettings = {
2048
+ params: params,
2049
+ paths: paths,
2050
+ baseRoute: 'atlas_engine/api',
2051
+ };
2052
+ //# sourceMappingURL=EngineRestApiSettings.js.map