Vinyeh commited on
Commit
32069eb
·
verified ·
1 Parent(s): 97ab6ba

Add pinned source: camunda-dmn-examples (part 16)

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +4 -0
  2. source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-jakarta/README.md +22 -0
  3. source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-jakarta/pom.xml +732 -0
  4. source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-jakarta/src/main/java/org/camunda/bpm/engine/rest/filter/EmptyBodyFilter.java +102 -0
  5. source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-jakarta/src/test/java-resteasy/org/camunda/bpm/engine/rest/util/container/ResteasySpecifics.java +195 -0
  6. source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-jakarta/src/test/java-resteasy/org/camunda/bpm/engine/rest/util/container/ResteasyUndertowServerBootstrap.java +66 -0
  7. source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-jakarta/src/test/resources/META-INF/services/org.camunda.bpm.engine.rest.spi.ProcessEngineProvider +1 -0
  8. source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi-generator/pom.xml +50 -0
  9. source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi-generator/src/main/java/org/camunda/bpm/engine/rest/openapi/generator/impl/SchemaValidator.java +55 -0
  10. source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi-generator/src/main/java/org/camunda/bpm/engine/rest/openapi/generator/impl/TemplateParser.java +221 -0
  11. source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/README.md +275 -0
  12. source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/pom.xml +257 -0
  13. source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/openapi/schema.json +1654 -0
  14. source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/authorization-query-params.ftl +40 -0
  15. source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/batch.ftl +74 -0
  16. source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/decision-definition.ftl +147 -0
  17. source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/decision-requirements-definition.ftl +89 -0
  18. source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/deployment-query-params.ftl +73 -0
  19. source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/deserialize-values-parameter.ftl +25 -0
  20. source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/event-subscription-query-params.ftl +60 -0
  21. source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/execution-query-params.ftl +151 -0
  22. source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/external-task-query-params.ftl +207 -0
  23. source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/filter-query-params.ftl +32 -0
  24. source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/group-query-params.ftl +43 -0
  25. source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/historic-batch-params.ftl +40 -0
  26. source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/historic-decision-instance-query-params.ftl +130 -0
  27. source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/historic-decision-instance-single-query-params.ftl +23 -0
  28. source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/historic-external-task-log-query-params.ftl +107 -0
  29. source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/historic-incident-query-params.ftl +141 -0
  30. source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/historic-variable-instance-query-params.ftl +115 -0
  31. source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/history-activity-instance.ftl +108 -0
  32. source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/history-cleanable-decision-definition-query-params.ftl +36 -0
  33. source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/history-detail-query-params.ftl +112 -0
  34. source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/history-identity-link.ftl +69 -0
  35. source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/history-job-log-params.ftl +122 -0
  36. source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/history-process-definition-activity-statistics.ftl +57 -0
  37. source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/history-process-definition-process-instance-report.ftl +34 -0
  38. source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/history-process-instance.ftl +330 -0
  39. source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/history-task-instance-query-params.ftl +356 -0
  40. source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/incident-query-params.ftl +113 -0
  41. source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/job-definition-query-params.ftl +79 -0
  42. source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/job-query-params.ftl +174 -0
  43. source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/pagination-params.ftl +13 -0
  44. source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/process-definition-query-params.ftl +183 -0
  45. source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/process-instance-query-params.ftl +189 -0
  46. source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/sort-params.ftl +16 -0
  47. source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/sort-props.ftl +39 -0
  48. source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/statistics-query-params.ftl +27 -0
  49. source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/statistics-result-props.ftl +34 -0
  50. source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/task-query-params.ftl +697 -0
.gitattributes CHANGED
@@ -73,3 +73,7 @@ source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/distro/camunda-welco
73
  source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/distro/camunda-welcome/assets/fonts/IBMPlexSans-BoldItalic.otf filter=lfs diff=lfs merge=lfs -text
74
  source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/distro/camunda-welcome/assets/fonts/IBMPlexSans-Italic.otf filter=lfs diff=lfs merge=lfs -text
75
  source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/distro/camunda-welcome/assets/fonts/IBMPlexSans-Regular.otf filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
73
  source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/distro/camunda-welcome/assets/fonts/IBMPlexSans-BoldItalic.otf filter=lfs diff=lfs merge=lfs -text
74
  source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/distro/camunda-welcome/assets/fonts/IBMPlexSans-Italic.otf filter=lfs diff=lfs merge=lfs -text
75
  source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/distro/camunda-welcome/assets/fonts/IBMPlexSans-Regular.otf filter=lfs diff=lfs merge=lfs -text
76
+ source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/examples/invoice/src/main/webapp/assets/fonts/IBMPlexSans-Bold.otf filter=lfs diff=lfs merge=lfs -text
77
+ source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/examples/invoice/src/main/webapp/assets/fonts/IBMPlexSans-BoldItalic.otf filter=lfs diff=lfs merge=lfs -text
78
+ source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/examples/invoice/src/main/webapp/assets/fonts/IBMPlexSans-Italic.otf filter=lfs diff=lfs merge=lfs -text
79
+ source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/examples/invoice/src/main/webapp/assets/fonts/IBMPlexSans-Regular.otf filter=lfs diff=lfs merge=lfs -text
source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-jakarta/README.md ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ REST API Jakarta
2
+ ================
3
+
4
+ A Jakarta JAX-RS-based REST API for Camunda Platform.
5
+
6
+ > This module copies and transforms the `camunda-engine-rest-core` module.
7
+ > It contains only implementations for classes where there are breaking changes either in the updated dependencies or due to JakartaEE.
8
+
9
+ Running Tests
10
+ -------------
11
+
12
+ The REST API is tested against one JAX-RS runtime:
13
+
14
+ * Resteasy
15
+
16
+ In order to run the tests against Resteasy, execute `mvn clean install -Presteasy`.
17
+
18
+ Writing Tests
19
+ -------------
20
+
21
+ See the `camunda-engine-rest-core` module's README about writing tests and add your test in that module.
22
+
source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-jakarta/pom.xml ADDED
@@ -0,0 +1,732 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3
+ <modelVersion>4.0.0</modelVersion>
4
+ <artifactId>camunda-engine-rest-core-jakarta</artifactId>
5
+ <name>Camunda Platform - engine - REST Jakarta</name>
6
+ <packaging>jar</packaging>
7
+
8
+ <description>
9
+ Note: 7.24.0 is the last community edition release published on Maven Central. This library will not receive any new versions or releases. However, if you are interested in extended maintenance you could look into our enterprise edition. Get in touch with us: https://camunda.com/contact/
10
+ </description>
11
+
12
+ <parent>
13
+ <groupId>org.camunda.bpm</groupId>
14
+ <artifactId>camunda-engine-rest-root</artifactId>
15
+ <relativePath>../</relativePath>
16
+ <version>7.24.0-SNAPSHOT</version>
17
+ </parent>
18
+
19
+ <properties>
20
+ <rest.http.port>38081</rest.http.port>
21
+ <version.resteasy>6.2.3.Final</version.resteasy>
22
+ </properties>
23
+
24
+ <dependencyManagement>
25
+ <dependencies>
26
+ <dependency>
27
+ <groupId>jakarta.platform</groupId>
28
+ <artifactId>jakarta.jakartaee-bom</artifactId>
29
+ <version>${version.jakarta-ee-spec}</version>
30
+ <scope>import</scope>
31
+ <type>pom</type>
32
+ </dependency>
33
+ <dependency>
34
+ <groupId>org.jboss.resteasy</groupId>
35
+ <artifactId>resteasy-bom</artifactId>
36
+ <version>${version.resteasy}</version>
37
+ <type>pom</type>
38
+ <scope>import</scope>
39
+ </dependency>
40
+ </dependencies>
41
+ </dependencyManagement>
42
+
43
+ <dependencies>
44
+
45
+ <dependency>
46
+ <groupId>commons-fileupload</groupId>
47
+ <artifactId>commons-fileupload</artifactId>
48
+ <exclusions>
49
+ <exclusion>
50
+ <groupId>commons-io</groupId>
51
+ <artifactId>commons-io</artifactId>
52
+ </exclusion>
53
+ </exclusions>
54
+ </dependency>
55
+ <!-- override managed version from commons-fileupload -->
56
+ <dependency>
57
+ <groupId>commons-io</groupId>
58
+ <artifactId>commons-io</artifactId>
59
+ </dependency>
60
+
61
+ <dependency>
62
+ <groupId>com.fasterxml.jackson.jakarta.rs</groupId>
63
+ <artifactId>jackson-jakarta-rs-json-provider</artifactId>
64
+ <exclusions>
65
+ <exclusion>
66
+ <groupId>jakarta.activation</groupId>
67
+ <artifactId>jakarta.activation-api</artifactId>
68
+ </exclusion>
69
+ <exclusion>
70
+ <groupId>jakarta.xml.bind</groupId>
71
+ <artifactId>jakarta.xml.bind-api</artifactId>
72
+ </exclusion>
73
+ </exclusions>
74
+ </dependency>
75
+
76
+ <dependency>
77
+ <groupId>com.fasterxml.jackson.core</groupId>
78
+ <artifactId>jackson-databind</artifactId>
79
+ </dependency>
80
+
81
+ <dependency>
82
+ <groupId>com.fasterxml.jackson.datatype</groupId>
83
+ <artifactId>jackson-datatype-jsr310</artifactId>
84
+ </dependency>
85
+
86
+ <!-- provided deps -->
87
+ <dependency>
88
+ <groupId>jakarta.servlet</groupId>
89
+ <artifactId>jakarta.servlet-api</artifactId>
90
+ <scope>provided</scope>
91
+ </dependency>
92
+ <dependency>
93
+ <groupId>jakarta.activation</groupId>
94
+ <artifactId>jakarta.activation-api</artifactId>
95
+ <scope>provided</scope>
96
+ </dependency>
97
+ <dependency>
98
+ <groupId>jakarta.ws.rs</groupId>
99
+ <artifactId>jakarta.ws.rs-api</artifactId>
100
+ <scope>provided</scope>
101
+ </dependency>
102
+ <dependency>
103
+ <groupId>jakarta.xml.bind</groupId>
104
+ <artifactId>jakarta.xml.bind-api</artifactId>
105
+ <scope>provided</scope>
106
+ </dependency>
107
+
108
+ <dependency>
109
+ <groupId>org.camunda.bpm</groupId>
110
+ <artifactId>camunda-engine</artifactId>
111
+ <scope>provided</scope>
112
+ <exclusions>
113
+ <exclusion>
114
+ <groupId>org.springframework</groupId>
115
+ <artifactId>spring-jcl</artifactId>
116
+ </exclusion>
117
+ </exclusions>
118
+ </dependency>
119
+
120
+ <dependency>
121
+ <groupId>org.camunda.commons</groupId>
122
+ <artifactId>camunda-commons-logging</artifactId>
123
+ <scope>provided</scope>
124
+ </dependency>
125
+
126
+ <!--
127
+ needed for offline shrinkwrap (in particular CustomJacksonDateFormatTest),
128
+ BOMs must be installed before this module is built
129
+ -->
130
+ <dependency>
131
+ <groupId>org.camunda.bpm</groupId>
132
+ <artifactId>camunda-bom</artifactId>
133
+ <version>${project.version}</version>
134
+ <type>pom</type>
135
+ <scope>test</scope>
136
+ </dependency>
137
+
138
+ <dependency>
139
+ <groupId>org.camunda.bpm</groupId>
140
+ <artifactId>camunda-core-internal-dependencies</artifactId>
141
+ <version>${project.version}</version>
142
+ <type>pom</type>
143
+ <scope>test</scope>
144
+ </dependency>
145
+
146
+ <dependency>
147
+ <groupId>jakarta.platform</groupId>
148
+ <artifactId>jakarta.jakartaee-bom</artifactId>
149
+ <version>${version.jakarta-ee-spec}</version>
150
+ <type>pom</type>
151
+ <scope>test</scope>
152
+ </dependency>
153
+
154
+ <!-- test -->
155
+ <dependency>
156
+ <groupId>junit</groupId>
157
+ <artifactId>junit</artifactId>
158
+ <scope>test</scope>
159
+ </dependency>
160
+
161
+ <dependency>
162
+ <groupId>org.mockito</groupId>
163
+ <artifactId>mockito-core</artifactId>
164
+ <scope>test</scope>
165
+ <exclusions>
166
+ <exclusion>
167
+ <groupId>org.hamcrest</groupId>
168
+ <artifactId>hamcrest-core</artifactId>
169
+ </exclusion>
170
+ </exclusions>
171
+ </dependency>
172
+
173
+ <dependency>
174
+ <groupId>io.rest-assured</groupId>
175
+ <artifactId>rest-assured</artifactId>
176
+ <scope>test</scope>
177
+ </dependency>
178
+
179
+ <dependency>
180
+ <groupId>org.apache.httpcomponents</groupId>
181
+ <artifactId>httpcore</artifactId>
182
+ <scope>test</scope>
183
+ </dependency>
184
+
185
+ <dependency>
186
+ <groupId>commons-codec</groupId>
187
+ <artifactId>commons-codec</artifactId>
188
+ <scope>test</scope>
189
+ </dependency>
190
+
191
+ <dependency>
192
+ <groupId>com.h2database</groupId>
193
+ <artifactId>h2</artifactId>
194
+ <scope>test</scope>
195
+ </dependency>
196
+
197
+ <dependency>
198
+ <groupId>org.camunda.commons</groupId>
199
+ <artifactId>camunda-commons-testing</artifactId>
200
+ <scope>test</scope>
201
+ </dependency>
202
+
203
+ <dependency>
204
+ <groupId>org.assertj</groupId>
205
+ <artifactId>assertj-core</artifactId>
206
+ <scope>test</scope>
207
+ </dependency>
208
+
209
+ </dependencies>
210
+
211
+ <build>
212
+ <plugins>
213
+ <plugin>
214
+ <groupId>org.apache.maven.plugins</groupId>
215
+ <artifactId>maven-dependency-plugin</artifactId>
216
+ <executions>
217
+ <execution>
218
+ <phase>initialize</phase>
219
+ <goals>
220
+ <goal>properties</goal>
221
+ </goals>
222
+ </execution>
223
+ </executions>
224
+ </plugin>
225
+
226
+ <plugin>
227
+ <artifactId>maven-resources-plugin</artifactId>
228
+ <executions>
229
+ <!-- copy main sources & resources -->
230
+ <execution>
231
+ <id>copy-main-sources</id>
232
+ <phase>generate-sources</phase>
233
+ <goals>
234
+ <goal>copy-resources</goal>
235
+ </goals>
236
+ <configuration>
237
+ <outputDirectory>${project.build.directory}/generated-sources/jakarta</outputDirectory>
238
+ <resources>
239
+ <resource>
240
+ <directory>${basedir}/../engine-rest/src/main/java</directory>
241
+ <filtering>false</filtering>
242
+ <excludes>
243
+ <exclude>**/EmptyBodyFilter.java</exclude>
244
+ </excludes>
245
+ </resource>
246
+ </resources>
247
+ </configuration>
248
+ </execution>
249
+ <execution>
250
+ <id>copy-main-resources</id>
251
+ <phase>generate-resources</phase>
252
+ <goals>
253
+ <goal>copy-resources</goal>
254
+ </goals>
255
+ <configuration>
256
+ <outputDirectory>${project.build.directory}/generated-resources/jakarta</outputDirectory>
257
+ <resources>
258
+ <resource>
259
+ <directory>${basedir}/../engine-rest/src/main/resources</directory>
260
+ <filtering>false</filtering>
261
+ </resource>
262
+ </resources>
263
+ </configuration>
264
+ </execution>
265
+ <!-- copy test sources & resources -->
266
+ <execution>
267
+ <id>copy-test-sources</id>
268
+ <phase>generate-test-sources</phase>
269
+ <goals>
270
+ <goal>copy-resources</goal>
271
+ </goals>
272
+ <configuration>
273
+ <outputDirectory>${project.build.directory}/generated-test-sources/jakarta</outputDirectory>
274
+ <resources>
275
+ <resource>
276
+ <directory>${basedir}/../engine-rest/src/test/java</directory>
277
+ <filtering>false</filtering>
278
+ <excludes>
279
+ <exclude>**/TomcatServerBootstrap.java</exclude>
280
+ </excludes>
281
+ </resource>
282
+ </resources>
283
+ </configuration>
284
+ </execution>
285
+ <execution>
286
+ <id>copy-test-sources-resteasy</id>
287
+ <phase>generate-test-sources</phase>
288
+ <goals>
289
+ <goal>copy-resources</goal>
290
+ </goals>
291
+ <configuration>
292
+ <outputDirectory>${project.build.directory}/generated-test-sources/jakarta-resteasy</outputDirectory>
293
+ <resources>
294
+ <resource>
295
+ <directory>${basedir}/../engine-rest/src/test/java-resteasy</directory>
296
+ <filtering>false</filtering>
297
+ <excludes>
298
+ <exclude>**/ResteasyTomcatServerBootstrap.java</exclude>
299
+ <exclude>**/ResteasySpecifics.java</exclude>
300
+ </excludes>
301
+ </resource>
302
+ </resources>
303
+ </configuration>
304
+ </execution>
305
+ <execution>
306
+ <id>copy-test-resources</id>
307
+ <phase>generate-test-resources</phase>
308
+ <goals>
309
+ <goal>copy-resources</goal>
310
+ </goals>
311
+ <configuration>
312
+ <outputDirectory>${project.build.directory}/generated-test-resources/jakarta</outputDirectory>
313
+ <resources>
314
+ <resource>
315
+ <directory>${basedir}/../engine-rest/src/test/resources</directory>
316
+ <filtering>true</filtering>
317
+ </resource>
318
+ </resources>
319
+ </configuration>
320
+ </execution>
321
+ <execution>
322
+ <id>copy-test-resources-resteasy</id>
323
+ <phase>generate-test-resources</phase>
324
+ <goals>
325
+ <goal>copy-resources</goal>
326
+ </goals>
327
+ <configuration>
328
+ <outputDirectory>${project.build.directory}/generated-test-resources/jakarta-resteasy</outputDirectory>
329
+ <resources>
330
+ <resource>
331
+ <directory>${basedir}/../engine-rest/src/test/resources-resteasy</directory>
332
+ <filtering>false</filtering>
333
+ </resource>
334
+ </resources>
335
+ </configuration>
336
+ </execution>
337
+ </executions>
338
+ </plugin>
339
+
340
+ <plugin>
341
+ <groupId>org.eclipse.transformer</groupId>
342
+ <artifactId>transformer-maven-plugin</artifactId>
343
+ <!-- sources & test-sources -->
344
+ <executions>
345
+ <execution>
346
+ <id>transform-jakarta-sources</id>
347
+ <phase>generate-sources</phase>
348
+ <goals>
349
+ <goal>transform</goal>
350
+ </goals>
351
+ <configuration>
352
+ <transformDirectory>${project.build.directory}/generated-sources/jakarta</transformDirectory>
353
+ </configuration>
354
+ </execution>
355
+ <execution>
356
+ <id>transform-jakarta-test-sources</id>
357
+ <phase>generate-test-sources</phase>
358
+ <goals>
359
+ <goal>transform</goal>
360
+ </goals>
361
+ <configuration>
362
+ <transformDirectory>${project.build.directory}/generated-test-sources/jakarta</transformDirectory>
363
+ </configuration>
364
+ </execution>
365
+ <!-- resteasy test-sources & test-resources -->
366
+ <execution>
367
+ <id>transform-jakarta-test-sources-resteasy</id>
368
+ <phase>generate-test-sources</phase>
369
+ <goals>
370
+ <goal>transform</goal>
371
+ </goals>
372
+ <configuration>
373
+ <transformDirectory>${project.build.directory}/generated-test-sources/jakarta-resteasy</transformDirectory>
374
+ </configuration>
375
+ </execution>
376
+ <execution>
377
+ <id>transform-jakarta-test-resources-resteasy</id>
378
+ <phase>generate-test-resources</phase>
379
+ <goals>
380
+ <goal>transform</goal>
381
+ </goals>
382
+ <configuration>
383
+ <transformDirectory>${project.build.directory}/generated-test-resources/jakarta-resteasy</transformDirectory>
384
+ </configuration>
385
+ </execution>
386
+ </executions>
387
+ </plugin>
388
+
389
+ <plugin>
390
+ <groupId>org.codehaus.mojo</groupId>
391
+ <artifactId>build-helper-maven-plugin</artifactId>
392
+ <executions>
393
+ <execution>
394
+ <id>add-jakarta-source</id>
395
+ <phase>generate-sources</phase>
396
+ <goals>
397
+ <goal>add-source</goal>
398
+ </goals>
399
+ <configuration>
400
+ <sources>
401
+ <source>${project.build.directory}/generated-sources/jakarta</source>
402
+ </sources>
403
+ </configuration>
404
+ </execution>
405
+ <execution>
406
+ <id>add-jakarta-resource</id>
407
+ <phase>generate-resources</phase>
408
+ <goals>
409
+ <goal>add-resource</goal>
410
+ </goals>
411
+ <configuration>
412
+ <resources>
413
+ <resource>
414
+ <directory>${project.build.directory}/generated-resources/jakarta</directory>
415
+ </resource>
416
+ </resources>
417
+ </configuration>
418
+ </execution>
419
+ <execution>
420
+ <id>add-jakarta-test-source</id>
421
+ <phase>generate-test-sources</phase>
422
+ <goals>
423
+ <goal>add-test-source</goal>
424
+ </goals>
425
+ <configuration>
426
+ <sources>
427
+ <source>${project.build.directory}/generated-test-sources/jakarta</source>
428
+ </sources>
429
+ </configuration>
430
+ </execution>
431
+ <execution>
432
+ <id>add-jakarta-test-resource</id>
433
+ <phase>generate-test-resources</phase>
434
+ <goals>
435
+ <goal>add-test-resource</goal>
436
+ </goals>
437
+ <configuration>
438
+ <resources>
439
+ <resource>
440
+ <directory>${project.build.directory}/generated-test-resources/jakarta</directory>
441
+ </resource>
442
+ </resources>
443
+ </configuration>
444
+ </execution>
445
+ </executions>
446
+ </plugin>
447
+
448
+ <plugin>
449
+ <groupId>org.apache.maven.plugins</groupId>
450
+ <artifactId>maven-source-plugin</artifactId>
451
+ <executions>
452
+ <execution>
453
+ <!-- This id must match the -Prelease-profile id value or else sources will be "uploaded" twice, which causes Nexus to fail -->
454
+ <id>attach-sources</id>
455
+ <goals>
456
+ <goal>jar</goal>
457
+ </goals>
458
+ </execution>
459
+ </executions>
460
+ </plugin>
461
+
462
+ <plugin>
463
+ <groupId>org.apache.maven.plugins</groupId>
464
+ <artifactId>maven-jar-plugin</artifactId>
465
+ <executions>
466
+ <execution>
467
+ <goals>
468
+ <goal>test-jar</goal>
469
+ </goals>
470
+ </execution>
471
+ </executions>
472
+ </plugin>
473
+
474
+ <plugin>
475
+ <groupId>org.apache.maven.plugins</groupId>
476
+ <artifactId>maven-war-plugin</artifactId>
477
+ <configuration>
478
+ <failOnMissingWebXml>false</failOnMissingWebXml>
479
+ </configuration>
480
+ </plugin>
481
+
482
+ <plugin>
483
+ <groupId>org.apache.maven.plugins</groupId>
484
+ <artifactId>maven-surefire-plugin</artifactId>
485
+ <configuration>
486
+ <skipTests>true</skipTests>
487
+ <systemPropertyVariables>
488
+ <restEasyVersion>${version.resteasy}</restEasyVersion>
489
+ </systemPropertyVariables>
490
+ </configuration>
491
+ </plugin>
492
+
493
+ <plugin>
494
+ <groupId>org.jboss.shrinkwrap.resolver</groupId>
495
+ <artifactId>shrinkwrap-resolver-maven-plugin</artifactId>
496
+ <version>${version.shrinkwrap.resolvers}</version>
497
+ <executions>
498
+ <execution>
499
+ <goals>
500
+ <goal>propagate-execution-context</goal>
501
+ </goals>
502
+ </execution>
503
+ </executions>
504
+ </plugin>
505
+ </plugins>
506
+ </build>
507
+
508
+ <profiles>
509
+ <profile>
510
+ <id>resteasy</id>
511
+ <activation>
512
+ <activeByDefault>true</activeByDefault>
513
+ </activation>
514
+
515
+ <properties>
516
+ <version.netty>4.1.89.Final</version.netty>
517
+ <version.undertow>2.3.0.Final</version.undertow>
518
+ </properties>
519
+
520
+ <dependencies>
521
+ <dependency>
522
+ <groupId>io.undertow</groupId>
523
+ <artifactId>undertow-servlet</artifactId>
524
+ <version>${version.undertow}</version>
525
+ <scope>test</scope>
526
+ </dependency>
527
+ <dependency>
528
+ <groupId>org.jboss.resteasy</groupId>
529
+ <artifactId>resteasy-core</artifactId>
530
+ <scope>test</scope>
531
+ </dependency>
532
+ <dependency>
533
+ <groupId>org.jboss.resteasy</groupId>
534
+ <artifactId>resteasy-undertow</artifactId>
535
+ <scope>test</scope>
536
+ </dependency>
537
+ <dependency>
538
+ <groupId>org.jboss.resteasy</groupId>
539
+ <artifactId>resteasy-netty4</artifactId>
540
+ <scope>test</scope>
541
+ </dependency>
542
+ <dependency>
543
+ <groupId>io.netty</groupId>
544
+ <artifactId>netty-all</artifactId>
545
+ <version>${version.netty}</version>
546
+ <scope>test</scope>
547
+ </dependency>
548
+ </dependencies>
549
+
550
+ <build>
551
+ <plugins>
552
+ <plugin>
553
+ <groupId>org.apache.maven.plugins</groupId>
554
+ <artifactId>maven-surefire-plugin</artifactId>
555
+ <configuration>
556
+ <skipTests>false</skipTests>
557
+ </configuration>
558
+ </plugin>
559
+ <plugin>
560
+ <groupId>org.codehaus.mojo</groupId>
561
+ <artifactId>build-helper-maven-plugin</artifactId>
562
+ <executions>
563
+ <execution>
564
+ <id>add-jakarta-resteasy-test-source</id>
565
+ <phase>generate-test-sources</phase>
566
+ <goals>
567
+ <goal>add-test-source</goal>
568
+ </goals>
569
+ <configuration>
570
+ <sources>
571
+ <source>${basedir}/src/test/java-resteasy</source>
572
+ <source>${project.build.directory}/generated-test-sources/jakarta-resteasy</source>
573
+ </sources>
574
+ </configuration>
575
+ </execution>
576
+ <execution>
577
+ <id>add-jakarta-resteasy-test-resource</id>
578
+ <phase>generate-test-resources</phase>
579
+ <goals>
580
+ <goal>add-test-resource</goal>
581
+ </goals>
582
+ <configuration>
583
+ <resources>
584
+ <resource><directory>${project.build.directory}/generated-test-resources/jakarta-resteasy</directory></resource>
585
+ </resources>
586
+ </configuration>
587
+ </execution>
588
+ </executions>
589
+ </plugin>
590
+ </plugins>
591
+ </build>
592
+ </profile>
593
+
594
+ <profile>
595
+ <id>wildfly-compatibility</id>
596
+
597
+ <properties>
598
+ <version.netty>4.1.89.Final</version.netty>
599
+ <version.undertow>2.3.0.Final</version.undertow>
600
+ <!-- Test with Resteasy version used by Wildfly 27.0.0.Final -->
601
+ <version.resteasy>6.2.1.Final</version.resteasy>
602
+ </properties>
603
+
604
+ <dependencies>
605
+ <dependency>
606
+ <groupId>io.undertow</groupId>
607
+ <artifactId>undertow-servlet</artifactId>
608
+ <version>${version.undertow}</version>
609
+ <scope>test</scope>
610
+ </dependency>
611
+ <dependency>
612
+ <groupId>org.jboss.resteasy</groupId>
613
+ <artifactId>resteasy-core</artifactId>
614
+ <scope>test</scope>
615
+ </dependency>
616
+ <dependency>
617
+ <groupId>org.jboss.resteasy</groupId>
618
+ <artifactId>resteasy-undertow</artifactId>
619
+ <scope>test</scope>
620
+ </dependency>
621
+ <dependency>
622
+ <groupId>org.jboss.resteasy</groupId>
623
+ <artifactId>resteasy-netty4</artifactId>
624
+ <scope>test</scope>
625
+ </dependency>
626
+ <dependency>
627
+ <groupId>io.netty</groupId>
628
+ <artifactId>netty-all</artifactId>
629
+ <version>${version.netty}</version>
630
+ <scope>test</scope>
631
+ </dependency>
632
+ </dependencies>
633
+
634
+ <build>
635
+ <plugins>
636
+ <plugin>
637
+ <groupId>org.apache.maven.plugins</groupId>
638
+ <artifactId>maven-surefire-plugin</artifactId>
639
+ <configuration>
640
+ <skipTests>false</skipTests>
641
+ </configuration>
642
+ </plugin>
643
+ <plugin>
644
+ <groupId>org.codehaus.mojo</groupId>
645
+ <artifactId>build-helper-maven-plugin</artifactId>
646
+ <executions>
647
+ <execution>
648
+ <id>add-jakarta-resteasy-test-source</id>
649
+ <phase>generate-test-sources</phase>
650
+ <goals>
651
+ <goal>add-test-source</goal>
652
+ </goals>
653
+ <configuration>
654
+ <sources>
655
+ <source>${basedir}/src/test/java-resteasy</source>
656
+ <source>${project.build.directory}/generated-test-sources/jakarta-resteasy</source>
657
+ </sources>
658
+ </configuration>
659
+ </execution>
660
+ <execution>
661
+ <id>add-jakarta-resteasy-test-resource</id>
662
+ <phase>generate-test-resources</phase>
663
+ <goals>
664
+ <goal>add-test-resource</goal>
665
+ </goals>
666
+ <configuration>
667
+ <resources>
668
+ <resource><directory>${project.build.directory}/generated-test-resources/jakarta-resteasy</directory></resource>
669
+ </resources>
670
+ </configuration>
671
+ </execution>
672
+ </executions>
673
+ </plugin>
674
+ </plugins>
675
+ </build>
676
+ </profile>
677
+
678
+ <profile>
679
+ <id>below-jdk17</id>
680
+ <activation>
681
+ <jdk>(,17)</jdk>
682
+ </activation>
683
+
684
+ <build>
685
+ <plugins>
686
+ <plugin>
687
+ <groupId>org.apache.maven.plugins</groupId>
688
+ <artifactId>maven-compiler-plugin</artifactId>
689
+ <configuration>
690
+ <testExcludes>
691
+ <exclude>**/AuthenticationFilterPathMatchingTest.java</exclude>
692
+ </testExcludes>
693
+ </configuration>
694
+ </plugin>
695
+ </plugins>
696
+ </build>
697
+ </profile>
698
+
699
+ <profile>
700
+ <id>jdk17-and-onwards</id>
701
+ <activation>
702
+ <jdk>[17,)</jdk>
703
+ </activation>
704
+
705
+ <properties>
706
+ <version.spring.framework>${version.spring.framework6}</version.spring.framework>
707
+ </properties>
708
+
709
+ <dependencies>
710
+ <dependency>
711
+ <groupId>org.springframework</groupId>
712
+ <artifactId>spring-test</artifactId>
713
+ <version>${version.spring.framework}</version>
714
+ <scope>test</scope>
715
+ <exclusions>
716
+ <exclusion>
717
+ <groupId>org.springframework</groupId>
718
+ <artifactId>spring-jcl</artifactId>
719
+ </exclusion>
720
+ </exclusions>
721
+ </dependency>
722
+ <dependency>
723
+ <groupId>org.springframework</groupId>
724
+ <artifactId>spring-web</artifactId>
725
+ <version>${version.spring.framework}</version>
726
+ <scope>test</scope>
727
+ </dependency>
728
+ </dependencies>
729
+ </profile>
730
+ </profiles>
731
+
732
+ </project>
source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-jakarta/src/main/java/org/camunda/bpm/engine/rest/filter/EmptyBodyFilter.java ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
3
+ * under one or more contributor license agreements. See the NOTICE file
4
+ * distributed with this work for additional information regarding copyright
5
+ * ownership. Camunda licenses this file to you under the Apache License,
6
+ * Version 2.0; you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ package org.camunda.bpm.engine.rest.filter;
18
+
19
+ import jakarta.servlet.ReadListener;
20
+ import jakarta.servlet.ServletInputStream;
21
+ import jakarta.servlet.http.HttpServletRequest;
22
+ import jakarta.servlet.http.HttpServletRequestWrapper;
23
+ import java.io.BufferedReader;
24
+ import java.io.IOException;
25
+ import java.io.PushbackInputStream;
26
+ import java.io.InputStream;
27
+
28
+ public class EmptyBodyFilter extends AbstractEmptyBodyFilter {
29
+
30
+ @Override
31
+ public HttpServletRequestWrapper wrapRequest(HttpServletRequest req, boolean isBodyEmpty, PushbackInputStream requestBody) {
32
+ return new HttpServletRequestWrapper(req) {
33
+
34
+ @Override
35
+ public ServletInputStream getInputStream() throws IOException {
36
+
37
+ return new ServletInputStream() {
38
+
39
+ final InputStream inputStream = getRequestBody(isBodyEmpty, requestBody);
40
+ boolean finished = false;
41
+
42
+ @Override
43
+ public boolean isFinished() {
44
+ return this.finished;
45
+ }
46
+
47
+ @Override
48
+ public boolean isReady() {
49
+ return true;
50
+ }
51
+
52
+ @Override
53
+ public void setReadListener(final ReadListener readListener) {
54
+ throw new UnsupportedOperationException();
55
+ }
56
+
57
+ @Override
58
+ public int read() throws IOException {
59
+ int data = this.inputStream.read();
60
+ if (data == -1) {
61
+ this.finished = true;
62
+ }
63
+ return data;
64
+ }
65
+
66
+ @Override
67
+ public int available() throws IOException {
68
+ return inputStream.available();
69
+ }
70
+
71
+ @Override
72
+ public void close() throws IOException {
73
+ inputStream.close();
74
+ }
75
+
76
+ @Override
77
+ public synchronized void mark(int readlimit) {
78
+ inputStream.mark(readlimit);
79
+ }
80
+
81
+ @Override
82
+ public synchronized void reset() throws IOException {
83
+ inputStream.reset();
84
+ }
85
+
86
+ @Override
87
+ public boolean markSupported() {
88
+ return inputStream.markSupported();
89
+ }
90
+
91
+ };
92
+ }
93
+
94
+ @Override
95
+ public BufferedReader getReader() throws IOException {
96
+ return EmptyBodyFilter.this.getReader(this.getInputStream());
97
+ }
98
+
99
+ };
100
+ }
101
+
102
+ }
source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-jakarta/src/test/java-resteasy/org/camunda/bpm/engine/rest/util/container/ResteasySpecifics.java ADDED
@@ -0,0 +1,195 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
3
+ * under one or more contributor license agreements. See the NOTICE file
4
+ * distributed with this work for additional information regarding copyright
5
+ * ownership. Camunda licenses this file to you under the Apache License,
6
+ * Version 2.0; you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ package org.camunda.bpm.engine.rest.util.container;
18
+
19
+ import io.undertow.servlet.Servlets;
20
+ import io.undertow.servlet.api.DeploymentInfo;
21
+ import jakarta.servlet.DispatcherType;
22
+ import jakarta.ws.rs.core.Application;
23
+ import java.util.HashMap;
24
+ import java.util.Map;
25
+ import org.camunda.bpm.engine.rest.CustomJacksonDateFormatTest;
26
+ import org.camunda.bpm.engine.rest.ExceptionHandlerTest;
27
+ import org.camunda.bpm.engine.rest.application.TestCustomResourceApplication;
28
+ import org.camunda.bpm.engine.rest.security.auth.ProcessEngineAuthenticationFilter;
29
+ import org.camunda.bpm.engine.rest.standalone.NoServletAuthenticationFilterTest;
30
+ import org.camunda.bpm.engine.rest.standalone.NoServletEmptyBodyFilterTest;
31
+ import org.camunda.bpm.engine.rest.standalone.ServletAuthenticationFilterTest;
32
+ import org.camunda.bpm.engine.rest.standalone.ServletEmptyBodyFilterTest;
33
+ import org.jboss.resteasy.plugins.server.servlet.FilterDispatcher;
34
+ import org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher;
35
+ import org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap;
36
+ import org.junit.rules.ExternalResource;
37
+ import org.junit.rules.RuleChain;
38
+ import org.junit.rules.TemporaryFolder;
39
+ import org.junit.rules.TestRule;
40
+
41
+ /**
42
+ * @author Thorben Lindhauer
43
+ */
44
+ public class ResteasySpecifics implements ContainerSpecifics {
45
+
46
+ protected static final TestRuleFactory DEFAULT_RULE_FACTORY = new EmbeddedServerRuleFactory(new JaxrsApplication());
47
+
48
+ protected static final Map<Class<?>, TestRuleFactory> TEST_RULE_FACTORIES = new HashMap<Class<?>, TestRuleFactory>();
49
+
50
+ static {
51
+ TEST_RULE_FACTORIES.put(ExceptionHandlerTest.class,
52
+ new EmbeddedServerRuleFactory(new TestCustomResourceApplication()));
53
+
54
+ TEST_RULE_FACTORIES.put(ServletAuthenticationFilterTest.class, new UndertowServletContainerRuleFactory(
55
+ Servlets.deployment()
56
+ .setDeploymentName("rest-test.war")
57
+ .setContextPath("/rest-test/rest")
58
+ .setClassLoader(ResteasyUndertowServerBootstrap.class.getClassLoader())
59
+ .addListener(Servlets.listener(ResteasyBootstrap.class))
60
+ .addFilter(Servlets.filter("camunda-auth", ProcessEngineAuthenticationFilter.class)
61
+ .addInitParam("authentication-provider",
62
+ "org.camunda.bpm.engine.rest.security.auth.impl.HttpBasicAuthenticationProvider"))
63
+ .addFilterUrlMapping("camunda-auth", "/*", DispatcherType.REQUEST)
64
+ .addServlet(Servlets.servlet("camunda-app", HttpServletDispatcher.class)
65
+ .addMapping("/*")
66
+ .addInitParam("jakarta.ws.rs.Application",
67
+ "org.camunda.bpm.engine.rest.util.container.JaxrsApplication"))));
68
+
69
+ TEST_RULE_FACTORIES.put(NoServletAuthenticationFilterTest.class, new UndertowServletContainerRuleFactory(
70
+ Servlets.deployment()
71
+ .setDeploymentName("rest-test.war")
72
+ .setContextPath("/rest-test/rest")
73
+ .setClassLoader(ResteasyUndertowServerBootstrap.class.getClassLoader())
74
+ .addListener(Servlets.listener(ResteasyBootstrap.class))
75
+ .addFilter(Servlets.filter("camunda-auth", ProcessEngineAuthenticationFilter.class)
76
+ .addInitParam("authentication-provider",
77
+ "org.camunda.bpm.engine.rest.security.auth.impl.HttpBasicAuthenticationProvider")
78
+ .addInitParam("rest-url-pattern-prefix", ""))
79
+ .addFilterUrlMapping("camunda-auth", "/*", DispatcherType.REQUEST)
80
+ .addFilter(Servlets.filter("Resteasy", FilterDispatcher.class)
81
+ .addInitParam("jakarta.ws.rs.Application",
82
+ "org.camunda.bpm.engine.rest.util.container.JaxrsApplication"))
83
+ .addFilterUrlMapping("Resteasy", "/*", DispatcherType.REQUEST)));
84
+
85
+ TEST_RULE_FACTORIES.put(ServletEmptyBodyFilterTest.class, new UndertowServletContainerRuleFactory(
86
+ Servlets.deployment()
87
+ .setDeploymentName("rest-test.war")
88
+ .setContextPath("/rest-test/rest")
89
+ .setClassLoader(ResteasyUndertowServerBootstrap.class.getClassLoader())
90
+ .addListener(Servlets.listener(ResteasyBootstrap.class))
91
+ .addFilter(Servlets.filter("EmptyBodyFilter", org.camunda.bpm.engine.rest.filter.EmptyBodyFilter.class)
92
+ .addInitParam("rest-url-pattern-prefix", ""))
93
+ .addFilterUrlMapping("EmptyBodyFilter", "/*", DispatcherType.REQUEST)
94
+ .addServlet(Servlets.servlet("camunda-app", HttpServletDispatcher.class)
95
+ .addMapping("/*")
96
+ .addInitParam("jakarta.ws.rs.Application",
97
+ "org.camunda.bpm.engine.rest.util.container.JaxrsApplication"))));
98
+
99
+ TEST_RULE_FACTORIES.put(NoServletEmptyBodyFilterTest.class, new UndertowServletContainerRuleFactory(
100
+ Servlets.deployment()
101
+ .setDeploymentName("rest-test.war")
102
+ .setContextPath("/rest-test/rest")
103
+ .setClassLoader(ResteasyUndertowServerBootstrap.class.getClassLoader())
104
+ .addListener(Servlets.listener(ResteasyBootstrap.class))
105
+ .addFilter(Servlets.filter("EmptyBodyFilter", org.camunda.bpm.engine.rest.filter.EmptyBodyFilter.class)
106
+ .addInitParam("rest-url-pattern-prefix", ""))
107
+ .addFilterUrlMapping("EmptyBodyFilter", "/*", DispatcherType.REQUEST)
108
+ .addFilter(Servlets.filter("Resteasy", FilterDispatcher.class)
109
+ .addInitParam("jakarta.ws.rs.Application",
110
+ "org.camunda.bpm.engine.rest.util.container.JaxrsApplication"))
111
+ .addFilterUrlMapping("Resteasy", "/*", DispatcherType.REQUEST)));
112
+
113
+ TEST_RULE_FACTORIES.put(CustomJacksonDateFormatTest.class, new UndertowServletContainerRuleFactory(
114
+ Servlets.deployment()
115
+ .setDeploymentName("rest-test.war")
116
+ .setContextPath("/rest-test")
117
+ .setClassLoader(ResteasyUndertowServerBootstrap.class.getClassLoader())
118
+ .addListener(Servlets.listener(ResteasyBootstrap.class))
119
+ .addListener(Servlets.listener(org.camunda.bpm.engine.rest.CustomJacksonDateFormatListener.class))
120
+ .addInitParameter("org.camunda.bpm.engine.rest.jackson.dateFormat", "yyyy-MM-dd'T'HH:mm:ss")
121
+ .addFilter(Servlets.filter("Resteasy", FilterDispatcher.class)
122
+ .addInitParam("jakarta.ws.rs.Application",
123
+ "org.camunda.bpm.engine.rest.util.container.JaxrsApplication"))
124
+ .addFilterUrlMapping("Resteasy", "/*", DispatcherType.REQUEST)));
125
+ }
126
+
127
+ @Override
128
+ public TestRule getTestRule(Class<?> testClass) {
129
+ TestRuleFactory ruleFactory = DEFAULT_RULE_FACTORY;
130
+
131
+ if (TEST_RULE_FACTORIES.containsKey(testClass)) {
132
+ ruleFactory = TEST_RULE_FACTORIES.get(testClass);
133
+ }
134
+
135
+ return ruleFactory.createTestRule();
136
+ }
137
+
138
+ public static class EmbeddedServerRuleFactory implements TestRuleFactory {
139
+
140
+ protected Application jaxRsApplication;
141
+
142
+ public EmbeddedServerRuleFactory(Application jaxRsApplication) {
143
+ this.jaxRsApplication = jaxRsApplication;
144
+ }
145
+
146
+ @Override
147
+ public TestRule createTestRule() {
148
+ return new ExternalResource() {
149
+
150
+ ResteasyServerBootstrap bootstrap = new ResteasyServerBootstrap(jaxRsApplication);
151
+
152
+ @Override
153
+ protected void before() throws Throwable {
154
+ bootstrap.start();
155
+ }
156
+
157
+ @Override
158
+ protected void after() {
159
+ bootstrap.stop();
160
+ }
161
+ };
162
+ }
163
+ }
164
+
165
+ public static class UndertowServletContainerRuleFactory implements TestRuleFactory {
166
+
167
+ protected DeploymentInfo deploymentInfo;
168
+
169
+ public UndertowServletContainerRuleFactory(DeploymentInfo deploymentInfo) {
170
+ this.deploymentInfo = deploymentInfo;
171
+ }
172
+
173
+ @Override
174
+ public TestRule createTestRule() {
175
+ final TemporaryFolder tempFolder = new TemporaryFolder();
176
+
177
+ return RuleChain.outerRule(tempFolder).around(new ExternalResource() {
178
+
179
+ final AbstractServerBootstrap bootstrap = new ResteasyUndertowServerBootstrap(deploymentInfo);
180
+
181
+ @Override
182
+ protected void before() {
183
+ bootstrap.start();
184
+ }
185
+
186
+ @Override
187
+ protected void after() {
188
+ bootstrap.stop();
189
+ }
190
+ });
191
+ }
192
+
193
+ }
194
+
195
+ }
source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-jakarta/src/test/java-resteasy/org/camunda/bpm/engine/rest/util/container/ResteasyUndertowServerBootstrap.java ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
3
+ * under one or more contributor license agreements. See the NOTICE file
4
+ * distributed with this work for additional information regarding copyright
5
+ * ownership. Camunda licenses this file to you under the Apache License,
6
+ * Version 2.0; you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ package org.camunda.bpm.engine.rest.util.container;
18
+
19
+ import io.undertow.servlet.api.DeploymentInfo;
20
+ import java.net.BindException;
21
+ import java.util.Properties;
22
+ import org.jboss.resteasy.plugins.server.undertow.UndertowJaxrsServer;
23
+
24
+ public class ResteasyUndertowServerBootstrap extends AbstractServerBootstrap {
25
+
26
+ protected UndertowJaxrsServer server;
27
+ protected DeploymentInfo deploymentInfo;
28
+
29
+ public ResteasyUndertowServerBootstrap(DeploymentInfo deploymentInfo) {
30
+ this.deploymentInfo = deploymentInfo;
31
+ setupServer();
32
+ }
33
+
34
+ @Override
35
+ public void stop() {
36
+ this.server.stop();
37
+ }
38
+
39
+ @Override
40
+ protected void startServer(int startUpRetries) {
41
+ try {
42
+ this.server.start();
43
+ } catch (Exception e) {
44
+ if ((e instanceof BindException || e.getCause() instanceof BindException) && startUpRetries > 0) {
45
+ stop();
46
+ try {
47
+ Thread.sleep(1500L);
48
+ } catch (Exception ex) {
49
+ }
50
+ setupServer();
51
+ startServer(--startUpRetries);
52
+ } else {
53
+ throw new ServerBootstrapException(e);
54
+ }
55
+ }
56
+ }
57
+
58
+ protected void setupServer() {
59
+ Properties serverProperties = readProperties();
60
+ int port = Integer.parseInt(serverProperties.getProperty(PORT_PROPERTY));
61
+
62
+ this.server = new UndertowJaxrsServer();
63
+ this.server.setPort(port);
64
+ this.server.deploy(this.deploymentInfo);
65
+ }
66
+ }
source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-jakarta/src/test/resources/META-INF/services/org.camunda.bpm.engine.rest.spi.ProcessEngineProvider ADDED
@@ -0,0 +1 @@
 
 
1
+ org.camunda.bpm.engine.rest.spi.impl.MockedProcessEngineProvider
source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi-generator/pom.xml ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
2
+ <modelVersion>4.0.0</modelVersion>
3
+ <artifactId>camunda-engine-rest-openapi-generator</artifactId>
4
+ <name>Camunda Platform - engine - REST - OpenAPI (JSON Generator)</name>
5
+ <packaging>jar</packaging>
6
+
7
+ <description>
8
+ Note: 7.24.0 is the last community edition release published on Maven Central. This library will not receive any new versions or releases. However, if you are interested in extended maintenance you could look into our enterprise edition. Get in touch with us: https://camunda.com/contact/
9
+ </description>
10
+
11
+ <parent>
12
+ <groupId>org.camunda.bpm</groupId>
13
+ <artifactId>camunda-engine-rest-root</artifactId>
14
+ <relativePath>../</relativePath>
15
+ <version>7.24.0-SNAPSHOT</version>
16
+ </parent>
17
+
18
+ <properties>
19
+ <version.json-schema-validator>1.0.76</version.json-schema-validator>
20
+ </properties>
21
+
22
+ <dependencies>
23
+
24
+ <dependency>
25
+ <groupId>org.freemarker</groupId>
26
+ <artifactId>freemarker</artifactId>
27
+ </dependency>
28
+
29
+ <!-- json formatting -->
30
+ <dependency>
31
+ <groupId>com.google.code.gson</groupId>
32
+ <artifactId>gson</artifactId>
33
+ </dependency>
34
+
35
+ <!-- file management -->
36
+ <dependency>
37
+ <groupId>commons-io</groupId>
38
+ <artifactId>commons-io</artifactId>
39
+ </dependency>
40
+
41
+ <!-- json schema validation -->
42
+ <dependency>
43
+ <groupId>com.networknt</groupId>
44
+ <artifactId>json-schema-validator</artifactId>
45
+ <version>${version.json-schema-validator}</version>
46
+ </dependency>
47
+
48
+ </dependencies>
49
+
50
+ </project>
source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi-generator/src/main/java/org/camunda/bpm/engine/rest/openapi/generator/impl/SchemaValidator.java ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
3
+ * under one or more contributor license agreements. See the NOTICE file
4
+ * distributed with this work for additional information regarding copyright
5
+ * ownership. Camunda licenses this file to you under the Apache License,
6
+ * Version 2.0; you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ package org.camunda.bpm.engine.rest.openapi.generator.impl;
18
+
19
+ import java.io.File;
20
+ import java.util.Set;
21
+ import java.util.stream.Collectors;
22
+
23
+ import com.fasterxml.jackson.databind.JsonNode;
24
+ import com.fasterxml.jackson.databind.ObjectMapper;
25
+ import com.networknt.schema.JsonSchema;
26
+ import com.networknt.schema.JsonSchemaFactory;
27
+ import com.networknt.schema.ValidationMessage;
28
+
29
+ public class SchemaValidator {
30
+ public static void main(String[] args) throws Exception {
31
+ if (args.length != 2) {
32
+ throw new RuntimeException("Must provide two arguments: <json schema> <file to validate>");
33
+ }
34
+
35
+ String jsonSchemaPath = args[0];
36
+ String inputFile = args[1];
37
+
38
+ ObjectMapper mapper = new ObjectMapper();
39
+ JsonNode schemaNode = mapper.readTree(new File(jsonSchemaPath));
40
+ JsonNode inputNode = mapper.readTree(new File(inputFile));
41
+
42
+ JsonSchemaFactory factory = JsonSchemaFactory.getInstance();
43
+ JsonSchema schema = factory.getSchema(schemaNode);
44
+
45
+ Set<ValidationMessage> errors = schema.validate(inputNode);
46
+
47
+ if (errors.size() > 0) {
48
+ String messages = errors.stream()
49
+ .map(ValidationMessage::getMessage)
50
+ .collect(Collectors.joining("\n"));
51
+
52
+ throw new RuntimeException("Schema validation errors\n" + messages);
53
+ }
54
+ }
55
+ }
source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi-generator/src/main/java/org/camunda/bpm/engine/rest/openapi/generator/impl/TemplateParser.java ADDED
@@ -0,0 +1,221 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
3
+ * under one or more contributor license agreements. See the NOTICE file
4
+ * distributed with this work for additional information regarding copyright
5
+ * ownership. Camunda licenses this file to you under the Apache License,
6
+ * Version 2.0; you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ package org.camunda.bpm.engine.rest.openapi.generator.impl;
18
+
19
+ import java.io.File;
20
+ import java.io.IOException;
21
+ import java.io.StringWriter;
22
+ import java.nio.file.Files;
23
+ import java.nio.file.Paths;
24
+ import java.time.format.DateTimeFormatter;
25
+ import java.util.ArrayList;
26
+ import java.util.Collection;
27
+ import java.util.Collections;
28
+ import java.util.HashMap;
29
+ import java.util.List;
30
+ import java.util.Map;
31
+ import java.util.TreeMap;
32
+
33
+ import org.apache.commons.io.FileUtils;
34
+ import org.apache.commons.io.FilenameUtils;
35
+ import org.apache.commons.io.filefilter.DirectoryFileFilter;
36
+ import org.apache.commons.io.filefilter.RegexFileFilter;
37
+
38
+ import com.google.gson.Gson;
39
+ import com.google.gson.GsonBuilder;
40
+ import com.google.gson.JsonElement;
41
+ import com.google.gson.JsonParser;
42
+
43
+ import freemarker.template.Configuration;
44
+ import freemarker.template.Template;
45
+ import freemarker.template.TemplateException;
46
+
47
+ public class TemplateParser {
48
+
49
+ public static void main(String[] args) throws IOException, TemplateException {
50
+
51
+ if (args.length != 4) {
52
+ throw new RuntimeException(
53
+ "Must provide four arguments: "
54
+ + "<source template directory> "
55
+ + "<main template> "
56
+ + "<output directory> "
57
+ + "<intermediate output dir>");
58
+ }
59
+
60
+ String sourceDirectory = args[0];
61
+ String mainTemplate = args[1];
62
+ String outputFile = args[2];
63
+ String debugFile = args[3];
64
+
65
+ Configuration cfg = new Configuration(Configuration.VERSION_2_3_29);
66
+
67
+ cfg.setDirectoryForTemplateLoading(new File(sourceDirectory));
68
+ cfg.setDefaultEncoding("UTF-8");
69
+
70
+ Template template = cfg.getTemplate(mainTemplate);
71
+
72
+ Map<String, Object> templateData = createTemplateData(sourceDirectory);
73
+
74
+ try (StringWriter out = new StringWriter()) {
75
+
76
+ template.process(templateData, out);
77
+
78
+ // create intermediate json file before the formatting
79
+ String path = createOutputFile(debugFile);
80
+ FileUtils.forceMkdir(new File(debugFile));
81
+ Files.write(Paths.get(path), out.getBuffer().toString().getBytes());
82
+
83
+ // format json with Gson
84
+ String jsonString = out.getBuffer().toString();
85
+ String formattedJson = formatJsonString(jsonString);
86
+
87
+ File outFile = new File(outputFile);
88
+ FileUtils.forceMkdir(outFile.getParentFile());
89
+ Files.write(outFile.toPath(), formattedJson.getBytes());
90
+ }
91
+
92
+ }
93
+
94
+ protected static Map<String, Object> createTemplateData(String sourceDirectory)
95
+ throws IOException {
96
+ Map<String, Object> templateData = new HashMap<>();
97
+
98
+ resolveVersions(templateData);
99
+ Map<String, String> models = resolveModels(sourceDirectory);
100
+ templateData.put("models", models);
101
+ Map<String, List<String>> endpoints = resolvePaths(sourceDirectory);
102
+ templateData.put("endpoints", endpoints);
103
+
104
+ return templateData;
105
+ }
106
+
107
+ protected static String formatJsonString(String jsonString) {
108
+ Gson gson = new GsonBuilder()
109
+ .serializeNulls()
110
+ .setPrettyPrinting()
111
+ .create();
112
+
113
+ JsonParser jsonParser = new JsonParser();
114
+ JsonElement json = jsonParser.parse(jsonString);
115
+ String formattedJson = gson.toJson(json);
116
+
117
+ return formattedJson;
118
+ }
119
+
120
+ protected static String createOutputFile(String debugFile) throws IOException {
121
+ DateTimeFormatter timeStampPattern = DateTimeFormatter.ofPattern("MM-dd-HH-mm-ss");
122
+
123
+ return debugFile + "/intermediate-openapi-"
124
+ + timeStampPattern.format(java.time.LocalDateTime.now()) + ".json";
125
+ }
126
+
127
+ /**
128
+ * Resolve the Camunda Platform version and the respective documentation version used in the links.
129
+ */
130
+ protected static void resolveVersions(Map<String, Object> templateData) {
131
+ String version = TemplateParser.class.getPackage().getImplementationVersion();
132
+
133
+ if (version != null) {
134
+ // cambpmVersion = 7.X.Y
135
+ templateData.put("cambpmVersion", version);
136
+
137
+ if (version.contains("SNAPSHOT")) {
138
+ templateData.put("docsVersion", "develop");
139
+ } else if (version.contains("alpha")) {
140
+ templateData.put("docsVersion", "latest");
141
+ } else {
142
+ // docsVersion = 7.X
143
+ templateData.put("docsVersion", version.substring(0, version.lastIndexOf(".")));
144
+ }
145
+ } else {
146
+ // only for debug cases
147
+ templateData.put("cambpmVersion", "develop");
148
+ templateData.put("docsVersion", "develop");
149
+ }
150
+ }
151
+
152
+ /**
153
+ *
154
+ * @param sourceDirectory the template directory that stores the models
155
+ * @return a map of model name and file path to it,
156
+ * the map is ordered lexicographically by the model names
157
+ */
158
+ protected static Map<String, String> resolveModels(String sourceDirectory) {
159
+ File modelsDir = new File(sourceDirectory + "/models");
160
+ Collection<File> modelFiles = FileUtils.listFiles(
161
+ modelsDir,
162
+ new RegexFileFilter("^(.*?)"),
163
+ DirectoryFileFilter.DIRECTORY
164
+ );
165
+
166
+ Map<String, String> models = new TreeMap<>();
167
+ for (File file : modelFiles) {
168
+ String modelName = FilenameUtils.removeExtension(file.getName());
169
+ String filePath = file.getAbsolutePath();
170
+ String modelPackage = filePath
171
+ .substring(filePath.lastIndexOf("org"), filePath.lastIndexOf(File.separator));
172
+
173
+ models.put(modelName, modelPackage);
174
+ }
175
+
176
+ return models;
177
+ }
178
+
179
+ /**
180
+ *
181
+ * @param sourceDirectory the template directory that stores the endpoints
182
+ * @return a map of endpoint path and HTTP methods pairs,
183
+ * the map is ordered lexicographically by the endpoint paths
184
+ * the list of methods is ordered as well
185
+ */
186
+ protected static Map<String, List<String>> resolvePaths(String sourceDirectory) {
187
+ File endpointsDir = new File(sourceDirectory + "/paths");
188
+ int endpointStartAt = endpointsDir.getAbsolutePath().length();
189
+ Collection<File> endpointsFiles = FileUtils.listFiles(
190
+ endpointsDir,
191
+ new RegexFileFilter("^(.*?)"),
192
+ DirectoryFileFilter.DIRECTORY
193
+ );
194
+
195
+ Map<String, List<String>> endpoints = new TreeMap<>();
196
+ for (File file : endpointsFiles) {
197
+ String endpointMethod = FilenameUtils.removeExtension(file.getName());
198
+ String filePath = file.getAbsolutePath();
199
+ String endpointPath = filePath
200
+ .substring(endpointStartAt, filePath.lastIndexOf(File.separator))
201
+ .replace(File.separator, "/");
202
+
203
+ List<String> operations;
204
+ if (endpoints.containsKey(endpointPath)) {
205
+ operations = endpoints.get(endpointPath);
206
+ operations.add(endpointMethod);
207
+ } else {
208
+ operations = new ArrayList<>();
209
+ operations.add(endpointMethod);
210
+ endpoints.put(endpointPath, operations);
211
+ }
212
+
213
+ if(operations.size() > 1) {
214
+ Collections.sort(operations);
215
+ }
216
+ }
217
+
218
+ return endpoints;
219
+ }
220
+
221
+ }
source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/README.md ADDED
@@ -0,0 +1,275 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ REST API - OpenAPI documentation generation
2
+ ========
3
+
4
+ This project generates a single openapi.json containing the OpeanAPI documentation of the Engine Rest API.
5
+ Aligned with OpenAPI specification version [3.0.2](https://github.com/OAI/OpenAPI-Specification/blob/3.0.2/versions/3.0.2.md).
6
+
7
+ # Table of Contents
8
+ 1. [Build and phases](#build-and-phases)
9
+ 2. [Contribution](#contribution)
10
+ + [main.ftl](#mainftl)
11
+ + [utils](#utils)
12
+ + [models](#models)
13
+ + [paths](#paths)
14
+ + [commons](#commons)
15
+ + [sorting](#sorting)
16
+ + [pagination](#pagination)
17
+ + [reuse](#reuse)
18
+ + [descriptions](#descriptions)
19
+ + [formats](#formats)
20
+ + [nullable](#nullable)
21
+ + [examples](#examples)
22
+ 3. [Reviews](#reviews)
23
+
24
+
25
+ ## Build and phases
26
+
27
+ To build the artifact run: `mvn clean install`
28
+
29
+ The build contains:
30
+ * Generation of a formatted openapi.json file by parsing the [templates](./src/main/templates)
31
+ * Validation of the generated file against [schema.json](./src/main/openapi/schema.json)
32
+ * Generation of a java client from the openapi.json file
33
+ * Run of smoke tests against that client (the tests use [WireMock](http://wiremock.org/docs/))
34
+
35
+ ## Contribution
36
+
37
+ NOTE: Please follow the next step to get familiar with the structure and the instructions that follow.
38
+
39
+ For the generation of the documentation, we use the [Freemarker](https://freemarker.apache.org/docs/index.html) templating language.
40
+ The structure of the template is:
41
+
42
+ ```
43
+ +--main.ftl
44
+ +--lib
45
+ | +--utils.ftl
46
+ | +--commons
47
+ | | +--pagination-params.ftl
48
+ | | +--process-instance-query-params.ftl
49
+ | | +--sort-params.ftl
50
+ | | +--sort-props.ftl
51
+ +--models
52
+ | +--org/camunda/bpm/engine/rest/dto
53
+ | | +--ExceptionDto.ftl
54
+ | | +--history
55
+ | | | +--HistoricProcessInstanceQueryDto.ftl
56
+ | | +--repository
57
+ | | | +--DeploymentDto.ftl
58
+ | | | +--ProcessDefinitionDto.ftl
59
+ | | +--runtime
60
+ | | | +--ActivityInstanceDto.ftl
61
+ +--paths
62
+ | +--deployment
63
+ | | +--create
64
+ | | | +--post.ftl
65
+ | +--process-instance
66
+ | | +--get.ftl
67
+ | | +--suspended
68
+ | | | +--put.ftl
69
+ | | +--{id}
70
+ | | | +--delete.ftl
71
+ | | | +--variables
72
+ | | | | +--{varName}
73
+ | | | | | +--data
74
+ | | | | | | +--get.ftl
75
+ | | | | | | +--post.ftl
76
+ | | | | | +--delete.ftl
77
+ ```
78
+
79
+ ### main.ftl
80
+
81
+ The `main.ftl` contains the general information of the OpenAPI doc:
82
+ * OpenAPI spec version
83
+ * info
84
+ * externalDocs
85
+ * servers (default and named)
86
+ * tags (each resource has a tag)
87
+ * Sub-resources should have the parent tag as prefix (e.g. `Task` and `Task Attachment`)
88
+ * wrap up of paths and components
89
+
90
+ By parsing this file end .json file is generated.
91
+
92
+ ### utils
93
+
94
+ Contains all of the [macros](https://freemarker.apache.org/docs/ref_directive_macro.html) used in paths and models:
95
+ * `parameter` (used in paths)
96
+ * `property` (used in paths and models)
97
+ * `requestBody` (used in paths)
98
+ * `response` (used in paths)
99
+
100
+ Try to get familiar with them as they are heavily used in the templates.
101
+ Keep in mind that in some situations, it is fine not to use them, if the endpoint/dto is too complex, for example.
102
+ Feel free to add missing parameters to the macros, however, do not forget to reflect your changes to all usages of the macros.
103
+ Some parameters are required (`name` and `description` in most of the cases),
104
+ and some need to be provided if necessary (nice to have - `minimum`,`defaultValue`, `deprecated`).
105
+
106
+ ### models
107
+
108
+ This folder contains all of the DTOs used in the request and response bodies. Instructions:
109
+ * use the name and package structure of the Rest DTOs when possible
110
+ ([org.camunda.bpm.engine.rest.dto.ExceptionDto.java](https://github.com/camunda/camunda-bpm-platform/blob/master/engine-rest/engine-rest/src/main/java/org/camunda/bpm/engine/rest/dto/ExceptionDto.java) -->
111
+ [org/camunda/bpm/engine/rest/dto/ExceptionDto.ftl](https://github.com/camunda/camunda-bpm-platform/blob/master/engine-rest/engine-rest-openapi/src/main/templates/models/org/camunda/bpm/engine/rest/dto/ExceptionDto.ftl))
112
+ Keep the properties of OpenAPI doc as close as possible to the Java DTOs and add explicit description whenever a property is not applicable to a certain endpoint (e.g. [PUT /process-instance/suspended](https://github.com/camunda/camunda-bpm-platform/blob/master/engine-rest/engine-rest-openapi/src/main/templates/paths/process-instance/suspended/put.ftl))
113
+ * the definitions of the models are resolved automatically via the folder structure. The `/models` directory should contain only the models that are used in the documentation, any additional files (macros and reusable files) should go to [commons](#commons), do not create empty folders. The models are ordered lexicographically.
114
+ * use the [utils](#utils) from the previous section when possible.
115
+ * use the `dto` macro to define a DTO
116
+ * in case of a DTO hierarchy (`TriggerVariableValueDto extends VariableValueDto`), the `dto` macro provides an `extends`
117
+ attribute that makes use of the `allOf` OpenAPI syntax - [example](https://github.com/camunda/camunda-bpm-platform/blob/392d98b61e5e0eff3e1dad0ee15a5ad986e0d93c/engine-rest/engine-rest-openapi/src/main/templates/models/org/camunda/bpm/engine/rest/dto/runtime/TriggerVariableValueDto.ftl#L2-L19).
118
+ * the `property` macros should be nested inside the `dto` macro
119
+ * in case the response can be two DTOs depending on request parameter (example - [message correlation](https://docs.camunda.org/manual/develop/reference/rest/message/post-message/#result) and responses `MessageCorrelationResultDto` or `MessageCorrelationResultWithVariableDto` (extending `MessageCorrelationResultDto`)), please use the DTO for the response that contains all of the properties (in the correlation case - `MessageCorrelationResultWithVariableDto`) even some are not applicable for all of the responses, and make sure to document which properties are not applicable in which use cases. (In some use cases `oneOf` approach might be applicable together with `discrimitator` ([spec](https://github.com/OAI/OpenAPI-Specification/blob/3.0.2/versions/3.0.2.md#discriminator-object)), please test this additionally as the clients might have problems to be generated in this approach.)
120
+ * for the `property` macros DO NOT forget to put `last = true` param for the last property, that will take care for the commas in the json file.
121
+ * the DTOs that have sorting or pagination properties should use the [common templates](#commons).
122
+
123
+ ### paths
124
+
125
+ Contains the endpoints definitions of the Rest API. Instructions:
126
+ * each resource has its own folder under /paths (e.g. `/process-instance`, `/deployment`)
127
+ * the path of the endpoint is resolved to a folder structure (e.g. get process instance count `GET /process-instance/count` goes to `/paths/process-instance/count`).
128
+ NOTE: The endpoints' paths are automatically resolved from the folder structure, please keep the file structure of `/paths` clean, without any additional files, different than the endpoint definitions (for example the reusable templates should go in [commons](#commons), do not create empty folders and so on).
129
+ The endpoints' paths are ordered lexicographically.
130
+ * the dynamic endpoints should be structured with brakes like `process-instance/{id}/variables/{varName}/data`,
131
+ then the path parameters (`id` and `varName`) should always be included in the endpoint definition and marked as `required`.
132
+ * endpoints that are almost similar but have a different paths (e.g. [Get Activity Instance Statistics](https://docs.camunda.org/manual/7.12/reference/rest/process-definition/get-activity-statistics/)) needs to be separated in different files. A unique `operationId` should be assigned to each of them. You can consider adding the common parts of the endpoints in [lib/commons](#commons).
133
+ * the name of the method's request (GET, POST, PUT, DELETE, OPTIONS) is the name of the template file (get.ftl, post.frl, etc.).
134
+ * each endpoint definition has a unique `operationId` that will be used for the generation of clients.
135
+ * for `async` endpoints make sure to add `Operation` suffix to prevent collisions in generated C# clients, e.g. `setExternalTaskRetriesAsync` -> `setExternalTaskRetriesAsyncOperation`, `modifyProcessInstanceAsync` -> `modifyProcessInstanceAsyncOperation`
136
+ In most of the cases, the java method name should be used (e.g. `deleteProcessInstancesAsync`). When this is not possible, please define it according to the Java conventions.
137
+ * each endpoint definition contains a tag of its resource (e.g. `Process instance`, `Deployment`).
138
+ * each endpoint definition contains a description and summary (the latter is the title of Rest API doc page).
139
+ * each endpoint definition contains at least one HTTP response object defined.
140
+ * in the request body try to use a DTO when possible, always check the Java DTO for guidance;
141
+ avoid constructing a request body without DTO and only with properties defined in the endpoint description.
142
+ * use the [utils](#utils) from the previous section when possible
143
+ * for the `property` and `param` macros DO NOT forget to put last = true param for the last property/parameter, that will take care for the commas in the json file
144
+ * the endpoints that have sorting or pagination properties/parameter should use the [common templates](#commons).
145
+
146
+ #### commons
147
+
148
+ Contains common templates that can be reused when it's possible.
149
+
150
+ ##### sorting
151
+
152
+ * [sort-params.ftl](./src/main/templates/lib/commons/sort-params.ftl)
153
+ * [sort-props.ftl](./src/main/templates/lib/commons/sort-props.ftl)
154
+
155
+ Please set the `sortByValues` enumeration whenever the template is in use and do not forget to assign the `last = true` if this is the last parameter/property (taking care for the commas in the json):
156
+ ```
157
+ <#-- <#assign last = true > --> <#-- remove comment if last param -->
158
+ <#assign sortByValues = ['"instanceId"', '"definitionId"', '"definitionKey"', '"definitionName"', '"definitionVersion"', '"businessKey"', '"startTime"', '"endTime"', '"duration"', '"tenantId"']>
159
+ <#include "/lib/commons/sort-props.ftl" >
160
+ ```
161
+
162
+ ##### pagination
163
+
164
+ * [pagination-params.ftl](./src/main/templates/lib/commons/pagination-params.ftl)
165
+
166
+ Use whenever `firstResult` and `maxResults` are part of the endpoint parameters. Do not forget to assign `last=true` param in case those are the last parameters:
167
+ ```
168
+ <#-- <#assign last = true > --> <#-- remove comment if last param -->
169
+ <#include "/lib/commons/pagination-params.ftl" >
170
+ ```
171
+
172
+ ##### reuse
173
+ Sometimes the same bunch of parameters is used in multiple endpoints. In cases like there, feel free to create a template and reuse it.
174
+ Example: [process-instance-query-params.ftl](./src/main/templates/lib/commons/process-instance-query-params.ftl) used in `getProcessInstancesCount` and `getProcessInstances`
175
+
176
+ ### Parameters and properties
177
+
178
+ #### Descriptions
179
+ Markdown can be used for text descriptions:
180
+
181
+ `monospace` (code)
182
+ *italic* or _italic_ (cursive)
183
+ **bold** or __bold__
184
+ * bullet point
185
+
186
+ Recommendations:
187
+ * use unix line endings
188
+ * to add links use markdown, e.g. `[link](http://example.com)`
189
+ * Add `docsUrl` to resolve doc link - [User guide](${docsUrl}/user-guide/process-engine/process-instance-modification/)
190
+ `docsUrl="https://docs.camunda.org/manual/${docsVersion}"
191
+ * keep line length to a maximum of 120 characters
192
+ * use indentation, avoid adding long descriptions on a single line,
193
+ improve the readibility by splitting the next with single or multiple line breaks:
194
+
195
+ ```
196
+ "description": "Submits a list of modification instructions to change a process instance's execution state.
197
+ A modification instruction is one of the following:
198
+
199
+ * Starting execution before an activity
200
+ * Starting execution after an activity on its single outgoing sequence flow
201
+ * Starting execution on a specific sequence flow
202
+ * Canceling an activity instance, transition instance, or all instances (activity or transition) for an activity
203
+
204
+ Instructions are executed immediately and in the order they are provided in this request's body.
205
+ Variables can be provided with every starting instruction.
206
+
207
+ The exact semantics of modification can be read about in the [User guide](https://docs.camunda.org/manual/develop/user-guide/process-engine/process-instance-modification/)."
208
+ ```
209
+
210
+ #### Formats
211
+
212
+ The `format` fields further define the type of properties and parameters. For more information, please check the [OpenAPI spec](https://github.com/OAI/OpenAPI-Specification/blob/3.0.2/versions/3.0.2.md#dataTypeFormat). The common types used in the documentation are `int32`, `binary`, `date-time`.
213
+ Example:
214
+ Specify the `date-time` format of the date properties whenever is possible,
215
+ ```
216
+ <@lib.property
217
+ name = "startedBefore"
218
+ type = "string"
219
+ format = "date-time"
220
+ description = "Restrict to instances that were started before the given date.
221
+ By default (https://docs.camunda.org/manual/${docsVersion}/reference/rest/overview/date-format/),
222
+ the date must have the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., 2013-01-23T14:42:45.000+0200." />
223
+ ```
224
+ That will improve the clients that are generated from the OpenAPI documentation. **Note:** When using a 'date-time' in a 'GET' request (as URL parameter), it is important to use proper URL encoding as described in the [Date Format Overview](https://docs.camunda.org/manual/develop/reference/rest/overview/date-format/)
225
+
226
+ #### Nullable
227
+
228
+ By default, the properties of type `boolean`, `string`, `array`, and `dto` have `nullable` field enabled by default to ensure that the OpenAPI specification can work with C# clients.
229
+ That way we create relaxed specification for clients where the fields should be specified explicitly whether they should be null or not.
230
+ Disable `nullable` field to the properties where it's sure that they are required:
231
+ ```
232
+ <@lib.property
233
+ name = "version"
234
+ type = "integer"
235
+ format = "int32"
236
+ nullable = false
237
+ desc = "The version of the process definition that the engine assigned to it." />
238
+ ```
239
+
240
+ #### Examples
241
+
242
+ You can add an examples to `requestBody` or `response` as follows:
243
+ * pass the example inside single quotes instead of quotes as the examples contain quotes and they should be escaped
244
+ * multiple examples are allowed
245
+ * each example should be a separate JSON object in the `examples` array (e.g. `example-1`, `example-2`)
246
+ * each example should have a unique name
247
+ * add a `description` and/or `summary` properties when necessary
248
+ * the `value` property is required and should contain the example content
249
+ ```
250
+ <@lib.requestBody
251
+ mediaType = "application/json"
252
+ dto = "SetJobRetriesByProcessDto"
253
+ requestDesc = "Please note that if both processInstances and processInstanceQuery are provided,
254
+ then the resulting execution will be performed on the union of these sets.
255
+ **Unallowed property**: `historicProcessInstanceQuery`"
256
+ examples = ['"example-1": {
257
+ "value": {
258
+ "retries": numberOfRetries,
259
+ "processInstances": ["aProcess", "secondProcess"],
260
+ "processInstanceQuery": {
261
+ "processDefinitionId": "aProcessDefinitionId"
262
+ }
263
+ }
264
+ }']/>
265
+ ```
266
+
267
+ ## Reviews
268
+
269
+ How to do reviews?
270
+
271
+ * in case of changes of the macros, please compare the last build openapi.json version with one to review to ensure that the endpoins are complete after the new changes
272
+ * double check the path of the endpoints as they are not easy to see if they are not checked additionally
273
+ * check for correct parameters, requests, and responses
274
+ * check for compliance with the Java endpoints (`endpointInfo` id should be as close as possible to the Java method in the DTO packages - check the `\*RestService.java` and `\*Resource.java` interfaces)
275
+ * you can compare the generated client (from the tests) with the actual REST API - most of the case they should look similar
source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/pom.xml ADDED
@@ -0,0 +1,257 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
2
+ <modelVersion>4.0.0</modelVersion>
3
+ <artifactId>camunda-engine-rest-openapi</artifactId>
4
+ <name>Camunda Platform - engine - REST - OpenAPI</name>
5
+ <packaging>jar</packaging>
6
+
7
+ <description>
8
+ Note: 7.24.0 is the last community edition release published on Maven Central. This library will not receive any new versions or releases. However, if you are interested in extended maintenance you could look into our enterprise edition. Get in touch with us: https://camunda.com/contact/
9
+ </description>
10
+
11
+ <parent>
12
+ <groupId>org.camunda.bpm</groupId>
13
+ <artifactId>camunda-engine-rest-root</artifactId>
14
+ <relativePath>../</relativePath>
15
+ <version>7.24.0-SNAPSHOT</version>
16
+ </parent>
17
+
18
+ <properties>
19
+ <generated-directory>${project.build.directory}/generated-sources/openapi-json</generated-directory>
20
+ <generated-file>openapi.json</generated-file>
21
+
22
+ <openapi.generator.version>4.2.3</openapi.generator.version>
23
+ <!-- properties versions used by the openapi client -->
24
+ <!-- update them during openapi.generator version update -->
25
+ <gson-fire-version>1.8.3</gson-fire-version>
26
+ <swagger-core-version>1.5.22</swagger-core-version>
27
+ <okhttp-version>3.14.2</okhttp-version>
28
+ <gson-version>2.8.9</gson-version>
29
+ <commons-lang3-version>3.18.0</commons-lang3-version>
30
+ <maven-plugin-version>1.0.0</maven-plugin-version>
31
+ <javax-annotation-version>1.0</javax-annotation-version>
32
+ <junit-version>4.13.1</junit-version>
33
+ </properties>
34
+
35
+ <dependencies>
36
+
37
+ <dependency>
38
+ <groupId>org.camunda.bpm</groupId>
39
+ <artifactId>camunda-engine-rest-openapi-generator</artifactId>
40
+ <scope>test</scope>
41
+ <version>${project.version}</version>
42
+ </dependency>
43
+
44
+ <!-- test dependencies -->
45
+ <dependency>
46
+ <groupId>org.slf4j</groupId>
47
+ <artifactId>slf4j-jdk14</artifactId>
48
+ <scope>test</scope>
49
+ </dependency>
50
+ <dependency>
51
+ <groupId>com.github.tomakehurst</groupId>
52
+ <artifactId>wiremock</artifactId>
53
+ <version>${version.wiremock}</version>
54
+ <scope>test</scope>
55
+ </dependency>
56
+ <dependency>
57
+ <groupId>org.assertj</groupId>
58
+ <artifactId>assertj-core</artifactId>
59
+ <scope>test</scope>
60
+ </dependency>
61
+
62
+
63
+ <!-- dependencies required by the openapi client -->
64
+ <!-- update them during openapi-generator-maven-plugin version update -->
65
+ <dependency>
66
+ <groupId>io.swagger</groupId>
67
+ <artifactId>swagger-annotations</artifactId>
68
+ <version>${swagger-core-version}</version>
69
+ <scope>test</scope>
70
+ </dependency>
71
+ <!-- @Nullable annotation -->
72
+ <dependency>
73
+ <groupId>com.google.code.findbugs</groupId>
74
+ <artifactId>jsr305</artifactId>
75
+ <version>3.0.2</version>
76
+ <scope>test</scope>
77
+ </dependency>
78
+ <dependency>
79
+ <groupId>com.squareup.okhttp3</groupId>
80
+ <artifactId>okhttp</artifactId>
81
+ <version>${okhttp-version}</version>
82
+ <scope>test</scope>
83
+ </dependency>
84
+ <dependency>
85
+ <groupId>com.squareup.okhttp3</groupId>
86
+ <artifactId>logging-interceptor</artifactId>
87
+ <version>${okhttp-version}</version>
88
+ <scope>test</scope>
89
+ </dependency>
90
+ <dependency>
91
+ <groupId>com.google.code.gson</groupId>
92
+ <artifactId>gson</artifactId>
93
+ <version>${gson-version}</version>
94
+ <scope>test</scope>
95
+ </dependency>
96
+ <dependency>
97
+ <groupId>io.gsonfire</groupId>
98
+ <artifactId>gson-fire</artifactId>
99
+ <version>${gson-fire-version}</version>
100
+ <scope>test</scope>
101
+ </dependency>
102
+ <dependency>
103
+ <groupId>org.apache.commons</groupId>
104
+ <artifactId>commons-lang3</artifactId>
105
+ <version>${commons-lang3-version}</version>
106
+ <scope>test</scope>
107
+ </dependency>
108
+ <dependency>
109
+ <groupId>javax.annotation</groupId>
110
+ <artifactId>jsr250-api</artifactId>
111
+ <version>${javax-annotation-version}</version>
112
+ <scope>test</scope>
113
+ </dependency>
114
+ <!-- test dependencies -->
115
+ <dependency>
116
+ <groupId>junit</groupId>
117
+ <artifactId>junit</artifactId>
118
+ <version>${junit-version}</version>
119
+ <scope>test</scope>
120
+ </dependency>
121
+
122
+ </dependencies>
123
+
124
+ <build>
125
+ <plugins>
126
+ <plugin>
127
+ <groupId>org.codehaus.mojo</groupId>
128
+ <artifactId>exec-maven-plugin</artifactId>
129
+ <executions>
130
+ <execution>
131
+ <id>generate-openapi-json</id>
132
+ <phase>generate-resources</phase>
133
+ <goals>
134
+ <goal>java</goal>
135
+ </goals>
136
+ <configuration>
137
+ <classpathScope>test</classpathScope>
138
+ <mainClass>org.camunda.bpm.engine.rest.openapi.generator.impl.TemplateParser</mainClass>
139
+ <arguments>
140
+ <argument>${project.basedir}/src/main/templates</argument>
141
+ <argument>main.ftl</argument>
142
+ <argument>${generated-directory}/${generated-file}</argument>
143
+ <argument>${project.build.directory}</argument>
144
+ </arguments>
145
+ </configuration>
146
+ </execution>
147
+ <execution>
148
+ <id>validate-openapi-json</id>
149
+ <phase>generate-resources</phase>
150
+ <goals>
151
+ <goal>java</goal>
152
+ </goals>
153
+ <configuration>
154
+ <classpathScope>test</classpathScope>
155
+ <mainClass>org.camunda.bpm.engine.rest.openapi.generator.impl.SchemaValidator</mainClass>
156
+ <arguments>
157
+ <!-- The following json schema is a copy from https://github.com/OAI/OpenAPI-Specification/blob/master/schemas/v3.0/schema.json -->
158
+ <!-- Date: 11-Feb-2020 -->
159
+ <argument>${project.basedir}/src/main/openapi/schema.json</argument>
160
+ <argument>${generated-directory}/${generated-file}</argument>
161
+ </arguments>
162
+ </configuration>
163
+ </execution>
164
+ </executions>
165
+ </plugin>
166
+
167
+ <plugin>
168
+ <groupId>org.codehaus.mojo</groupId>
169
+ <artifactId>build-helper-maven-plugin</artifactId>
170
+ <executions>
171
+ <execution>
172
+ <id>add-openapi-json-resources</id>
173
+ <goals>
174
+ <goal>add-resource</goal>
175
+ </goals>
176
+ <phase>generate-resources</phase>
177
+ <configuration>
178
+ <resources>
179
+ <resource>
180
+ <directory>${generated-directory}</directory>
181
+ </resource>
182
+ </resources>
183
+ </configuration>
184
+ </execution>
185
+ <execution>
186
+ <id>add-openapi-generated-test-sources</id>
187
+ <goals>
188
+ <goal>add-test-source</goal>
189
+ </goals>
190
+ <phase>generate-test-sources</phase>
191
+ <configuration>
192
+ <sources>
193
+ <source>${project.build.directory}/camunda-openapi-client/src/main/java</source>
194
+ </sources>
195
+ </configuration>
196
+ </execution>
197
+ </executions>
198
+ </plugin>
199
+
200
+ <plugin>
201
+ <groupId>org.openapitools</groupId>
202
+ <artifactId>openapi-generator-maven-plugin</artifactId>
203
+ <version>${openapi.generator.version}</version>
204
+ <executions>
205
+ <execution>
206
+ <id>generate-java-client</id>
207
+ <phase>generate-test-sources</phase>
208
+ <goals>
209
+ <goal>generate</goal>
210
+ </goals>
211
+ <configuration>
212
+ <inputSpec>${generated-directory}/${generated-file}</inputSpec>
213
+ <output>${project.build.directory}/camunda-openapi-client</output>
214
+ <generatorName>java</generatorName>
215
+ <configOptions>
216
+ <dateLibrary>legacy</dateLibrary>
217
+ </configOptions>
218
+ </configuration>
219
+ </execution>
220
+ </executions>
221
+ </plugin>
222
+
223
+ </plugins>
224
+ </build>
225
+
226
+ <profiles>
227
+ <profile>
228
+ <id>javadocs</id>
229
+ <build>
230
+ <plugins>
231
+ <plugin>
232
+ <groupId>org.openapitools</groupId>
233
+ <artifactId>openapi-generator-maven-plugin</artifactId>
234
+ <version>${openapi.generator.version}</version>
235
+ <configuration>
236
+ <skip>true</skip>
237
+ </configuration>
238
+ </plugin>
239
+
240
+ <plugin>
241
+ <artifactId>maven-compiler-plugin</artifactId>
242
+ <executions>
243
+ <execution>
244
+ <id>default-testCompile</id>
245
+ <goals>
246
+ <goal>testCompile</goal>
247
+ </goals>
248
+ <phase>not-existing</phase>
249
+ </execution>
250
+ </executions>
251
+ </plugin>
252
+ </plugins>
253
+ </build>
254
+ </profile>
255
+ </profiles>
256
+
257
+ </project>
source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/openapi/schema.json ADDED
@@ -0,0 +1,1654 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "id": "https://spec.openapis.org/oas/3.0/schema/2019-04-02",
3
+ "$schema": "http://json-schema.org/draft-04/schema#",
4
+ "description": "Validation schema for OpenAPI Specification 3.0.X.",
5
+ "type": "object",
6
+ "required": [
7
+ "openapi",
8
+ "info",
9
+ "paths"
10
+ ],
11
+ "properties": {
12
+ "openapi": {
13
+ "type": "string",
14
+ "pattern": "^3\\.0\\.\\d(-.+)?$"
15
+ },
16
+ "info": {
17
+ "$ref": "#/definitions/Info"
18
+ },
19
+ "externalDocs": {
20
+ "$ref": "#/definitions/ExternalDocumentation"
21
+ },
22
+ "servers": {
23
+ "type": "array",
24
+ "items": {
25
+ "$ref": "#/definitions/Server"
26
+ }
27
+ },
28
+ "security": {
29
+ "type": "array",
30
+ "items": {
31
+ "$ref": "#/definitions/SecurityRequirement"
32
+ }
33
+ },
34
+ "tags": {
35
+ "type": "array",
36
+ "items": {
37
+ "$ref": "#/definitions/Tag"
38
+ },
39
+ "uniqueItems": true
40
+ },
41
+ "paths": {
42
+ "$ref": "#/definitions/Paths"
43
+ },
44
+ "components": {
45
+ "$ref": "#/definitions/Components"
46
+ }
47
+ },
48
+ "patternProperties": {
49
+ "^x-": {
50
+ }
51
+ },
52
+ "additionalProperties": false,
53
+ "definitions": {
54
+ "Reference": {
55
+ "type": "object",
56
+ "required": [
57
+ "$ref"
58
+ ],
59
+ "patternProperties": {
60
+ "^\\$ref$": {
61
+ "type": "string",
62
+ "format": "uri-reference"
63
+ }
64
+ }
65
+ },
66
+ "Info": {
67
+ "type": "object",
68
+ "required": [
69
+ "title",
70
+ "version"
71
+ ],
72
+ "properties": {
73
+ "title": {
74
+ "type": "string"
75
+ },
76
+ "description": {
77
+ "type": "string"
78
+ },
79
+ "termsOfService": {
80
+ "type": "string",
81
+ "format": "uri-reference"
82
+ },
83
+ "contact": {
84
+ "$ref": "#/definitions/Contact"
85
+ },
86
+ "license": {
87
+ "$ref": "#/definitions/License"
88
+ },
89
+ "version": {
90
+ "type": "string"
91
+ }
92
+ },
93
+ "patternProperties": {
94
+ "^x-": {
95
+ }
96
+ },
97
+ "additionalProperties": false
98
+ },
99
+ "Contact": {
100
+ "type": "object",
101
+ "properties": {
102
+ "name": {
103
+ "type": "string"
104
+ },
105
+ "url": {
106
+ "type": "string",
107
+ "format": "uri-reference"
108
+ },
109
+ "email": {
110
+ "type": "string",
111
+ "format": "email"
112
+ }
113
+ },
114
+ "patternProperties": {
115
+ "^x-": {
116
+ }
117
+ },
118
+ "additionalProperties": false
119
+ },
120
+ "License": {
121
+ "type": "object",
122
+ "required": [
123
+ "name"
124
+ ],
125
+ "properties": {
126
+ "name": {
127
+ "type": "string"
128
+ },
129
+ "url": {
130
+ "type": "string",
131
+ "format": "uri-reference"
132
+ }
133
+ },
134
+ "patternProperties": {
135
+ "^x-": {
136
+ }
137
+ },
138
+ "additionalProperties": false
139
+ },
140
+ "Server": {
141
+ "type": "object",
142
+ "required": [
143
+ "url"
144
+ ],
145
+ "properties": {
146
+ "url": {
147
+ "type": "string"
148
+ },
149
+ "description": {
150
+ "type": "string"
151
+ },
152
+ "variables": {
153
+ "type": "object",
154
+ "additionalProperties": {
155
+ "$ref": "#/definitions/ServerVariable"
156
+ }
157
+ }
158
+ },
159
+ "patternProperties": {
160
+ "^x-": {
161
+ }
162
+ },
163
+ "additionalProperties": false
164
+ },
165
+ "ServerVariable": {
166
+ "type": "object",
167
+ "required": [
168
+ "default"
169
+ ],
170
+ "properties": {
171
+ "enum": {
172
+ "type": "array",
173
+ "items": {
174
+ "type": "string"
175
+ }
176
+ },
177
+ "default": {
178
+ "type": "string"
179
+ },
180
+ "description": {
181
+ "type": "string"
182
+ }
183
+ },
184
+ "patternProperties": {
185
+ "^x-": {
186
+ }
187
+ },
188
+ "additionalProperties": false
189
+ },
190
+ "Components": {
191
+ "type": "object",
192
+ "properties": {
193
+ "schemas": {
194
+ "type": "object",
195
+ "patternProperties": {
196
+ "^[a-zA-Z0-9\\.\\-_]+$": {
197
+ "oneOf": [
198
+ {
199
+ "$ref": "#/definitions/Schema"
200
+ },
201
+ {
202
+ "$ref": "#/definitions/Reference"
203
+ }
204
+ ]
205
+ }
206
+ }
207
+ },
208
+ "responses": {
209
+ "type": "object",
210
+ "patternProperties": {
211
+ "^[a-zA-Z0-9\\.\\-_]+$": {
212
+ "oneOf": [
213
+ {
214
+ "$ref": "#/definitions/Reference"
215
+ },
216
+ {
217
+ "$ref": "#/definitions/Response"
218
+ }
219
+ ]
220
+ }
221
+ }
222
+ },
223
+ "parameters": {
224
+ "type": "object",
225
+ "patternProperties": {
226
+ "^[a-zA-Z0-9\\.\\-_]+$": {
227
+ "oneOf": [
228
+ {
229
+ "$ref": "#/definitions/Reference"
230
+ },
231
+ {
232
+ "$ref": "#/definitions/Parameter"
233
+ }
234
+ ]
235
+ }
236
+ }
237
+ },
238
+ "examples": {
239
+ "type": "object",
240
+ "patternProperties": {
241
+ "^[a-zA-Z0-9\\.\\-_]+$": {
242
+ "oneOf": [
243
+ {
244
+ "$ref": "#/definitions/Reference"
245
+ },
246
+ {
247
+ "$ref": "#/definitions/Example"
248
+ }
249
+ ]
250
+ }
251
+ }
252
+ },
253
+ "requestBodies": {
254
+ "type": "object",
255
+ "patternProperties": {
256
+ "^[a-zA-Z0-9\\.\\-_]+$": {
257
+ "oneOf": [
258
+ {
259
+ "$ref": "#/definitions/Reference"
260
+ },
261
+ {
262
+ "$ref": "#/definitions/RequestBody"
263
+ }
264
+ ]
265
+ }
266
+ }
267
+ },
268
+ "headers": {
269
+ "type": "object",
270
+ "patternProperties": {
271
+ "^[a-zA-Z0-9\\.\\-_]+$": {
272
+ "oneOf": [
273
+ {
274
+ "$ref": "#/definitions/Reference"
275
+ },
276
+ {
277
+ "$ref": "#/definitions/Header"
278
+ }
279
+ ]
280
+ }
281
+ }
282
+ },
283
+ "securitySchemes": {
284
+ "type": "object",
285
+ "patternProperties": {
286
+ "^[a-zA-Z0-9\\.\\-_]+$": {
287
+ "oneOf": [
288
+ {
289
+ "$ref": "#/definitions/Reference"
290
+ },
291
+ {
292
+ "$ref": "#/definitions/SecurityScheme"
293
+ }
294
+ ]
295
+ }
296
+ }
297
+ },
298
+ "links": {
299
+ "type": "object",
300
+ "patternProperties": {
301
+ "^[a-zA-Z0-9\\.\\-_]+$": {
302
+ "oneOf": [
303
+ {
304
+ "$ref": "#/definitions/Reference"
305
+ },
306
+ {
307
+ "$ref": "#/definitions/Link"
308
+ }
309
+ ]
310
+ }
311
+ }
312
+ },
313
+ "callbacks": {
314
+ "type": "object",
315
+ "patternProperties": {
316
+ "^[a-zA-Z0-9\\.\\-_]+$": {
317
+ "oneOf": [
318
+ {
319
+ "$ref": "#/definitions/Reference"
320
+ },
321
+ {
322
+ "$ref": "#/definitions/Callback"
323
+ }
324
+ ]
325
+ }
326
+ }
327
+ }
328
+ },
329
+ "patternProperties": {
330
+ "^x-": {
331
+ }
332
+ },
333
+ "additionalProperties": false
334
+ },
335
+ "Schema": {
336
+ "type": "object",
337
+ "properties": {
338
+ "title": {
339
+ "type": "string"
340
+ },
341
+ "multipleOf": {
342
+ "type": "number",
343
+ "minimum": 0,
344
+ "exclusiveMinimum": true
345
+ },
346
+ "maximum": {
347
+ "type": "number"
348
+ },
349
+ "exclusiveMaximum": {
350
+ "type": "boolean",
351
+ "default": false
352
+ },
353
+ "minimum": {
354
+ "type": "number"
355
+ },
356
+ "exclusiveMinimum": {
357
+ "type": "boolean",
358
+ "default": false
359
+ },
360
+ "maxLength": {
361
+ "type": "integer",
362
+ "minimum": 0
363
+ },
364
+ "minLength": {
365
+ "type": "integer",
366
+ "minimum": 0,
367
+ "default": 0
368
+ },
369
+ "pattern": {
370
+ "type": "string",
371
+ "format": "regex"
372
+ },
373
+ "maxItems": {
374
+ "type": "integer",
375
+ "minimum": 0
376
+ },
377
+ "minItems": {
378
+ "type": "integer",
379
+ "minimum": 0,
380
+ "default": 0
381
+ },
382
+ "uniqueItems": {
383
+ "type": "boolean",
384
+ "default": false
385
+ },
386
+ "maxProperties": {
387
+ "type": "integer",
388
+ "minimum": 0
389
+ },
390
+ "minProperties": {
391
+ "type": "integer",
392
+ "minimum": 0,
393
+ "default": 0
394
+ },
395
+ "required": {
396
+ "type": "array",
397
+ "items": {
398
+ "type": "string"
399
+ },
400
+ "minItems": 1,
401
+ "uniqueItems": true
402
+ },
403
+ "enum": {
404
+ "type": "array",
405
+ "items": {
406
+ },
407
+ "minItems": 1,
408
+ "uniqueItems": false
409
+ },
410
+ "type": {
411
+ "type": "string",
412
+ "enum": [
413
+ "array",
414
+ "boolean",
415
+ "integer",
416
+ "number",
417
+ "object",
418
+ "string"
419
+ ]
420
+ },
421
+ "not": {
422
+ "oneOf": [
423
+ {
424
+ "$ref": "#/definitions/Schema"
425
+ },
426
+ {
427
+ "$ref": "#/definitions/Reference"
428
+ }
429
+ ]
430
+ },
431
+ "allOf": {
432
+ "type": "array",
433
+ "items": {
434
+ "oneOf": [
435
+ {
436
+ "$ref": "#/definitions/Schema"
437
+ },
438
+ {
439
+ "$ref": "#/definitions/Reference"
440
+ }
441
+ ]
442
+ }
443
+ },
444
+ "oneOf": {
445
+ "type": "array",
446
+ "items": {
447
+ "oneOf": [
448
+ {
449
+ "$ref": "#/definitions/Schema"
450
+ },
451
+ {
452
+ "$ref": "#/definitions/Reference"
453
+ }
454
+ ]
455
+ }
456
+ },
457
+ "anyOf": {
458
+ "type": "array",
459
+ "items": {
460
+ "oneOf": [
461
+ {
462
+ "$ref": "#/definitions/Schema"
463
+ },
464
+ {
465
+ "$ref": "#/definitions/Reference"
466
+ }
467
+ ]
468
+ }
469
+ },
470
+ "items": {
471
+ "oneOf": [
472
+ {
473
+ "$ref": "#/definitions/Schema"
474
+ },
475
+ {
476
+ "$ref": "#/definitions/Reference"
477
+ }
478
+ ]
479
+ },
480
+ "properties": {
481
+ "type": "object",
482
+ "additionalProperties": {
483
+ "oneOf": [
484
+ {
485
+ "$ref": "#/definitions/Schema"
486
+ },
487
+ {
488
+ "$ref": "#/definitions/Reference"
489
+ }
490
+ ]
491
+ }
492
+ },
493
+ "additionalProperties": {
494
+ "oneOf": [
495
+ {
496
+ "$ref": "#/definitions/Schema"
497
+ },
498
+ {
499
+ "$ref": "#/definitions/Reference"
500
+ },
501
+ {
502
+ "type": "boolean"
503
+ }
504
+ ],
505
+ "default": true
506
+ },
507
+ "description": {
508
+ "type": "string"
509
+ },
510
+ "format": {
511
+ "type": "string"
512
+ },
513
+ "default": {
514
+ },
515
+ "nullable": {
516
+ "type": "boolean",
517
+ "default": false
518
+ },
519
+ "discriminator": {
520
+ "$ref": "#/definitions/Discriminator"
521
+ },
522
+ "readOnly": {
523
+ "type": "boolean",
524
+ "default": false
525
+ },
526
+ "writeOnly": {
527
+ "type": "boolean",
528
+ "default": false
529
+ },
530
+ "example": {
531
+ },
532
+ "externalDocs": {
533
+ "$ref": "#/definitions/ExternalDocumentation"
534
+ },
535
+ "deprecated": {
536
+ "type": "boolean",
537
+ "default": false
538
+ },
539
+ "xml": {
540
+ "$ref": "#/definitions/XML"
541
+ }
542
+ },
543
+ "patternProperties": {
544
+ "^x-": {
545
+ }
546
+ },
547
+ "additionalProperties": false
548
+ },
549
+ "Discriminator": {
550
+ "type": "object",
551
+ "required": [
552
+ "propertyName"
553
+ ],
554
+ "properties": {
555
+ "propertyName": {
556
+ "type": "string"
557
+ },
558
+ "mapping": {
559
+ "type": "object",
560
+ "additionalProperties": {
561
+ "type": "string"
562
+ }
563
+ }
564
+ }
565
+ },
566
+ "XML": {
567
+ "type": "object",
568
+ "properties": {
569
+ "name": {
570
+ "type": "string"
571
+ },
572
+ "namespace": {
573
+ "type": "string",
574
+ "format": "uri"
575
+ },
576
+ "prefix": {
577
+ "type": "string"
578
+ },
579
+ "attribute": {
580
+ "type": "boolean",
581
+ "default": false
582
+ },
583
+ "wrapped": {
584
+ "type": "boolean",
585
+ "default": false
586
+ }
587
+ },
588
+ "patternProperties": {
589
+ "^x-": {
590
+ }
591
+ },
592
+ "additionalProperties": false
593
+ },
594
+ "Response": {
595
+ "type": "object",
596
+ "required": [
597
+ "description"
598
+ ],
599
+ "properties": {
600
+ "description": {
601
+ "type": "string"
602
+ },
603
+ "headers": {
604
+ "type": "object",
605
+ "additionalProperties": {
606
+ "oneOf": [
607
+ {
608
+ "$ref": "#/definitions/Header"
609
+ },
610
+ {
611
+ "$ref": "#/definitions/Reference"
612
+ }
613
+ ]
614
+ }
615
+ },
616
+ "content": {
617
+ "type": "object",
618
+ "additionalProperties": {
619
+ "$ref": "#/definitions/MediaType"
620
+ }
621
+ },
622
+ "links": {
623
+ "type": "object",
624
+ "additionalProperties": {
625
+ "oneOf": [
626
+ {
627
+ "$ref": "#/definitions/Link"
628
+ },
629
+ {
630
+ "$ref": "#/definitions/Reference"
631
+ }
632
+ ]
633
+ }
634
+ }
635
+ },
636
+ "patternProperties": {
637
+ "^x-": {
638
+ }
639
+ },
640
+ "additionalProperties": false
641
+ },
642
+ "MediaType": {
643
+ "type": "object",
644
+ "properties": {
645
+ "schema": {
646
+ "oneOf": [
647
+ {
648
+ "$ref": "#/definitions/Schema"
649
+ },
650
+ {
651
+ "$ref": "#/definitions/Reference"
652
+ }
653
+ ]
654
+ },
655
+ "example": {
656
+ },
657
+ "examples": {
658
+ "type": "object",
659
+ "additionalProperties": {
660
+ "oneOf": [
661
+ {
662
+ "$ref": "#/definitions/Example"
663
+ },
664
+ {
665
+ "$ref": "#/definitions/Reference"
666
+ }
667
+ ]
668
+ }
669
+ },
670
+ "encoding": {
671
+ "type": "object",
672
+ "additionalProperties": {
673
+ "$ref": "#/definitions/Encoding"
674
+ }
675
+ }
676
+ },
677
+ "patternProperties": {
678
+ "^x-": {
679
+ }
680
+ },
681
+ "additionalProperties": false,
682
+ "allOf": [
683
+ {
684
+ "$ref": "#/definitions/ExampleXORExamples"
685
+ }
686
+ ]
687
+ },
688
+ "Example": {
689
+ "type": "object",
690
+ "properties": {
691
+ "summary": {
692
+ "type": "string"
693
+ },
694
+ "description": {
695
+ "type": "string"
696
+ },
697
+ "value": {
698
+ },
699
+ "externalValue": {
700
+ "type": "string",
701
+ "format": "uri-reference"
702
+ }
703
+ },
704
+ "patternProperties": {
705
+ "^x-": {
706
+ }
707
+ },
708
+ "additionalProperties": false
709
+ },
710
+ "Header": {
711
+ "type": "object",
712
+ "properties": {
713
+ "description": {
714
+ "type": "string"
715
+ },
716
+ "required": {
717
+ "type": "boolean",
718
+ "default": false
719
+ },
720
+ "deprecated": {
721
+ "type": "boolean",
722
+ "default": false
723
+ },
724
+ "allowEmptyValue": {
725
+ "type": "boolean",
726
+ "default": false
727
+ },
728
+ "style": {
729
+ "type": "string",
730
+ "enum": [
731
+ "simple"
732
+ ],
733
+ "default": "simple"
734
+ },
735
+ "explode": {
736
+ "type": "boolean"
737
+ },
738
+ "allowReserved": {
739
+ "type": "boolean",
740
+ "default": false
741
+ },
742
+ "schema": {
743
+ "oneOf": [
744
+ {
745
+ "$ref": "#/definitions/Schema"
746
+ },
747
+ {
748
+ "$ref": "#/definitions/Reference"
749
+ }
750
+ ]
751
+ },
752
+ "content": {
753
+ "type": "object",
754
+ "additionalProperties": {
755
+ "$ref": "#/definitions/MediaType"
756
+ },
757
+ "minProperties": 1,
758
+ "maxProperties": 1
759
+ },
760
+ "example": {
761
+ },
762
+ "examples": {
763
+ "type": "object",
764
+ "additionalProperties": {
765
+ "oneOf": [
766
+ {
767
+ "$ref": "#/definitions/Example"
768
+ },
769
+ {
770
+ "$ref": "#/definitions/Reference"
771
+ }
772
+ ]
773
+ }
774
+ }
775
+ },
776
+ "patternProperties": {
777
+ "^x-": {
778
+ }
779
+ },
780
+ "additionalProperties": false,
781
+ "allOf": [
782
+ {
783
+ "$ref": "#/definitions/ExampleXORExamples"
784
+ },
785
+ {
786
+ "$ref": "#/definitions/SchemaXORContent"
787
+ }
788
+ ]
789
+ },
790
+ "Paths": {
791
+ "type": "object",
792
+ "patternProperties": {
793
+ "^\\/": {
794
+ "$ref": "#/definitions/PathItem"
795
+ },
796
+ "^x-": {
797
+ }
798
+ },
799
+ "additionalProperties": false
800
+ },
801
+ "PathItem": {
802
+ "type": "object",
803
+ "properties": {
804
+ "$ref": {
805
+ "type": "string"
806
+ },
807
+ "summary": {
808
+ "type": "string"
809
+ },
810
+ "description": {
811
+ "type": "string"
812
+ },
813
+ "servers": {
814
+ "type": "array",
815
+ "items": {
816
+ "$ref": "#/definitions/Server"
817
+ }
818
+ },
819
+ "parameters": {
820
+ "type": "array",
821
+ "items": {
822
+ "oneOf": [
823
+ {
824
+ "$ref": "#/definitions/Parameter"
825
+ },
826
+ {
827
+ "$ref": "#/definitions/Reference"
828
+ }
829
+ ]
830
+ },
831
+ "uniqueItems": true
832
+ }
833
+ },
834
+ "patternProperties": {
835
+ "^(get|put|post|delete|options|head|patch|trace)$": {
836
+ "$ref": "#/definitions/Operation"
837
+ },
838
+ "^x-": {
839
+ }
840
+ },
841
+ "additionalProperties": false
842
+ },
843
+ "Operation": {
844
+ "type": "object",
845
+ "required": [
846
+ "responses"
847
+ ],
848
+ "properties": {
849
+ "tags": {
850
+ "type": "array",
851
+ "items": {
852
+ "type": "string"
853
+ }
854
+ },
855
+ "summary": {
856
+ "type": "string"
857
+ },
858
+ "description": {
859
+ "type": "string"
860
+ },
861
+ "externalDocs": {
862
+ "$ref": "#/definitions/ExternalDocumentation"
863
+ },
864
+ "operationId": {
865
+ "type": "string"
866
+ },
867
+ "parameters": {
868
+ "type": "array",
869
+ "items": {
870
+ "oneOf": [
871
+ {
872
+ "$ref": "#/definitions/Parameter"
873
+ },
874
+ {
875
+ "$ref": "#/definitions/Reference"
876
+ }
877
+ ]
878
+ },
879
+ "uniqueItems": true
880
+ },
881
+ "requestBody": {
882
+ "oneOf": [
883
+ {
884
+ "$ref": "#/definitions/RequestBody"
885
+ },
886
+ {
887
+ "$ref": "#/definitions/Reference"
888
+ }
889
+ ]
890
+ },
891
+ "responses": {
892
+ "$ref": "#/definitions/Responses"
893
+ },
894
+ "callbacks": {
895
+ "type": "object",
896
+ "additionalProperties": {
897
+ "oneOf": [
898
+ {
899
+ "$ref": "#/definitions/Callback"
900
+ },
901
+ {
902
+ "$ref": "#/definitions/Reference"
903
+ }
904
+ ]
905
+ }
906
+ },
907
+ "deprecated": {
908
+ "type": "boolean",
909
+ "default": false
910
+ },
911
+ "security": {
912
+ "type": "array",
913
+ "items": {
914
+ "$ref": "#/definitions/SecurityRequirement"
915
+ }
916
+ },
917
+ "servers": {
918
+ "type": "array",
919
+ "items": {
920
+ "$ref": "#/definitions/Server"
921
+ }
922
+ }
923
+ },
924
+ "patternProperties": {
925
+ "^x-": {
926
+ }
927
+ },
928
+ "additionalProperties": false
929
+ },
930
+ "Responses": {
931
+ "type": "object",
932
+ "properties": {
933
+ "default": {
934
+ "oneOf": [
935
+ {
936
+ "$ref": "#/definitions/Response"
937
+ },
938
+ {
939
+ "$ref": "#/definitions/Reference"
940
+ }
941
+ ]
942
+ }
943
+ },
944
+ "patternProperties": {
945
+ "^[1-5](?:\\d{2}|XX)$": {
946
+ "oneOf": [
947
+ {
948
+ "$ref": "#/definitions/Response"
949
+ },
950
+ {
951
+ "$ref": "#/definitions/Reference"
952
+ }
953
+ ]
954
+ },
955
+ "^x-": {
956
+ }
957
+ },
958
+ "minProperties": 1,
959
+ "additionalProperties": false
960
+ },
961
+ "SecurityRequirement": {
962
+ "type": "object",
963
+ "additionalProperties": {
964
+ "type": "array",
965
+ "items": {
966
+ "type": "string"
967
+ }
968
+ }
969
+ },
970
+ "Tag": {
971
+ "type": "object",
972
+ "required": [
973
+ "name"
974
+ ],
975
+ "properties": {
976
+ "name": {
977
+ "type": "string"
978
+ },
979
+ "description": {
980
+ "type": "string"
981
+ },
982
+ "externalDocs": {
983
+ "$ref": "#/definitions/ExternalDocumentation"
984
+ }
985
+ },
986
+ "patternProperties": {
987
+ "^x-": {
988
+ }
989
+ },
990
+ "additionalProperties": false
991
+ },
992
+ "ExternalDocumentation": {
993
+ "type": "object",
994
+ "required": [
995
+ "url"
996
+ ],
997
+ "properties": {
998
+ "description": {
999
+ "type": "string"
1000
+ },
1001
+ "url": {
1002
+ "type": "string",
1003
+ "format": "uri-reference"
1004
+ }
1005
+ },
1006
+ "patternProperties": {
1007
+ "^x-": {
1008
+ }
1009
+ },
1010
+ "additionalProperties": false
1011
+ },
1012
+ "ExampleXORExamples": {
1013
+ "description": "Example and examples are mutually exclusive",
1014
+ "not": {
1015
+ "required": [
1016
+ "example",
1017
+ "examples"
1018
+ ]
1019
+ }
1020
+ },
1021
+ "SchemaXORContent": {
1022
+ "description": "Schema and content are mutually exclusive, at least one is required",
1023
+ "not": {
1024
+ "required": [
1025
+ "schema",
1026
+ "content"
1027
+ ]
1028
+ },
1029
+ "oneOf": [
1030
+ {
1031
+ "required": [
1032
+ "schema"
1033
+ ]
1034
+ },
1035
+ {
1036
+ "required": [
1037
+ "content"
1038
+ ],
1039
+ "description": "Some properties are not allowed if content is present",
1040
+ "allOf": [
1041
+ {
1042
+ "not": {
1043
+ "required": [
1044
+ "style"
1045
+ ]
1046
+ }
1047
+ },
1048
+ {
1049
+ "not": {
1050
+ "required": [
1051
+ "explode"
1052
+ ]
1053
+ }
1054
+ },
1055
+ {
1056
+ "not": {
1057
+ "required": [
1058
+ "allowReserved"
1059
+ ]
1060
+ }
1061
+ },
1062
+ {
1063
+ "not": {
1064
+ "required": [
1065
+ "example"
1066
+ ]
1067
+ }
1068
+ },
1069
+ {
1070
+ "not": {
1071
+ "required": [
1072
+ "examples"
1073
+ ]
1074
+ }
1075
+ }
1076
+ ]
1077
+ }
1078
+ ]
1079
+ },
1080
+ "Parameter": {
1081
+ "type": "object",
1082
+ "properties": {
1083
+ "name": {
1084
+ "type": "string"
1085
+ },
1086
+ "in": {
1087
+ "type": "string"
1088
+ },
1089
+ "description": {
1090
+ "type": "string"
1091
+ },
1092
+ "required": {
1093
+ "type": "boolean",
1094
+ "default": false
1095
+ },
1096
+ "deprecated": {
1097
+ "type": "boolean",
1098
+ "default": false
1099
+ },
1100
+ "allowEmptyValue": {
1101
+ "type": "boolean",
1102
+ "default": false
1103
+ },
1104
+ "style": {
1105
+ "type": "string"
1106
+ },
1107
+ "explode": {
1108
+ "type": "boolean"
1109
+ },
1110
+ "allowReserved": {
1111
+ "type": "boolean",
1112
+ "default": false
1113
+ },
1114
+ "schema": {
1115
+ "oneOf": [
1116
+ {
1117
+ "$ref": "#/definitions/Schema"
1118
+ },
1119
+ {
1120
+ "$ref": "#/definitions/Reference"
1121
+ }
1122
+ ]
1123
+ },
1124
+ "content": {
1125
+ "type": "object",
1126
+ "additionalProperties": {
1127
+ "$ref": "#/definitions/MediaType"
1128
+ },
1129
+ "minProperties": 1,
1130
+ "maxProperties": 1
1131
+ },
1132
+ "example": {
1133
+ },
1134
+ "examples": {
1135
+ "type": "object",
1136
+ "additionalProperties": {
1137
+ "oneOf": [
1138
+ {
1139
+ "$ref": "#/definitions/Example"
1140
+ },
1141
+ {
1142
+ "$ref": "#/definitions/Reference"
1143
+ }
1144
+ ]
1145
+ }
1146
+ }
1147
+ },
1148
+ "patternProperties": {
1149
+ "^x-": {
1150
+ }
1151
+ },
1152
+ "additionalProperties": false,
1153
+ "required": [
1154
+ "name",
1155
+ "in"
1156
+ ],
1157
+ "allOf": [
1158
+ {
1159
+ "$ref": "#/definitions/ExampleXORExamples"
1160
+ },
1161
+ {
1162
+ "$ref": "#/definitions/SchemaXORContent"
1163
+ },
1164
+ {
1165
+ "$ref": "#/definitions/ParameterLocation"
1166
+ }
1167
+ ]
1168
+ },
1169
+ "ParameterLocation": {
1170
+ "description": "Parameter location",
1171
+ "oneOf": [
1172
+ {
1173
+ "description": "Parameter in path",
1174
+ "required": [
1175
+ "required"
1176
+ ],
1177
+ "properties": {
1178
+ "in": {
1179
+ "enum": [
1180
+ "path"
1181
+ ]
1182
+ },
1183
+ "style": {
1184
+ "enum": [
1185
+ "matrix",
1186
+ "label",
1187
+ "simple"
1188
+ ],
1189
+ "default": "simple"
1190
+ },
1191
+ "required": {
1192
+ "enum": [
1193
+ true
1194
+ ]
1195
+ }
1196
+ }
1197
+ },
1198
+ {
1199
+ "description": "Parameter in query",
1200
+ "properties": {
1201
+ "in": {
1202
+ "enum": [
1203
+ "query"
1204
+ ]
1205
+ },
1206
+ "style": {
1207
+ "enum": [
1208
+ "form",
1209
+ "spaceDelimited",
1210
+ "pipeDelimited",
1211
+ "deepObject"
1212
+ ],
1213
+ "default": "form"
1214
+ }
1215
+ }
1216
+ },
1217
+ {
1218
+ "description": "Parameter in header",
1219
+ "properties": {
1220
+ "in": {
1221
+ "enum": [
1222
+ "header"
1223
+ ]
1224
+ },
1225
+ "style": {
1226
+ "enum": [
1227
+ "simple"
1228
+ ],
1229
+ "default": "simple"
1230
+ }
1231
+ }
1232
+ },
1233
+ {
1234
+ "description": "Parameter in cookie",
1235
+ "properties": {
1236
+ "in": {
1237
+ "enum": [
1238
+ "cookie"
1239
+ ]
1240
+ },
1241
+ "style": {
1242
+ "enum": [
1243
+ "form"
1244
+ ],
1245
+ "default": "form"
1246
+ }
1247
+ }
1248
+ }
1249
+ ]
1250
+ },
1251
+ "RequestBody": {
1252
+ "type": "object",
1253
+ "required": [
1254
+ "content"
1255
+ ],
1256
+ "properties": {
1257
+ "description": {
1258
+ "type": "string"
1259
+ },
1260
+ "content": {
1261
+ "type": "object",
1262
+ "additionalProperties": {
1263
+ "$ref": "#/definitions/MediaType"
1264
+ }
1265
+ },
1266
+ "required": {
1267
+ "type": "boolean",
1268
+ "default": false
1269
+ }
1270
+ },
1271
+ "patternProperties": {
1272
+ "^x-": {
1273
+ }
1274
+ },
1275
+ "additionalProperties": false
1276
+ },
1277
+ "SecurityScheme": {
1278
+ "oneOf": [
1279
+ {
1280
+ "$ref": "#/definitions/APIKeySecurityScheme"
1281
+ },
1282
+ {
1283
+ "$ref": "#/definitions/HTTPSecurityScheme"
1284
+ },
1285
+ {
1286
+ "$ref": "#/definitions/OAuth2SecurityScheme"
1287
+ },
1288
+ {
1289
+ "$ref": "#/definitions/OpenIdConnectSecurityScheme"
1290
+ }
1291
+ ]
1292
+ },
1293
+ "APIKeySecurityScheme": {
1294
+ "type": "object",
1295
+ "required": [
1296
+ "type",
1297
+ "name",
1298
+ "in"
1299
+ ],
1300
+ "properties": {
1301
+ "type": {
1302
+ "type": "string",
1303
+ "enum": [
1304
+ "apiKey"
1305
+ ]
1306
+ },
1307
+ "name": {
1308
+ "type": "string"
1309
+ },
1310
+ "in": {
1311
+ "type": "string",
1312
+ "enum": [
1313
+ "header",
1314
+ "query",
1315
+ "cookie"
1316
+ ]
1317
+ },
1318
+ "description": {
1319
+ "type": "string"
1320
+ }
1321
+ },
1322
+ "patternProperties": {
1323
+ "^x-": {
1324
+ }
1325
+ },
1326
+ "additionalProperties": false
1327
+ },
1328
+ "HTTPSecurityScheme": {
1329
+ "type": "object",
1330
+ "required": [
1331
+ "scheme",
1332
+ "type"
1333
+ ],
1334
+ "properties": {
1335
+ "scheme": {
1336
+ "type": "string"
1337
+ },
1338
+ "bearerFormat": {
1339
+ "type": "string"
1340
+ },
1341
+ "description": {
1342
+ "type": "string"
1343
+ },
1344
+ "type": {
1345
+ "type": "string",
1346
+ "enum": [
1347
+ "http"
1348
+ ]
1349
+ }
1350
+ },
1351
+ "patternProperties": {
1352
+ "^x-": {
1353
+ }
1354
+ },
1355
+ "additionalProperties": false,
1356
+ "oneOf": [
1357
+ {
1358
+ "description": "Bearer",
1359
+ "properties": {
1360
+ "scheme": {
1361
+ "enum": [
1362
+ "bearer"
1363
+ ]
1364
+ }
1365
+ }
1366
+ },
1367
+ {
1368
+ "description": "Non Bearer",
1369
+ "not": {
1370
+ "required": [
1371
+ "bearerFormat"
1372
+ ]
1373
+ },
1374
+ "properties": {
1375
+ "scheme": {
1376
+ "not": {
1377
+ "enum": [
1378
+ "bearer"
1379
+ ]
1380
+ }
1381
+ }
1382
+ }
1383
+ }
1384
+ ]
1385
+ },
1386
+ "OAuth2SecurityScheme": {
1387
+ "type": "object",
1388
+ "required": [
1389
+ "type",
1390
+ "flows"
1391
+ ],
1392
+ "properties": {
1393
+ "type": {
1394
+ "type": "string",
1395
+ "enum": [
1396
+ "oauth2"
1397
+ ]
1398
+ },
1399
+ "flows": {
1400
+ "$ref": "#/definitions/OAuthFlows"
1401
+ },
1402
+ "description": {
1403
+ "type": "string"
1404
+ }
1405
+ },
1406
+ "patternProperties": {
1407
+ "^x-": {
1408
+ }
1409
+ },
1410
+ "additionalProperties": false
1411
+ },
1412
+ "OpenIdConnectSecurityScheme": {
1413
+ "type": "object",
1414
+ "required": [
1415
+ "type",
1416
+ "openIdConnectUrl"
1417
+ ],
1418
+ "properties": {
1419
+ "type": {
1420
+ "type": "string",
1421
+ "enum": [
1422
+ "openIdConnect"
1423
+ ]
1424
+ },
1425
+ "openIdConnectUrl": {
1426
+ "type": "string",
1427
+ "format": "uri-reference"
1428
+ },
1429
+ "description": {
1430
+ "type": "string"
1431
+ }
1432
+ },
1433
+ "patternProperties": {
1434
+ "^x-": {
1435
+ }
1436
+ },
1437
+ "additionalProperties": false
1438
+ },
1439
+ "OAuthFlows": {
1440
+ "type": "object",
1441
+ "properties": {
1442
+ "implicit": {
1443
+ "$ref": "#/definitions/ImplicitOAuthFlow"
1444
+ },
1445
+ "password": {
1446
+ "$ref": "#/definitions/PasswordOAuthFlow"
1447
+ },
1448
+ "clientCredentials": {
1449
+ "$ref": "#/definitions/ClientCredentialsFlow"
1450
+ },
1451
+ "authorizationCode": {
1452
+ "$ref": "#/definitions/AuthorizationCodeOAuthFlow"
1453
+ }
1454
+ },
1455
+ "patternProperties": {
1456
+ "^x-": {
1457
+ }
1458
+ },
1459
+ "additionalProperties": false
1460
+ },
1461
+ "ImplicitOAuthFlow": {
1462
+ "type": "object",
1463
+ "required": [
1464
+ "authorizationUrl",
1465
+ "scopes"
1466
+ ],
1467
+ "properties": {
1468
+ "authorizationUrl": {
1469
+ "type": "string",
1470
+ "format": "uri-reference"
1471
+ },
1472
+ "refreshUrl": {
1473
+ "type": "string",
1474
+ "format": "uri-reference"
1475
+ },
1476
+ "scopes": {
1477
+ "type": "object",
1478
+ "additionalProperties": {
1479
+ "type": "string"
1480
+ }
1481
+ }
1482
+ },
1483
+ "patternProperties": {
1484
+ "^x-": {
1485
+ }
1486
+ },
1487
+ "additionalProperties": false
1488
+ },
1489
+ "PasswordOAuthFlow": {
1490
+ "type": "object",
1491
+ "required": [
1492
+ "tokenUrl"
1493
+ ],
1494
+ "properties": {
1495
+ "tokenUrl": {
1496
+ "type": "string",
1497
+ "format": "uri-reference"
1498
+ },
1499
+ "refreshUrl": {
1500
+ "type": "string",
1501
+ "format": "uri-reference"
1502
+ },
1503
+ "scopes": {
1504
+ "type": "object",
1505
+ "additionalProperties": {
1506
+ "type": "string"
1507
+ }
1508
+ }
1509
+ },
1510
+ "patternProperties": {
1511
+ "^x-": {
1512
+ }
1513
+ },
1514
+ "additionalProperties": false
1515
+ },
1516
+ "ClientCredentialsFlow": {
1517
+ "type": "object",
1518
+ "required": [
1519
+ "tokenUrl"
1520
+ ],
1521
+ "properties": {
1522
+ "tokenUrl": {
1523
+ "type": "string",
1524
+ "format": "uri-reference"
1525
+ },
1526
+ "refreshUrl": {
1527
+ "type": "string",
1528
+ "format": "uri-reference"
1529
+ },
1530
+ "scopes": {
1531
+ "type": "object",
1532
+ "additionalProperties": {
1533
+ "type": "string"
1534
+ }
1535
+ }
1536
+ },
1537
+ "patternProperties": {
1538
+ "^x-": {
1539
+ }
1540
+ },
1541
+ "additionalProperties": false
1542
+ },
1543
+ "AuthorizationCodeOAuthFlow": {
1544
+ "type": "object",
1545
+ "required": [
1546
+ "authorizationUrl",
1547
+ "tokenUrl"
1548
+ ],
1549
+ "properties": {
1550
+ "authorizationUrl": {
1551
+ "type": "string",
1552
+ "format": "uri-reference"
1553
+ },
1554
+ "tokenUrl": {
1555
+ "type": "string",
1556
+ "format": "uri-reference"
1557
+ },
1558
+ "refreshUrl": {
1559
+ "type": "string",
1560
+ "format": "uri-reference"
1561
+ },
1562
+ "scopes": {
1563
+ "type": "object",
1564
+ "additionalProperties": {
1565
+ "type": "string"
1566
+ }
1567
+ }
1568
+ },
1569
+ "patternProperties": {
1570
+ "^x-": {
1571
+ }
1572
+ },
1573
+ "additionalProperties": false
1574
+ },
1575
+ "Link": {
1576
+ "type": "object",
1577
+ "properties": {
1578
+ "operationId": {
1579
+ "type": "string"
1580
+ },
1581
+ "operationRef": {
1582
+ "type": "string",
1583
+ "format": "uri-reference"
1584
+ },
1585
+ "parameters": {
1586
+ "type": "object",
1587
+ "additionalProperties": {
1588
+ }
1589
+ },
1590
+ "requestBody": {
1591
+ },
1592
+ "description": {
1593
+ "type": "string"
1594
+ },
1595
+ "server": {
1596
+ "$ref": "#/definitions/Server"
1597
+ }
1598
+ },
1599
+ "patternProperties": {
1600
+ "^x-": {
1601
+ }
1602
+ },
1603
+ "additionalProperties": false,
1604
+ "not": {
1605
+ "description": "Operation Id and Operation Ref are mutually exclusive",
1606
+ "required": [
1607
+ "operationId",
1608
+ "operationRef"
1609
+ ]
1610
+ }
1611
+ },
1612
+ "Callback": {
1613
+ "type": "object",
1614
+ "additionalProperties": {
1615
+ "$ref": "#/definitions/PathItem"
1616
+ },
1617
+ "patternProperties": {
1618
+ "^x-": {
1619
+ }
1620
+ }
1621
+ },
1622
+ "Encoding": {
1623
+ "type": "object",
1624
+ "properties": {
1625
+ "contentType": {
1626
+ "type": "string"
1627
+ },
1628
+ "headers": {
1629
+ "type": "object",
1630
+ "additionalProperties": {
1631
+ "$ref": "#/definitions/Header"
1632
+ }
1633
+ },
1634
+ "style": {
1635
+ "type": "string",
1636
+ "enum": [
1637
+ "form",
1638
+ "spaceDelimited",
1639
+ "pipeDelimited",
1640
+ "deepObject"
1641
+ ]
1642
+ },
1643
+ "explode": {
1644
+ "type": "boolean"
1645
+ },
1646
+ "allowReserved": {
1647
+ "type": "boolean",
1648
+ "default": false
1649
+ }
1650
+ },
1651
+ "additionalProperties": false
1652
+ }
1653
+ }
1654
+ }
source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/authorization-query-params.ftl ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <#assign sortByValues = [
3
+ '"resourceType"',
4
+ '"resourceId"'
5
+ ]>
6
+
7
+ <#assign params = {
8
+ "id": {
9
+ "type": "string",
10
+ "desc": "Filter by the id of the authorization."
11
+ },
12
+ "type": {
13
+ "type": "integer",
14
+ "format": "int32",
15
+ "desc": "Filter by authorization type. (0=global, 1=grant, 2=revoke).
16
+ See the [User Guide](${docsUrl}/user-guide/process-engine/authorization-service/#authorization-type)
17
+ for more information about authorization types."
18
+ },
19
+ "userIdIn": {
20
+ "type": "array",
21
+ "itemType": "string",
22
+ "desc": "Filter by a comma-separated list of userIds."
23
+ },
24
+ "groupIdIn": {
25
+ "type": "array",
26
+ "itemType": "string",
27
+ "desc": "Filter by a comma-separated list of groupIds."
28
+ },
29
+ "resourceType": {
30
+ "type": "integer",
31
+ "format": "int32",
32
+ "desc": "Filter by an integer representation of the resource type. See the
33
+ [User Guide](${docsUrl}/user-guide/process-engine/authorization-service/#resources)
34
+ for a list of integer representations of resource types."
35
+ },
36
+ "resourceId": {
37
+ "type": "string",
38
+ "desc": "Filter by resource id."
39
+ }
40
+ }>
source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/batch.ftl ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <#assign sortByValues = [
2
+ '"batchId"',
3
+ '"tenantId"'
4
+ ]>
5
+
6
+ <#if requestMethod == "GET">
7
+ <#assign listTypeDescription = "Filter by a comma-separated list of `Strings`." />
8
+ <#elseif requestMethod == "POST">
9
+ <#assign listTypeDescription = "Must be a JSON array of `Strings`">
10
+ </#if>
11
+
12
+ <#assign params = {
13
+ "batchId": {
14
+ "type": "string",
15
+ "desc": "Filter by batch id."
16
+ },
17
+
18
+ "type": {
19
+ "type": "string",
20
+ "desc": "Filter by batch type.
21
+ See the [User Guide](${docsUrl}/user-guide/process-engine/batch/#creating-a-batch)
22
+ for more information about batch types."
23
+ },
24
+
25
+ "tenantIdIn": {
26
+ "type": "array",
27
+ "itemType": "string",
28
+ "desc": "${listTypeDescription} A batch matches if it has one of the given tenant ids."
29
+ },
30
+
31
+ "withoutTenantId": {
32
+ "type": "boolean",
33
+ "desc": "Only include batches which belong to no tenant.
34
+ Value can effectively only be `true`, as `false` is the default behavior."
35
+ },
36
+
37
+ "suspended": {
38
+ "type": "boolean",
39
+ "desc": "A `Boolean` value which indicates whether only active or suspended batches should be included.
40
+ When the value is set to `true`, only suspended batches will be returned and
41
+ when the value is set to `false`, only active batches will be returned."
42
+ },
43
+
44
+ "createdBy": {
45
+ "type": "string",
46
+ "desc": "Only include batches that were started by this user id."
47
+ },
48
+
49
+ "startedBefore": {
50
+ "type": "string",
51
+ "format": "date-time",
52
+ "desc": "Only include batches that were started before the given date. By [default](${docsUrl}/reference/rest/overview/date-format/),
53
+ the date must have the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.000+0200`."
54
+ },
55
+
56
+ "startedAfter": {
57
+ "type": "string",
58
+ "format": "date-time",
59
+ "desc": "Only include batches that were started after the given date. By [default](${docsUrl}/reference/rest/overview/date-format/),
60
+ the date must have the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.000+0200`."
61
+ },
62
+
63
+ "withFailures": {
64
+ "type": "boolean",
65
+ "desc": "Only include batches having jobs with failures.
66
+ Value can only be `true`."
67
+ },
68
+
69
+ "withoutFailures": {
70
+ "type": "boolean",
71
+ "desc": "Only include batches having jobs without failures.
72
+ Value can only be `true`."
73
+ }
74
+ }>
source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/decision-definition.ftl ADDED
@@ -0,0 +1,147 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <#assign sortByValues = [
2
+ '"category"',
3
+ '"decisionRequirementsDefinitionKey"',
4
+ '"key"',
5
+ '"id"',
6
+ '"name"',
7
+ '"version"',
8
+ '"deploymentId"',
9
+ '"deployTime"',
10
+ '"versionTag"',
11
+ '"tenantId"'
12
+ ]>
13
+
14
+ <#if requestMethod == "GET">
15
+ <#assign listTypeDescription = "Filter by a comma-separated list of `Strings`." />
16
+ <#elseif requestMethod == "POST">
17
+ <#assign listTypeDescription = "Must be a JSON array of `Strings`">
18
+ </#if>
19
+
20
+ <#assign params = {
21
+ "decisionDefinitionId": {
22
+ "type": "string",
23
+ "desc": "Filter by decision definition id."
24
+ },
25
+
26
+ "decisionDefinitionIdIn": {
27
+ "type": "array",
28
+ "itemType": "string",
29
+ "desc": "Filter by decision definition ids."
30
+ },
31
+
32
+ "name": {
33
+ "type": "string",
34
+ "desc": "Filter by decision definition name."
35
+ },
36
+
37
+ "nameLike": {
38
+ "type": "string",
39
+ "desc": "Filter by decision definition names that the parameter is a substring of."
40
+ },
41
+
42
+ "deploymentId": {
43
+ "type": "string",
44
+ "desc": "Filter by the deployment the id belongs to."
45
+ },
46
+
47
+ "deployedAfter": {
48
+ "type": "string",
49
+ "format": "date-time",
50
+ "desc": "Filter by the deploy time of the deployment the decision definition belongs to.
51
+ Only selects decision definitions that have been deployed after (exclusive) a specific time."
52
+ },
53
+
54
+ "deployedAt": {
55
+ "type": "string",
56
+ "format": "date-time",
57
+ "desc": "Filter by the deploy time of the deployment the decision definition belongs to.
58
+ Only selects decision definitions that have been deployed at a specific time (exact match)."
59
+ },
60
+
61
+ "key": {
62
+ "type": "string",
63
+ "desc": "Filter by decision definition key, i.e., the id in the DMN 1.0 XML. Exact match."
64
+ },
65
+
66
+ "keyLike": {
67
+ "type": "string",
68
+ "desc": "Filter by decision definition keys that the parameter is a substring of."
69
+ },
70
+
71
+ "category": {
72
+ "type": "string",
73
+ "desc": "Filter by decision definition category. Exact match."
74
+ },
75
+
76
+ "categoryLike": {
77
+ "type": "string",
78
+ "desc": "Filter by decision definition categories that the parameter is a substring of."
79
+ },
80
+
81
+ "version": {
82
+ "type": "integer",
83
+ "format": "int32",
84
+ "desc": "Filter by decision definition version."
85
+ },
86
+
87
+ "latestVersion": {
88
+ "type": "boolean",
89
+ "desc": "Only include those decision definitions that are latest versions.
90
+ Value may only be `true`, as `false` is the default behavior."
91
+ },
92
+
93
+ "resourceName": {
94
+ "type": "string",
95
+ "desc": "Filter by the name of the decision definition resource. Exact match."
96
+ },
97
+
98
+ "resourceNameLike": {
99
+ "type": "string",
100
+ "desc": "Filter by names of those decision definition resources that the parameter is a substring of."
101
+ },
102
+
103
+ "decisionRequirementsDefinitionId": {
104
+ "type": "string",
105
+ "desc": "Filter by the id of the decision requirements definition this decision definition belongs to."
106
+ },
107
+
108
+ "decisionRequirementsDefinitionKey": {
109
+ "type": "string",
110
+ "desc": "Filter by the key of the decision requirements definition this decision definition belongs to."
111
+ },
112
+
113
+ "withoutDecisionRequirementsDefinition": {
114
+ "type": "boolean",
115
+ "desc": "Only include decision definitions which does not belongs to any decision requirements definition.
116
+ Value may only be `true`, as `false` is the default behavior."
117
+ },
118
+
119
+ "tenantIdIn": {
120
+ "type": "array",
121
+ "itemType": "string",
122
+ "desc": "${listTypeDescription} A decision definition must have one of the given tenant ids."
123
+ },
124
+
125
+ "withoutTenantId": {
126
+ "type": "boolean",
127
+ "desc": "Only include decision definitions which belong to no tenant.
128
+ Value can effectively only be `true`, as `false` is the default behavior."
129
+ },
130
+
131
+ "includeDecisionDefinitionsWithoutTenantId": {
132
+ "type": "boolean",
133
+ "desc": "Include decision definitions which belong to no tenant.
134
+ Can be used in combination with `tenantIdIn`.
135
+ Value may only be `true`, as `false` is the default behavior."
136
+ },
137
+
138
+ "versionTag": {
139
+ "type": "string",
140
+ "desc": "Filter by the version tag."
141
+ },
142
+
143
+ "versionTagLike": {
144
+ "type": "string",
145
+ "desc": "Filter by the version tags of those decision definition resources that the parameter is a substring of."
146
+ }
147
+ }>
source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/decision-requirements-definition.ftl ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <#-- Generated From File: camunda-docs-manual/public/reference/rest/decision-requirements-definition/get-query/index.html -->
2
+
3
+ <#assign sortByValues = [
4
+ '"id"',
5
+ '"key"',
6
+ '"name"',
7
+ '"version"',
8
+ '"deploymentId"',
9
+ '"category"',
10
+ '"tenantId"'
11
+ ]>
12
+
13
+ <#assign params = {
14
+ "decisionRequirementsDefinitionId": {
15
+ "type": "string",
16
+ "desc": "Filter by decision requirements definition id."
17
+ },
18
+ "decisionRequirementsDefinitionIdIn": {
19
+ "type": "array",
20
+ "itemType": "string",
21
+ "desc": "Filter by decision requirements definition ids."
22
+ },
23
+ "name": {
24
+ "type": "string",
25
+ "desc": "Filter by decision requirements definition name."
26
+ },
27
+ "nameLike": {
28
+ "type": "string",
29
+ "desc": "Filter by decision requirements definition names that the parameter is a substring of."
30
+ },
31
+ "deploymentId": {
32
+ "type": "string",
33
+ "desc": "Filter by the id of the deployment a decision requirement definition belongs to."
34
+ },
35
+ "key": {
36
+ "type": "string",
37
+ "desc": "Filter by decision requirements definition key, i.e., the id in the DMN 1.3 XML. Exact
38
+ match."
39
+ },
40
+ "keyLike": {
41
+ "type": "string",
42
+ "desc": "Filter by decision requirements definition keys that the parameter is a substring of."
43
+ },
44
+ "category": {
45
+ "type": "string",
46
+ "desc": "Filter by decision requirements definition category. Exact match."
47
+ },
48
+ "categoryLike": {
49
+ "type": "string",
50
+ "desc": "Filter by decision requirements definition categories that the parameter is a substring
51
+ of."
52
+ },
53
+ "version": {
54
+ "type": "integer",
55
+ "format": "int32",
56
+ "desc": "Filter by decision requirements definition version."
57
+ },
58
+ "latestVersion": {
59
+ "type": "boolean",
60
+ "desc": "Only include those decision requirements definitions that are latest versions. Value may
61
+ only be `true`, as `false` is the default behavior."
62
+ },
63
+ "resourceName": {
64
+ "type": "string",
65
+ "desc": "Filter by the name of the decision requirements definition resource. Exact match."
66
+ },
67
+ "resourceNameLike": {
68
+ "type": "string",
69
+ "desc": "Filter by names of those decision requirements definition resources that the parameter is
70
+ a substring of."
71
+ },
72
+ "tenantIdIn": {
73
+ "type": "array",
74
+ "itemType": "string",
75
+ "desc": "Filter by a comma-separated list of tenant ids. A decision requirements definition must
76
+ have one of the given tenant ids."
77
+ },
78
+ "withoutTenantId": {
79
+ "type": "boolean",
80
+ "desc": "Only include decision requirements definitions which belong to no tenant. Value may only
81
+ be `true`, as `false` is the default behavior."
82
+ },
83
+ "includeDecisionRequirementsDefinitionsWithoutTenantId": {
84
+ "type": "boolean",
85
+ "desc": "Include decision requirements definitions which belong to no tenant. Can be used in
86
+ combination with `tenantIdIn`. Value may only be `true`, as `false` is the
87
+ default behavior."
88
+ }
89
+ }>
source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/deployment-query-params.ftl ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <@lib.parameter
2
+ name = "id"
3
+ location = "query"
4
+ type = "string"
5
+ desc = "Filter by deployment id"/>
6
+
7
+ <@lib.parameter
8
+ name = "name"
9
+ location = "query"
10
+ type = "string"
11
+ desc = "Filter by the deployment name. Exact match."/>
12
+
13
+ <@lib.parameter
14
+ name = "nameLike"
15
+ location = "query"
16
+ type = "string"
17
+ desc = "Filter by the deployment name that the parameter is a substring of. The parameter can include the
18
+ wildcard `%` to express like-strategy such as: starts with (`%`name), ends with (name`%`) or contains
19
+ (`%`name`%`)." />
20
+
21
+ <@lib.parameter
22
+ name = "source"
23
+ location = "query"
24
+ type = "string"
25
+ desc = "Filter by the deployment source."/>
26
+
27
+ <@lib.parameter
28
+ name = "withoutSource"
29
+ location = "query"
30
+ type = "boolean"
31
+ defaultValue = 'false'
32
+ desc = "Filter by the deployment source whereby source is equal to `null`."/>
33
+
34
+ <@lib.parameter
35
+ name = "tenantIdIn"
36
+ location = "query"
37
+ type = "string"
38
+ desc = "Filter by a comma-separated list of tenant ids. A deployment must have one of the given tenant ids."/>
39
+
40
+ <@lib.parameter
41
+ name = "withoutTenantId"
42
+ location = "query"
43
+ type = "boolean"
44
+ defaultValue = 'false'
45
+ desc = "Only include deployments which belong to no tenant. Value may only be `true`, as `false` is the default
46
+ behavior."/>
47
+
48
+ <@lib.parameter
49
+ name = "includeDeploymentsWithoutTenantId"
50
+ location = "query"
51
+ type = "boolean"
52
+ defaultValue = 'false'
53
+ desc = "Include deployments which belong to no tenant. Can be used in combination with `tenantIdIn`. Value may
54
+ only be `true`, as `false` is the default behavior."/>
55
+
56
+ <@lib.parameter
57
+ name = "after"
58
+ location = "query"
59
+ type = "string"
60
+ format = "date-time"
61
+ desc = "Restricts to all deployments after the given date.
62
+ By [default](${docsUrl}/reference/rest/overview/date-format/), the date must have the format
63
+ `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.000+0200`."/>
64
+
65
+ <@lib.parameter
66
+ name = "before"
67
+ location = "query"
68
+ type = "string"
69
+ format = "date-time"
70
+ last = last
71
+ desc = "Restricts to all deployments before the given date.
72
+ By [default](${docsUrl}/reference/rest/overview/date-format/), the date must have the format
73
+ `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.000+0200`."/>
source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/deserialize-values-parameter.ftl ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <#-- This parameter is shared between POST and Get Variable Instances List -->
2
+ <@lib.parameter
3
+ name = "deserializeValues"
4
+ type = "boolean"
5
+ location = "query"
6
+ desc = "Determines whether serializable variable values (typically variables that
7
+ store custom Java objects) should be deserialized on server side (default
8
+ `true`).
9
+
10
+ If set to `true`, a serializable variable will be deserialized on server side
11
+ and transformed to JSON using
12
+ [Jackson's](https://github.com/FasterXML/jackson) POJO/bean property
13
+ introspection feature. Note that this requires the Java classes of the
14
+ variable value to be on the REST API's classpath.
15
+
16
+ If set to `false`, a serializable variable will be returned in its serialized
17
+ format. For example, a variable that is serialized as XML will be returned as
18
+ a JSON string containing XML.
19
+
20
+ **Note:** While `true` is the default value for reasons of backward
21
+ compatibility, we recommend setting this parameter to `false` when developing
22
+ web applications that are independent of the Java process applications
23
+ deployed to the engine."
24
+ last = last
25
+ />
source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/event-subscription-query-params.ftl ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <@lib.parameter
2
+ name = "eventSubscriptionId"
3
+ location = "query"
4
+ type = "string"
5
+ desc = "Only select subscription with the given id." />
6
+
7
+ <@lib.parameter
8
+ name = "eventName"
9
+ location = "query"
10
+ type = "string"
11
+ desc = "Only select subscriptions for events with the given name." />
12
+
13
+ <@lib.parameter
14
+ name = "eventType"
15
+ location = "query"
16
+ type = "string"
17
+ enumValues = [ "message", "signal", "compensate", "conditional" ]
18
+ desc = "Only select subscriptions for events with the given type.
19
+ Valid values: `message`, `signal`, `compensate` and `conditional`." />
20
+
21
+ <@lib.parameter
22
+ name = "executionId"
23
+ location = "query"
24
+ type = "string"
25
+ desc = "Only select subscriptions that belong to an execution with the given id." />
26
+
27
+ <@lib.parameter
28
+ name = "processInstanceId"
29
+ location = "query"
30
+ type = "string"
31
+ desc = "Only select subscriptions that belong to a process instance with the given id." />
32
+
33
+ <@lib.parameter
34
+ name = "activityId"
35
+ location = "query"
36
+ type = "string"
37
+ desc = "Only select subscriptions that belong to an activity with the given id." />
38
+
39
+ <@lib.parameter
40
+ name = "tenantIdIn"
41
+ location = "query"
42
+ type = "string"
43
+ desc = "Filter by a comma-separated list of tenant ids.
44
+ Only select subscriptions that belong to one of the given tenant ids." />
45
+
46
+ <@lib.parameter
47
+ name = "withoutTenantId"
48
+ location = "query"
49
+ type = "boolean"
50
+ desc = "Only select subscriptions which have no tenant id.
51
+ Value may only be `true`, as `false` is the default behavior." />
52
+
53
+ <@lib.parameter
54
+ name = "includeEventSubscriptionsWithoutTenantId"
55
+ location = "query"
56
+ type = "boolean"
57
+ last = last
58
+ desc = "Select event subscriptions which have no tenant id.
59
+ Can be used in combination with tenantIdIn parameter.
60
+ Value may only be `true`, as `false` is the default behavior." />
source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/execution-query-params.ftl ADDED
@@ -0,0 +1,151 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <#-- Generated From File: camunda-docs-manual/public/reference/rest/execution/get-query/index.html -->
2
+
3
+ <#assign sortByValues = [
4
+ '"instanceId"',
5
+ '"definitionKey"',
6
+ '"definitionId"',
7
+ '"tenantId"'
8
+ ]>
9
+
10
+ <#if requestMethod == "GET">
11
+ <#assign listType = "comma-separated">
12
+ <#assign variablesDesc = "Only include executions that have variables with certain values.
13
+ Variable filtering expressions are comma-separated and are structured as
14
+ follows:
15
+
16
+ A valid parameter value has the form `key_operator_value`.
17
+ `key` is the variable name, `operator` is the comparison operator to be used
18
+ and `value` the variable value.
19
+ **Note:** Values are always treated as `String` objects on server side.
20
+
21
+ Valid operator values are: `eq` - equal to; `neq` - not equal to; `gt` -
22
+ greater than;
23
+ `gteq` - greater than or equal to; `lt` - lower than; `lteq` - lower than or
24
+ equal to;
25
+ `like`.
26
+ `key` and `value` may not contain underscore or comma characters.">
27
+
28
+ <#assign processVariablesDesc = "Only include executions that belong to a process instance with variables with certain
29
+ values.
30
+ Variable filtering expressions are comma-separated and are structured as
31
+ follows:
32
+
33
+ A valid parameter value has the form `key_operator_value`.
34
+ `key` is the variable name, `operator` is the comparison operator to be used
35
+ and `value` the variable value.
36
+ **Note:** Values are always treated as `String` objects on server side.
37
+
38
+ Valid operator values are: `eq` - equal to; `neq` - not equal to.
39
+ `key` and `value` may not contain underscore or comma characters.">
40
+
41
+ <#elseif requestMethod == "POST">
42
+ <#assign listType = "">
43
+ <#assign variablesDesc = "An array to only include executions that have variables with certain values.
44
+
45
+ The array consists of objects with the three properties `name`, `operator`
46
+ and `value`.
47
+ `name (String)` is the variable name, `operator (String)` is the comparison
48
+ operator to be used and `value` the variable value.
49
+ `value` may be `String`, `Number` or `Boolean`.
50
+
51
+ Valid operator values are: `eq` - equal to; `neq` - not equal to; `gt` -
52
+ greater than;
53
+ `gteq` - greater than or equal to; `lt` - lower than; `lteq` - lower than or
54
+ equal to;
55
+ `like`.">
56
+ <#assign processVariablesDesc = "An array to only include executions that belong to a process instance with variables
57
+ with certain values.
58
+
59
+ The array consists of objects with the three properties `name`, `operator`
60
+ and `value`.
61
+ `name (String)` is the variable name, `operator (String)` is the comparison
62
+ operator to be used and `value` the variable value.
63
+ `value` may be `String`, `Number` or `Boolean`.
64
+
65
+ Valid operator values are: `eq` - equal to; `neq` - not equal to.">
66
+ </#if>
67
+
68
+ <#assign params = {
69
+ "businessKey": {
70
+ "type": "string",
71
+ "desc": "Filter by the business key of the process instances the executions belong to."
72
+ },
73
+ "processDefinitionId": {
74
+ "type": "string",
75
+ "desc": "Filter by the process definition the executions run on."
76
+ },
77
+ "processDefinitionKey": {
78
+ "type": "string",
79
+ "desc": "Filter by the key of the process definition the executions run on."
80
+ },
81
+ "processInstanceId": {
82
+ "type": "string",
83
+ "desc": "Filter by the id of the process instance the execution belongs to."
84
+ },
85
+ "activityId": {
86
+ "type": "string",
87
+ "desc": "Filter by the id of the activity the execution currently executes."
88
+ },
89
+ "signalEventSubscriptionName": {
90
+ "type": "string",
91
+ "desc": "Select only those executions that expect a signal of the given name."
92
+ },
93
+ "messageEventSubscriptionName": {
94
+ "type": "string",
95
+ "desc": "Select only those executions that expect a message of the given name."
96
+ },
97
+ "active": {
98
+ "type": "boolean",
99
+ "desc": "Only include active executions. Value may only be `true`, as `false` is the default
100
+ behavior."
101
+ },
102
+ "suspended": {
103
+ "type": "boolean",
104
+ "desc": "Only include suspended executions. Value may only be `true`, as `false` is the default
105
+ behavior."
106
+ },
107
+ "incidentId": {
108
+ "type": "string",
109
+ "desc": "Filter by the incident id."
110
+ },
111
+ "incidentType": {
112
+ "type": "string",
113
+ "desc": "Filter by the incident type. See the [User Guide](/manual/develop/user-guide/process-engine/incidents/#incident-types) for a list of incident types."
114
+ },
115
+ "incidentMessage": {
116
+ "type": "string",
117
+ "desc": "Filter by the incident message. Exact match."
118
+ },
119
+ "incidentMessageLike": {
120
+ "type": "string",
121
+ "desc": "Filter by the incident message that the parameter is a substring of."
122
+ },
123
+ "tenantIdIn": {
124
+ "type": "array",
125
+ "itemType": "string",
126
+ "desc": "Filter by a ${listType} list of tenant ids. An execution must have one of the given
127
+ tenant ids."
128
+ },
129
+ "variables": {
130
+ "type": "array",
131
+ "dto": "VariableQueryParameterDto",
132
+ "desc": "${variablesDesc}"
133
+ },
134
+ "processVariables": {
135
+ "type": "array",
136
+ "dto": "VariableQueryParameterDto",
137
+ "desc": "${processVariablesDesc}"
138
+ },
139
+ "variableNamesIgnoreCase": {
140
+ "type": "boolean",
141
+ "desc": "Match all variable names provided in `variables` and `processVariables` case-
142
+ insensitively. If set to `true` **variableName** and **variablename** are
143
+ treated as equal."
144
+ },
145
+ "variableValuesIgnoreCase": {
146
+ "type": "boolean",
147
+ "desc": "Match all variable values provided in `variables` and `processVariables` case-
148
+ insensitively. If set to `true` **variableValue** and **variablevalue** are
149
+ treated as equal."
150
+ }
151
+ }>
source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/external-task-query-params.ftl ADDED
@@ -0,0 +1,207 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <@lib.parameter
2
+ name = "externalTaskId"
3
+ location = "query"
4
+ type = "string"
5
+ desc = "Filter by an external task's id." />
6
+
7
+ <@lib.parameter
8
+ name = "externalTaskIdIn"
9
+ location = "query"
10
+ type = "string"
11
+ desc = "Filter by the comma-separated list of external task ids." />
12
+
13
+ <@lib.parameter
14
+ name = "topicName"
15
+ location = "query"
16
+ type = "string"
17
+ desc = "Filter by an external task topic." />
18
+
19
+ <@lib.parameter
20
+ name = "workerId"
21
+ location = "query"
22
+ type = "string"
23
+ desc = "Filter by the id of the worker that the task was most recently locked by." />
24
+
25
+ <@lib.parameter
26
+ name = "locked"
27
+ location = "query"
28
+ type = "boolean"
29
+ desc = "Only include external tasks that are currently locked (i.e., they have a lock time and it has not expired).
30
+ Value may only be `true`, as `false` matches any external task." />
31
+
32
+ <@lib.parameter
33
+ name = "notLocked"
34
+ location = "query"
35
+ type = "boolean"
36
+ desc = "Only include external tasks that are currently not locked (i.e., they have no lock or it has expired).
37
+ Value may only be `true`, as `false` matches any external task." />
38
+
39
+ <@lib.parameter
40
+ name = "withRetriesLeft"
41
+ location = "query"
42
+ type = "boolean"
43
+ desc = "Only include external tasks that have a positive (&gt; 0) number of retries (or `null`). Value may only be
44
+ `true`, as `false` matches any external task." />
45
+
46
+ <@lib.parameter
47
+ name = "noRetriesLeft"
48
+ location = "query"
49
+ type = "boolean"
50
+ desc = "Only include external tasks that have 0 retries. Value may only be `true`, as `false` matches any
51
+ external task." />
52
+
53
+ <@lib.parameter
54
+ name = "lockExpirationAfter"
55
+ location = "query"
56
+ type = "string"
57
+ format = "date-time"
58
+ desc = "Restrict to external tasks that have a lock that expires after a given date. By
59
+ [default](${docsUrl}/reference/rest/overview/date-format/), the date must have the format
60
+ `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.000+0200`." />
61
+
62
+ <@lib.parameter
63
+ name = "lockExpirationBefore"
64
+ location = "query"
65
+ type = "string"
66
+ format = "date-time"
67
+ desc = "Restrict to external tasks that have a lock that expires before a given date. By
68
+ [default](${docsUrl}/reference/rest/overview/date-format/), the date must have the format
69
+ `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.000+0200`." />
70
+
71
+ <@lib.parameter
72
+ name = "activityId"
73
+ location = "query"
74
+ type = "string"
75
+ desc = "Filter by the id of the activity that an external task is created for." />
76
+
77
+ <@lib.parameter
78
+ name = "activityIdIn"
79
+ location = "query"
80
+ type = "string"
81
+ desc = "Filter by the comma-separated list of ids of the activities that an external task is created for." />
82
+
83
+ <@lib.parameter
84
+ name = "executionId"
85
+ location = "query"
86
+ type = "string"
87
+ desc = "Filter by the id of the execution that an external task belongs to." />
88
+
89
+ <@lib.parameter
90
+ name = "processInstanceId"
91
+ location = "query"
92
+ type = "string"
93
+ desc = "Filter by the id of the process instance that an external task belongs to." />
94
+
95
+ <@lib.parameter
96
+ name = "processInstanceIdIn"
97
+ location = "query"
98
+ type = "string"
99
+ desc = "Filter by a comma-separated list of process instance ids that an external task may belong to." />
100
+
101
+ <@lib.parameter
102
+ name = "processDefinitionId"
103
+ location = "query"
104
+ type = "string"
105
+ desc = "Filter by the id of the process definition that an external task belongs to." />
106
+
107
+ <@lib.parameter
108
+ name = "tenantIdIn"
109
+ location = "query"
110
+ type = "string"
111
+ desc = "Filter by a comma-separated list of tenant ids.
112
+ An external task must have one of the given tenant ids." />
113
+
114
+ <@lib.parameter
115
+ name = "active"
116
+ location = "query"
117
+ type = "boolean"
118
+ desc = "Only include active tasks. Value may only be `true`, as `false` matches any external task." />
119
+
120
+ <@lib.parameter
121
+ name = "suspended"
122
+ location = "query"
123
+ type = "boolean"
124
+ desc = "Only include suspended tasks. Value may only be `true`, as `false` matches any external task." />
125
+
126
+ <@lib.parameter
127
+ name = "priorityHigherThanOrEquals"
128
+ location = "query"
129
+ type = "integer"
130
+ format = "int64"
131
+ desc = "Only include jobs with a priority higher than or equal to the given value.
132
+ Value must be a valid `long` value." />
133
+
134
+ <@lib.parameter
135
+ name = "priorityLowerThanOrEquals"
136
+ location = "query"
137
+ type = "integer"
138
+ format = "int64"
139
+ desc = "Only include jobs with a priority lower than or equal to the given value.
140
+ Value must be a valid `long` value." />
141
+
142
+ <@lib.parameter
143
+ name = "processDefinitionKey"
144
+ location = "query"
145
+ type = "string"
146
+ desc = "Restrict to tasks that belong to a process definition with the given key." />
147
+
148
+ <@lib.parameter
149
+ name = "processDefinitionKeyIn"
150
+ location = "query"
151
+ type = "string"
152
+ desc = "Restrict to tasks that belong to a process definition with one of the given keys. The
153
+ keys need to be in a comma-separated list." />
154
+
155
+ <@lib.parameter
156
+ name = "processDefinitionName"
157
+ location = "query"
158
+ type = "string"
159
+ desc = "Restrict to tasks that belong to a process definition with the given name." />
160
+
161
+ <@lib.parameter
162
+ name = "processDefinitionNameLike"
163
+ location = "query"
164
+ type = "string"
165
+ desc = "Restrict to tasks that have a process definition name that has the parameter value as
166
+ a substring." />
167
+
168
+ <@lib.parameter
169
+ name = "variableNamesIgnoreCase"
170
+ location = "query"
171
+ type = "boolean"
172
+ defaultValue = "false"
173
+ desc = "Match all variable names in this query case-insensitively. If set
174
+ `variableName` and `variablename` are treated as equal." />
175
+
176
+ <@lib.parameter
177
+ name = "variableValuesIgnoreCase"
178
+ location = "query"
179
+ type = "boolean"
180
+ defaultValue = "false"
181
+ desc = "Match all variable values in this query case-insensitively. If set
182
+ `variableValue` and `variablevalue` are treated as equal." />
183
+
184
+ <@lib.parameter
185
+ name = "processVariables"
186
+ location = "query"
187
+ type = "string"
188
+ last = last
189
+ desc = "Only include tasks that belong to process instances that have variables with certain
190
+ values. Variable filtering expressions are comma-separated and are structured as
191
+ follows:
192
+
193
+ A valid parameter value has the form `key_operator_value`. `key` is the variable name,
194
+ `operator` is the comparison operator to be used and `value` the variable value.
195
+
196
+ **Note**: Values are always treated as String objects on server side.
197
+
198
+ Valid `operator` values are:
199
+ `eq` - equal to;
200
+ `neq` - not equal to;
201
+ `gt` - greater than;
202
+ `gteq` - greater than or equal to;
203
+ `lt` - lower than;
204
+ `lteq` - lower than or equal to;
205
+ `like`;
206
+ `notLike`.
207
+ `key` and `value` may not contain underscore or comma characters." />
source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/filter-query-params.ftl ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <#-- Generated From File: camunda-docs-manual/public/reference/rest/filter/get-query/index.html -->
2
+
3
+ <#assign sortByValues = [
4
+ '"filterId"',
5
+ '"resourceType"',
6
+ '"name"',
7
+ '"owner"'
8
+ ]>
9
+
10
+
11
+ <#assign params = {
12
+ "filterId": {
13
+ "type": "string",
14
+ "desc": "Filter by the id of the filter."
15
+ },
16
+ "resourceType": {
17
+ "type": "string",
18
+ "desc": "Filter by the resource type of the filter, e.g., `Task`."
19
+ },
20
+ "name": {
21
+ "type": "string",
22
+ "desc": "Filter by the name of the filter."
23
+ },
24
+ "nameLike": {
25
+ "type": "string",
26
+ "desc": "Filter by the name that the parameter is a substring of."
27
+ },
28
+ "owner": {
29
+ "type": "string",
30
+ "desc": "Filter by the user id of the owner of the filter."
31
+ }
32
+ }>
source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/group-query-params.ftl ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <#assign sortByValues = [
2
+ '"id"',
3
+ '"name"',
4
+ '"type"'
5
+ ]>
6
+
7
+ <#if requestMethod == "GET">
8
+ <#assign listTypeDescription = "comma seperated list of">
9
+ <#elseif requestMethod == "POST">
10
+ <#assign listTypeDescription = "JSON string array of">
11
+ </#if>
12
+
13
+ <#assign params = {
14
+ "id": {
15
+ "type": "string",
16
+ "desc": "Filter by the id of the group."
17
+ },
18
+ "idIn": {
19
+ "type": "array",
20
+ "itemType": "string",
21
+ "desc": "Filter by a ${listTypeDescription} group ids."
22
+ },
23
+ "name": {
24
+ "type": "string",
25
+ "desc": "Filter by the name of the group."
26
+ },
27
+ "nameLike": {
28
+ "type": "string",
29
+ "desc": "Filter by the name that the parameter is a substring of."
30
+ },
31
+ "type": {
32
+ "type": "string",
33
+ "desc": "Filter by the type of the group."
34
+ },
35
+ "member": {
36
+ "type": "string",
37
+ "desc": "Only retrieve groups where the given user id is a member of."
38
+ },
39
+ "memberOfTenant": {
40
+ "type": "string",
41
+ "desc": "Only retrieve groups which are members of the given tenant."
42
+ }
43
+ }>
source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/historic-batch-params.ftl ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <#-- Generated From File: camunda-docs-manual/public/reference/rest/history/batch/get-query/index.html -->
2
+
3
+ <#assign sortByValues = [
4
+ '"batchId"',
5
+ '"startTime"',
6
+ '"endTime"',
7
+ '"tenantId"'
8
+ ]>
9
+
10
+
11
+ <#assign params = {
12
+ "batchId": {
13
+ "type": "string",
14
+ "desc": "Filter by batch id."
15
+ },
16
+ "type": {
17
+ "type": "string",
18
+ "desc": "Filter by batch type. See the
19
+ [User Guide](${docsUrl}/user-guide/process-engine/batch/#creating-a-batch)
20
+ for more information about batch types."
21
+ },
22
+ "completed": {
23
+ "type": "boolean",
24
+ "desc": "
25
+ Filter completed or not completed batches. If the value is
26
+ `true`, only completed batches, i.e., end time is set, are
27
+ returned. Otherwise, if the value is `false`, only running
28
+ batches, i.e., end time is null, are returned."
29
+ },
30
+ "tenantIdIn": {
31
+ "type": "array",
32
+ "itemType": "string",
33
+ "desc": "Filter by a comma-separated list of tenant ids. A batch matches if it has one of the given
34
+ tenant ids."
35
+ },
36
+ "withoutTenantId": {
37
+ "type": "boolean",
38
+ "desc": "Only include batches which belong to no tenant. Value can effectively only be `true`, as `false` is the default behavior."
39
+ }
40
+ }>
source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/historic-decision-instance-query-params.ftl ADDED
@@ -0,0 +1,130 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <#-- Generated From File: camunda-docs-manual/public/reference/rest/filter/get-query/index.html -->
2
+
3
+ <#assign sortByValues = [
4
+ '"evaluationTime"',
5
+ '"tenantId"'
6
+ ]>
7
+
8
+ <#assign params = {
9
+ "decisionInstanceId": {
10
+ "type": "string",
11
+ "desc": "Filter by decision instance id."
12
+ },
13
+ "decisionInstanceIdIn": {
14
+ "type": "array",
15
+ "itemType": "string",
16
+ "desc": "Filter by decision instance ids. Must be a comma-separated list of decision instance ids."
17
+ },
18
+ "decisionDefinitionId": {
19
+ "type": "string",
20
+ "desc": "Filter by the decision definition the instances belongs to."
21
+ },
22
+ "decisionDefinitionIdIn": {
23
+ "type": "array",
24
+ "itemType": "string",
25
+ "desc": "Filter by the decision definitions the instances belongs to. Must be a
26
+ comma-separated list of decision definition ids."
27
+ },
28
+ "decisionDefinitionKey": {
29
+ "type": "string",
30
+ "desc": "Filter by the key of the decision definition the instances belongs to."
31
+ },
32
+ "decisionDefinitionKeyIn": {
33
+ "type": "array",
34
+ "itemType": "string",
35
+ "desc": "Filter by the keys of the decision definition the instances belongs to. Must be a comma-
36
+ separated list of decision definition keys."
37
+ },
38
+ "decisionDefinitionName": {
39
+ "type": "string",
40
+ "desc": "Filter by the name of the decision definition the instances belongs to."
41
+ },
42
+ "decisionDefinitionNameLike": {
43
+ "type": "string",
44
+ "desc": "Filter by the name of the decision definition the instances belongs to, that the parameter
45
+ is a substring of."
46
+ },
47
+ "processDefinitionId": {
48
+ "type": "string",
49
+ "desc": "Filter by the process definition the instances belongs to."
50
+ },
51
+ "processDefinitionKey": {
52
+ "type": "string",
53
+ "desc": "Filter by the key of the process definition the instances belongs to."
54
+ },
55
+ "processInstanceId": {
56
+ "type": "string",
57
+ "desc": "Filter by the process instance the instances belongs to."
58
+ },
59
+ "caseDefinitionId": {
60
+ "type": "string",
61
+ "desc": "Filter by the case definition the instances belongs to."
62
+ },
63
+ "caseDefinitionKey": {
64
+ "type": "string",
65
+ "desc": "Filter by the key of the case definition the instances belongs to."
66
+ },
67
+ "caseInstanceId": {
68
+ "type": "string",
69
+ "desc": "Filter by the case instance the instances belongs to."
70
+ },
71
+ "activityIdIn": {
72
+ "type": "array",
73
+ "itemType": "string",
74
+ "desc": "Filter by the activity ids the instances belongs to.
75
+ Must be a comma-separated list of acitvity ids."
76
+ },
77
+ "activityInstanceIdIn": {
78
+ "type": "array",
79
+ "itemType": "string",
80
+ "desc": "Filter by the activity instance ids the instances belongs to.
81
+ Must be a comma-separated list of acitvity instance ids."
82
+ },
83
+ "tenantIdIn": {
84
+ "type": "array",
85
+ "itemType": "string",
86
+ "desc": "Filter by a comma-separated list of tenant ids. A historic decision instance must have one
87
+ of the given tenant ids."
88
+ },
89
+ "withoutTenantId": {
90
+ "type": "boolean",
91
+ "desc": "Only include historic decision instances that belong to no tenant. Value may only be
92
+ `true`, as `false` is the default behavior."
93
+ },
94
+ "evaluatedBefore": {
95
+ "type": "string",
96
+ "format": "date-time",
97
+ "desc": "Restrict to instances that were evaluated before the given date.
98
+ By [default](${docsUrl}/reference/rest/overview/date-format/), the date must have the format `yyyy-MM-
99
+ dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.000+0200`."
100
+ },
101
+ "evaluatedAfter": {
102
+ "type": "string",
103
+ "format": "date-time",
104
+ "desc": "Restrict to instances that were evaluated after the given date.
105
+ By [default](${docsUrl}/reference/rest/overview/date-format/), the date must have the format `yyyy-MM-
106
+ dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.000+0200`."
107
+ },
108
+ "userId": {
109
+ "type": "string",
110
+ "desc": "Restrict to instances that were evaluated by the given user."
111
+ },
112
+ "rootDecisionInstanceId": {
113
+ "type": "string",
114
+ "desc": "Restrict to instances that have a given root decision instance id.
115
+ This also includes the decision instance with the given id."
116
+ },
117
+ "rootDecisionInstancesOnly": {
118
+ "type": "boolean",
119
+ "desc": "Restrict to instances those are the root decision instance of an evaluation.
120
+ Value may only be `true`, as `false` is the default behavior."
121
+ },
122
+ "decisionRequirementsDefinitionId": {
123
+ "type": "string",
124
+ "desc": "Filter by the decision requirements definition the instances belongs to."
125
+ },
126
+ "decisionRequirementsDefinitionKey": {
127
+ "type": "string",
128
+ "desc": "Filter by the key of the decision requirements definition the instances belongs to."
129
+ }
130
+ }>
source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/historic-decision-instance-single-query-params.ftl ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <#-- Generated From File: camunda-docs-manual/public/reference/rest/filter/get-query/index.html -->
2
+
3
+ <#assign params = {
4
+ "includeInputs": {
5
+ "type": "boolean",
6
+ "desc": "Include input values in the result.
7
+ Value may only be `true`, as `false` is the default behavior."
8
+ },
9
+ "includeOutputs": {
10
+ "type": "boolean",
11
+ "desc": "Include output values in the result.
12
+ Value may only be `true`, as `false` is the default behavior."
13
+ },
14
+ "disableBinaryFetching": {
15
+ "type": "boolean",
16
+ "desc": "Disables fetching of byte array input and output values.
17
+ Value may only be `true`, as `false` is the default behavior."
18
+ },
19
+ "disableCustomObjectDeserialization": {
20
+ "type": "boolean",
21
+ "desc": "Disables deserialization of input and output values that are custom objects.
22
+ Value may only be `true`, as `false` is the default behavior."
23
+ }}>
source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/historic-external-task-log-query-params.ftl ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <#-- Generated From File: camunda-docs-manual/public/reference/rest/history/external-task-log/get-external-task-log-query/index.html -->
2
+
3
+ <#assign sortByValues = [
4
+ '"timestamp"',
5
+ '"externalTaskId"',
6
+ '"topicName"',
7
+ '"workerId"',
8
+ '"retries"',
9
+ '"priority"',
10
+ '"activityId"',
11
+ '"activityInstanceId"',
12
+ '"executionId"',
13
+ '"processInstanceId"',
14
+ '"processDefinitionId"',
15
+ '"processDefinitionKey"',
16
+ '"tenantId"'
17
+ ]>
18
+
19
+ <#assign params = {
20
+ "logId": {
21
+ "type": "string",
22
+ "desc": "Filter by historic external task log id."
23
+ },
24
+ "externalTaskId": {
25
+ "type": "string",
26
+ "desc": "Filter by external task id."
27
+ },
28
+ "topicName": {
29
+ "type": "string",
30
+ "desc": "Filter by an external task topic."
31
+ },
32
+ "workerId": {
33
+ "type": "string",
34
+ "desc": "Filter by the id of the worker that the task was most recently locked by."
35
+ },
36
+ "errorMessage": {
37
+ "type": "string",
38
+ "desc": "Filter by external task exception message."
39
+ },
40
+ "activityIdIn": {
41
+ "type": "array",
42
+ "itemType": "string",
43
+ "desc": "Only include historic external task logs which belong to one of the passed activity ids."
44
+ },
45
+ "activityInstanceIdIn": {
46
+ "type": "array",
47
+ "itemType": "string",
48
+ "desc": "Only include historic external task logs which belong to one of the passed activity
49
+ instance ids."
50
+ },
51
+ "executionIdIn": {
52
+ "type": "array",
53
+ "itemType": "string",
54
+ "desc": "Only include historic external task logs which belong to one of the passed execution ids."
55
+ },
56
+ "processInstanceId": {
57
+ "type": "string",
58
+ "desc": "Filter by process instance id."
59
+ },
60
+ "processDefinitionId": {
61
+ "type": "string",
62
+ "desc": "Filter by process definition id."
63
+ },
64
+ "processDefinitionKey": {
65
+ "type": "string",
66
+ "desc": "Filter by process definition key."
67
+ },
68
+ "tenantIdIn": {
69
+ "type": "array",
70
+ "itemType": "string",
71
+ "desc": "Only include historic external task log entries which belong to one of the passed and
72
+ comma-separated tenant ids."
73
+ },
74
+ "withoutTenantId": {
75
+ "type": "boolean",
76
+ "desc": "Only include historic external task log entries that belong to no tenant. Value may only
77
+ be `true`, as `false` is the default behavior."
78
+ },
79
+ "priorityLowerThanOrEquals": {
80
+ "type": "integer",
81
+ "format": "int64",
82
+ "desc": "Only include logs for which the associated external task had a priority lower than or
83
+ equal to the given value. Value must be a valid `long` value."
84
+ },
85
+ "priorityHigherThanOrEquals": {
86
+ "type": "integer",
87
+ "format": "int64",
88
+ "desc": "Only include logs for which the associated external task had a priority higher than or
89
+ equal to the given value. Value must be a valid `long` value."
90
+ },
91
+ "creationLog": {
92
+ "type": "boolean",
93
+ "desc": "Only include creation logs. Value may only be `true`, as `false` is the default behavior."
94
+ },
95
+ "failureLog": {
96
+ "type": "boolean",
97
+ "desc": "Only include failure logs. Value may only be `true`, as `false` is the default behavior."
98
+ },
99
+ "successLog": {
100
+ "type": "boolean",
101
+ "desc": "Only include success logs. Value may only be `true`, as `false` is the default behavior."
102
+ },
103
+ "deletionLog": {
104
+ "type": "boolean",
105
+ "desc": "Only include deletion logs. Value may only be `true`, as `false` is the default behavior."
106
+ }
107
+ }>
source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/historic-incident-query-params.ftl ADDED
@@ -0,0 +1,141 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <#-- Generated From File: camunda-docs-manual/public/reference/rest/filter/get-query/index.html -->
2
+
3
+ <#assign sortByValues = [
4
+ '"incidentId"',
5
+ '"incidentMessage"',
6
+ '"createTime"',
7
+ '"endTime"',
8
+ '"incidentType"',
9
+ '"executionId"',
10
+ '"activityId"',
11
+ '"processInstanceId"',
12
+ '"processDefinitionId"',
13
+ '"processDefinitionKey"',
14
+ '"causeIncidentId"',
15
+ '"rootCauseIncidentId"',
16
+ '"configuration"',
17
+ '"historyConfiguration"',
18
+ '"tenantId"',
19
+ '"incidentState"'
20
+ ]>
21
+
22
+ <#assign dateDefault = "By [default](${docsUrl}/reference/rest/overview/date-format/), the date must have the format
23
+ `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.000+0200`.">
24
+
25
+ <#assign params = {
26
+ "incidentId": {
27
+ "type": "string",
28
+ "desc": "Restricts to incidents that have the given id."
29
+ },
30
+ "incidentType": {
31
+ "type": "string",
32
+ "desc": "Restricts to incidents that belong to the given incident type. See the [User
33
+ Guide](/manual/develop/user-guide/process-engine/incidents/#incident-types)
34
+ for a list of incident types."
35
+ },
36
+ "incidentMessage": {
37
+ "type": "string",
38
+ "desc": "Restricts to incidents that have the given incident message."
39
+ },
40
+ "incidentMessageLike": {
41
+ "type": "string",
42
+ "desc": "Restricts to incidents that incidents message is a substring of the given value.
43
+ The string can include the wildcard character '%' to express
44
+ like-strategy: starts with (string%), ends with (%string) or contains
45
+ (%string%).
46
+ "
47
+ },
48
+ "processDefinitionId": {
49
+ "type": "string",
50
+ "desc": "Restricts to incidents that belong to a process definition with the given id."
51
+ },
52
+ "processDefinitionKey": {
53
+ "type": "string",
54
+ "desc": "Restricts to incidents that have the given processDefinitionKey."
55
+ },
56
+ "processDefinitionKeyIn": {
57
+ "type": "array",
58
+ "itemType": "string",
59
+ "desc": "Restricts to incidents that have one of the given process definition keys."
60
+ },
61
+ "processInstanceId": {
62
+ "type": "string",
63
+ "desc": "Restricts to incidents that belong to a process instance with the given id."
64
+ },
65
+ "executionId": {
66
+ "type": "string",
67
+ "desc": "Restricts to incidents that belong to an execution with the given id."
68
+ },
69
+ "createTimeBefore": {
70
+ "type": "string",
71
+ "format": "date-time",
72
+ "desc": "Restricts to incidents that have a createTime date before the given date. ${dateDefault}"
73
+ },
74
+ "createTimeAfter": {
75
+ "type": "string",
76
+ "format": "date-time",
77
+ "desc": "Restricts to incidents that have a createTime date after the given date. ${dateDefault}"
78
+ },
79
+ "endTimeBefore": {
80
+ "type": "string",
81
+ "format": "date-time",
82
+ "desc": "Restricts to incidents that have an endTimeBefore date before the given date. ${dateDefault}"
83
+ },
84
+ "endTimeAfter": {
85
+ "type": "string",
86
+ "format": "date-time",
87
+ "desc": "Restricts to incidents that have an endTimeAfter date after the given date. ${dateDefault}"
88
+ },
89
+ "activityId": {
90
+ "type": "string",
91
+ "desc": "Restricts to incidents that belong to an activity with the given id."
92
+ },
93
+ "failedActivityId": {
94
+ "type": "string",
95
+ "desc": "Restricts to incidents that were created due to the failure of an activity with the given
96
+ id."
97
+ },
98
+ "causeIncidentId": {
99
+ "type": "string",
100
+ "desc": "Restricts to incidents that have the given incident id as cause incident."
101
+ },
102
+ "rootCauseIncidentId": {
103
+ "type": "string",
104
+ "desc": "Restricts to incidents that have the given incident id as root cause incident."
105
+ },
106
+ "configuration": {
107
+ "type": "string",
108
+ "desc": "Restricts to incidents that have the given parameter set as configuration."
109
+ },
110
+ "historyConfiguration": {
111
+ "type": "string",
112
+ "desc": "Restricts to incidents that have the given parameter set as history configuration."
113
+ },
114
+ "open": {
115
+ "type": "boolean",
116
+ "desc": "Restricts to incidents that are open."
117
+ },
118
+ "resolved": {
119
+ "type": "boolean",
120
+ "desc": "Restricts to incidents that are resolved."
121
+ },
122
+ "deleted": {
123
+ "type": "boolean",
124
+ "desc": "Restricts to incidents that are deleted."
125
+ },
126
+ "tenantIdIn": {
127
+ "type": "array",
128
+ "itemType": "string",
129
+ "desc": "Restricts to incidents that have one of the given comma-separated tenant ids."
130
+ },
131
+ "withoutTenantId": {
132
+ "type": "boolean",
133
+ "desc": "Only include historic incidents that belong to no tenant. Value may only be
134
+ `true`, as `false` is the default behavior."
135
+ },
136
+ "jobDefinitionIdIn": {
137
+ "type": "array",
138
+ "itemType": "string",
139
+ "desc": "Restricts to incidents that have one of the given comma-separated job definition ids."
140
+ }
141
+ }>
source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/historic-variable-instance-query-params.ftl ADDED
@@ -0,0 +1,115 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <#-- Generated From File: camunda-docs-manual/public/reference/rest/history/variable-instance/get-variable-instance-query/index.html -->
2
+ <#-- Generated From File: camunda-docs-manual/public/reference/rest/history/variable-instance/post-variable-instance-query/index.html -->
3
+
4
+ <#assign sortByValues = [
5
+ '"instanceId"','"variableName"','"tenantId"'
6
+ ]>
7
+
8
+ <#if requestMethod == "GET">
9
+ <#assign variableValueDescription = "Is treated as a `String` object on server side.">
10
+ <#assign paramListType = "and comma-separated">
11
+ <#elseif requestMethod == "POST">
12
+ <#assign variableValueDescription = "May be `String`, `Number` or `Boolean`.">
13
+ <#assign paramListType = "">
14
+ </#if>
15
+
16
+ <#assign params = {
17
+ "variableName": {
18
+ "type": "string",
19
+ "desc": "Filter by variable name."
20
+ },
21
+ "variableNameLike": {
22
+ "type": "string",
23
+ "desc": "Restrict to variables with a name like the parameter."
24
+ },
25
+ "variableValue": {
26
+ "type": "object",
27
+ "desc": "Filter by variable value. ${variableValueDescription}"
28
+ },
29
+ "variableNamesIgnoreCase": {
30
+ "type": "boolean",
31
+ "desc": "Match the variable name provided in `variableName` and `variableNameLike` case-
32
+ insensitively. If set to `true` **variableName** and **variablename** are
33
+ treated as equal."
34
+ },
35
+ "variableValuesIgnoreCase": {
36
+ "type": "boolean",
37
+ "desc": "Match the variable value provided in `variableValue` case-insensitively. If set to `true`
38
+ **variableValue** and **variablevalue** are treated as equal."
39
+ },
40
+ "variableTypeIn": {
41
+ "type": "array",
42
+ "itemType": "string",
43
+ "desc": "Only include historic variable instances which belong to one of the passed and comma-
44
+ separated variable types. A list of all supported variable types can be found
45
+ [here](${docsUrl}/user-guide/process-engine/variables/#supported-variable-values).
46
+ **Note:** All non-primitive variables are associated with the type
47
+ 'serializable'."
48
+ },
49
+ "includeDeleted": {
50
+ "type": "boolean",
51
+ "desc": "Include variables that has already been deleted during the execution."
52
+ },
53
+ "processInstanceId": {
54
+ "type": "string",
55
+ "desc": "Filter by the process instance the variable belongs to."
56
+ },
57
+ "processInstanceIdIn": {
58
+ "type": "array",
59
+ "itemType": "string",
60
+ "desc": "Only include historic variable instances which belong to one of the passed ${paramListType} process instance ids."
61
+ },
62
+ "processDefinitionId": {
63
+ "type": "string",
64
+ "desc": "Filter by the process definition the variable belongs to."
65
+ },
66
+ "processDefinitionKey": {
67
+ "type": "string",
68
+ "desc": "Filter by a key of the process definition the variable belongs to."
69
+ },
70
+ "executionIdIn": {
71
+ "type": "array",
72
+ "itemType": "string",
73
+ "desc": "Only include historic variable instances which belong to one of the passed and ${paramListType} execution ids."
74
+ },
75
+ "caseInstanceId": {
76
+ "type": "string",
77
+ "desc": "Filter by the case instance the variable belongs to."
78
+ },
79
+ "caseExecutionIdIn": {
80
+ "type": "array",
81
+ "itemType": "string",
82
+ "desc": "Only include historic variable instances which belong to one of the passed and ${paramListType} case execution ids."
83
+ },
84
+ "caseActivityIdIn": {
85
+ "type": "array",
86
+ "itemType": "string",
87
+ "desc": "Only include historic variable instances which belong to one of the passed and ${paramListType} case activity ids."
88
+ },
89
+ "taskIdIn": {
90
+ "type": "array",
91
+ "itemType": "string",
92
+ "desc": "Only include historic variable instances which belong to one of the passed and ${paramListType} task ids."
93
+ },
94
+ "activityInstanceIdIn": {
95
+ "type": "array",
96
+ "itemType": "string",
97
+ "desc": "Only include historic variable instances which belong to one of the passed and ${paramListType} activity instance ids."
98
+ },
99
+ "tenantIdIn": {
100
+ "type": "array",
101
+ "itemType": "string",
102
+ "desc": "Only include historic variable instances which belong to one of the passed and comma-
103
+ separated tenant ids."
104
+ },
105
+ "withoutTenantId": {
106
+ "type": "boolean",
107
+ "desc": "Only include historic variable instances that belong to no tenant. Value may only be
108
+ `true`, as `false` is the default behavior."
109
+ },
110
+ "variableNameIn": {
111
+ "type": "array",
112
+ "itemType": "string",
113
+ "desc": "Only include historic variable instances which belong to one of the passed ${paramListType} variable names."
114
+ }
115
+ }>
source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/history-activity-instance.ftl ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <#assign sortByValues = [
2
+ '"activityInstanceId"',
3
+ '"instanceId"',
4
+ '"executionId"',
5
+ '"activityId"',
6
+ '"activityName"',
7
+ '"activityType"',
8
+ '"startTime"',
9
+ '"endTime"',
10
+ '"duration"',
11
+ '"definitionId"',
12
+ '"occurrence"',
13
+ '"tenantId"'
14
+ ]>
15
+
16
+ <#if requestMethod == "GET">
17
+ <#assign listTypeDescription = "Filter by a comma-separated list of ids">
18
+ <#elseif requestMethod == "POST">
19
+ <#assign listTypeDescription = "Must be a JSON array of Strings">
20
+ </#if>
21
+
22
+ <#assign params = {
23
+ "activityInstanceId": {
24
+ "type": "string",
25
+ "desc": "Filter by activity instance id."
26
+ },
27
+ "processInstanceId": {
28
+ "type": "string",
29
+ "desc": "Filter by process instance id."
30
+ },
31
+ "processDefinitionId": {
32
+ "type": "string",
33
+ "desc": "Filter by process definition id."
34
+ },
35
+ "executionId": {
36
+ "type": "string",
37
+ "desc": "Filter by the id of the execution that executed the activity instance."
38
+ },
39
+ "activityId": {
40
+ "type": "string",
41
+ "desc": "Filter by the activity id (according to BPMN 2.0 XML)."
42
+ },
43
+ "activityName": {
44
+ "type": "string",
45
+ "desc": "Filter by the activity name (according to BPMN 2.0 XML)."
46
+ },
47
+ "activityType": {
48
+ "type": "string",
49
+ "desc": "Filter by activity type."
50
+ },
51
+ "taskAssignee": {
52
+ "type": "string",
53
+ "desc": "Only include activity instances that are user tasks and assigned to a given user."
54
+ },
55
+ "finished": {
56
+ "type": "boolean",
57
+ "desc": "Only include finished activity instances.
58
+ Value may only be `true`, as `false` behaves the same as when the property is not set."
59
+ },
60
+ "unfinished": {
61
+ "type": "boolean",
62
+ "desc": "Only include unfinished activity instances.
63
+ Value may only be `true`, as `false` behaves the same as when the property is not set."
64
+ },
65
+ "canceled": {
66
+ "type": "boolean",
67
+ "desc": "Only include canceled activity instances.
68
+ Value may only be `true`, as `false` behaves the same as when the property is not set."
69
+ },
70
+ "completeScope": {
71
+ "type": "boolean",
72
+ "desc": "Only include activity instances which completed a scope.
73
+ Value may only be `true`, as `false` behaves the same as when the property is not set."
74
+ },
75
+ "startedBefore": {
76
+ "type": "string",
77
+ "format": "date-time",
78
+ "desc": "Restrict to instances that were started before the given date. By [default](${docsUrl}/reference/rest/overview/date-format/),
79
+ the date must have the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.000+0200`."
80
+ },
81
+ "startedAfter": {
82
+ "type": "string",
83
+ "format": "date-time",
84
+ "desc": "Restrict to instances that were started after the given date. By [default](${docsUrl}/reference/rest/overview/date-format/),
85
+ the date must have the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.000+0200`."
86
+ },
87
+ "finishedBefore": {
88
+ "type": "string",
89
+ "format": "date-time",
90
+ "desc": "Restrict to instances that were finished before the given date. By [default](${docsUrl}/reference/rest/overview/date-format/),
91
+ the date must have the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.000+0200`."
92
+ },
93
+ "finishedAfter": {
94
+ "type": "string",
95
+ "format": "date-time",
96
+ "desc": "Restrict to instances that were finished after the given date. By [default](${docsUrl}/reference/rest/overview/date-format/),
97
+ the date must have the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.000+0200`."
98
+ },
99
+ "tenantIdIn": {
100
+ "type": "array",
101
+ "itemType": "string",
102
+ "desc": "${listTypeDescription}. An activity instance must have one of the given tenant ids."
103
+ },
104
+ "withoutTenantId": {
105
+ "type": "boolean",
106
+ "desc": "Only include historic activity instances that belong to no tenant. Value may only be `true`, as `false` is the default behavior."
107
+ }
108
+ }>
source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/history-cleanable-decision-definition-query-params.ftl ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <#assign sortByValues = [
2
+ 'finished'
3
+ ]>
4
+
5
+ <#assign params = {
6
+ "decisionDefinitionIdIn": {
7
+ "type": "array",
8
+ "itemType": "string",
9
+ "desc": "Filter by decision definition ids. Must be a comma-separated list of decision definition ids."
10
+ },
11
+
12
+ "decisionDefinitionKeyIn": {
13
+ "type": "array",
14
+ "itemType": "string",
15
+ "desc": "Filter by decision definition keys. Must be a comma-separated list of decision definition keys."
16
+ },
17
+
18
+ "tenantIdIn": {
19
+ "type": "array",
20
+ "itemType": "string",
21
+ "desc": "Filter by a comma-separated list of tenant ids. A decision definition must have one of the given tenant
22
+ ids."
23
+ },
24
+
25
+ "withoutTenantId": {
26
+ "type": "boolean",
27
+ "desc": "Only include decision definitions which belong to no tenant. Value may only be `true`, as `false`
28
+ is the default behavior."
29
+ },
30
+
31
+ "compact": {
32
+ "type": "boolean",
33
+ "desc": "Only include decision instances which have more than zero finished instances. Value may only be `true`,
34
+ as `false` is the default behavior."
35
+ }
36
+ }>
source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/history-detail-query-params.ftl ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <#assign sortByValues = [
2
+ '"processInstanceId"',
3
+ '"variableName"',
4
+ '"variableType"',
5
+ '"variableRevision"',
6
+ '"formPropertyId"',
7
+ '"time"',
8
+ '"occurrence"',
9
+ '"tenantId"'
10
+ ]>
11
+
12
+ <#assign dateFormatDescription = "Default [format](${docsUrl}/reference/rest/overview/date-format/)
13
+ `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., 2013-01-23T14:42:45.000+0200."/>
14
+ <#if requestMethod == "GET">
15
+ <#assign listType = "comma-separated">
16
+ <#elseif requestMethod == "POST">
17
+ <#assign listType = "">
18
+ </#if>
19
+
20
+ <#assign params = {
21
+ "processInstanceId": {
22
+ "type": "string",
23
+ "desc": "Filter by process instance id."
24
+ },
25
+ "processInstanceIdIn": {
26
+ "type": "array",
27
+ "itemType": "string",
28
+ "desc": "Only include historic details which belong to one of the passed ${listType} process instance ids."
29
+ },
30
+ "executionId": {
31
+ "type": "string",
32
+ "desc": "Filter by execution id."
33
+ },
34
+ "taskId": {
35
+ "type": "string",
36
+ "desc": "Filter by task id."
37
+ },
38
+ "activityInstanceId": {
39
+ "type": "string",
40
+ "desc": "Filter by activity instance id."
41
+ },
42
+ "caseInstanceId": {
43
+ "type": "string",
44
+ "desc": "Filter by case instance id."
45
+ },
46
+ "caseExecutionId": {
47
+ "type": "string",
48
+ "desc": "Filter by case execution id."
49
+ },
50
+ "variableInstanceId": {
51
+ "type": "string",
52
+ "desc": "Filter by variable instance id."
53
+ },
54
+ "variableTypeIn": {
55
+ "type": "array",
56
+ "itemType": "string",
57
+ "desc": "Only include historic details where the variable updates belong to one of the passed ${listType}
58
+ list of variable types. A list of all supported variable types can be found
59
+ [here](${docsUrl}/user-guide/process-engine/variables/#supported-variable-values).
60
+ **Note:** All non-primitive variables are associated with the type `serializable`."
61
+ },
62
+ "variableNameLike": {
63
+ "type": "string",
64
+ "desc": "Filter by variable name like. Example usage: `variableNameLike(%camunda%)`. The query will match the names of variables in a case-insensitive way."
65
+ },
66
+ "tenantIdIn": {
67
+ "type": "array",
68
+ "itemType": "string",
69
+ "desc": "Filter by a ${listType} list of tenant ids."
70
+ },
71
+ "withoutTenantId": {
72
+ "type": "boolean",
73
+ "desc": "Only include historic details that belong to no tenant. Value may only be
74
+ `true`, as `false` is the default behavior."
75
+ },
76
+ "userOperationId": {
77
+ "type": "string",
78
+ "desc": "Filter by a user operation id."
79
+ },
80
+ "formFields": {
81
+ "type": "boolean",
82
+ "desc": "Only include `HistoricFormFields`. Value may only be `true`, as `false` is the default behavior."
83
+ },
84
+ "variableUpdates": {
85
+ "type": "boolean",
86
+ "desc": "Only include `HistoricVariableUpdates`. Value may only be `true`, as `false` is the default behavior."
87
+ },
88
+ "excludeTaskDetails": {
89
+ "type": "boolean",
90
+ "desc": "Excludes all task-related `HistoricDetails`, so only items which have no task id set will be selected.
91
+ When this parameter is used together with `taskId`, this call is ignored and task details are not excluded.
92
+ Value may only be `true`, as `false` is the default behavior."
93
+ },
94
+ "initial": {
95
+ "type": "boolean",
96
+ "desc": "Restrict to historic variable updates that contain only initial variable values.
97
+ Value may only be `true`, as `false` is the default behavior."
98
+ },
99
+ "occurredBefore": {
100
+ "type": "string",
101
+ "format": "date-time",
102
+ "desc": "Restrict to historic details that occured before the given date (including the date).
103
+ ${dateFormatDescription}"
104
+ },
105
+ "occurredAfter": {
106
+ "type": "string",
107
+ "format": "date-time",
108
+ "desc": "Restrict to historic details that occured after the given date (including the date).
109
+ ${dateFormatDescription}"
110
+ }
111
+ }
112
+ />
source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/history-identity-link.ftl ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <#-- Generated From File: camunda-docs-manual/public/reference/rest/history/identity-links/get-identity-link-query/index.html -->
2
+
3
+ <#assign sortByValues = [
4
+ '"time"',
5
+ '"type"',
6
+ '"userId"',
7
+ '"groupId"',
8
+ '"taskId"',
9
+ '"processDefinitionId"',
10
+ '"processDefinitionKey"',
11
+ '"operationType"',
12
+ '"assignerId"',
13
+ '"tenantId"'
14
+ ]>
15
+
16
+ <#assign params = {
17
+ "type": {
18
+ "type": "string",
19
+ "desc": "Restricts to identity links that have the given type (candidate/assignee/owner)."
20
+ },
21
+ "userId": {
22
+ "type": "string",
23
+ "desc": "Restricts to identity links that have the given user id."
24
+ },
25
+ "groupId": {
26
+ "type": "string",
27
+ "desc": "Restricts to identity links that have the given group id."
28
+ },
29
+ "dateBefore": {
30
+ "type": "string",
31
+ "format": "date-time",
32
+ "desc": "Restricts to identity links that have the time before the given time."
33
+ },
34
+ "dateAfter": {
35
+ "type": "string",
36
+ "format": "date-time",
37
+ "desc": "Restricts to identity links that have the time after the given time."
38
+ },
39
+ "taskId": {
40
+ "type": "string",
41
+ "desc": "Restricts to identity links that have the given task id."
42
+ },
43
+ "processDefinitionId": {
44
+ "type": "string",
45
+ "desc": "Restricts to identity links that have the given process definition id."
46
+ },
47
+ "processDefinitionKey": {
48
+ "type": "string",
49
+ "desc": "Restricts to identity links that have the given process definition key."
50
+ },
51
+ "operationType": {
52
+ "type": "string",
53
+ "desc": "Restricts to identity links that have the given operationType (add/delete)."
54
+ },
55
+ "assignerId": {
56
+ "type": "string",
57
+ "desc": "Restricts to identity links that have the given assigner id."
58
+ },
59
+ "tenantIdIn": {
60
+ "type": "array",
61
+ "itemType": "string",
62
+ "desc": "Filter by a comma-separated list of tenant ids."
63
+ },
64
+ "withoutTenantId": {
65
+ "type": "boolean",
66
+ "desc": "Only include historic identity links that belong to no tenant. Value may only be
67
+ `true`, as `false` is the default behavior."
68
+ }
69
+ }>
source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/history-job-log-params.ftl ADDED
@@ -0,0 +1,122 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <#-- Generated From File: camunda-docs-manual/public/reference/rest/history/job-log/get-job-log-query/index.html -->
2
+
3
+ <#assign sortByValues = [
4
+ '"timestamp"',
5
+ '"jobId"',
6
+ '"jobDefinitionId"',
7
+ '"jobDueDate"',
8
+ '"jobRetries"',
9
+ '"jobPriority"',
10
+ '"activityId"',
11
+ '"executionId"',
12
+ '"processInstanceId"',
13
+ '"processDefinitionId"',
14
+ '"processDefinitionKey"',
15
+ '"deploymentId"',
16
+ '"hostname"',
17
+ '"occurrence"',
18
+ '"tenantId"'
19
+ ]>
20
+
21
+ <#assign params = {
22
+ "logId": {
23
+ "type": "string",
24
+ "desc": "Filter by historic job log id."
25
+ },
26
+ "jobId": {
27
+ "type": "string",
28
+ "desc": "Filter by job id."
29
+ },
30
+ "jobExceptionMessage": {
31
+ "type": "string",
32
+ "desc": "Filter by job exception message."
33
+ },
34
+ "jobDefinitionId": {
35
+ "type": "string",
36
+ "desc": "Filter by job definition id."
37
+ },
38
+ "jobDefinitionType": {
39
+ "type": "string",
40
+ "desc": "Filter by job definition type. See the
41
+ [User Guide](${docsUrl}/user-guide/process-engine/the-job-executor/#job-creation)
42
+ for more information about job definition types."
43
+ },
44
+ "jobDefinitionConfiguration": {
45
+ "type": "string",
46
+ "desc": "Filter by job definition configuration."
47
+ },
48
+ "activityIdIn": {
49
+ "type": "array",
50
+ "itemType": "string",
51
+ "desc": "Only include historic job logs which belong to one of the passed activity ids."
52
+ },
53
+ "failedActivityIdIn": {
54
+ "type": "array",
55
+ "itemType": "string",
56
+ "desc": "Only include historic job logs which belong to failures of one of the passed activity ids."
57
+ },
58
+ "executionIdIn": {
59
+ "type": "array",
60
+ "itemType": "string",
61
+ "desc": "Only include historic job logs which belong to one of the passed execution ids."
62
+ },
63
+ "processInstanceId": {
64
+ "type": "string",
65
+ "desc": "Filter by process instance id."
66
+ },
67
+ "processDefinitionId": {
68
+ "type": "string",
69
+ "desc": "Filter by process definition id."
70
+ },
71
+ "processDefinitionKey": {
72
+ "type": "string",
73
+ "desc": "Filter by process definition key."
74
+ },
75
+ "deploymentId": {
76
+ "type": "string",
77
+ "desc": "Filter by deployment id."
78
+ },
79
+ "tenantIdIn": {
80
+ "type": "array",
81
+ "itemType": "string",
82
+ "desc": "Only include historic job log entries which belong to one of the passed and comma-
83
+ separated tenant ids."
84
+ },
85
+ "withoutTenantId": {
86
+ "type": "boolean",
87
+ "desc": "Only include historic job log entries that belong to no tenant. Value may only be
88
+ `true`, as `false` is the default behavior."
89
+ },
90
+ "hostname": {
91
+ "type": "string",
92
+ "desc": "Filter by hostname."
93
+ },
94
+ "jobPriorityLowerThanOrEquals": {
95
+ "type": "integer",
96
+ "format": "int64",
97
+ "desc": "Only include logs for which the associated job had a priority lower than or equal to the
98
+ given value. Value must be a valid `long` value."
99
+ },
100
+ "jobPriorityHigherThanOrEquals": {
101
+ "type": "integer",
102
+ "format": "int64",
103
+ "desc": "Only include logs for which the associated job had a priority higher than or equal to the
104
+ given value. Value must be a valid `long` value."
105
+ },
106
+ "creationLog": {
107
+ "type": "boolean",
108
+ "desc": "Only include creation logs. Value may only be `true`, as `false` is the default behavior."
109
+ },
110
+ "failureLog": {
111
+ "type": "boolean",
112
+ "desc": "Only include failure logs. Value may only be `true`, as `false` is the default behavior."
113
+ },
114
+ "successLog": {
115
+ "type": "boolean",
116
+ "desc": "Only include success logs. Value may only be `true`, as `false` is the default behavior."
117
+ },
118
+ "deletionLog": {
119
+ "type": "boolean",
120
+ "desc": "Only include deletion logs. Value may only be `true`, as `false` is the default behavior."
121
+ }
122
+ }>
source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/history-process-definition-activity-statistics.ftl ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <#-- Generated From File: camunda-docs-manual/public/reference/rest/history/process-definition/get-historic-activity-statistics-query/index.html -->
2
+
3
+ <#assign sortByValues = [
4
+ '"activityId"'
5
+ ]>
6
+
7
+ <#assign defaultDateFormat = "By [default](${docsUrl}/reference/rest/overview/date-format/),
8
+ the date must have the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`,
9
+ e.g., `2013-01-23T14:42:45.000+0200`." >
10
+
11
+ <#assign params = {
12
+ "canceled": {
13
+ "type": "boolean",
14
+ "desc": "Whether to include the number of canceled activity instances in the result or not. Valid
15
+ values are `true` or `false`. Default: `false`."
16
+ },
17
+ "finished": {
18
+ "type": "boolean",
19
+ "desc": "Whether to include the number of finished activity instances in the result or not. Valid
20
+ values are `true` or `false`. Default: `false`."
21
+ },
22
+ "completeScope": {
23
+ "type": "boolean",
24
+ "desc": "Whether to include the number of activity instances which completed a scope in the result
25
+ or not. Valid values are `true` or `false`. Default: `false`."
26
+ },
27
+ "incidents": {
28
+ "type": "boolean",
29
+ "desc": "Whether to include the number of incidents. Valid values are `true` or `false`. Default: `false`."
30
+ },
31
+ "startedBefore": {
32
+ "type": "string",
33
+ "format": "date-time",
34
+ "desc": "Restrict to process instances that were started before the given date. ${defaultDateFormat}"
35
+ },
36
+ "startedAfter": {
37
+ "type": "string",
38
+ "format": "date-time",
39
+ "desc": "Restrict to process instances that were started after the given date. ${defaultDateFormat}"
40
+ },
41
+ "finishedBefore": {
42
+ "type": "string",
43
+ "format": "date-time",
44
+ "desc": "Restrict to process instances that were finished before the given date. ${defaultDateFormat}"
45
+ },
46
+ "finishedAfter": {
47
+ "type": "string",
48
+ "format": "date-time",
49
+ "desc": "Restrict to process instances that were finished after the given date. ${defaultDateFormat}"
50
+ },
51
+ "processInstanceIdIn": {
52
+ "type": "array",
53
+ "itemType": "string",
54
+ "desc": "Restrict to process instances with the given IDs. The IDs must be provided as a comma-
55
+ separated list."
56
+ }
57
+ }>
source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/history-process-definition-process-instance-report.ftl ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <#-- Generated From File: camunda-docs-manual/public/reference/rest/history/process-definition/get-cleanable-process-instance-report-query/index.html -->
2
+
3
+ <#assign sortByValues = [
4
+ '"finished"'
5
+ ]>
6
+
7
+ <#assign params = {
8
+ "processDefinitionIdIn": {
9
+ "type": "array",
10
+ "itemType": "string",
11
+ "desc": "Filter by process definition ids. Must be a comma-separated list of process definition ids."
12
+ },
13
+ "processDefinitionKeyIn": {
14
+ "type": "array",
15
+ "itemType": "string",
16
+ "desc": "Filter by process definition keys. Must be a comma-separated list of process definition keys."
17
+ },
18
+ "tenantIdIn": {
19
+ "type": "array",
20
+ "itemType": "string",
21
+ "desc": "Filter by a comma-separated list of tenant ids. A process definition must have one of the given
22
+ tenant ids."
23
+ },
24
+ "withoutTenantId": {
25
+ "type": "boolean",
26
+ "desc": "Only include process definitions which belong to no tenant. Value may only be `true`, as
27
+ `false` is the default behavior."
28
+ },
29
+ "compact": {
30
+ "type": "boolean",
31
+ "desc": "Only include process instances which have more than zero finished instances. Value may
32
+ only be `true`, as `false` is the default behavior."
33
+ }
34
+ }>
source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/history-process-instance.ftl ADDED
@@ -0,0 +1,330 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <#assign sortByValues = [
2
+ '"instanceId"',
3
+ '"definitionId"',
4
+ '"definitionKey"',
5
+ '"definitionName"',
6
+ '"definitionVersion"',
7
+ '"businessKey"',
8
+ '"startTime"',
9
+ '"endTime"',
10
+ '"duration"',
11
+ '"tenantId"'
12
+ ]>
13
+
14
+ <#if requestMethod == "GET">
15
+
16
+ <#assign listTypeDescription = "Filter by a comma-separated list of `Strings`" />
17
+
18
+ <#assign variableDescription>Only include process instances that have/had variables with certain values.
19
+ Variable filtering expressions are comma-separated and are structured as follows:
20
+ A valid parameter value has the form `key_operator_value`. `key` is the variable name, `operator` is the comparison operator to be used and `value` the variable value.
21
+
22
+ **Note:** Values are always treated as String objects on server side.
23
+
24
+ Valid operator values are: `eq` - equal to; `neq` - not equal to; `gt` - greater than; `gteq` - greater than or equal to; `lt` - lower than; `lteq` - lower than or equal to; `like`.
25
+
26
+ Key and value may not contain underscore or comma characters.
27
+ </#assign>
28
+
29
+ <#elseif requestMethod == "POST">
30
+
31
+ <#assign listTypeDescription = "Must be a JSON array of `Strings`">
32
+
33
+ <#assign variableDescription>A JSON array to only include process instances that have/had variables with certain values.
34
+ The array consists of objects with the three properties `name`, `operator` and `value`. `name` (`String`) is the variable name,
35
+ `operator` (`String`) is the comparison operator to be used and `value` the variable value.
36
+
37
+ Value may be `String`, `Number` or `Boolean`.
38
+
39
+ Valid operator values are: `eq` - equal to; `neq` - not equal to; `gt` - greater than; `gteq` - greater than or equal to; `lt` - lower than; `lteq` - lower than or equal to; `like`.
40
+ </#assign>
41
+ </#if>
42
+
43
+ <#assign params = {
44
+ "processInstanceId": {
45
+ "type": "string",
46
+ "desc": "Filter by process instance id."
47
+ },
48
+
49
+ "processInstanceIds": {
50
+ "type": "array",
51
+ "itemType": "string",
52
+ "desc": "Filter by process instance ids. ${listTypeDescription}."
53
+ },
54
+
55
+ "processInstanceIdNotIn": {
56
+ "type": "array",
57
+ "itemType": "string",
58
+ "desc": "Exclude instances by process instance ids. ${listTypeDescription}."
59
+ },
60
+
61
+ "processDefinitionId": {
62
+ "type": "string",
63
+ "desc": "Filter by the process definition the instances run on."
64
+ },
65
+
66
+ "processDefinitionKey": {
67
+ "type": "string",
68
+ "desc": "Filter by the key of the process definition the instances run on."
69
+ },
70
+
71
+ "processDefinitionKeyIn": {
72
+ "type": "array",
73
+ "itemType": "string",
74
+ "desc": "Filter by a list of process definition keys. A process instance must have one of the given process definition keys. ${listTypeDescription}."
75
+ },
76
+ "processDefinitionName": {
77
+ "type": "string",
78
+ "desc": "Filter by the name of the process definition the instances run on."
79
+ },
80
+
81
+ "processDefinitionNameLike": {
82
+ "type": "string",
83
+ "desc": "Filter by process definition names that the parameter is a substring of."
84
+ },
85
+
86
+ "processDefinitionKeyNotIn": {
87
+ "type": "array",
88
+ "itemType": "string",
89
+ "desc": "Exclude instances that belong to a set of process definitions. ${listTypeDescription}."
90
+ },
91
+ "processInstanceBusinessKey": {
92
+ "type": "string",
93
+ "desc": "Filter by process instance business key."
94
+ },
95
+ "processInstanceBusinessKeyIn": {
96
+ "type": "array",
97
+ "itemType": "string",
98
+ "desc": "Filter by a list of business keys. A process instance must have one of the given business keys. ${listTypeDescription}"
99
+ },
100
+
101
+ "processInstanceBusinessKeyLike": {
102
+ "type": "string",
103
+ "desc": "Filter by process instance business key that the parameter is a substring of."
104
+ },
105
+
106
+ "rootProcessInstances": {
107
+ "type": "boolean",
108
+ "desc": "Restrict the query to all process instances that are top level process instances."
109
+ },
110
+
111
+ "rootProcessInstanceId": {
112
+ "type": "string",
113
+ "desc": "Filter by root process instance id."
114
+ },
115
+
116
+ "finished": {
117
+ "type": "boolean",
118
+ "desc": "Only include finished process instances. This flag includes all process instances
119
+ that are completed or terminated. Value may only be `true`, as `false` is the default behavior."
120
+ },
121
+
122
+ "unfinished": {
123
+ "type": "boolean",
124
+ "desc": "Only include unfinished process instances. Value may only be `true`, as `false` is the default behavior."
125
+ },
126
+
127
+ "withJobsRetrying": {
128
+ "type": "boolean",
129
+ "desc": "Only include process instances which are associated with jobs that have encountered exceptions and still
130
+ have retries left. Value may only be `true`, as `false` is the default behavior."
131
+ },
132
+
133
+ "withIncidents": {
134
+ "type": "boolean",
135
+ "desc": "Only include process instances which have an incident. Value may only be `true`, as `false` is the default behavior."
136
+ },
137
+
138
+ "withRootIncidents": {
139
+ "type": "boolean",
140
+ "desc": "Only include process instances which have a root incident. Value may only be `true`, as `false` is the default behavior."
141
+ },
142
+
143
+ "incidentIdIn": {
144
+ "type": "array",
145
+ "itemType": "string",
146
+ "desc": "Restrict to instances that have an incident with one of the given ids. ${listTypeDescription}"
147
+ },
148
+
149
+ "incidentType": {
150
+ "type": "string",
151
+ "desc": "Filter by the incident type. See the [User Guide](${docsUrl}/user-guide/process-engine/incidents/#incident-types) for a list of incident types."
152
+ },
153
+ "incidentStatus": {
154
+ "type": "string",
155
+ "enumValues": ["open", "resolved"],
156
+ "desc": "Only include process instances which have an incident in status either open or resolved. To get all process instances, use the query parameter withIncidents."
157
+ },
158
+ "incidentMessage": {
159
+ "type": "string",
160
+ "desc": "Filter by the incident message. Exact match."
161
+ },
162
+
163
+ "incidentMessageLike": {
164
+ "type": "string",
165
+ "desc": "Filter by the incident message that the parameter is a substring of."
166
+ },
167
+
168
+ "startedBefore": {
169
+ "type": "string",
170
+ "format": "date-time",
171
+ "desc": "Restrict to instances that were started before the given date.
172
+ By [default](${docsUrl}/reference/rest/overview/date-format/), the date must have the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.000+0200`."
173
+ },
174
+ "startedAfter": {
175
+ "type": "string",
176
+ "format": "date-time",
177
+ "desc": "Restrict to instances that were started after the given date.
178
+ By [default](${docsUrl}/reference/rest/overview/date-format/), the date must have the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.000+0200`."
179
+ },
180
+ "finishedBefore": {
181
+ "type": "string",
182
+ "format": "date-time",
183
+ "desc": "Restrict to instances that were finished before the given date.
184
+ By [default](${docsUrl}/reference/rest/overview/date-format/), the date must have the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.000+0200`."
185
+ },
186
+ "finishedAfter": {
187
+ "type": "string",
188
+ "format": "date-time",
189
+ "desc": "Restrict to instances that were finished after the given date.
190
+ By [default](${docsUrl}/reference/rest/overview/date-format/), the date must have the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.000+0200`."
191
+ },
192
+ "executedActivityAfter": {
193
+ "type": "string",
194
+ "format": "date-time",
195
+ "desc": "Restrict to instances that executed an activity after the given date (inclusive).
196
+ By [default](${docsUrl}/reference/rest/overview/date-format/), the date must have the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.000+0200`."
197
+ },
198
+ "executedActivityBefore": {
199
+ "type": "string",
200
+ "format": "date-time",
201
+ "desc": "Restrict to instances that executed an activity before the given date (inclusive).
202
+ By [default](${docsUrl}/reference/rest/overview/date-format/), the date must have the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.000+0200`."
203
+ },
204
+ "executedJobAfter": {
205
+ "type": "string",
206
+ "format": "date-time",
207
+ "desc": "Restrict to instances that executed an job after the given date (inclusive).
208
+ By [default](${docsUrl}/reference/rest/overview/date-format/), the date must have the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.000+0200`."
209
+ },
210
+ "executedJobBefore": {
211
+ "type": "string",
212
+ "format": "date-time",
213
+ "desc": "Restrict to instances that executed an job before the given date (inclusive).
214
+ By [default](${docsUrl}/reference/rest/overview/date-format/), the date must have the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.000+0200`."
215
+ },
216
+ "startedBy": {
217
+ "type": "string",
218
+ "desc": "Only include process instances that were started by the given user."
219
+ },
220
+
221
+ "superProcessInstanceId": {
222
+ "type": "string",
223
+ "desc": "Restrict query to all process instances that are sub process instances of the given process instance. Takes a process instance id."
224
+ },
225
+
226
+ "subProcessInstanceId": {
227
+ "type": "string",
228
+ "desc": "Restrict query to one process instance that has a sub process instance with the given id."
229
+ },
230
+
231
+ "superCaseInstanceId": {
232
+ "type": "string",
233
+ "desc": "Restrict query to all process instances that are sub process instances of the given case instance. Takes a case instance id."
234
+ },
235
+
236
+ "subCaseInstanceId": {
237
+ "type": "string",
238
+ "desc": "Restrict query to one process instance that has a sub case instance with the given id."
239
+ },
240
+
241
+ "caseInstanceId": {
242
+ "type": "string",
243
+ "desc": "Restrict query to all process instances that are sub process instances of the given case instance. Takes a case instance id."
244
+ },
245
+
246
+ "tenantIdIn": {
247
+ "type": "array",
248
+ "itemType": "string",
249
+ "desc": "Filter by a list of tenant ids. A process instance must have one of the given tenant ids. ${listTypeDescription}"
250
+ },
251
+
252
+ "withoutTenantId": {
253
+ "type": "boolean",
254
+ "desc": "Only include historic process instances which belong to no tenant. Value may only be `true`, as `false` is the default behavior."
255
+ },
256
+
257
+ "activityIdIn": {
258
+ "type": "array",
259
+ "itemType": "string",
260
+ "desc": "Restrict to instances with an active activity with one of the given ids. In contrast to the `activeActivityIdIn` filter, it can query for async and incident activities. ${listTypeDescription}"
261
+ },
262
+
263
+ "executedActivityIdIn": {
264
+ "type": "array",
265
+ "itemType": "string",
266
+ "desc": "Restrict to instances that executed an activity with one of given ids. ${listTypeDescription}"
267
+ },
268
+
269
+ "activeActivityIdIn": {
270
+ "type": "array",
271
+ "itemType": "string",
272
+ "desc": "Restrict to instances that have an active activity with one of given ids. ${listTypeDescription}"
273
+ },
274
+
275
+ "active": {
276
+ "type": "boolean",
277
+ "desc": "Restrict to instances that are active."
278
+ },
279
+
280
+ "suspended": {
281
+ "type": "boolean",
282
+ "desc": "Restrict to instances that are suspended."
283
+ },
284
+
285
+ "completed": {
286
+ "type": "boolean",
287
+ "desc": "Restrict to instances that are completed."
288
+ },
289
+
290
+ "externallyTerminated": {
291
+ "type": "boolean",
292
+ "desc": "Restrict to instances that are externallyTerminated."
293
+ },
294
+
295
+ "internallyTerminated": {
296
+ "type": "boolean",
297
+ "desc": "Restrict to instances that are internallyTerminated."
298
+ },
299
+
300
+ "variables": {
301
+ "type": "array",
302
+ "dto": "VariableQueryParameterDto",
303
+ "desc": "${variableDescription}"
304
+ },
305
+
306
+ "variableNamesIgnoreCase": {
307
+ "type": "boolean",
308
+ "desc": "Match all variable names provided in variables case-insensitively. If set to `true` variableName and variablename are treated as equal."
309
+ },
310
+
311
+ "variableValuesIgnoreCase": {
312
+ "type": "boolean",
313
+ "desc": "Match all variable values provided in variables case-insensitively. If set to `true` variableValue and variablevalue are treated as equal."
314
+ },
315
+
316
+ "orQueries": {
317
+ "type": "array",
318
+ "dto": "HistoricProcessInstanceQueryDto",
319
+ "desc": "A JSON array of nested historic process instance queries with OR semantics.
320
+
321
+ A process instance matches a nested query if it fulfills at least one of the query's predicates.
322
+
323
+ With multiple nested queries, a process instance must fulfill at least one predicate of each query
324
+ ([Conjunctive Normal Form](https://en.wikipedia.org/wiki/Conjunctive_normal_form)).
325
+
326
+ All process instance query properties can be used except for: `sorting`
327
+
328
+ See the [User Guide](${docsUrl}/user-guide/process-engine/process-engine-api/#or-queries) for more information about OR queries."
329
+ }
330
+ }>
source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/history-task-instance-query-params.ftl ADDED
@@ -0,0 +1,356 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <#-- Generated From File: camunda-docs-manual/public/reference/rest/history/task/get-task-query/index.html -->
2
+
3
+ <#assign sortByValues = [
4
+ '"taskId"',
5
+ '"activityInstanceId"',
6
+ '"processDefinitionId"',
7
+ '"processInstanceId"',
8
+ '"executionId"',
9
+ '"duration"',
10
+ '"endTime"',
11
+ '"startTime"',
12
+ '"taskName"',
13
+ '"taskDescription"',
14
+ '"assignee"',
15
+ '"owner"',
16
+ '"dueDate"',
17
+ '"followUpDate"',
18
+ '"deleteReason"',
19
+ '"taskDefinitionKey"',
20
+ '"priority"',
21
+ '"caseDefinitionId"',
22
+ '"caseInstanceId"',
23
+ '"caseExecutionId"',
24
+ '"tenantId"'
25
+ ]>
26
+ <#assign dateFormatDescription = "By [default](${docsUrl}/reference/rest/overview/date-format/),
27
+ the date must have the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`,
28
+ e.g., `2013-01-23T14:42:45.000+0200`."
29
+ />
30
+
31
+ <#if requestMethod == "GET">
32
+ <#assign listType = "comma-separated">
33
+ <#elseif requestMethod == "POST">
34
+ <#assign listType = "">
35
+ </#if>
36
+
37
+ <#assign params = {
38
+ "taskId": {
39
+ "type": "string",
40
+ "desc": "Filter by task id."
41
+ },
42
+ "taskParentTaskId": {
43
+ "type": "string",
44
+ "desc": "Filter by parent task id."
45
+ },
46
+ "processInstanceId": {
47
+ "type": "string",
48
+ "desc": "Filter by process instance id."
49
+ },
50
+ "rootProcessInstanceId": {
51
+ "type": "string",
52
+ "desc": "Filter by root process instance id."
53
+ },
54
+ "processInstanceBusinessKey": {
55
+ "type": "string",
56
+ "desc": "Filter by process instance business key."
57
+ },
58
+ "processInstanceBusinessKeyIn": {
59
+ "type": "array",
60
+ "itemType": "string",
61
+ "desc": "Filter by process instances with one of the give business keys.
62
+ The keys need to be in a comma-separated list."
63
+ },
64
+ "processInstanceBusinessKeyLike": {
65
+ "type": "string",
66
+ "desc": "Filter by process instance business key that has the parameter value as a substring."
67
+ },
68
+ "executionId": {
69
+ "type": "string",
70
+ "desc": "Filter by the id of the execution that executed the task."
71
+ },
72
+ "processDefinitionId": {
73
+ "type": "string",
74
+ "desc": "Filter by process definition id."
75
+ },
76
+ "processDefinitionKey": {
77
+ "type": "string",
78
+ "desc": "Restrict to tasks that belong to a process definition with the given key."
79
+ },
80
+ "processDefinitionName": {
81
+ "type": "string",
82
+ "desc": "Restrict to tasks that belong to a process definition with the given name."
83
+ },
84
+ "caseInstanceId": {
85
+ "type": "string",
86
+ "desc": "Filter by case instance id."
87
+ },
88
+ "caseExecutionId": {
89
+ "type": "string",
90
+ "desc": "Filter by the id of the case execution that executed the task."
91
+ },
92
+ "caseDefinitionId": {
93
+ "type": "string",
94
+ "desc": "Filter by case definition id."
95
+ },
96
+ "caseDefinitionKey": {
97
+ "type": "string",
98
+ "desc": "Restrict to tasks that belong to a case definition with the given key."
99
+ },
100
+ "caseDefinitionName": {
101
+ "type": "string",
102
+ "desc": "Restrict to tasks that belong to a case definition with the given name."
103
+ },
104
+ "activityInstanceIdIn": {
105
+ "type": "array",
106
+ "itemType": "string",
107
+ "desc": "Only include tasks which belong to one of the passed ${listType} activity instance ids."
108
+ },
109
+ "taskName": {
110
+ "type": "string",
111
+ "desc": "Restrict to tasks that have the given name."
112
+ },
113
+ "taskNameLike": {
114
+ "type": "string",
115
+ "desc": "Restrict to tasks that have a name with the given parameter value as substring."
116
+ },
117
+ "taskDescription": {
118
+ "type": "string",
119
+ "desc": "Restrict to tasks that have the given description."
120
+ },
121
+ "taskDescriptionLike": {
122
+ "type": "string",
123
+ "desc": "Restrict to tasks that have a description that has the parameter value as a substring."
124
+ },
125
+ "taskDefinitionKey": {
126
+ "type": "string",
127
+ "desc": "Restrict to tasks that have the given key."
128
+ },
129
+ "taskDefinitionKeyIn": {
130
+ "type": "array",
131
+ "itemType": "string",
132
+ "desc": "Restrict to tasks that have one of the passed ${listType} task definition keys."
133
+ },
134
+ "taskDeleteReason": {
135
+ "type": "string",
136
+ "desc": "Restrict to tasks that have the given delete reason."
137
+ },
138
+ "taskDeleteReasonLike": {
139
+ "type": "string",
140
+ "desc": "Restrict to tasks that have a delete reason that has the parameter value as a substring."
141
+ },
142
+ "taskAssignee": {
143
+ "type": "string",
144
+ "desc": "Restrict to tasks that the given user is assigned to."
145
+ },
146
+ "taskAssigneeLike": {
147
+ "type": "string",
148
+ "desc": "Restrict to tasks that are assigned to users with the parameter value as a substring."
149
+ },
150
+ "taskOwner": {
151
+ "type": "string",
152
+ "desc": "Restrict to tasks that the given user owns."
153
+ },
154
+ "taskOwnerLike": {
155
+ "type": "string",
156
+ "desc": "Restrict to tasks that are owned by users with the parameter value as a substring."
157
+ },
158
+ "taskPriority": {
159
+ "type": "integer",
160
+ "format": "int32",
161
+ "desc": "Restrict to tasks that have the given priority."
162
+ },
163
+ "assigned": {
164
+ "type": "boolean",
165
+ "desc": "If set to `true`, restricts the query to all tasks that are assigned."
166
+ },
167
+ "unassigned": {
168
+ "type": "boolean",
169
+ "desc": "If set to `true`, restricts the query to all tasks that are unassigned."
170
+ },
171
+ "finished": {
172
+ "type": "boolean",
173
+ "desc": "Only include finished tasks. Value may only be `true`, as `false` is the default behavior."
174
+ },
175
+ "unfinished": {
176
+ "type": "boolean",
177
+ "desc": "Only include unfinished tasks. Value may only be `true`, as `false` is the default
178
+ behavior."
179
+ },
180
+ "processFinished": {
181
+ "type": "boolean",
182
+ "desc": "Only include tasks of finished processes. Value may only be `true`, as `false` is the
183
+ default behavior."
184
+ },
185
+ "processUnfinished": {
186
+ "type": "boolean",
187
+ "desc": "Only include tasks of unfinished processes. Value may only be `true`, as `false` is the
188
+ default behavior."
189
+ },
190
+ "taskDueDate": {
191
+ "type": "string",
192
+ "format": "date-time",
193
+ "desc": "Restrict to tasks that are due on the given date. ${dateFormatDescription}"
194
+ },
195
+ "taskDueDateBefore": {
196
+ "type": "string",
197
+ "format": "date-time",
198
+ "desc": "Restrict to tasks that are due before the given date. ${dateFormatDescription}"
199
+ },
200
+ "taskDueDateAfter": {
201
+ "type": "string",
202
+ "format": "date-time",
203
+ "desc": "Restrict to tasks that are due after the given date. ${dateFormatDescription}"
204
+ },
205
+ "withoutTaskDueDate": {
206
+ "type": "boolean",
207
+ "desc": "Only include tasks which have no due date. Value may only be `true`, as `false` is the
208
+ default behavior."
209
+ },
210
+ "taskFollowUpDate": {
211
+ "type": "string",
212
+ "format": "date-time",
213
+ "desc": "Restrict to tasks that have a followUp date on the given date. ${dateFormatDescription}"
214
+ },
215
+ "taskFollowUpDateBefore": {
216
+ "type": "string",
217
+ "format": "date-time",
218
+ "desc": "Restrict to tasks that have a followUp date before the given date. ${dateFormatDescription}"
219
+ },
220
+ "taskFollowUpDateAfter": {
221
+ "type": "string",
222
+ "format": "date-time",
223
+ "desc": "Restrict to tasks that have a followUp date after the given date. ${dateFormatDescription}"
224
+ },
225
+ "startedBefore": {
226
+ "type": "string",
227
+ "format": "date-time",
228
+ "desc": "Restrict to tasks that were started before the given date. ${dateFormatDescription}"
229
+ },
230
+ "startedAfter": {
231
+ "type": "string",
232
+ "format": "date-time",
233
+ "desc": "Restrict to tasks that were started after the given date. ${dateFormatDescription}"
234
+ },
235
+ "finishedBefore": {
236
+ "type": "string",
237
+ "format": "date-time",
238
+ "desc": "Restrict to tasks that were finished before the given date. ${dateFormatDescription}"
239
+ },
240
+ "finishedAfter": {
241
+ "type": "string",
242
+ "format": "date-time",
243
+ "desc": "Restrict to tasks that were finished after the given date. ${dateFormatDescription}"
244
+ },
245
+ "tenantIdIn": {
246
+ "type": "array",
247
+ "itemType": "string",
248
+ "desc": "Filter by a ${listType} list of tenant ids. A task instance must have one of the given
249
+ tenant ids."
250
+ },
251
+ "withoutTenantId": {
252
+ "type": "boolean",
253
+ "desc": "Only include historic task instances that belong to no tenant. Value may only be
254
+ `true`, as `false` is the default behavior."
255
+ },
256
+ "taskVariables": {
257
+ "type": "array",
258
+ "dto": "VariableQueryParameterDto",
259
+ "desc": "Only include tasks that have variables with certain values. Variable filtering expressions are
260
+ comma-separated and are structured as follows:
261
+
262
+ A valid parameter value has the form `key_operator_value`.
263
+ `key` is the variable name, `operator` is the comparison operator to be used
264
+ and `value` the variable value.
265
+ **Note:** Values are always treated as `String` objects on server side.
266
+
267
+
268
+ Valid operator values are:
269
+ * `eq` - equal to;
270
+ * `neq` - not equal to;
271
+ * `gt` - greater than;
272
+ * `gteq` - greater than or equal to;
273
+ * `lt` - lower than;
274
+ * `lteq` - lower than or equal to;
275
+ * `like`.
276
+
277
+ `key` and `value` may not contain underscore or comma characters."
278
+ },
279
+ "processVariables": {
280
+ "type": "array",
281
+ "dto": "VariableQueryParameterDto",
282
+ "desc": "Only include tasks that belong to process instances that have variables with certain
283
+ values. Variable filtering expressions are comma-separated and are structured as
284
+ follows:
285
+
286
+ A valid parameter value has the form `key_operator_value`.
287
+ `key` is the variable name, `operator` is the comparison operator to be used
288
+ and `value` the variable value.
289
+ **Note:** Values are always treated as `String` objects on server side.
290
+
291
+
292
+ Valid operator values are:
293
+ * `eq` - equal to;
294
+ * `neq` - not equal to;
295
+ * `gt` - greater than;
296
+ * `gteq` - greater than or equal to;
297
+ * `lt` - lower than;
298
+ * `lteq` - lower than or equal to;
299
+ * `like`;
300
+ * `notLike`.
301
+
302
+ `key` and `value` may not contain underscore or comma characters."
303
+ },
304
+ "variableNamesIgnoreCase": {
305
+ "type": "boolean",
306
+ "desc": "Match the variable name provided in `taskVariables` and `processVariables` case-
307
+ insensitively. If set to `true` **variableName** and **variablename** are
308
+ treated as equal."
309
+ },
310
+ "variableValuesIgnoreCase": {
311
+ "type": "boolean",
312
+ "desc": "Match the variable value provided in `taskVariables` and `processVariables` case-
313
+ insensitively. If set to `true` **variableValue** and **variablevalue** are
314
+ treated as equal."
315
+ },
316
+ "taskInvolvedUser": {
317
+ "type": "string",
318
+ "desc": "Restrict to tasks with a historic identity link to the given user."
319
+ },
320
+ "taskInvolvedGroup": {
321
+ "type": "string",
322
+ "desc": "Restrict to tasks with a historic identity link to the given group."
323
+ },
324
+ "taskHadCandidateUser": {
325
+ "type": "string",
326
+ "desc": "Restrict to tasks with a historic identity link to the given candidate user."
327
+ },
328
+ "taskHadCandidateGroup": {
329
+ "type": "string",
330
+ "desc": "Restrict to tasks with a historic identity link to the given candidate group."
331
+ },
332
+ "withCandidateGroups": {
333
+ "type": "boolean",
334
+ "desc": "Only include tasks which have a candidate group. Value may only be `true`,
335
+ as `false` is the default behavior."
336
+ },
337
+ "withoutCandidateGroups": {
338
+ "type": "boolean",
339
+ "desc": "Only include tasks which have no candidate group. Value may only be `true`,
340
+ as `false` is the default behavior."
341
+ },
342
+ "orQueries": {
343
+ "type": "array",
344
+ "dto": "HistoricTaskInstanceQueryDto",
345
+ "desc": "A JSON array of nested historic task instance queries with OR semantics.
346
+
347
+ A task instance matches a nested query if it fulfills at least one of the query's predicates.
348
+
349
+ With multiple nested queries, a task instance must fulfill at least one predicate of each query
350
+ ([Conjunctive Normal Form](https://en.wikipedia.org/wiki/Conjunctive_normal_form)).
351
+
352
+ All task instance query properties can be used except for: `sorting`, `withCandidateGroups`, ` withoutCandidateGroups`.
353
+
354
+ See the [User Guide](${docsUrl}/user-guide/process-engine/process-engine-api/#or-queries) for more information about OR queries."
355
+ }
356
+ }>
source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/incident-query-params.ftl ADDED
@@ -0,0 +1,113 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <@lib.parameter
2
+ name = "incidentId"
3
+ location = "query"
4
+ type = "string"
5
+ desc = "Restricts to incidents that have the given id." />
6
+
7
+ <@lib.parameter
8
+ name = "incidentType"
9
+ location = "query"
10
+ type = "string"
11
+ desc = "Restricts to incidents that belong to the given incident type. See the
12
+ [User Guide](${docsUrl}/user-guide/process-engine/incidents/#incident-types) for a list of incident
13
+ types." />
14
+
15
+ <@lib.parameter
16
+ name = "incidentMessage"
17
+ location = "query"
18
+ type = "string"
19
+ desc = "Restricts to incidents that have the given incident message." />
20
+
21
+ <@lib.parameter
22
+ name = "incidentMessageLike"
23
+ location = "query"
24
+ type = "string"
25
+ desc = "Restricts to incidents that incidents message is a substring of the given value. The string can include
26
+ the wildcard character '%' to express like-strategy: starts with (`string%`), ends with (`%string`) or
27
+ contains (`%string%`)." />
28
+
29
+ <@lib.parameter
30
+ name = "processDefinitionId"
31
+ location = "query"
32
+ type = "string"
33
+ desc = "Restricts to incidents that belong to a process definition with the given id." />
34
+
35
+ <@lib.parameter
36
+ name = "processDefinitionKeyIn"
37
+ location = "query"
38
+ type = "string"
39
+ desc = "Restricts to incidents that belong to a process definition with the given keys. Must be a
40
+ comma-separated list." />
41
+
42
+ <@lib.parameter
43
+ name = "processInstanceId"
44
+ location = "query"
45
+ type = "string"
46
+ desc = "Restricts to incidents that belong to a process instance with the given id." />
47
+
48
+ <@lib.parameter
49
+ name = "executionId"
50
+ location = "query"
51
+ type = "string"
52
+ desc = "Restricts to incidents that belong to an execution with the given id." />
53
+
54
+ <@lib.parameter
55
+ name = "incidentTimestampBefore"
56
+ location = "query"
57
+ type = "string"
58
+ format = "date-time"
59
+ desc = "Restricts to incidents that have an incidentTimestamp date before the given date.
60
+ By [default](${docsUrl}/reference/rest/overview/date-format/), the date
61
+ must have the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.000+0200`." />
62
+
63
+ <@lib.parameter
64
+ name = "incidentTimestampAfter"
65
+ location = "query"
66
+ type = "string"
67
+ format = "date-time"
68
+ desc = "Restricts to incidents that have an incidentTimestamp date after the given date.
69
+ By [default](${docsUrl}/reference/rest/overview/date-format/), the date
70
+ must have the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.000+0200`." />
71
+
72
+ <@lib.parameter
73
+ name = "activityId"
74
+ location = "query"
75
+ type = "string"
76
+ desc = "Restricts to incidents that belong to an activity with the given id." />
77
+
78
+ <@lib.parameter
79
+ name = "failedActivityId"
80
+ location = "query"
81
+ type = "string"
82
+ desc = "Restricts to incidents that were created due to the failure of an activity with the given id." />
83
+
84
+ <@lib.parameter
85
+ name = "causeIncidentId"
86
+ location = "query"
87
+ type = "string"
88
+ desc = "Restricts to incidents that have the given incident id as cause incident." />
89
+
90
+ <@lib.parameter
91
+ name = "rootCauseIncidentId"
92
+ location = "query"
93
+ type = "string"
94
+ desc = "Restricts to incidents that have the given incident id as root cause incident." />
95
+
96
+ <@lib.parameter
97
+ name = "configuration"
98
+ location = "query"
99
+ type = "string"
100
+ desc = "Restricts to incidents that have the given parameter set as configuration." />
101
+
102
+ <@lib.parameter
103
+ name = "tenantIdIn"
104
+ location = "query"
105
+ type = "string"
106
+ desc = "Restricts to incidents that have one of the given comma-separated tenant ids." />
107
+
108
+ <@lib.parameter
109
+ name = "jobDefinitionIdIn"
110
+ location = "query"
111
+ type = "string"
112
+ last = last
113
+ desc = "Restricts to incidents that have one of the given comma-separated job definition ids." />
source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/job-definition-query-params.ftl ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <#-- Generated From File: camunda-docs-manual/public/reference/rest/job-definition/get-query/index.html -->
2
+
3
+ <#assign sortByValues = [
4
+ '"jobDefinitionId"',
5
+ '"activityId"',
6
+ '"processDefinitionId"',
7
+ '"processDefinitionKey"',
8
+ '"jobType"',
9
+ '"jobConfiguration"',
10
+ '"tenantId"'
11
+ ]>
12
+
13
+ <#if requestMethod == "GET">
14
+ <#assign listSeparator = " and comma-separated">
15
+ <#elseif requestMethod == "POST">
16
+ <#assign listSeparator = "">
17
+ </#if>
18
+
19
+ <#assign params = {
20
+ "jobDefinitionId": {
21
+ "type": "string",
22
+ "desc": "Filter by job definition id."
23
+ },
24
+ "activityIdIn": {
25
+ "type": "array",
26
+ "itemType": "string",
27
+ "desc": "Only include job definitions which belong to one of the passed${listSeparator} activity ids."
28
+ },
29
+ "processDefinitionId": {
30
+ "type": "string",
31
+ "desc": "Only include job definitions which exist for the given process definition id."
32
+ },
33
+ "processDefinitionKey": {
34
+ "type": "string",
35
+ "desc": "Only include job definitions which exist for the given process definition key."
36
+ },
37
+ "jobType": {
38
+ "type": "string",
39
+ "desc": "Only include job definitions which exist for the given job type. See the
40
+ [User Guide](${docsUrl}/user-guide/process-engine/the-job-executor/#job-creation)
41
+ for more information about job types."
42
+ },
43
+ "jobConfiguration": {
44
+ "type": "string",
45
+ "desc": "Only include job definitions which exist for the given job configuration. For example: for
46
+ timer jobs it is the timer configuration."
47
+ },
48
+ "active": {
49
+ "type": "boolean",
50
+ "desc": "Only include active job definitions. Value may only be `true`, as `false` is the default
51
+ behavior."
52
+ },
53
+ "suspended": {
54
+ "type": "boolean",
55
+ "desc": "Only include suspended job definitions. Value may only be `true`, as `false` is the
56
+ default behavior."
57
+ },
58
+ "withOverridingJobPriority": {
59
+ "type": "boolean",
60
+ "desc": "Only include job definitions that have an overriding job priority defined. The only
61
+ effective value is `true`. If set to `false`, this filter is not applied."
62
+ },
63
+ "tenantIdIn": {
64
+ "type": "array",
65
+ "itemType": "string",
66
+ "desc": "Only include job definitions which belong to one of the passed${listSeparator} tenant
67
+ ids."
68
+ },
69
+ "withoutTenantId": {
70
+ "type": "boolean",
71
+ "desc": "Only include job definitions which belong to no tenant. Value may only be `true`, as
72
+ `false` is the default behavior."
73
+ },
74
+ "includeJobDefinitionsWithoutTenantId": {
75
+ "type": "boolean",
76
+ "desc": "Include job definitions which belong to no tenant. Can be used in combination with
77
+ `tenantIdIn`. Value may only be `true`, as `false` is the default behavior."
78
+ }
79
+ }>
source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/job-query-params.ftl ADDED
@@ -0,0 +1,174 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <#-- Generated From File: camunda-docs-manual/public/reference/rest/job/get-query/index.html -->
2
+
3
+ <#assign sortByValues = [
4
+ '"jobId"',
5
+ '"executionId"',
6
+ '"processInstanceId"',
7
+ '"processDefinitionId"',
8
+ '"processDefinitionKey"',
9
+ '"jobPriority"',
10
+ '"jobRetries"',
11
+ '"jobDueDate"',
12
+ '"tenantId"'
13
+ ]>
14
+
15
+ <#if requestMethod == "GET">
16
+ <#assign listType = "comma-separated">
17
+ <#assign dueDateDesc = "Due date expressions are comma-separated and are structured as follows:
18
+
19
+ A valid condition value has the form `operator_value`.
20
+ `operator` is the comparison operator to be used and `value` the date value
21
+ as string.
22
+
23
+ Valid operator values are: `gt` - greater than; `lt` - lower than.
24
+ `value` may not contain underscore or comma characters.">
25
+ <#assign createTimesDesc = "
26
+ Create time expressions are comma-separated and are structured as
27
+ follows:
28
+
29
+ A valid condition value has the form `operator_value`.
30
+ `operator` is the comparison operator to be used and `value` the date value
31
+ as string.
32
+
33
+ Valid operator values are: `gt` - greater than; `lt` - lower than.
34
+ `value` may not contain underscore or comma characters.">
35
+
36
+ <#elseif requestMethod == "POST">
37
+ <#assign listType = "">
38
+ <#assign dueDateDesc = "">
39
+ <#assign createTimesDesc = "">
40
+ </#if>
41
+
42
+ <#assign params = {
43
+ "jobId": {
44
+ "type": "string",
45
+ "desc": "Filter by job id."
46
+ },
47
+ "jobIds": {
48
+ "type": "array",
49
+ "itemType": "string",
50
+ "desc": "Filter by a ${listType} list of job ids."
51
+ },
52
+ "jobDefinitionId": {
53
+ "type": "string",
54
+ "desc": "Only select jobs which exist for the given job definition."
55
+ },
56
+ "processInstanceId": {
57
+ "type": "string",
58
+ "desc": "Only select jobs which exist for the given process instance."
59
+ },
60
+ "processInstanceIds": {
61
+ "type": "array",
62
+ "itemType": "string",
63
+ "desc": "Only select jobs which exist for the given ${listType} list of process instance ids."
64
+ },
65
+ "executionId": {
66
+ "type": "string",
67
+ "desc": "Only select jobs which exist for the given execution."
68
+ },
69
+ "processDefinitionId": {
70
+ "type": "string",
71
+ "desc": "Filter by the id of the process definition the jobs run on."
72
+ },
73
+ "processDefinitionKey": {
74
+ "type": "string",
75
+ "desc": "Filter by the key of the process definition the jobs run on."
76
+ },
77
+ "activityId": {
78
+ "type": "string",
79
+ "desc": "Only select jobs which exist for an activity with the given id."
80
+ },
81
+ "withRetriesLeft": {
82
+ "type": "boolean",
83
+ "desc": "Only select jobs which have retries left. Value may only be `true`, as `false` is the
84
+ default behavior."
85
+ },
86
+ "executable": {
87
+ "type": "boolean",
88
+ "desc": "Only select jobs which are executable, i.e., retries > 0 and due date is `null` or due
89
+ date is in the past. Value may only be `true`, as `false` is the default
90
+ behavior."
91
+ },
92
+ "timers": {
93
+ "type": "boolean",
94
+ "desc": "Only select jobs that are timers. Cannot be used together with `messages`. Value may only
95
+ be `true`, as `false` is the default behavior."
96
+ },
97
+ "messages": {
98
+ "type": "boolean",
99
+ "desc": "Only select jobs that are messages. Cannot be used together with `timers`. Value may only
100
+ be `true`, as `false` is the default behavior."
101
+ },
102
+ "dueDates": {
103
+ "type": "array",
104
+ "dto": "JobConditionQueryParameterDto",
105
+ "desc": "Only select jobs where the due date is lower or higher than the given date.
106
+ ${dueDateDesc}"
107
+ },
108
+ "createTimes": {
109
+ "type": "array",
110
+ "dto": "JobConditionQueryParameterDto",
111
+ "desc": "Only select jobs created before or after the given date.
112
+ ${createTimesDesc}"
113
+ },
114
+ "withException": {
115
+ "type": "boolean",
116
+ "desc": "Only select jobs that failed due to an exception. Value may only be `true`, as `false` is
117
+ the default behavior."
118
+ },
119
+ "exceptionMessage": {
120
+ "type": "string",
121
+ "desc": "Only select jobs that failed due to an exception with the given message."
122
+ },
123
+ "failedActivityId": {
124
+ "type": "string",
125
+ "desc": "Only select jobs that failed due to an exception at an activity with the given id."
126
+ },
127
+ "noRetriesLeft": {
128
+ "type": "boolean",
129
+ "desc": "Only select jobs which have no retries left. Value may only be `true`, as `false` is the
130
+ default behavior."
131
+ },
132
+ "active": {
133
+ "type": "boolean",
134
+ "desc": "Only include active jobs. Value may only be `true`, as `false` is the default behavior."
135
+ },
136
+ "suspended": {
137
+ "type": "boolean",
138
+ "desc": "Only include suspended jobs. Value may only be `true`, as `false` is the default behavior."
139
+ },
140
+ "priorityLowerThanOrEquals": {
141
+ "type": "integer",
142
+ "format": "int64",
143
+ "desc": "Only include jobs with a priority lower than or equal to the given value. Value must be a
144
+ valid `long` value."
145
+ },
146
+ "priorityHigherThanOrEquals": {
147
+ "type": "integer",
148
+ "format": "int64",
149
+ "desc": "Only include jobs with a priority higher than or equal to the given value. Value must be a
150
+ valid `long` value."
151
+ },
152
+ "tenantIdIn": {
153
+ "type": "array",
154
+ "itemType": "string",
155
+ "desc": "Only include jobs which belong to one of the passed ${listType} tenant ids."
156
+ },
157
+ "withoutTenantId": {
158
+ "type": "boolean",
159
+ "desc": "Only include jobs which belong to no tenant. Value may only be `true`, as `false` is the
160
+ default behavior."
161
+ },
162
+ "includeJobsWithoutTenantId": {
163
+ "type": "boolean",
164
+ "desc": "Include jobs which belong to no tenant. Can be used in combination with `tenantIdIn`.
165
+ Value may only be `true`, as `false` is the default behavior."
166
+ },
167
+ "acquired": {
168
+ "type": "boolean",
169
+ "desc": "Only select jobs which are acquired, i.e., lock expiration date is not null, lock expiration
170
+ date is in future. Value may only be `true`, as `false` is the default
171
+ behavior. This does not take account if the job is suspended. This filter can be used with the
172
+ suspension filter."
173
+ }
174
+ }>
source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/pagination-params.ftl ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <@lib.parameter
2
+ name = "firstResult"
3
+ location = "query"
4
+ type = "integer"
5
+ desc = "Pagination of results. Specifies the index of the first result to return."/>
6
+
7
+ <@lib.parameter
8
+ name = "maxResults"
9
+ location = "query"
10
+ type = "integer"
11
+ last = last
12
+ desc = "Pagination of results. Specifies the maximum number of results to return.
13
+ Will return less results if there are no more results left."/>
source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/process-definition-query-params.ftl ADDED
@@ -0,0 +1,183 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <@lib.parameter name = "processDefinitionId"
2
+ location = "query"
3
+ type = "string"
4
+ desc = "Filter by process definition id."/>
5
+
6
+ <@lib.parameter name = "processDefinitionIdIn"
7
+ location = "query"
8
+ type = "string"
9
+ desc = "Filter by a comma-separated list of process definition ids."/>
10
+
11
+ <@lib.parameter name = "name"
12
+ location = "query"
13
+ type = "string"
14
+ desc = "Filter by process definition name."/>
15
+
16
+ <@lib.parameter name = "nameLike"
17
+ location = "query"
18
+ type = "string"
19
+ desc = "Filter by process definition names that the parameter is a substring of."/>
20
+
21
+ <@lib.parameter name = "deploymentId"
22
+ location = "query"
23
+ type = "string"
24
+ desc = "Filter by the deployment the id belongs to."/>
25
+
26
+ <@lib.parameter name = "deployedAfter"
27
+ location = "query"
28
+ type = "string"
29
+ format="date-time"
30
+ desc = "Filter by the deploy time of the deployment the process definition belongs to.
31
+ Only selects process definitions that have been deployed after (exclusive) a specific time.
32
+ By [default](${docsUrl}/reference/rest/overview/date-format/), the date must have the
33
+ format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g.,
34
+ `2013-01-23T14:42:45.546+0200`."/>
35
+
36
+ <@lib.parameter name = "deployedAt"
37
+ location = "query"
38
+ type = "string"
39
+ format="date-time"
40
+ desc = "Filter by the deploy time of the deployment the process definition belongs to.
41
+ Only selects process definitions that have been deployed at a specific time (exact match).
42
+ By [default](${docsUrl}/reference/rest/overview/date-format/), the date must have the
43
+ format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g.,
44
+ `2013-01-23T14:42:45.546+0200`."/>
45
+
46
+ <@lib.parameter name = "key"
47
+ location = "query"
48
+ type = "string"
49
+ desc = "Filter by process definition key, i.e., the id in the BPMN 2.0 XML. Exact match."/>
50
+
51
+ <@lib.parameter name = "keysIn"
52
+ location = "query"
53
+ type = "string"
54
+ desc = "Filter by a comma-separated list of process definition keys."/>
55
+
56
+ <@lib.parameter name = "keyLike"
57
+ location = "query"
58
+ type = "string"
59
+ desc = "Filter by process definition keys that the parameter is a substring of."/>
60
+
61
+ <@lib.parameter name = "category"
62
+ location = "query"
63
+ type = "string"
64
+ desc = "Filter by process definition category. Exact match."/>
65
+
66
+ <@lib.parameter name = "categoryLike"
67
+ location = "query"
68
+ type = "string"
69
+ desc = "Filter by process definition categories that the parameter is a substring of."/>
70
+
71
+ <@lib.parameter name = "version"
72
+ location = "query"
73
+ type = "integer"
74
+ format="int32"
75
+ desc = "Filter by process definition version."/>
76
+
77
+ <@lib.parameter name = "latestVersion"
78
+ location = "query"
79
+ type = "boolean"
80
+ desc = "Only include those process definitions that are latest versions.
81
+ Value may only be `true`, as `false` is the default behavior."/>
82
+
83
+ <@lib.parameter name = "resourceName"
84
+ location = "query"
85
+ type = "string"
86
+ desc = "Filter by the name of the process definition resource. Exact match."/>
87
+
88
+ <@lib.parameter name = "resourceNameLike"
89
+ location = "query"
90
+ type = "string"
91
+ desc = "Filter by names of those process definition resources that the parameter is a substring of."/>
92
+
93
+ <@lib.parameter name = "startableBy"
94
+ location = "query"
95
+ type = "string"
96
+ desc = "Filter by a user name who is allowed to start the process."/>
97
+
98
+ <@lib.parameter name = "active"
99
+ location = "query"
100
+ type = "boolean"
101
+ desc = "Only include active process definitions.
102
+ Value may only be `true`, as `false` is the default behavior."/>
103
+
104
+ <@lib.parameter name = "suspended"
105
+ location = "query"
106
+ type = "boolean"
107
+ desc = "Only include suspended process definitions.
108
+ Value may only be `true`, as `false` is the default behavior."/>
109
+
110
+ <@lib.parameter name = "incidentId"
111
+ location = "query"
112
+ type = "string"
113
+ desc = "Filter by the incident id."/>
114
+
115
+ <@lib.parameter name = "incidentType"
116
+ location = "query"
117
+ type = "string"
118
+ desc = "Filter by the incident type.
119
+ See the [User Guide](${docsUrl}/user-guide/process-engine/incidents/#incident-types)
120
+ for a list of incident types."/>
121
+
122
+ <@lib.parameter name = "incidentMessage"
123
+ location = "query"
124
+ type = "string"
125
+ desc = "Filter by the incident message. Exact match."/>
126
+
127
+ <@lib.parameter name = "incidentMessageLike"
128
+ location = "query"
129
+ type = "string"
130
+ desc = "Filter by the incident message that the parameter is a substring of."/>
131
+
132
+ <@lib.parameter name = "tenantIdIn"
133
+ location = "query"
134
+ type = "string"
135
+ desc = "Filter by a comma-separated list of tenant ids.
136
+ A process definition must have one of the given tenant ids."/>
137
+
138
+ <@lib.parameter name = "withoutTenantId"
139
+ location = "query"
140
+ type = "boolean"
141
+ desc = "Only include process definitions which belong to no tenant.
142
+ Value may only be true, as false is the default behavior." />
143
+
144
+ <@lib.parameter name = "includeProcessDefinitionsWithoutTenantId"
145
+ location = "query"
146
+ type = "boolean"
147
+ desc = "Include process definitions which belong to no tenant. Can be used in combination with `tenantIdIn`.
148
+ Value may only be `true`, as `false` is the default behavior."/>
149
+
150
+ <@lib.parameter name = "versionTag"
151
+ location = "query"
152
+ type = "string"
153
+ desc = "Filter by the version tag."/>
154
+
155
+ <@lib.parameter name = "versionTagLike"
156
+ location = "query"
157
+ type = "string"
158
+ desc = "Filter by the version tag that the parameter is a substring of."/>
159
+
160
+ <@lib.parameter name = "withoutVersionTag"
161
+ location = "query"
162
+ type = "boolean"
163
+ desc = "Only include process definitions without a `versionTag`."/>
164
+
165
+ <@lib.parameter name = "startableInTasklist"
166
+ location = "query"
167
+ type = "boolean"
168
+ desc = "Filter by process definitions which are startable in Tasklist.."/>
169
+
170
+ <@lib.parameter name = "notStartableInTasklist"
171
+ location = "query"
172
+ type = "boolean"
173
+ desc = "Filter by process definitions which are not startable in Tasklist."/>
174
+
175
+ <@lib.parameter name = "startablePermissionCheck"
176
+ location = "query"
177
+ type = "boolean"
178
+ last = last
179
+ desc = "Filter by process definitions which the user is allowed to start in Tasklist.
180
+ If the user doesn't have these permissions the result will be empty list.
181
+ The permissions are:
182
+ * `CREATE` permission for all Process instances
183
+ * `CREATE_INSTANCE` and `READ` permission on Process definition level"/>
source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/process-instance-query-params.ftl ADDED
@@ -0,0 +1,189 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <@lib.parameter name = "processInstanceIds"
2
+ location = "query"
3
+ type = "string"
4
+ desc = "Filter by a comma-separated list of process instance ids."/>
5
+
6
+ <@lib.parameter name = "businessKey"
7
+ location = "query"
8
+ type = "string"
9
+ desc = "Filter by process instance business key."/>
10
+
11
+ <@lib.parameter name = "businessKeyLike"
12
+ location = "query"
13
+ type = "string"
14
+ desc = "Filter by process instance business key that the parameter is a substring of."/>
15
+
16
+ <@lib.parameter
17
+ name = "caseInstanceId"
18
+ location = "query"
19
+ type = "string"
20
+ desc = "Filter by case instance id."/>
21
+
22
+ <@lib.parameter name = "processDefinitionId"
23
+ location = "query"
24
+ type = "string"
25
+ desc = "Filter by the deployment the id belongs to."/>
26
+
27
+ <@lib.parameter name = "processDefinitionKey"
28
+ location = "query"
29
+ type = "string"
30
+ desc = "Filter by the key of the process definition the instances run on."/>
31
+
32
+ <@lib.parameter name = "processDefinitionKeyIn"
33
+ location = "query"
34
+ type = "string"
35
+ desc = "Filter by a comma-separated list of process definition keys.
36
+ A process instance must have one of the given process definition keys."/>
37
+
38
+ <@lib.parameter name = "processDefinitionKeyNotIn"
39
+ location = "query"
40
+ type = "string"
41
+ desc = "Exclude instances by a comma-separated list of process definition keys.
42
+ A process instance must not have one of the given process definition keys."/>
43
+
44
+ <@lib.parameter name = "deploymentId"
45
+ location = "query"
46
+ type = "string"
47
+ desc = "Filter by the deployment the id belongs to."/>
48
+
49
+ <@lib.parameter name = "superProcessInstance"
50
+ location = "query"
51
+ type = "string"
52
+ desc = "Restrict query to all process instances that are sub process instances of the given process instance.
53
+ Takes a process instance id."/>
54
+
55
+ <@lib.parameter name = "subProcessInstance"
56
+ location = "query"
57
+ type = "string"
58
+ desc = "Restrict query to all process instances that have the given process instance as a sub process instance.
59
+ Takes a process instance id."/>
60
+
61
+ <@lib.parameter name = "superCaseInstance"
62
+ location = "query"
63
+ type = "string"
64
+ desc = "Restrict query to all process instances that are sub process instances of the given case instance.
65
+ Takes a case instance id."/>
66
+
67
+ <@lib.parameter name = "subCaseInstance"
68
+ location = "query"
69
+ type = "string"
70
+ desc = "Restrict query to all process instances that have the given case instance as a sub case instance.
71
+ Takes a case instance id."/>
72
+
73
+ <@lib.parameter name = "active"
74
+ location = "query"
75
+ type = "boolean"
76
+ defaultValue = 'false'
77
+ desc = "Only include active process instances. Value may only be true,
78
+ as false is the default behavior."/>
79
+
80
+ <@lib.parameter name = "suspended"
81
+ location = "query"
82
+ type = "boolean"
83
+ defaultValue = 'false'
84
+ desc = "Only include suspended process instances. Value may only be true,
85
+ as false is the default behavior."/>
86
+
87
+ <@lib.parameter name = "withIncident"
88
+ location = "query"
89
+ type = "boolean"
90
+ defaultValue = 'false'
91
+ desc = "Filter by presence of incidents. Selects only process instances that have an incident."/>
92
+
93
+ <@lib.parameter name = "incidentId"
94
+ location = "query"
95
+ type = "string"
96
+ desc = "Filter by the incident id."/>
97
+
98
+ <@lib.parameter name = "incidentType"
99
+ location = "query"
100
+ type = "string"
101
+ desc = "Filter by the incident type.
102
+ See the [User Guide](${docsUrl}/user-guide/process-engine/incidents/#incident-types)
103
+ for a list of incident types."/>
104
+
105
+ <@lib.parameter name = "incidentMessage"
106
+ location = "query"
107
+ type = "string"
108
+ desc = "Filter by the incident message. Exact match."/>
109
+
110
+ <@lib.parameter name = "incidentMessageLike"
111
+ location = "query"
112
+ type = "string"
113
+ desc = "Filter by the incident message that the parameter is a substring of."/>
114
+
115
+ <@lib.parameter name = "tenantIdIn"
116
+ location = "query"
117
+ type = "string"
118
+ desc = "Filter by a comma-separated list of tenant ids. A process instance must have one of the given tenant ids."/>
119
+
120
+ <@lib.parameter name = "withoutTenantId"
121
+ location = "query"
122
+ type = "boolean"
123
+ defaultValue = 'false'
124
+ desc = "Only include process instances which belong to no tenant."/>
125
+
126
+ <@lib.parameter name = "processDefinitionWithoutTenantId"
127
+ location = "query"
128
+ type = "boolean"
129
+ defaultValue = 'false'
130
+ desc = "Only include process instances which process definition has no tenant id."/>
131
+
132
+ <@lib.parameter name = "activityIdIn"
133
+ location = "query"
134
+ type = "string"
135
+ desc = "Filter by a comma-separated list of activity ids.
136
+ A process instance must currently wait in a leaf activity with one of the given activity ids."/>
137
+
138
+ <@lib.parameter name = "rootProcessInstances"
139
+ location = "query"
140
+ type = "boolean"
141
+ defaultValue = 'false'
142
+ desc = "Restrict the query to all process instances that are top level process instances."/>
143
+
144
+ <@lib.parameter name = "rootProcessInstanceId"
145
+ location = "query"
146
+ type = "string"
147
+ desc = "Filter by root process instance id."/>
148
+
149
+ <@lib.parameter name = "leafProcessInstances"
150
+ location = "query"
151
+ type = "boolean"
152
+ defaultValue = 'false'
153
+ desc = "Restrict the query to all process instances that are leaf instances. (i.e. don't have any sub instances)."/>
154
+
155
+ <@lib.parameter name = "variables"
156
+ location = "query"
157
+ type = "string"
158
+ desc = "Only include process instances that have variables with certain values.
159
+ Variable filtering expressions are comma-separated and are structured as follows:
160
+
161
+ A valid parameter value has the form `key_operator_value`. `key` is the variable name,
162
+ `operator` is the comparison operator to be used and `value` the variable value.
163
+
164
+ **Note**: Values are always treated as String objects on server side.
165
+
166
+ Valid `operator` values are:
167
+ `eq` - equal to;
168
+ `neq` - not equal to;
169
+ `gt` - greater than;
170
+ `gteq` - greater than or equal to;
171
+ `lt` - lower than;
172
+ `lteq` - lower than or equal to;
173
+ `like`.
174
+ `key` and `value` may not contain underscore or comma characters."/>
175
+
176
+ <@lib.parameter name = "variableNamesIgnoreCase"
177
+ location = "query"
178
+ type = "boolean"
179
+ defaultValue = 'false'
180
+ desc = "Match all variable names in this query case-insensitively.
181
+ If set to true variableName and variablename are treated as equal."/>
182
+
183
+ <@lib.parameter name = "variableValuesIgnoreCase"
184
+ location = "query"
185
+ type = "boolean"
186
+ defaultValue = 'false'
187
+ last = last
188
+ desc = "Match all variable values in this query case-insensitively.
189
+ If set to true variableValue and variablevalue are treated as equal."/>
source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/sort-params.ftl ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <@lib.parameter
2
+ name = "sortBy"
3
+ location = "query"
4
+ type = "string"
5
+ enumValues = sortByValues
6
+ desc = "Sort the results lexicographically by a given criterion.
7
+ Must be used in conjunction with the sortOrder parameter."/>
8
+
9
+ <@lib.parameter
10
+ name = "sortOrder"
11
+ location = "query"
12
+ type = "string"
13
+ enumValues = ['"asc"', '"desc"']
14
+ last = last
15
+ desc = "Sort the results in a given order. Values may be asc for ascending order or desc for descending order.
16
+ Must be used in conjunction with the sortBy parameter."/>
source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/sort-props.ftl ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <@lib.dto>
2
+
3
+ <#-- The sorting properties are defined in commons and are never "extended",
4
+ but have to be explicitly `#include`-ed in a `Dto.ftl`. There are two
5
+ reasons for this implementation:
6
+
7
+ 1. `sortBy` values must be dynamically defined. Changing the current
8
+ `dto` macro requires a lot of work, but brings little value.
9
+ 2. Different `Query` endpoints have different `sort` properties. Not all
10
+ properties (e.g. `parameters`) should be present everywhere. -->
11
+
12
+ <@lib.property
13
+ name = "sortBy"
14
+ type = "string"
15
+ enumValues = sortByValues
16
+ desc = "Sort the results lexicographically by a given criterion.
17
+ Must be used in conjunction with the sortOrder parameter." />
18
+
19
+ <@lib.property
20
+ name = "sortOrder"
21
+ type = "string"
22
+ enumValues = ['"asc"', '"desc"']
23
+ last = last
24
+ desc = "Sort the results in a given order. Values may be `asc` for ascending order or `desc` for
25
+ descending order. Must be used in conjunction with the sortBy parameter." />
26
+
27
+ <#if sortParamsDto?has_content>
28
+ , <#-- add a comma (,) if the `last` flag is set -->
29
+
30
+
31
+ <@lib.property
32
+ name = "parameters"
33
+ type = "ref"
34
+ dto = "${sortParamsDto}"
35
+ last = last />
36
+
37
+ </#if>
38
+
39
+ </@lib.dto>
source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/statistics-query-params.ftl ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <@lib.parameter
3
+ name = "failedJobs"
4
+ location = "query"
5
+ type = "boolean"
6
+ desc = "Whether to include the number of failed jobs in the result or not. Valid values are `true` or `false`."/>
7
+
8
+ <@lib.parameter
9
+ name = "incidents"
10
+ location = "query"
11
+ type = "boolean"
12
+ desc = "Valid values for this property are `true` or `false`.
13
+ If this property has been set to `true` the result will include the corresponding number of incidents
14
+ for each occurred incident type.
15
+ If it is set to `false`, the incidents will not be included in the result.
16
+ Cannot be used in combination with `incidentsForType`."/>
17
+
18
+ <@lib.parameter
19
+ name = "incidentsForType"
20
+ location = "query"
21
+ type = "string"
22
+ last = last
23
+ desc = "If this property has been set with any incident type (i.e., a string value) the result
24
+ will only include the number of incidents for the assigned incident type.
25
+ Cannot be used in combination with `incidents`.
26
+ See the [User Guide](${docsUrl}/user-guide/process-engine/incidents/#incident-types)
27
+ for a list of incident types."/>
source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/statistics-result-props.ftl ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <@lib.property
2
+ name = "id"
3
+ type = "string"
4
+ desc = "The id of the ${instanceType} the results are aggregated for."/>
5
+
6
+ <@lib.property
7
+ name = "instances"
8
+ type = "integer"
9
+ format = "int32"
10
+ nullable = false
11
+ desc = "The total number of running process instances of this ${instanceType}."/>
12
+
13
+ <@lib.property
14
+ name = "failedJobs"
15
+ type = "integer"
16
+ format = "int32"
17
+ nullable = false
18
+ desc = "The total number of failed jobs for the running instances.
19
+ **Note**: Will be `0` (not `null`), if failed jobs were excluded."/>
20
+
21
+ <@lib.property
22
+ name = "incidents"
23
+ type = "array"
24
+ dto = "IncidentStatisticsResultDto"
25
+ desc = "Each item in the resulting array is an object which contains `incidentType` and `incidentCount`.
26
+ **Note**: Will be an empty array, if `incidents` or `incidentsForType` were excluded.
27
+ Furthermore, the array will be also empty if no incidents were found."/>
28
+
29
+ <@lib.property
30
+ name = "@class"
31
+ type = "string"
32
+ desc = "The fully qualified class name of the data transfer object class.
33
+ The class name might change in future releases."
34
+ last = last />
source_data/pinned/camunda-dmn-examples/commit-ee4826e5e76c/engine-rest/engine-rest-openapi/src/main/templates/lib/commons/task-query-params.ftl ADDED
@@ -0,0 +1,697 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <@lib.parameter name = "taskId"
2
+ location = "query"
3
+ type = "string"
4
+ desc = "Restrict to task with the given id." />
5
+
6
+ <@lib.parameter name = "taskIdIn"
7
+ location = "query"
8
+ type = "string"
9
+ desc = "Restrict to tasks with any of the given ids." />
10
+
11
+ <@lib.parameter name = "processInstanceId"
12
+ location = "query"
13
+ type = "string"
14
+ desc = "Restrict to tasks that belong to process instances with the given id." />
15
+
16
+ <@lib.parameter name = "processInstanceIdIn"
17
+ location = "query"
18
+ type = "string"
19
+ desc = "Restrict to tasks that belong to process instances with the given ids." />
20
+
21
+ <@lib.parameter name = "processInstanceBusinessKey"
22
+ location = "query"
23
+ type = "string"
24
+ desc = "Restrict to tasks that belong to process instances with the given business key." />
25
+
26
+ <@lib.parameter name = "processInstanceBusinessKeyExpression"
27
+ location = "query"
28
+ type = "string"
29
+ desc = "Restrict to tasks that belong to process instances with the given business key which
30
+ is described by an expression. See the
31
+ [user guide](${docsUrl}/user-guide/process-engine/expression-language/#internal-context-functions)
32
+ for more information on available functions." />
33
+
34
+ <@lib.parameter name = "processInstanceBusinessKeyIn"
35
+ location = "query"
36
+ type = "string"
37
+ desc = "Restrict to tasks that belong to process instances with one of the give business keys.
38
+ The keys need to be in a comma-separated list." />
39
+
40
+ <@lib.parameter name = "processInstanceBusinessKeyLike"
41
+ location = "query"
42
+ type = "string"
43
+ desc = "Restrict to tasks that have a process instance business key that has the parameter
44
+ value as a substring." />
45
+
46
+ <@lib.parameter name = "processInstanceBusinessKeyLikeExpression"
47
+ location = "query"
48
+ type = "string"
49
+ desc = "Restrict to tasks that have a process instance business key that has the parameter
50
+ value as a substring and is described by an expression. See the
51
+ [user guide](${docsUrl}/user-guide/process-engine/expression-language/#internal-context-functions)
52
+ for more information on available functions." />
53
+
54
+ <@lib.parameter name = "processDefinitionId"
55
+ location = "query"
56
+ type = "string"
57
+ desc = "Restrict to tasks that belong to a process definition with the given id." />
58
+
59
+ <@lib.parameter name = "processDefinitionKey"
60
+ location = "query"
61
+ type = "string"
62
+ desc = "Restrict to tasks that belong to a process definition with the given key." />
63
+
64
+ <@lib.parameter name = "processDefinitionKeyIn"
65
+ location = "query"
66
+ type = "string"
67
+ desc = "Restrict to tasks that belong to a process definition with one of the given keys. The
68
+ keys need to be in a comma-separated list." />
69
+
70
+ <@lib.parameter name = "processDefinitionName"
71
+ location = "query"
72
+ type = "string"
73
+ desc = "Restrict to tasks that belong to a process definition with the given name." />
74
+
75
+ <@lib.parameter name = "processDefinitionNameLike"
76
+ location = "query"
77
+ type = "string"
78
+ desc = "Restrict to tasks that have a process definition name that has the parameter value as
79
+ a substring." />
80
+
81
+ <@lib.parameter name = "executionId"
82
+ location = "query"
83
+ type = "string"
84
+ desc = "Restrict to tasks that belong to an execution with the given id." />
85
+
86
+ <@lib.parameter name = "caseInstanceId"
87
+ location = "query"
88
+ type = "string"
89
+ desc = "Restrict to tasks that belong to case instances with the given id." />
90
+
91
+ <@lib.parameter name = "caseInstanceBusinessKey"
92
+ location = "query"
93
+ type = "string"
94
+ desc = "Restrict to tasks that belong to case instances with the given business key." />
95
+
96
+ <@lib.parameter name = "caseInstanceBusinessKeyLike"
97
+ location = "query"
98
+ type = "string"
99
+ desc = "Restrict to tasks that have a case instance business key that has the parameter value
100
+ as a substring." />
101
+
102
+ <@lib.parameter name = "caseDefinitionId"
103
+ location = "query"
104
+ type = "string"
105
+ desc = "Restrict to tasks that belong to a case definition with the given id." />
106
+
107
+ <@lib.parameter name = "caseDefinitionKey"
108
+ location = "query"
109
+ type = "string"
110
+ desc = "Restrict to tasks that belong to a case definition with the given key." />
111
+
112
+ <@lib.parameter name = "caseDefinitionName"
113
+ location = "query"
114
+ type = "string"
115
+ desc = "Restrict to tasks that belong to a case definition with the given name." />
116
+
117
+ <@lib.parameter name = "caseDefinitionNameLike"
118
+ location = "query"
119
+ type = "string"
120
+ desc = "Restrict to tasks that have a case definition name that has the parameter value as a
121
+ substring." />
122
+
123
+ <@lib.parameter name = "caseExecutionId"
124
+ location = "query"
125
+ type = "string"
126
+ desc = "Restrict to tasks that belong to a case execution with the given id." />
127
+
128
+ <@lib.parameter name = "activityInstanceIdIn"
129
+ location = "query"
130
+ type = "string"
131
+ desc = "Only include tasks which belong to one of the passed and comma-separated activity
132
+ instance ids." />
133
+
134
+ <@lib.parameter name = "tenantIdIn"
135
+ location = "query"
136
+ type = "string"
137
+ desc = "Only include tasks which belong to one of the passed and comma-separated
138
+ tenant ids." />
139
+
140
+ <@lib.parameter name = "withoutTenantId"
141
+ location = "query"
142
+ type = "boolean"
143
+ defaultValue = "false"
144
+ desc = "Only include tasks which belong to no tenant. Value may only be `true`,
145
+ as `false` is the default behavior." />
146
+
147
+ <@lib.parameter name = "assignee"
148
+ location = "query"
149
+ type = "string"
150
+ desc = "Restrict to tasks that the given user is assigned to." />
151
+
152
+ <@lib.parameter name = "assigneeExpression"
153
+ location = "query"
154
+ type = "string"
155
+ desc = "Restrict to tasks that the user described by the given expression is assigned to.
156
+ See the
157
+ [user guide](${docsUrl}/user-guide/process-engine/expression-language/#internal-context-functions)
158
+ for more information on available functions." />
159
+
160
+ <@lib.parameter name = "assigneeLike"
161
+ location = "query"
162
+ type = "string"
163
+ desc = "Restrict to tasks that have an assignee that has the parameter
164
+ value as a substring." />
165
+
166
+ <@lib.parameter name = "assigneeLikeExpression"
167
+ location = "query"
168
+ type = "string"
169
+ desc = "Restrict to tasks that have an assignee that has the parameter value described by the
170
+ given expression as a substring. See the
171
+ [user guide](${docsUrl}/user-guide/process-engine/expression-language/#internal-context-functions)
172
+ for more information on available functions." />
173
+
174
+ <@lib.parameter name = "assigneeIn"
175
+ location = "query"
176
+ type = "string"
177
+ desc = "Only include tasks which are assigned to one of the passed and
178
+ comma-separated user ids." />
179
+
180
+ <@lib.parameter name = "assigneeNotIn"
181
+ location = "query"
182
+ type = "string"
183
+ desc = "Only include tasks which are not assigned to one of the passed and
184
+ comma-separated user ids." />
185
+
186
+ <@lib.parameter name = "owner"
187
+ location = "query"
188
+ type = "string"
189
+ desc = "Restrict to tasks that the given user owns." />
190
+
191
+ <@lib.parameter name = "ownerExpression"
192
+ location = "query"
193
+ type = "string"
194
+ desc = "Restrict to tasks that the user described by the given expression owns. See the
195
+ [user guide](${docsUrl}/user-guide/process-engine/expression-language/#internal-context-functions)
196
+ for more information on available functions." />
197
+
198
+ <@lib.parameter name = "candidateGroup"
199
+ location = "query"
200
+ type = "string"
201
+ desc = "Only include tasks that are offered to the given group." />
202
+
203
+ <@lib.parameter name = "candidateGroupLike"
204
+ location = "query"
205
+ type = "string"
206
+ desc = "Only include tasks that are offered to groups that have the parameter value as a substring." />
207
+
208
+ <@lib.parameter name = "candidateGroupExpression"
209
+ location = "query"
210
+ type = "string"
211
+ desc = "Only include tasks that are offered to the group described by the given expression.
212
+ See the
213
+ [user guide](${docsUrl}/user-guide/process-engine/expression-language/#internal-context-functions)
214
+ for more information on available functions." />
215
+
216
+ <@lib.parameter name = "candidateUser"
217
+ location = "query"
218
+ type = "string"
219
+ desc = "Only include tasks that are offered to the given user or to one of his groups." />
220
+
221
+ <@lib.parameter name = "candidateUserExpression"
222
+ location = "query"
223
+ type = "string"
224
+ desc = "Only include tasks that are offered to the user described by the given expression.
225
+ See the
226
+ [user guide](${docsUrl}/user-guide/process-engine/expression-language/#internal-context-functions)
227
+ for more information on available functions." />
228
+
229
+ <@lib.parameter name = "includeAssignedTasks"
230
+ location = "query"
231
+ type = "boolean"
232
+ defaultValue = "false"
233
+ desc = "Also include tasks that are assigned to users in candidate queries. Default is to only
234
+ include tasks that are not assigned to any user if you query by candidate user or
235
+ group(s)." />
236
+
237
+ <@lib.parameter name = "involvedUser"
238
+ location = "query"
239
+ type = "string"
240
+ desc = "Only include tasks that the given user is involved in. A user is involved in a task if
241
+ an identity link exists between task and user (e.g., the user is the assignee)." />
242
+
243
+ <@lib.parameter name = "involvedUserExpression"
244
+ location = "query"
245
+ type = "string"
246
+ desc = "Only include tasks that the user described by the given expression is involved in.
247
+ A user is involved in a task if an identity link exists between task and user
248
+ (e.g., the user is the assignee). See the
249
+ [user guide](${docsUrl}/user-guide/process-engine/expression-language/#internal-context-functions)
250
+ for more information on available functions." />
251
+
252
+ <@lib.parameter name = "assigned"
253
+ location = "query"
254
+ type = "boolean"
255
+ defaultValue = "false"
256
+ desc = "If set to `true`, restricts the query to all tasks that are assigned." />
257
+
258
+ <@lib.parameter name = "unassigned"
259
+ location = "query"
260
+ type = "boolean"
261
+ defaultValue = "false"
262
+ desc = "If set to `true`, restricts the query to all tasks that are unassigned." />
263
+
264
+ <@lib.parameter name = "taskDefinitionKey"
265
+ location = "query"
266
+ type = "string"
267
+ desc = "Restrict to tasks that have the given key." />
268
+
269
+ <@lib.parameter name = "taskDefinitionKeyIn"
270
+ location = "query"
271
+ type = "string"
272
+ desc = "Restrict to tasks that have one of the given keys. The keys need to be in a
273
+ comma-separated list." />
274
+
275
+ <@lib.parameter name = "taskDefinitionKeyNotIn"
276
+ location = "query"
277
+ type = "string"
278
+ desc = "Exclude instances by a list of task definition keys. The keys need to be in a
279
+ comma-separated list." />
280
+
281
+ <@lib.parameter name = "taskDefinitionKeyLike"
282
+ location = "query"
283
+ type = "string"
284
+ desc = "Restrict to tasks that have a key that has the parameter value as a substring." />
285
+
286
+ <@lib.parameter name = "name"
287
+ location = "query"
288
+ type = "string"
289
+ desc = "Restrict to tasks that have the given name." />
290
+
291
+ <@lib.parameter name = "nameNotEqual"
292
+ location = "query"
293
+ type = "string"
294
+ desc = "Restrict to tasks that do not have the given name." />
295
+
296
+ <@lib.parameter name = "nameLike"
297
+ location = "query"
298
+ type = "string"
299
+ desc = "Restrict to tasks that have a name with the given parameter value as substring." />
300
+
301
+ <@lib.parameter name = "nameNotLike"
302
+ location = "query"
303
+ type = "string"
304
+ desc = "Restrict to tasks that do not have a name with the given parameter
305
+ value as substring." />
306
+
307
+ <@lib.parameter name = "description"
308
+ location = "query"
309
+ type = "string"
310
+ desc = "Restrict to tasks that have the given description." />
311
+
312
+ <@lib.parameter name = "descriptionLike"
313
+ location = "query"
314
+ type = "string"
315
+ desc = "Restrict to tasks that have a description that has the parameter
316
+ value as a substring." />
317
+
318
+ <@lib.parameter name = "priority"
319
+ location = "query"
320
+ type = "integer"
321
+ desc = "Restrict to tasks that have the given priority." />
322
+
323
+ <@lib.parameter name = "maxPriority"
324
+ location = "query"
325
+ type = "integer"
326
+ desc = "Restrict to tasks that have a lower or equal priority." />
327
+
328
+ <@lib.parameter name = "minPriority"
329
+ location = "query"
330
+ type = "integer"
331
+ desc = "Restrict to tasks that have a higher or equal priority." />
332
+
333
+ <@lib.parameter name = "dueDate"
334
+ location = "query"
335
+ type = "string"
336
+ desc = "Restrict to tasks that are due on the given date. By
337
+ [default](${docsUrl}/reference/rest/overview/date-format/), the date must have the
338
+ format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g.,
339
+ `2013-01-23T14:42:45.546+0200`." />
340
+
341
+ <@lib.parameter name = "dueDateExpression"
342
+ location = "query"
343
+ type = "string"
344
+ desc = "Restrict to tasks that are due on the date described by the given expression. See the
345
+ [User Guide](${docsUrl}/user-guide/process-engine/expression-language/#internal-context-functions)
346
+ for more information on available functions. The expression must evaluate to a
347
+ `java.util.Date` or `org.joda.time.DateTime` object." />
348
+
349
+ <@lib.parameter name = "dueAfter"
350
+ location = "query"
351
+ type = "string"
352
+ desc = "Restrict to tasks that are due after the given date. By
353
+ [default](${docsUrl}/reference/rest/overview/date-format/), the date must have
354
+ the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g.,
355
+ `2013-01-23T14:42:45.435+0200`." />
356
+
357
+ <@lib.parameter name = "dueAfterExpression"
358
+ location = "query"
359
+ type = "string"
360
+ desc = "Restrict to tasks that are due after the date described by the given expression.
361
+ See the
362
+ [user guide](${docsUrl}/user-guide/process-engine/expression-language/#internal-context-functions)
363
+ for more information on available functions. The expression must evaluate to a
364
+ `java.util.Date` or `org.joda.time.DateTime` object." />
365
+
366
+ <@lib.parameter name = "dueBefore"
367
+ location = "query"
368
+ type = "string"
369
+ desc = "Restrict to tasks that are due before the given date. By
370
+ [default](${docsUrl}/reference/rest/overview/date-format/), the date must have
371
+ the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g.,
372
+ `2013-01-23T14:42:45.243+0200`." />
373
+
374
+ <@lib.parameter name = "dueBeforeExpression"
375
+ location = "query"
376
+ type = "string"
377
+ desc = "Restrict to tasks that are due before the date described by the given expression.
378
+ See the
379
+ [user guide](${docsUrl}/user-guide/process-engine/expression-language/#internal-context-functions)
380
+ for more information on available functions. The expression must evaluate to a
381
+ `java.util.Date` or `org.joda.time.DateTime` object." />
382
+
383
+ <@lib.parameter name = "withoutDueDate"
384
+ location = "query"
385
+ type = "boolean"
386
+ defaultValue = "false"
387
+ desc = "Only include tasks which have no due date. Value may only be `true`,
388
+ as `false` is the default behavior." />
389
+
390
+ <@lib.parameter name = "followUpDate"
391
+ location = "query"
392
+ type = "string"
393
+ desc = "Restrict to tasks that have a followUp date on the given date. By
394
+ [default](${docsUrl}/reference/rest/overview/date-format/), the date
395
+ must have the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g.,
396
+ `2013-01-23T14:42:45.342+0200`." />
397
+
398
+ <@lib.parameter name = "followUpDateExpression"
399
+ location = "query"
400
+ type = "string"
401
+ desc = "Restrict to tasks that have a followUp date on the date described by the given
402
+ expression. See the
403
+ [user guide](${docsUrl}/user-guide/process-engine/expression-language/#internal-context-functions)
404
+ for more information on available functions. The expression must evaluate to a
405
+ `java.util.Date` or `org.joda.time.DateTime` object." />
406
+
407
+ <@lib.parameter name = "followUpAfter"
408
+ location = "query"
409
+ type = "string"
410
+ desc = "Restrict to tasks that have a followUp date after the given date. By
411
+ [default](${docsUrl}/reference/rest/overview/date-format/), the
412
+ date must have the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g.,
413
+ `2013-01-23T14:42:45.542+0200`." />
414
+
415
+ <@lib.parameter name = "followUpAfterExpression"
416
+ location = "query"
417
+ type = "string"
418
+ desc = "Restrict to tasks that have a followUp date after the date described by the given
419
+ expression. See the
420
+ [user guide](${docsUrl}/user-guide/process-engine/expression-language/#internal-context-functions)
421
+ for more information on available functions. The expression must evaluate to a
422
+ `java.util.Date` or `org.joda.time.DateTime` object." />
423
+
424
+ <@lib.parameter name = "followUpBefore"
425
+ location = "query"
426
+ type = "string"
427
+ desc = "Restrict to tasks that have a followUp date before the given date. By
428
+ [default](${docsUrl}/reference/rest/overview/date-format/), the
429
+ date must have the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g.,
430
+ `2013-01-23T14:42:45.234+0200`." />
431
+
432
+ <@lib.parameter name = "followUpBeforeExpression"
433
+ location = "query"
434
+ type = "string"
435
+ desc = "Restrict to tasks that have a followUp date before the date described by the given
436
+ expression. See the
437
+ [user guide](${docsUrl}/user-guide/process-engine/expression-language/#internal-context-functions)
438
+ for more information on available functions. The expression must evaluate to a
439
+ `java.util.Date` or `org.joda.time.DateTime` object." />
440
+
441
+ <@lib.parameter name = "followUpBeforeOrNotExistent"
442
+ location = "query"
443
+ type = "string"
444
+ desc = "Restrict to tasks that have no followUp date or a followUp date before the given date.
445
+ By [default](${docsUrl}/reference/rest/overview/date-format/), the date must have the
446
+ format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.432+0200`. The
447
+ typical use case is to query all `active` tasks for a user for a given date." />
448
+
449
+ <@lib.parameter name = "followUpBeforeOrNotExistentExpression"
450
+ location = "query"
451
+ type = "string"
452
+ desc = "Restrict to tasks that have no followUp date or a followUp date before the date
453
+ described by the given expression. See the
454
+ [user guide](${docsUrl}/user-guide/process-engine/expression-language/#internal-context-functions)
455
+ for more information on available functions. The expression must evaluate to a
456
+ `java.util.Date` or `org.joda.time.DateTime` object." />
457
+
458
+ <@lib.parameter name = "createdOn"
459
+ location = "query"
460
+ type = "string"
461
+ desc = "Restrict to tasks that were created on the given date. By
462
+ [default](${docsUrl}/reference/rest/overview/date-format/), the date must have
463
+ the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.324+0200`." />
464
+
465
+ <@lib.parameter name = "createdOnExpression"
466
+ location = "query"
467
+ type = "string"
468
+ desc = "Restrict to tasks that were created on the date described by the given expression.
469
+ See the
470
+ [user guide](${docsUrl}/user-guide/process-engine/expression-language/#internal-context-functions)
471
+ for more information on available functions. The expression must evaluate to a
472
+ `java.util.Date` or `org.joda.time.DateTime` object." />
473
+
474
+ <@lib.parameter name = "createdAfter"
475
+ location = "query"
476
+ type = "string"
477
+ desc = "Restrict to tasks that were created after the given date. By
478
+ [default](${docsUrl}/reference/rest/overview/date-format/), the date must have the
479
+ format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.342+0200`." />
480
+
481
+ <@lib.parameter name = "createdAfterExpression"
482
+ location = "query"
483
+ type = "string"
484
+ desc = "Restrict to tasks that were created after the date described by the given expression.
485
+ See the
486
+ [user guide](${docsUrl}/user-guide/process-engine/expression-language/#internal-context-functions)
487
+ for more information on available functions. The expression must evaluate to a
488
+ `java.util.Date` or `org.joda.time.DateTime` object." />
489
+
490
+ <@lib.parameter name = "createdBefore"
491
+ location = "query"
492
+ type = "string"
493
+ desc = "Restrict to tasks that were created before the given date. By
494
+ [default](${docsUrl}/reference/rest/overview/date-format/), the date must have the
495
+ format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.332+0200`." />
496
+
497
+ <@lib.parameter name = "createdBeforeExpression"
498
+ location = "query"
499
+ type = "string"
500
+ desc = "Restrict to tasks that were created before the date described by the given expression.
501
+ See the
502
+ [user guide](${docsUrl}/user-guide/process-engine/expression-language/#internal-context-functions)
503
+ for more information on available functions. The expression must evaluate to a
504
+ `java.util.Date` or `org.joda.time.DateTime` object." />
505
+
506
+ <@lib.parameter name = "updatedAfter"
507
+ location = "query"
508
+ type = "string"
509
+ desc = "Restrict to tasks that were updated after the given date. Every action that fires
510
+ a [task update event](${docsUrl}/user-guide/process-engine/delegation-code/#task-listener-event-lifecycle) is considered as updating the task.
511
+ By [default](${docsUrl}/reference/rest/overview/date-format/), the date must
512
+ have the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.332+0200`." />
513
+
514
+ <@lib.parameter name = "updatedAfterExpression"
515
+ location = "query"
516
+ type = "string"
517
+ desc = "Restrict to tasks that were updated after the date described by the given expression. Every action that fires
518
+ a [task update event](${docsUrl}/user-guide/process-engine/delegation-code/#task-listener-event-lifecycle) is considered as updating the task.
519
+ See the
520
+ [user guide](${docsUrl}/user-guide/process-engine/expression-language/#internal-context-functions)
521
+ for more information on available functions. The expression must evaluate to a
522
+ `java.util.Date` or `org.joda.time.DateTime` object." />
523
+
524
+ <@lib.parameter name = "delegationState"
525
+ location = "query"
526
+ type = "string"
527
+ enumValues = ['"PENDING"', '"RESOLVED"']
528
+ desc = "Restrict to tasks that are in the given delegation state. Valid values are
529
+ `PENDING` and `RESOLVED`." />
530
+
531
+ <@lib.parameter name = "candidateGroups"
532
+ location = "query"
533
+ type = "string"
534
+ desc = "Restrict to tasks that are offered to any of the given candidate groups. Takes a
535
+ comma-separated list of group names, so for example `developers,support,sales`." />
536
+
537
+ <@lib.parameter name = "candidateGroupsExpression"
538
+ location = "query"
539
+ type = "string"
540
+ desc = "Restrict to tasks that are offered to any of the candidate groups described by the
541
+ given expression. See the
542
+ [user guide](${docsUrl}/user-guide/process-engine/expression-language/#internal-context-functions)
543
+ for more information on available functions. The expression must evaluate to
544
+ `java.util.List` of Strings." />
545
+
546
+ <@lib.parameter name = "withCandidateGroups"
547
+ location = "query"
548
+ type = "boolean"
549
+ defaultValue = "false"
550
+ desc = "Only include tasks which have a candidate group. Value may only be `true`,
551
+ as `false` is the default behavior." />
552
+
553
+ <@lib.parameter name = "withoutCandidateGroups"
554
+ location = "query"
555
+ type = "boolean"
556
+ defaultValue = "false"
557
+ desc = "Only include tasks which have no candidate group. Value may only be `true`,
558
+ as `false` is the default behavior." />
559
+
560
+ <@lib.parameter name = "withCandidateUsers"
561
+ location = "query"
562
+ type = "boolean"
563
+ defaultValue = "false"
564
+ desc = "Only include tasks which have a candidate user. Value may only be `true`,
565
+ as `false` is the default behavior." />
566
+
567
+ <@lib.parameter name = "withoutCandidateUsers"
568
+ location = "query"
569
+ type = "boolean"
570
+ defaultValue = "false"
571
+ desc = "Only include tasks which have no candidate users. Value may only be `true`,
572
+ as `false` is the default behavior." />
573
+
574
+ <@lib.parameter name = "active"
575
+ location = "query"
576
+ type = "boolean"
577
+ defaultValue = "false"
578
+ desc = "Only include active tasks. Value may only be `true`, as `false`
579
+ is the default behavior." />
580
+
581
+ <@lib.parameter name = "suspended"
582
+ location = "query"
583
+ type = "boolean"
584
+ defaultValue = "false"
585
+ desc = "Only include suspended tasks. Value may only be `true`, as
586
+ `false` is the default behavior." />
587
+
588
+ <@lib.parameter name = "taskVariables"
589
+ location = "query"
590
+ type = "string"
591
+ desc = "Only include tasks that have variables with certain values. Variable filtering
592
+ expressions are comma-separated and are structured as follows:
593
+
594
+ A valid parameter value has the form `key_operator_value`. `key` is the variable name,
595
+ `operator` is the comparison operator to be used and `value` the variable value.
596
+
597
+ **Note**: Values are always treated as String objects on server side.
598
+
599
+ Valid `operator` values are:
600
+ `eq` - equal to;
601
+ `neq` - not equal to;
602
+ `gt` - greater than;
603
+ `gteq` - greater than or equal to;
604
+ `lt` - lower than;
605
+ `lteq` - lower than or equal to;
606
+ `like`.
607
+ `key` and `value` may not contain underscore or comma characters." />
608
+
609
+ <@lib.parameter name = "processVariables"
610
+ location = "query"
611
+ type = "string"
612
+ desc = "Only include tasks that belong to process instances that have variables with certain
613
+ values. Variable filtering expressions are comma-separated and are structured as
614
+ follows:
615
+
616
+ A valid parameter value has the form `key_operator_value`. `key` is the variable name,
617
+ `operator` is the comparison operator to be used and `value` the variable value.
618
+
619
+ **Note**: Values are always treated as String objects on server side.
620
+
621
+ Valid `operator` values are:
622
+ `eq` - equal to;
623
+ `neq` - not equal to;
624
+ `gt` - greater than;
625
+ `gteq` - greater than or equal to;
626
+ `lt` - lower than;
627
+ `lteq` - lower than or equal to;
628
+ `like`;
629
+ `notLike`.
630
+ `key` and `value` may not contain underscore or comma characters." />
631
+
632
+ <@lib.parameter name = "caseInstanceVariables"
633
+ location = "query"
634
+ type = "string"
635
+ desc = "Only include tasks that belong to case instances that have variables with certain
636
+ values. Variable filtering expressions are comma-separated and are structured as
637
+ follows:
638
+
639
+ A valid parameter value has the form `key_operator_value`. `key` is the variable name,
640
+ `operator` is the comparison operator to be used and `value` the variable value.
641
+
642
+ **Note**: Values are always treated as String objects on server side.
643
+
644
+ Valid `operator` values are:
645
+ `eq` - equal to;
646
+ `neq` - not equal to;
647
+ `gt` - greater than;
648
+ `gteq` - greater than or equal to;
649
+ `lt` - lower than;
650
+ `lteq` - lower than or equal to;
651
+ `like`.
652
+ `key` and `value` may not contain underscore or comma characters." />
653
+
654
+ <@lib.parameter name = "variableNamesIgnoreCase"
655
+ location = "query"
656
+ type = "boolean"
657
+ defaultValue = "false"
658
+ desc = "Match all variable names in this query case-insensitively. If set
659
+ `variableName` and `variablename` are treated as equal." />
660
+
661
+ <@lib.parameter name = "variableValuesIgnoreCase"
662
+ location = "query"
663
+ type = "boolean"
664
+ defaultValue = "false"
665
+ desc = "Match all variable values in this query case-insensitively. If set
666
+ `variableValue` and `variablevalue` are treated as equal." />
667
+
668
+ <@lib.parameter name = "parentTaskId"
669
+ location = "query"
670
+ type = "string"
671
+ desc = "Restrict query to all tasks that are sub tasks of the given task. Takes a task id." />
672
+
673
+ <@lib.parameter name = "withCommentAttachmentInfo"
674
+ location = "query"
675
+ type = "boolean"
676
+ defaultValue = "false"
677
+ desc = "Check if task has attachments and/or comments. Value may only be `true`, as
678
+ `false` is the default behavior.
679
+ Adding the filter will do additional attachment and comments queries to the database,
680
+ it might slow down the query in case of tables having high volume of data.
681
+ This param is not considered for count queries" />
682
+
683
+ <@lib.parameter name = "withTaskVariablesInReturn"
684
+ location = "query"
685
+ type = "boolean"
686
+ defaultValue = "false"
687
+ desc = "Indicates if all the variables visible from task should be retrieved. A variable is visible from the task
688
+ if it is a local task variable or declared in a parent scope of the task. Value may only be `true`, as
689
+ `false` is the default behavior." />
690
+
691
+ <@lib.parameter name = "withTaskLocalVariablesInReturn"
692
+ location = "query"
693
+ type = "boolean"
694
+ defaultValue = "false"
695
+ last = last
696
+ desc = "Indicates if all the local variables visible from task should be retrieved. Value may only be `true`, as
697
+ `false` is the default behavior." />