-
Notifications
You must be signed in to change notification settings - Fork 3
/
Camunda.ts
18457 lines (18453 loc) · 727 KB
/
Camunda.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/**
* This file was auto-generated by openapi-typescript.
* Do not make direct changes to the file.
*/
export interface paths {
"/batch": {
/**
* Queries for batches that fulfill given parameters. Parameters may be the properties of batches, such as the id or type.
* The size of the result set can be retrieved by using the
* [Get Batch Count](https://docs.camunda.org/manual/latest/reference/rest/batch/get-query-count/) method.
*/
get: operations["getBatches"];
};
"/batch/count": {
/**
* Requests the number of batches that fulfill the query criteria.
* Takes the same filtering parameters as the [Get Batches](https://docs.camunda.org/manual/latest/reference/rest/batch/get-query/) method.
*/
get: operations["getBatchesCount"];
};
"/batch/statistics": {
/**
* Queries for batch statistics that fulfill given parameters.
* Parameters may be the properties of batches, such as the id or type.
* The size of the result set can be retrieved by using the
* [Get Batch Statistics Count](https://docs.camunda.org/manual/latest/reference/rest/batch/get-statistics-query-count/) method.
*/
get: operations["getBatchStatistics"];
};
"/batch/statistics/count": {
/**
* Requests the number of batch statistics that fulfill the query criteria.
* Takes the same filtering parameters as the
* [Get Batch Statistics](https://docs.camunda.org/manual/latest/reference/rest/batch/get-statistics-query/) method.
*/
get: operations["getBatchStatisticsCount"];
};
"/batch/{id}": {
/** Retrieves a batch by id, according to the Batch interface in the engine. */
get: operations["getBatch"];
/**
* Deletes a batch by id, including all related jobs and job definitions.
* Optionally also deletes the batch history.
*/
delete: operations["deleteBatch"];
};
"/batch/{id}/suspended": {
/** Activates or suspends a batch by id. */
put: operations["updateBatchSuspensionState"];
};
"/condition": {
/**
* Triggers evaluation of conditions for conditional start event(s).
* Internally this maps to the engines condition evaluation builder method ConditionEvaluationBuilder#evaluateStartConditions().
* For more information see the [Conditional Start Events](https://docs.camunda.org/manual/latest/reference/bpmn20/events/conditional-events/#conditional-start-event)
* section of the [BPMN 2.0 Implementation Reference](https://docs.camunda.org/manual/latest/reference/bpmn20/).
*/
post: operations["evaluateCondition"];
};
"/decision-definition": {
/**
* Queries for decision definitions that fulfill given parameters.
* Parameters may be the properties of decision definitions, such as the name, key or version.
* The size of the result set can be retrieved by using
* the [Get Decision Definition Count](https://docs.camunda.org/manual/latest/reference/rest/decision-definition/get-query-count/) method.
*/
get: operations["getDecisionDefinitions"];
};
"/decision-definition/count": {
/**
* Requests the number of decision definitions that fulfill the query criteria.
* Takes the same filtering parameters as the
* [Get Decision Definition](https://docs.camunda.org/manual/latest/reference/rest/decision-definition/get-query/) method.
*/
get: operations["getDecisionDefinitionsCount"];
};
"/decision-definition/key/{key}": {
/** Retrieves the latest version of the decision definition which belongs to no tenant. */
get: operations["getDecisionDefinitionByKey"];
};
"/decision-definition/key/{key}/diagram": {
/** Returns the diagram for the latest version of the decision definition which belongs to no tenant */
get: operations["getDecisionDefinitionDiagramByKey"];
};
"/decision-definition/key/{key}/evaluate": {
/**
* Evaluates the latest version of the decision definition which belongs to no tenant.
* The input values of the decision have to be supplied in the request body.
*/
post: operations["evaluateDecisionByKey"];
};
"/decision-definition/key/{key}/history-time-to-live": {
/**
* Updates the latest version of the decision definition which belongs to no tenant.
* The field is used within [History cleanup](https://docs.camunda.org/manual/latest/user-guide/process-engine/history/#history-cleanup).
*/
put: operations["updateHistoryTimeToLiveByDecisionDefinitionKey"];
};
"/decision-definition/key/{key}/tenant-id/{tenant-id}": {
/** Retrieves the latest version of the decision definition for tenant */
get: operations["getDecisionDefinitionByKeyAndTenantId"];
};
"/decision-definition/key/{key}/tenant-id/{tenant-id}/diagram": {
/** Returns the XML of the latest version of the decision definition for tenant. */
get: operations["getDecisionDefinitionDiagramByKeyAndTenant"];
};
"/decision-definition/key/{key}/tenant-id/{tenant-id}/evaluate": {
/**
* Evaluates the latest version of the decision definition for tenant.
* The input values of the decision have to be supplied in the request body.
*/
post: operations["evaluateDecisionByKeyAndTenant"];
};
"/decision-definition/key/{key}/tenant-id/{tenant-id}/history-time-to-live": {
/**
* Updates the latest version of the decision definition for tenant.
* The field is used within [History cleanup](https://docs.camunda.org/manual/latest/user-guide/process-engine/history/#history-cleanup).
*/
put: operations["updateHistoryTimeToLiveByDecisionDefinitionKeyAndTenant"];
};
"/decision-definition/key/{key}/tenant-id/{tenant-id}/xml": {
/** Retrieves the XML of the latest version of the decision definition for tenant */
get: operations["getDecisionDefinitionDmnXmlByKeyAndTenant"];
};
"/decision-definition/key/{key}/xml": {
/** Retrieves the XML for the latest version of the decision definition which belongs to no tenant. */
get: operations["getDecisionDefinitionDmnXmlByKey"];
};
"/decision-definition/{id}": {
/** Retrieves a decision definition by id, according to the `DecisionDefinition` interface in the engine. */
get: operations["getDecisionDefinitionById"];
};
"/decision-definition/{id}/diagram": {
/** Retrieves the diagram of a decision definition. */
get: operations["getDecisionDefinitionDiagram"];
};
"/decision-definition/{id}/evaluate": {
/**
* Evaluates a given decision and returns the result.
* The input values of the decision have to be supplied in the request body.
*/
post: operations["evaluateDecisionById"];
};
"/decision-definition/{id}/history-time-to-live": {
/**
* Updates history time to live for decision definition.
* The field is used within [History cleanup](https://docs.camunda.org/manual/latest/user-guide/process-engine/history/#history-cleanup).
*/
put: operations["updateHistoryTimeToLiveByDecisionDefinitionId"];
};
"/decision-definition/{id}/xml": {
/** Retrieves the DMN XML of a decision definition. */
get: operations["getDecisionDefinitionDmnXmlById"];
};
"/deployment": {
/**
* Queries for deployments that fulfill given parameters. Parameters may be the properties of deployments,
* such as the id or name or a range of the deployment time. The size of the result set can be retrieved by
* using the [Get Deployment count](https://docs.camunda.org/manual/latest/reference/rest/deployment/get-query-count/) method.
*/
get: operations["getDeployments"];
};
"/deployment/count": {
/**
* Queries for the number of deployments that fulfill given parameters. Takes the same parameters as the
* [Get Deployments](https://docs.camunda.org/manual/latest/reference/rest/deployment/get-query/) method.
*/
get: operations["getDeploymentsCount"];
};
"/deployment/create": {
/**
* Creates a deployment.
*
* **Security Consideration**
*
* Deployments can contain custom code in form of scripts or EL expressions to customize process behavior.
* This may be abused for remote execution of arbitrary code.
*/
post: operations["createDeployment"];
};
"/deployment/{id}": {
/** Retrieves a deployment by id, according to the `Deployment` interface of the engine. */
get: operations["getDeployment"];
/** Deletes a deployment by id. */
delete: operations["deleteDeployment"];
};
"/deployment/{id}/redeploy": {
/**
* Re-deploys an existing deployment.
*
* The deployment resources to re-deploy can be restricted by using the properties `resourceIds` or
* `resourceNames`. If no deployment resources to re-deploy are passed then all existing resources of the
* given deployment are re-deployed.
*
* **Warning**: Deployments can contain custom code in form of scripts or EL expressions to customize
* process behavior. This may be abused for remote execution of arbitrary code. See the section on
* [security considerations for custom code](https://docs.camunda.org/manual/latest/user-guide/process-engine/securing-custom-code/) in
* the user guide for details.
*/
post: operations["redeploy"];
};
"/deployment/{id}/resources": {
/** Retrieves all deployment resources of a given deployment. */
get: operations["getDeploymentResources"];
};
"/deployment/{id}/resources/{resourceId}": {
/** Retrieves a deployment resource by resource id for the given deployment. */
get: operations["getDeploymentResource"];
};
"/deployment/{id}/resources/{resourceId}/data": {
/** Retrieves the binary content of a deployment resource for the given deployment by id. */
get: operations["getDeploymentResourceData"];
};
"/engine": {
/**
* Retrieves the names of all process engines available on your platform.
* **Note**: You cannot prepend `/engine/{name}` to this method.
*/
get: operations["getProcessEngineNames"];
};
"/event-subscription": {
/**
* Queries for event subscriptions that fulfill given parameters.
* The size of the result set can be retrieved by using the
* [Get Event Subscriptions count](https://docs.camunda.org/manual/latest/reference/rest/event-subscription/get-query-count/) method.
*/
get: operations["getEventSubscriptions"];
};
"/event-subscription/count": {
/**
* Queries for the number of event subscriptions that fulfill given parameters.
* Takes the same parameters as the
* [Get Event Subscriptions](https://docs.camunda.org/manual/latest/reference/rest/event-subscription/get-query/) method.
*/
get: operations["getEventSubscriptionsCount"];
};
"/execution": {
/**
* Queries for the executions that fulfill given parameters.
* Parameters may be static as well as dynamic runtime properties of
* executions.
* The size of the result set can be retrieved by using the [Get
* Execution Count](https://docs.camunda.org/manual/latest/reference/rest/execution/get-query-count/)
* method.
*/
get: operations["getExecutions"];
/**
* Queries for executions that fulfill given parameters through a JSON object.
* This method is slightly more powerful than the [Get
* Executions](https://docs.camunda.org/manual/latest/reference/rest/execution/get-query/) method
* because it allows
* to filter by multiple instance and execution variables of types
* `String`, `Number` or `Boolean`.
*/
post: operations["queryExecutions"];
};
"/execution/count": {
/**
* Queries for the number of executions that fulfill given parameters.
* Takes the same parameters as the [Get
* Executions](https://docs.camunda.org/manual/latest/reference/rest/execution/get-query/) method.
*/
get: operations["getExecutionsCount"];
/**
* Queries for the number of executions that fulfill given parameters. This method
* takes the same message body as the [Get Executions
* POST](https://docs.camunda.org/manual/latest/reference/rest/execution/post-query/) method and
* therefore it is slightly more powerful than the [Get Execution
* Count](https://docs.camunda.org/manual/latest/reference/rest/execution/get-query-count/) method.
*/
post: operations["queryExecutionsCount"];
};
"/execution/{id}": {
/**
* Retrieves an execution by id, according to the `Execution` interface in the
* engine.
*/
get: operations["getExecution"];
};
"/execution/{id}/create-incident": {
/** Creates a custom incident with given properties. */
post: operations["createIncident"];
};
"/execution/{id}/localVariables": {
/** Retrieves all variables of a given execution by id. */
get: operations["getLocalExecutionVariables"];
/**
* Updates or deletes the variables in the context of an execution by id. The updates
* do not propagate upwards in the execution hierarchy.
* Updates precede deletions. So, if a variable is updated AND deleted,
* the deletion overrides the update.
*/
post: operations["modifyLocalExecutionVariables"];
};
"/execution/{id}/localVariables/{varName}": {
/**
* Retrieves a variable from the context of a given execution by id. Does not traverse
* the parent execution hierarchy.
*/
get: operations["getLocalExecutionVariable"];
/**
* Sets a variable in the context of a given execution by id. Update does not
* propagate upwards in the execution hierarchy.
*/
put: operations["putLocalExecutionVariable"];
/**
* Deletes a variable in the context of a given execution by id. Deletion does not
* propagate upwards in the execution hierarchy.
*/
delete: operations["deleteLocalExecutionVariable"];
};
"/execution/{id}/localVariables/{varName}/data": {
/**
* Retrieves a binary variable from the context of a given execution by id. Does not
* traverse the parent execution hierarchy. Applicable for byte array and
* file variables.
*/
get: operations["getLocalExecutionVariableBinary"];
/**
* Sets the serialized value for a binary variable or the binary value for a file
* variable in the context of a given execution by id.
*/
post: operations["setLocalExecutionVariableBinary"];
};
"/execution/{id}/messageSubscriptions/{messageName}": {
/**
* Retrieves a message event subscription for a given execution by id and a message
* name.
*/
get: operations["getMessageEventSubscription"];
};
"/execution/{id}/messageSubscriptions/{messageName}/trigger": {
/**
* Delivers a message to a specific execution by id, to trigger an existing message
* event subscription. Inject process variables as the message's
* payload.
*/
post: operations["triggerEvent"];
};
"/execution/{id}/signal": {
/**
* Signals an execution by id. Can for example be used to explicitly skip user tasks
* or signal asynchronous continuations.
*/
post: operations["signalExecution"];
};
"/external-task": {
/**
* Queries for the external tasks that fulfill given parameters. Parameters may be static as well as dynamic
* runtime properties of executions. The size of the result set can be retrieved by using the
* [Get External Task Count](https://docs.camunda.org/manual/latest/reference/rest/external-task/get-query-count/) method.
*/
get: operations["getExternalTasks"];
/**
* Queries for external tasks that fulfill given parameters in the form of a JSON object.
*
* This method is slightly more powerful than the
* [Get External Tasks](https://docs.camunda.org/manual/latest/reference/rest/external-task/get-query/) method because it allows to
* specify a hierarchical result sorting.
*/
post: operations["queryExternalTasks"];
};
"/external-task/count": {
/**
* Queries for the number of external tasks that fulfill given parameters. Takes the same parameters as the
* [Get External Tasks](https://docs.camunda.org/manual/latest/reference/rest/external-task/get-query/) method.
*/
get: operations["getExternalTasksCount"];
/**
* Queries for the number of external tasks that fulfill given parameters. This method takes the same message
* body as the [Get External Tasks (POST)](https://docs.camunda.org/manual/latest/reference/rest/external-task/post-query/) method.
*/
post: operations["queryExternalTasksCount"];
};
"/external-task/fetchAndLock": {
/**
* Fetches and locks a specific number of external tasks for execution by a worker. Query can be restricted
* to specific task topics and for each task topic an individual lock time can be provided.
*/
post: operations["fetchAndLock"];
};
"/external-task/retries": {
/**
* Sets the number of retries left to execute external tasks by id synchronously. If retries are set to 0,
* an incident is created.
*/
put: operations["setExternalTaskRetries"];
};
"/external-task/retries-async": {
/**
* Sets the number of retries left to execute external tasks by id asynchronously. If retries are set to 0,
* an incident is created.
*/
post: operations["setExternalTaskRetriesAsyncOperation"];
};
"/external-task/topic-names": {
/**
* Queries for distinct topic names of external tasks that fulfill given parameters.
* Query can be restricted to only tasks with retries left, tasks that are locked, or tasks
* that are unlocked. The parameters withLockedTasks and withUnlockedTasks are
* exclusive. Setting them both to true will return an empty list.
* Providing no parameters will return a list of all distinct topic names with external tasks.
*/
get: operations["getTopicNames"];
};
"/external-task/{id}": {
/** Retrieves an external task by id, corresponding to the `ExternalTask` interface in the engine. */
get: operations["getExternalTask"];
};
"/external-task/{id}/bpmnError": {
/**
* Reports a business error in the context of a running external task by id. The error code must be specified
* to identify the BPMN error handler.
*/
post: operations["handleExternalTaskBpmnError"];
};
"/external-task/{id}/complete": {
/** Completes an external task by id and updates process variables. */
post: operations["completeExternalTaskResource"];
};
"/external-task/{id}/errorDetails": {
/** Retrieves the error details in the context of a running external task by id. */
get: operations["getExternalTaskErrorDetails"];
};
"/external-task/{id}/extendLock": {
/** Extends the timeout of the lock by a given amount of time. */
post: operations["extendLock"];
};
"/external-task/{id}/failure": {
/**
* Reports a failure to execute an external task by id. A number of retries and a timeout until the task can
* be retried can be specified. If retries are set to 0, an incident for this task is created.
*/
post: operations["handleFailure"];
};
"/external-task/{id}/lock": {
/** Lock an external task by a given id for a specified worker and amount of time. */
post: operations["lock"];
};
"/external-task/{id}/priority": {
/** Sets the priority of an existing external task by id. The default value of a priority is 0. */
put: operations["setExternalTaskResourcePriority"];
};
"/external-task/{id}/retries": {
/**
* Sets the number of retries left to execute an external task by id. If retries are set to 0, an
* incident is created.
*/
put: operations["setExternalTaskResourceRetries"];
};
"/external-task/{id}/unlock": {
/** Unlocks an external task by id. Clears the task's lock expiration time and worker id. */
post: operations["unlock"];
};
"/group": {
/**
* Queries for a list of groups using a list of parameters. The size of the result set can be retrieved
* by using the [Get Group Count](https://docs.camunda.org/manual/latest/reference/rest/group/get-query-count) method.
*/
get: operations["getQueryGroups"];
/**
* Queries for a list of groups using a list of parameters.
* The size of the result set can be retrieved by using the
* [Get Group Count (POST)](https://docs.camunda.org/manual/latest/reference/rest/group/post-query-count/) method.
*/
post: operations["postQueryGroups"];
/**
* The `/group` resource supports two custom OPTIONS requests, this one for the resource as such and one for
* individual group instances. The OPTIONS request allows checking for the set of available operations that
* the currently authenticated user can perform on the `/group` resource. If the user can perform an operation
* or not may depend on various things, including the users authorizations to interact with this resource and
* the internal configuration of the process engine.
*/
options: operations["availableGroupOperations"];
};
"/group/count": {
/** Queries for groups using a list of parameters and retrieves the count. */
get: operations["getGroupCount"];
/** Queries for groups using a list of parameters and retrieves the count. */
post: operations["queryGroupCount"];
};
"/group/create": {
/** Creates a new group. */
post: operations["createGroup"];
};
"/group/{id}": {
/** Retrieves a group by id. */
get: operations["getGroup"];
/** Updates a given group by id. */
put: operations["updateGroup"];
/** Deletes a group by id. */
delete: operations["deleteGroup"];
/**
* The `/group` resource supports two custom OPTIONS requests, one for the resource as such and this one for individual group instances.
* The OPTIONS request allows checking for the set of available operations that the currently authenticated user can perform on the
* `/group/{id}` resource instance. If the user can perform an operation or not may depend on various things, including the users authorizations
* to interact with this resource and the internal configuration of the process engine.
*/
options: operations["availableGroupInstanceOperations"];
};
"/group/{id}/members": {
/**
* The OPTIONS request allows checking for the set of available operations that the currently authenticated
* user can perform on the resource. If the user can perform an operation or not may depend on various
* things, including the users authorizations to interact with this resource and the internal configuration
* of the process engine.
*/
options: operations["availableGroupMembersOperations"];
};
"/group/{id}/members/{userId}": {
/** Adds a member to a group. */
put: operations["createGroupMember"];
/** Removes a member from a group. */
delete: operations["deleteGroupMember"];
};
"/history/activity-instance": {
/**
* Queries for historic activity instances that fulfill the given parameters.
* The size of the result set can be retrieved by using the
* [Get Historic Activity Instance Count](https://docs.camunda.org/manual/latest/reference/rest/history/activity-instance/get-activity-instance-query-count/) method.
*/
get: operations["getHistoricActivityInstances"];
/**
* Queries for historic activity instances that fulfill the given parameters.
* The size of the result set can be retrieved by using the
* [Get Historic Activity Instance Count](https://docs.camunda.org/manual/latest/reference/rest/history/activity-instance/get-activity-instance-query-count/) method.
*/
post: operations["queryHistoricActivityInstances"];
};
"/history/activity-instance/count": {
/**
* Queries for the number of historic activity instances that fulfill the given parameters.
* Takes the same parameters as the [Get Historic Activity Instance](https://docs.camunda.org/manual/latest/reference/rest/history/activity-instance/get-activity-instance-query/) method.
*/
get: operations["getHistoricActivityInstancesCount"];
/** Queries for the number of historic activity instances that fulfill the given parameters. */
post: operations["queryHistoricActivityInstancesCount"];
};
"/history/activity-instance/{id}": {
/** Retrieves a historic activity instance by id, according to the `HistoricActivityInstance` interface in the engine. */
get: operations["getHistoricActivityInstance"];
};
"/history/process-instance": {
/**
* Queries for historic process instances that fulfill the given parameters.
* The size of the result set can be retrieved by using the
* [Get Process Instance Count](https://docs.camunda.org/manual/latest/reference/rest/history/process-instance/get-process-instance-query-count/) method.
*/
get: operations["getHistoricProcessInstances"];
/**
* Queries for historic process instances that fulfill the given parameters.
* This method is slightly more powerful than the
* [Get Process Instance](https://docs.camunda.org/manual/latest/reference/rest/history/process-instance/get-process-instance-query/)
* because it allows filtering by multiple process variables of types `String`, `Number` or `Boolean`.
*/
post: operations["queryHistoricProcessInstances"];
};
"/history/process-instance/count": {
/**
* Queries for the number of historic process instances that fulfill the given parameters.
* Takes the same parameters as the [Get Process Instances](https://docs.camunda.org/manual/latest/reference/rest/history/process-instance/get-process-instance-query/) method.
*/
get: operations["getHistoricProcessInstancesCount"];
/**
* Queries for the number of historic process instances that fulfill the given parameters.
* This method takes the same message body as the [Get Process Instances (POST)](https://docs.camunda.org/manual/latest/reference/rest/history/process-instance/get-process-instance-query/) method and
* therefore it is slightly more powerful than the [Get Process Instance Count](https://docs.camunda.org/manual/latest/reference/rest/history/process-instance/post-process-instance-query-count/) method.
*/
post: operations["queryHistoricProcessInstancesCount"];
};
"/history/process-instance/delete": {
/**
* Delete multiple historic process instances asynchronously (batch).
* At least `historicProcessInstanceIds` or `historicProcessInstanceQuery` has to be provided.
* If both are provided then all instances matching query criterion and instances from the list will be deleted.
*/
post: operations["deleteHistoricProcessInstancesAsync"];
};
"/history/process-instance/report": {
/**
* Retrieves a report about the duration of completed process instances, grouped by a period.
* These reports include the maximum, minimum and average duration of all completed process instances which were started in a given period.
*
* **Note:** This only includes historic data.
*/
get: operations["getHistoricProcessInstanceDurationReport"];
};
"/history/process-instance/set-removal-time": {
/**
* Sets the removal time to multiple historic process instances asynchronously (batch).
*
* At least `historicProcessInstanceIds` or `historicProcessInstanceQuery` has to be provided.
* If both are provided, all instances matching query criterion and instances from the list will be updated with a removal time.
*/
post: operations["setRemovalTimeAsync"];
};
"/history/process-instance/{id}": {
/** Retrieves a historic process instance by id, according to the `HistoricProcessInstance` interface in the engine. */
get: operations["getHistoricProcessInstance"];
/** Deletes a process instance from the history by id. */
delete: operations["deleteHistoricProcessInstance"];
};
"/history/process-instance/{id}/variable-instances": {
/** Deletes all variables of a process instance from the history by id. */
delete: operations["deleteHistoricVariableInstancesOfHistoricProcessInstance"];
};
"/identity/groups": {
/**
* Gets the groups of a user by id and includes all users that share a group with the
* given user.
*/
get: operations["getGroupInfo"];
};
"/identity/password-policy": {
/**
* A password policy consists of a list of rules that new passwords must follow to be
* policy compliant. This end point returns a JSON representation of the
* list of policy rules. More information on password policies in Camunda can be found in the password policy
* [user guide](https://docs.camunda.org/manual/latest/user-guide/process-engine/password-policy/) and in
* the [security instructions](https://docs.camunda.org/manual/latest/user-guide/security/).
*/
get: operations["getPasswordPolicy"];
/**
* A password policy consists of a list of rules that new passwords must follow to be
* policy compliant. A password can be checked for compliancy via this
* end point. More information on password policies in Camunda can be found in the password policy
* [user guide](https://docs.camunda.org/manual/latest/user-guide/process-engine/password-policy/) and in
* the [security instructions](https://docs.camunda.org/manual/latest/user-guide/security/).
*/
post: operations["checkPassword"];
};
"/identity/verify": {
/** Verifies that user credentials are valid. */
post: operations["verifyUser"];
};
"/incident": {
/**
* Queries for incidents that fulfill given parameters. The size of the result set can be retrieved by using
* the [Get Incident Count](https://docs.camunda.org/manual/latest/reference/rest/incident/get-query-count/) method.
*/
get: operations["getIncidents"];
};
"/incident/count": {
/**
* Queries for the number of incidents that fulfill given parameters. Takes the same parameters as the
* [Get Incidents](https://docs.camunda.org/manual/latest/reference/rest/incident/get-query/) method.
*/
get: operations["getIncidentsCount"];
};
"/incident/{id}": {
/** Retrieves an incident by ID. */
get: operations["getIncident"];
/** Resolves an incident with given id. */
delete: operations["resolveIncident"];
};
"/incident/{id}/annotation": {
/** Sets the annotation of an incident with given id. */
put: operations["setIncidentAnnotation"];
/** Clears the annotation of an incident with given id. */
delete: operations["clearIncidentAnnotation"];
};
"/job": {
/**
* Queries for jobs that fulfill given parameters.
* The size of the result set can be retrieved by using the [Get Job
* Count](https://docs.camunda.org/manual/latest/reference/rest/job/get-query-count/) method.
*/
get: operations["getJobs"];
/**
* Queries for jobs that fulfill given parameters. This method is slightly more
* powerful than the [Get Jobs](https://docs.camunda.org/manual/latest/reference/rest/job/get-query/)
* method because it allows filtering by multiple jobs of types `String`,
* `Number` or `Boolean`.
*/
post: operations["queryJobs"];
};
"/job/count": {
/**
* Queries for the number of jobs that fulfill given parameters.
* Takes the same parameters as the [Get
* Jobs](https://docs.camunda.org/manual/latest/reference/rest/job/get-query/) method.
*/
get: operations["getJobsCount"];
/**
* Queries for jobs that fulfill given parameters. This method takes the same message
* body as the [Get Jobs POST](https://docs.camunda.org/manual/latest/reference/rest/job/post-
* query/) method and therefore it is slightly more powerful than the
* [Get Job Count](https://docs.camunda.org/manual/latest/reference/rest/job/get-query-count/)
* method.
*/
post: operations["queryJobsCount"];
};
"/job/retries": {
/** Create a batch to set retries of jobs asynchronously. */
post: operations["setJobRetriesAsyncOperation"];
};
"/job/suspended": {
/**
* Activates or suspends jobs matching the given criterion.
* This can only be on of:
* * `jobDefinitionId`
* * `processDefinitionId`
* * `processInstanceId`
* * `processDefinitionKey`
*/
put: operations["updateSuspensionStateBy"];
};
"/job/{id}": {
/** Retrieves a job by id, according to the `Job` interface in the engine. */
get: operations["getJob"];
};
"/job/{id}/duedate": {
/** Updates the due date of a job by id. */
put: operations["setJobDuedate"];
};
"/job/{id}/duedate/recalculate": {
/** Recalculates the due date of a job by id. */
post: operations["recalculateDuedate"];
};
"/job/{id}/execute": {
/**
* Executes a job by id. **Note:** The execution of the job happens synchronously in
* the same thread.
*/
post: operations["executeJob"];
};
"/job/{id}/priority": {
/** Sets the execution priority of a job by id. */
put: operations["setJobPriority"];
};
"/job/{id}/retries": {
/** Sets the retries of the job to the given number of retries by id. */
put: operations["setJobRetries"];
};
"/job/{id}/stacktrace": {
/** Retrieves the exception stacktrace corresponding to the passed job id. */
get: operations["getStacktrace"];
};
"/job/{id}/suspended": {
/** Activates or suspends a given job by id. */
put: operations["updateJobSuspensionState"];
};
"/message": {
/**
* Correlates a message to the process engine to either trigger a message start event or an intermediate message
* catching event. Internally this maps to the engine's message correlation builder methods
* `MessageCorrelationBuilder#correlateWithResult()` and `MessageCorrelationBuilder#correlateAllWithResult()`.
* For more information about the correlation behavior, see the [Message Events](https://docs.camunda.org/manual/latest/bpmn20/events/message-events/)
* section of the [BPMN 2.0 Implementation Reference](https://docs.camunda.org/manual/latest/reference/bpmn20/).
*/
post: operations["deliverMessage"];
};
"/metrics": {
/** Retrieves a list of metrics, aggregated for a given interval. */
get: operations["interval"];
};
"/metrics/task-worker": {
/** Deletes all task worker metrics prior to the given date or all if no date is provided. */
delete: operations["deleteTaskMetrics"];
};
"/metrics/{metrics-name}/sum": {
/** Retrieves the `sum` (count) for a given metric. */
get: operations["getMetrics"];
};
"/process-definition": {
/**
* Queries for process definitions that fulfill given parameters. Parameters may be the properties of
* process definitions, such as the name, key or version. The size of the result set can be retrieved
* by using the [Get Definition Count](https://docs.camunda.org/manual/latest/reference/rest/process-definition/get-query-count/) method.
*/
get: operations["getProcessDefinitions"];
};
"/process-definition/count": {
/**
* Requests the number of process definitions that fulfill the query criteria.
* Takes the same filtering parameters as the [Get Definitions](https://docs.camunda.org/manual/latest/reference/rest/process-definition/get-query/) method.
*/
get: operations["getProcessDefinitionsCount"];
};
"/process-definition/key/{key}": {
/** Retrieves the latest version of the process definition which belongs to no tenant according to the `ProcessDefinition` interface in the engine. */
get: operations["getProcessDefinitionByKey"];
/** Deletes process definitions by a given key which belong to no tenant id. */
delete: operations["deleteProcessDefinitionsByKey"];
};
"/process-definition/key/{key}/deployed-start-form": {
/**
* Retrieves the deployed form that can be referenced from a start event.
* For further information please refer to [User Guide](https://docs.camunda.org/manual/latest/user-guide/task-forms/#embedded-task-forms).
*/
get: operations["getDeployedStartFormByKey"];
};
"/process-definition/key/{key}/diagram": {
/**
* Retrieves the diagram for the latest version of the process definition which belongs to no tenant.
*
* If the process definition's deployment contains an image resource with the same file name
* as the process definition, the deployed image will be returned by the Get Diagram endpoint.
* Example: `someProcess.bpmn` and `someProcess.png`.
* Supported file extentions for the image are: `svg`, `png`, `jpg`, and `gif`.
*/
get: operations["getProcessDefinitionDiagramByKey"];
};
"/process-definition/key/{key}/form-variables": {
/**
* Retrieves the start form variables for the latest process definition which belongs to no tenant
* (only if they are defined via the
* [Generated Task Form](https://docs.camunda.org/manual/latest/user-guide/task-forms/#generated-task-forms) approach).
* The start form variables take form data specified on the start event into account.
* If form fields are defined, the variable types and default values
* of the form fields are taken into account.
*/
get: operations["getStartFormVariablesByKey"];
};
"/process-definition/key/{key}/history-time-to-live": {
/**
* Updates history time to live for the latest version of the process definition which belongs to no tenant.
* The field is used within [History cleanup](https://docs.camunda.org/manual/latest/user-guide/process-engine/history/#history-cleanup).
*/
put: operations["updateHistoryTimeToLiveByProcessDefinitionKey"];
};
"/process-definition/key/{key}/rendered-form": {
/**
* Retrieves the rendered form for the latest version of the process definition which belongs to no tenant.
* This method can be used to get the HTML rendering of a
* [Generated Task Form](https://docs.camunda.org/manual/latest/user-guide/task-forms/#generated-task-forms).
*/
get: operations["getRenderedStartFormByKey"];
};
"/process-definition/key/{key}/start": {
/**
* Instantiates a given process definition, starts the latest version of the process definition
* which belongs to no tenant.
* Process variables and business key may be supplied in the request body.
*/
post: operations["startProcessInstanceByKey"];
};
"/process-definition/key/{key}/startForm": {
/**
* Retrieves the key of the start form for the latest version of the process definition
* which belongs to no tenant.
* The form key corresponds to the `FormData#formKey` property in the engine.
*/
get: operations["getStartFormByKey"];
};
"/process-definition/key/{key}/statistics": {
/**
* Retrieves runtime statistics of the latest version of the given process definition
* which belongs to no tenant, grouped by activities.
* These statistics include the number of running activity instances, optionally the number of failed jobs
* and also optionally the number of incidents either grouped by incident types or
* for a specific incident type.
* **Note**: This does not include historic data.
*/
get: operations["getActivityStatisticsByProcessDefinitionKey"];
};
"/process-definition/key/{key}/submit-form": {
/**
* Starts the latest version of the process definition which belongs to no tenant
* using a set of process variables and the business key.
* If the start event has Form Field Metadata defined, the process engine will perform backend validation
* for any form fields which have validators defined.
* See [Documentation on Generated Task Forms](https://docs.camunda.org/manual/latest/user-guide/task-forms/#generated-task-forms).
*/
post: operations["submitFormByKey"];
};
"/process-definition/key/{key}/suspended": {
/**
* Activates or suspends a given process definition by latest version of process definition key
* which belongs to no tenant.
*/
put: operations["updateProcessDefinitionSuspensionStateByKey"];
};
"/process-definition/key/{key}/tenant-id/{tenant-id}": {
/**
* Retrieves the latest version of the process definition for tenant according to
* the `ProcessDefinition` interface in the engine.
*/
get: operations["getLatestProcessDefinitionByTenantId"];
/** Deletes process definitions by a given key and which belong to a tenant id. */
delete: operations["deleteProcessDefinitionsByKeyAndTenantId"];
};
"/process-definition/key/{key}/tenant-id/{tenant-id}/deployed-start-form": {
/**
* Retrieves the deployed form that can be referenced from a start event.
* For further information please refer to [User Guide](https://docs.camunda.org/manual/latest/user-guide/task-forms/#embedded-task-forms).
*/
get: operations["getDeployedStartFormByKeyAndTenantId"];
};
"/process-definition/key/{key}/tenant-id/{tenant-id}/diagram": {
/**
* Retrieves the diagram for the latest version of the process definition for tenant.
*
* If the process definition's deployment contains an image resource with the same file name
* as the process definition, the deployed image will be returned by the Get Diagram endpoint.
* Example: `someProcess.bpmn` and `someProcess.png`.
* Supported file extentions for the image are: `svg`, `png`, `jpg`, and `gif`.
*/
get: operations["getProcessDefinitionDiagramByKeyAndTenantId"];
};
"/process-definition/key/{key}/tenant-id/{tenant-id}/form-variables": {
/**
* Retrieves the start form variables for the latest process definition for a tenant
* (only if they are defined via the
* [Generated Task Form](https://docs.camunda.org/manual/latest/user-guide/task-forms/#generated-task-forms) approach).
* The start form variables take form data specified on the start event into account.
* If form fields are defined, the variable types and default values
* of the form fields are taken into account.
*/
get: operations["getStartFormVariablesByKeyAndTenantId"];
};
"/process-definition/key/{key}/tenant-id/{tenant-id}/history-time-to-live": {
/**
* Updates history time to live for the latest version of the process definition for a tenant.
* The field is used within [History cleanup](https://docs.camunda.org/manual/latest/user-guide/process-engine/history/#history-cleanup).
*/
put: operations["updateHistoryTimeToLiveByProcessDefinitionKeyAndTenantId"];
};
"/process-definition/key/{key}/tenant-id/{tenant-id}/rendered-form": {
/**
* Retrieves the rendered form for the latest version of the process definition for a tenant.
* This method can be used to get the HTML rendering of a
* [Generated Task Form](https://docs.camunda.org/manual/latest/user-guide/task-forms/#generated-task-forms).
*/
get: operations["getRenderedStartFormByKeyAndTenantId"];
};
"/process-definition/key/{key}/tenant-id/{tenant-id}/start": {
/**
* Instantiates a given process definition, starts the latest version of the process definition for tenant.
* Process variables and business key may be supplied in the request body.
*/
post: operations["startProcessInstanceByKeyAndTenantId"];
};
"/process-definition/key/{key}/tenant-id/{tenant-id}/startForm": {
/**
* Retrieves the key of the start form for the latest version of the process definition for a tenant.
* The form key corresponds to the `FormData#formKey` property in the engine.
*/
get: operations["getStartFormByKeyAndTenantId"];
};
"/process-definition/key/{key}/tenant-id/{tenant-id}/statistics": {
/**
* Retrieves runtime statistics of the latest version of the given process definition for a tenant,
* grouped by activities.
* These statistics include the number of running activity instances, optionally the number of failed jobs
* and also optionally the number of incidents either grouped by incident types or
* for a specific incident type.
* **Note**: This does not include historic data.
*/
get: operations["getActivityStatisticsByProcessDefinitionKeyAndTenantId"];
};
"/process-definition/key/{key}/tenant-id/{tenant-id}/submit-form": {
/**
* Starts the latest version of the process definition for a tenant
* using a set of process variables and the business key.
* If the start event has Form Field Metadata defined, the process engine will perform backend validation
* for any form fields which have validators defined.
* See [Documentation on Generated Task Forms](https://docs.camunda.org/manual/latest/user-guide/task-forms/#generated-task-forms).
*/
post: operations["submitFormByKeyAndTenantId"];
};
"/process-definition/key/{key}/tenant-id/{tenant-id}/suspended": {
/**
* Activates or suspends a given process definition by the latest version of
* the process definition for tenant.
*/
put: operations["updateProcessDefinitionSuspensionStateByKeyAndTenantId"];
};
"/process-definition/key/{key}/tenant-id/{tenant-id}/xml": {
/**
* Retrieves latest version the BPMN 2.0 XML of a process definition.
* Returns the XML for the latest version of the process definition for tenant.
*/
get: operations["getProcessDefinitionBpmn20XmlByKeyAndTenantId"];
};
"/process-definition/key/{key}/xml": {
/** Retrieves latest version the BPMN 2.0 XML of a process definition. */
get: operations["getProcessDefinitionBpmn20XmlByKey"];
};
"/process-definition/statistics": {
/**
* Retrieves runtime statistics of the process engine, grouped by process definitions.
* These statistics include the number of running process instances, optionally the number of failed jobs
* and also optionally the number of incidents either grouped by incident types or
* for a specific incident type.
* **Note**: This does not include historic data.
*/
get: operations["getProcessDefinitionStatistics"];
};
"/process-definition/suspended": {
/** Activates or suspends process definitions with the given process definition key. */
put: operations["updateProcessDefinitionSuspensionState"];
};
"/process-definition/{id}": {
/** Retrieves a process definition according to the `ProcessDefinition` interface in the engine. */
get: operations["getProcessDefinition"];
/** Deletes a running process instance by id. */
delete: operations["deleteProcessDefinition"];
};