@camunda/element-templates-json-schema 0.6.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -3
- package/package.json +10 -19
- package/resources/schema.json +771 -617
- package/.github/ISSUE_TEMPLATE/BUG_REPORT.md +0 -31
- package/.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md +0 -25
- package/.github/ISSUE_TEMPLATE/TASK.md +0 -14
- package/.github/ISSUE_TEMPLATE/config.yml +0 -5
- package/.github/workflows/CI.yml +0 -26
- package/CHANGELOG.md +0 -51
package/resources/schema.json
CHANGED
|
@@ -2,767 +2,921 @@
|
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
3
|
"$id": "http://camunda.org/schema/element-templates/1.0",
|
|
4
4
|
"title": "Element Template Schema",
|
|
5
|
-
"description": "A single element template configuration or an array of element template configurations",
|
|
6
5
|
"definitions": {
|
|
7
6
|
"properties": {
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"required": {
|
|
23
|
-
"binding": "missing binding for property \"${0#}\""
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
"allOf": [
|
|
27
|
-
{
|
|
28
|
-
"if": {
|
|
29
|
-
"properties": {
|
|
30
|
-
"type": {
|
|
31
|
-
"const": "Dropdown"
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
"required": [
|
|
35
|
-
"type"
|
|
36
|
-
]
|
|
37
|
-
},
|
|
38
|
-
"then": {
|
|
39
|
-
"required": [
|
|
40
|
-
"choices"
|
|
41
|
-
],
|
|
42
|
-
"errorMessage": "must provide choices=[] with \"Dropdown\" type"
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"if": {
|
|
47
|
-
"properties": {
|
|
48
|
-
"binding": {
|
|
49
|
-
"properties": {
|
|
50
|
-
"type": {
|
|
51
|
-
"const": "property"
|
|
7
|
+
"allOf": [
|
|
8
|
+
{
|
|
9
|
+
"type": "array",
|
|
10
|
+
"description": "List of properties of the element template.",
|
|
11
|
+
"allOf": [
|
|
12
|
+
{
|
|
13
|
+
"examples": [
|
|
14
|
+
[
|
|
15
|
+
{
|
|
16
|
+
"label": "Name",
|
|
17
|
+
"type": "String",
|
|
18
|
+
"binding": {
|
|
19
|
+
"type": "property",
|
|
20
|
+
"name": "name"
|
|
52
21
|
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
"type"
|
|
56
|
-
]
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
"required": [
|
|
60
|
-
"binding"
|
|
22
|
+
}
|
|
23
|
+
]
|
|
61
24
|
]
|
|
62
|
-
},
|
|
63
|
-
"then": {
|
|
64
|
-
"properties": {
|
|
65
|
-
"type": {
|
|
66
|
-
"enum": [
|
|
67
|
-
"String",
|
|
68
|
-
"Text",
|
|
69
|
-
"Hidden",
|
|
70
|
-
"Dropdown",
|
|
71
|
-
"Boolean"
|
|
72
|
-
],
|
|
73
|
-
"errorMessage": "invalid property type ${0} for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
25
|
}
|
|
77
|
-
|
|
78
|
-
{
|
|
79
|
-
"
|
|
80
|
-
|
|
81
|
-
|
|
26
|
+
],
|
|
27
|
+
"items": {
|
|
28
|
+
"type": "object",
|
|
29
|
+
"default": {},
|
|
30
|
+
"allOf": [
|
|
31
|
+
{
|
|
32
|
+
"if": {
|
|
82
33
|
"properties": {
|
|
83
34
|
"type": {
|
|
84
|
-
"const": "
|
|
35
|
+
"const": "Dropdown"
|
|
85
36
|
}
|
|
86
37
|
},
|
|
87
38
|
"required": [
|
|
88
39
|
"type"
|
|
89
40
|
]
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
]
|
|
95
|
-
},
|
|
96
|
-
"then": {
|
|
97
|
-
"properties": {
|
|
98
|
-
"type": {
|
|
99
|
-
"enum": [
|
|
100
|
-
"Hidden"
|
|
41
|
+
},
|
|
42
|
+
"then": {
|
|
43
|
+
"required": [
|
|
44
|
+
"choices"
|
|
101
45
|
],
|
|
102
|
-
"errorMessage": "
|
|
46
|
+
"errorMessage": "must provide choices=[] with \"Dropdown\" type"
|
|
103
47
|
}
|
|
104
48
|
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
49
|
+
],
|
|
50
|
+
"properties": {
|
|
51
|
+
"value": {
|
|
52
|
+
"$id": "#/properties/property/value",
|
|
53
|
+
"type": [
|
|
54
|
+
"string",
|
|
55
|
+
"boolean"
|
|
56
|
+
],
|
|
57
|
+
"description": "The value of a control field."
|
|
58
|
+
},
|
|
59
|
+
"description": {
|
|
60
|
+
"$id": "#/properties/property/description",
|
|
61
|
+
"type": "string",
|
|
62
|
+
"description": "The description of a control field."
|
|
63
|
+
},
|
|
64
|
+
"label": {
|
|
65
|
+
"$id": "#/properties/property/label",
|
|
66
|
+
"type": "string",
|
|
67
|
+
"description": "The label of a control field."
|
|
68
|
+
},
|
|
69
|
+
"type": {
|
|
70
|
+
"$id": "#/properties/property/type",
|
|
71
|
+
"type": "string",
|
|
72
|
+
"description": "The type of a control field."
|
|
73
|
+
},
|
|
74
|
+
"editable": {
|
|
75
|
+
"$id": "#/properties/property/editable",
|
|
76
|
+
"type": "boolean",
|
|
77
|
+
"description": "Indicates whether a control field is editable or not."
|
|
78
|
+
},
|
|
79
|
+
"choices": {
|
|
80
|
+
"$id": "#/properties/property/choices",
|
|
81
|
+
"type": "array",
|
|
82
|
+
"description": "The choices for dropdown fields.",
|
|
83
|
+
"default": [],
|
|
84
|
+
"items": {
|
|
85
|
+
"$id": "#/properties/property/choices/item",
|
|
86
|
+
"type": "object",
|
|
87
|
+
"default": {},
|
|
111
88
|
"properties": {
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
89
|
+
"name": {
|
|
90
|
+
"$id": "#/properties/property/choices/item/name",
|
|
91
|
+
"type": "string",
|
|
92
|
+
"description": "The name of a choice."
|
|
93
|
+
},
|
|
94
|
+
"value": {
|
|
95
|
+
"$id": "#/properties/property/choices/item/value",
|
|
96
|
+
"type": "string",
|
|
97
|
+
"description": "The value of a choice."
|
|
121
98
|
}
|
|
122
99
|
},
|
|
123
100
|
"required": [
|
|
124
|
-
"
|
|
125
|
-
|
|
126
|
-
}
|
|
127
|
-
},
|
|
128
|
-
"required": [
|
|
129
|
-
"binding"
|
|
130
|
-
]
|
|
131
|
-
},
|
|
132
|
-
"then": {
|
|
133
|
-
"properties": {
|
|
134
|
-
"type": {
|
|
135
|
-
"enum": [
|
|
136
|
-
"String",
|
|
137
|
-
"Hidden",
|
|
138
|
-
"Dropdown"
|
|
101
|
+
"value",
|
|
102
|
+
"name"
|
|
139
103
|
],
|
|
140
|
-
"errorMessage": "
|
|
104
|
+
"errorMessage": "{ name, value } must be specified for \"Dropdown\" choices"
|
|
141
105
|
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
106
|
+
},
|
|
107
|
+
"constraints": {
|
|
108
|
+
"$id": "#/properties/property/constraints",
|
|
109
|
+
"type": "object",
|
|
110
|
+
"description": "The validation constraints of a control field.",
|
|
111
|
+
"allOf": [
|
|
112
|
+
{
|
|
113
|
+
"examples": [
|
|
114
|
+
{
|
|
115
|
+
"notEmpty": true
|
|
116
|
+
}
|
|
117
|
+
]
|
|
118
|
+
}
|
|
119
|
+
],
|
|
120
|
+
"properties": {
|
|
121
|
+
"notEmpty": {
|
|
122
|
+
"$id": "#/properties/property/constraints/notEmpty",
|
|
123
|
+
"type": "boolean",
|
|
124
|
+
"description": "The control field must not be empty."
|
|
156
125
|
},
|
|
157
|
-
"
|
|
158
|
-
"
|
|
159
|
-
|
|
126
|
+
"minLength": {
|
|
127
|
+
"$id": "#/properties/property/constraints/minLength",
|
|
128
|
+
"type": "number",
|
|
129
|
+
"description": "The minimal length of a control field value."
|
|
130
|
+
},
|
|
131
|
+
"maxLength": {
|
|
132
|
+
"$id": "#/properties/property/constraints/maxLength",
|
|
133
|
+
"type": "number",
|
|
134
|
+
"description": "The maximal length for a control field value."
|
|
135
|
+
},
|
|
136
|
+
"pattern": {
|
|
137
|
+
"$id": "#/properties/property/constraints/pattern",
|
|
138
|
+
"description": "A regular expression pattern for a constraint.",
|
|
139
|
+
"oneOf": [
|
|
140
|
+
{
|
|
141
|
+
"type": "object",
|
|
142
|
+
"default": {},
|
|
143
|
+
"properties": {
|
|
144
|
+
"value": {
|
|
145
|
+
"$id": "#/properties/property/constraints/pattern/value",
|
|
146
|
+
"type": "string",
|
|
147
|
+
"description": "The regular expression of a pattern."
|
|
148
|
+
},
|
|
149
|
+
"message": {
|
|
150
|
+
"$id": "#/properties/property/constraints/pattern/message",
|
|
151
|
+
"type": "string",
|
|
152
|
+
"description": "The validation message of a pattern."
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"type": "string"
|
|
158
|
+
}
|
|
159
|
+
]
|
|
160
|
+
}
|
|
160
161
|
}
|
|
161
162
|
},
|
|
162
|
-
"
|
|
163
|
-
"
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
"then": {
|
|
167
|
-
"properties": {
|
|
168
|
-
"type": {
|
|
169
|
-
"enum": [
|
|
170
|
-
"String",
|
|
171
|
-
"Text",
|
|
172
|
-
"Hidden",
|
|
173
|
-
"Dropdown"
|
|
174
|
-
],
|
|
175
|
-
"errorMessage": "invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Text, Hidden, Dropdown }"
|
|
176
|
-
}
|
|
163
|
+
"group": {
|
|
164
|
+
"$id": "#/properties/property/group",
|
|
165
|
+
"type": "string",
|
|
166
|
+
"description": "The custom group of a control field."
|
|
177
167
|
}
|
|
178
168
|
}
|
|
179
169
|
}
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
"
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
"boolean"
|
|
187
|
-
],
|
|
188
|
-
"title": "property value",
|
|
189
|
-
"description": "The value of the control field for the property"
|
|
190
|
-
},
|
|
191
|
-
"description": {
|
|
192
|
-
"$id": "#/properties/property/description",
|
|
193
|
-
"type": "string",
|
|
194
|
-
"title": "property description",
|
|
195
|
-
"description": "The description of the control field"
|
|
196
|
-
},
|
|
197
|
-
"label": {
|
|
198
|
-
"$id": "#/properties/property/label",
|
|
199
|
-
"type": "string",
|
|
200
|
-
"title": "property label",
|
|
201
|
-
"description": "The label of the control field for the property"
|
|
202
|
-
},
|
|
203
|
-
"type": {
|
|
204
|
-
"$id": "#/properties/property/type",
|
|
205
|
-
"type": "string",
|
|
206
|
-
"title": "property type",
|
|
207
|
-
"description": "The type of the control field"
|
|
208
|
-
},
|
|
209
|
-
"editable": {
|
|
210
|
-
"$id": "#/properties/property/editable",
|
|
211
|
-
"type": "boolean",
|
|
212
|
-
"title": "property editable",
|
|
213
|
-
"description": "Indicates whether the property is editable or not"
|
|
214
|
-
},
|
|
215
|
-
"choices": {
|
|
216
|
-
"$id": "#/properties/property/choices",
|
|
217
|
-
"type": "array",
|
|
218
|
-
"title": "property choices",
|
|
219
|
-
"description": "The choices for dropdown properties",
|
|
220
|
-
"items": {
|
|
221
|
-
"$id": "#/properties/property/choices/item",
|
|
222
|
-
"type": "object",
|
|
223
|
-
"properties": {
|
|
224
|
-
"name": {
|
|
225
|
-
"$id": "#/properties/property/choices/item/name",
|
|
226
|
-
"type": "string",
|
|
227
|
-
"title": "choice name",
|
|
228
|
-
"description": "The name of the choice"
|
|
229
|
-
},
|
|
230
|
-
"value": {
|
|
231
|
-
"$id": "#/properties/property/choices/item/value",
|
|
232
|
-
"type": "string",
|
|
233
|
-
"title": "choice value",
|
|
234
|
-
"description": "The value of the choice"
|
|
235
|
-
}
|
|
236
|
-
},
|
|
237
|
-
"required": [
|
|
238
|
-
"value",
|
|
239
|
-
"name"
|
|
240
|
-
],
|
|
241
|
-
"errorMessage": "{ name, value } must be specified for \"Dropdown\" choices"
|
|
242
|
-
}
|
|
243
|
-
},
|
|
244
|
-
"binding": {
|
|
245
|
-
"$id": "#/properties/property/binding",
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
173
|
+
"type": "array",
|
|
174
|
+
"description": "List of properties of the element template.",
|
|
175
|
+
"items": {
|
|
246
176
|
"type": "object",
|
|
247
|
-
"
|
|
248
|
-
"description": "A binding to a BPMN 2.0 property",
|
|
177
|
+
"default": {},
|
|
249
178
|
"required": [
|
|
250
|
-
"
|
|
179
|
+
"binding"
|
|
251
180
|
],
|
|
181
|
+
"errorMessage": {
|
|
182
|
+
"required": {
|
|
183
|
+
"binding": "missing binding for property \"${0#}\""
|
|
184
|
+
}
|
|
185
|
+
},
|
|
252
186
|
"allOf": [
|
|
253
187
|
{
|
|
254
188
|
"if": {
|
|
255
189
|
"properties": {
|
|
256
|
-
"
|
|
257
|
-
"
|
|
258
|
-
"
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
190
|
+
"binding": {
|
|
191
|
+
"properties": {
|
|
192
|
+
"type": {
|
|
193
|
+
"const": "property"
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
"required": [
|
|
197
|
+
"type"
|
|
262
198
|
]
|
|
263
199
|
}
|
|
264
200
|
},
|
|
265
201
|
"required": [
|
|
266
|
-
"
|
|
202
|
+
"binding"
|
|
267
203
|
]
|
|
268
204
|
},
|
|
269
205
|
"then": {
|
|
270
|
-
"
|
|
271
|
-
"
|
|
272
|
-
|
|
273
|
-
|
|
206
|
+
"properties": {
|
|
207
|
+
"type": {
|
|
208
|
+
"enum": [
|
|
209
|
+
"String",
|
|
210
|
+
"Text",
|
|
211
|
+
"Hidden",
|
|
212
|
+
"Dropdown",
|
|
213
|
+
"Boolean"
|
|
214
|
+
],
|
|
215
|
+
"errorMessage": "invalid property type ${0} for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"
|
|
216
|
+
}
|
|
217
|
+
}
|
|
274
218
|
}
|
|
275
219
|
},
|
|
276
220
|
{
|
|
277
221
|
"if": {
|
|
278
222
|
"properties": {
|
|
279
|
-
"
|
|
280
|
-
"
|
|
223
|
+
"binding": {
|
|
224
|
+
"properties": {
|
|
225
|
+
"type": {
|
|
226
|
+
"const": "camunda:executionListener"
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
"required": [
|
|
230
|
+
"type"
|
|
231
|
+
]
|
|
281
232
|
}
|
|
282
233
|
},
|
|
283
234
|
"required": [
|
|
284
|
-
"
|
|
235
|
+
"binding"
|
|
285
236
|
]
|
|
286
237
|
},
|
|
287
238
|
"then": {
|
|
288
|
-
"
|
|
289
|
-
"
|
|
290
|
-
|
|
291
|
-
|
|
239
|
+
"properties": {
|
|
240
|
+
"type": {
|
|
241
|
+
"enum": [
|
|
242
|
+
"Hidden"
|
|
243
|
+
],
|
|
244
|
+
"errorMessage": "invalid property type ${1/type} for binding type \"camunda:executionListener\"; must be \"Hidden\""
|
|
245
|
+
}
|
|
246
|
+
}
|
|
292
247
|
}
|
|
293
248
|
},
|
|
294
249
|
{
|
|
295
250
|
"if": {
|
|
296
251
|
"properties": {
|
|
297
|
-
"
|
|
298
|
-
"
|
|
252
|
+
"binding": {
|
|
253
|
+
"properties": {
|
|
254
|
+
"type": {
|
|
255
|
+
"enum": [
|
|
256
|
+
"camunda:property",
|
|
257
|
+
"camunda:outputParameter",
|
|
258
|
+
"camunda:in",
|
|
259
|
+
"camunda:in:businessKey",
|
|
260
|
+
"camunda:out",
|
|
261
|
+
"camunda:errorEventDefinition"
|
|
262
|
+
]
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
"required": [
|
|
266
|
+
"type"
|
|
267
|
+
]
|
|
299
268
|
}
|
|
300
269
|
},
|
|
301
270
|
"required": [
|
|
302
|
-
"
|
|
271
|
+
"binding"
|
|
303
272
|
]
|
|
304
273
|
},
|
|
305
274
|
"then": {
|
|
306
|
-
"
|
|
307
|
-
{
|
|
308
|
-
"
|
|
309
|
-
"
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
"
|
|
314
|
-
"target"
|
|
315
|
-
]
|
|
275
|
+
"properties": {
|
|
276
|
+
"type": {
|
|
277
|
+
"enum": [
|
|
278
|
+
"String",
|
|
279
|
+
"Hidden",
|
|
280
|
+
"Dropdown"
|
|
281
|
+
],
|
|
282
|
+
"errorMessage": "invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Hidden, Dropdown }"
|
|
316
283
|
}
|
|
317
|
-
|
|
318
|
-
"errorMessage": "property.binding ${0/type} requires variables, target, or both"
|
|
284
|
+
}
|
|
319
285
|
}
|
|
320
286
|
},
|
|
321
287
|
{
|
|
322
288
|
"if": {
|
|
323
289
|
"properties": {
|
|
324
|
-
"
|
|
325
|
-
"
|
|
290
|
+
"binding": {
|
|
291
|
+
"properties": {
|
|
292
|
+
"type": {
|
|
293
|
+
"enum": [
|
|
294
|
+
"camunda:inputParameter",
|
|
295
|
+
"camunda:field"
|
|
296
|
+
]
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
"required": [
|
|
300
|
+
"type"
|
|
301
|
+
]
|
|
326
302
|
}
|
|
327
303
|
},
|
|
328
304
|
"required": [
|
|
329
|
-
"
|
|
305
|
+
"binding"
|
|
330
306
|
]
|
|
331
307
|
},
|
|
332
308
|
"then": {
|
|
333
|
-
"
|
|
334
|
-
{
|
|
309
|
+
"properties": {
|
|
310
|
+
"type": {
|
|
311
|
+
"enum": [
|
|
312
|
+
"String",
|
|
313
|
+
"Text",
|
|
314
|
+
"Hidden",
|
|
315
|
+
"Dropdown"
|
|
316
|
+
],
|
|
317
|
+
"errorMessage": "invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Text, Hidden, Dropdown }"
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
],
|
|
323
|
+
"properties": {
|
|
324
|
+
"binding": {
|
|
325
|
+
"$id": "#/properties/property/binding",
|
|
326
|
+
"type": "object",
|
|
327
|
+
"description": "Specifying how the property is mapped to BPMN or Camunda extension elements and attributes.",
|
|
328
|
+
"required": [
|
|
329
|
+
"type"
|
|
330
|
+
],
|
|
331
|
+
"allOf": [
|
|
332
|
+
{
|
|
333
|
+
"if": {
|
|
334
|
+
"properties": {
|
|
335
|
+
"type": {
|
|
336
|
+
"enum": [
|
|
337
|
+
"property",
|
|
338
|
+
"camunda:property",
|
|
339
|
+
"camunda:inputParameter",
|
|
340
|
+
"camunda:field"
|
|
341
|
+
]
|
|
342
|
+
}
|
|
343
|
+
},
|
|
344
|
+
"required": [
|
|
345
|
+
"type"
|
|
346
|
+
]
|
|
347
|
+
},
|
|
348
|
+
"then": {
|
|
335
349
|
"required": [
|
|
336
|
-
"
|
|
350
|
+
"name"
|
|
337
351
|
],
|
|
338
|
-
"
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
}
|
|
352
|
+
"errorMessage": "property.binding ${0/type} requires name"
|
|
353
|
+
}
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
"if": {
|
|
357
|
+
"properties": {
|
|
358
|
+
"type": {
|
|
359
|
+
"const": "camunda:outputParameter"
|
|
360
|
+
}
|
|
361
|
+
},
|
|
362
|
+
"required": [
|
|
363
|
+
"type"
|
|
364
|
+
]
|
|
352
365
|
},
|
|
353
|
-
{
|
|
366
|
+
"then": {
|
|
354
367
|
"required": [
|
|
355
368
|
"source"
|
|
356
369
|
],
|
|
357
|
-
"
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
370
|
+
"errorMessage": "property.binding ${0/type} requires source"
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"if": {
|
|
375
|
+
"properties": {
|
|
376
|
+
"type": {
|
|
377
|
+
"const": "camunda:in"
|
|
378
|
+
}
|
|
379
|
+
},
|
|
380
|
+
"required": [
|
|
381
|
+
"type"
|
|
382
|
+
]
|
|
383
|
+
},
|
|
384
|
+
"then": {
|
|
385
|
+
"anyOf": [
|
|
386
|
+
{
|
|
387
|
+
"required": [
|
|
388
|
+
"variables"
|
|
389
|
+
]
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
"required": [
|
|
393
|
+
"target"
|
|
394
|
+
]
|
|
395
|
+
}
|
|
396
|
+
],
|
|
397
|
+
"errorMessage": "property.binding ${0/type} requires variables, target, or both"
|
|
398
|
+
}
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
"if": {
|
|
402
|
+
"properties": {
|
|
403
|
+
"type": {
|
|
404
|
+
"const": "camunda:out"
|
|
405
|
+
}
|
|
406
|
+
},
|
|
407
|
+
"required": [
|
|
408
|
+
"type"
|
|
409
|
+
]
|
|
410
|
+
},
|
|
411
|
+
"then": {
|
|
412
|
+
"oneOf": [
|
|
413
|
+
{
|
|
414
|
+
"required": [
|
|
415
|
+
"variables"
|
|
416
|
+
],
|
|
417
|
+
"not": {
|
|
418
|
+
"anyOf": [
|
|
419
|
+
{
|
|
420
|
+
"required": [
|
|
421
|
+
"source"
|
|
422
|
+
]
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
"required": [
|
|
426
|
+
"sourceExpression"
|
|
427
|
+
]
|
|
428
|
+
}
|
|
362
429
|
]
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
430
|
+
}
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
"required": [
|
|
434
|
+
"source"
|
|
435
|
+
],
|
|
436
|
+
"not": {
|
|
437
|
+
"anyOf": [
|
|
438
|
+
{
|
|
439
|
+
"required": [
|
|
440
|
+
"variables"
|
|
441
|
+
]
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
"required": [
|
|
445
|
+
"sourceExpression"
|
|
446
|
+
]
|
|
447
|
+
}
|
|
367
448
|
]
|
|
368
449
|
}
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
"required": [
|
|
453
|
+
"sourceExpression"
|
|
454
|
+
],
|
|
455
|
+
"not": {
|
|
456
|
+
"anyOf": [
|
|
457
|
+
{
|
|
458
|
+
"required": [
|
|
459
|
+
"variables"
|
|
460
|
+
]
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
"required": [
|
|
464
|
+
"source"
|
|
465
|
+
]
|
|
466
|
+
}
|
|
381
467
|
]
|
|
382
|
-
}
|
|
383
|
-
|
|
468
|
+
}
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
"required": [
|
|
472
|
+
"variables",
|
|
473
|
+
"sourceExpression"
|
|
474
|
+
],
|
|
475
|
+
"not": {
|
|
384
476
|
"required": [
|
|
385
477
|
"source"
|
|
386
478
|
]
|
|
387
479
|
}
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
}
|
|
401
|
-
},
|
|
402
|
-
{
|
|
403
|
-
"required": [
|
|
404
|
-
"variables",
|
|
405
|
-
"source"
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
"required": [
|
|
483
|
+
"variables",
|
|
484
|
+
"source"
|
|
485
|
+
],
|
|
486
|
+
"not": {
|
|
487
|
+
"required": [
|
|
488
|
+
"sourceExpression"
|
|
489
|
+
]
|
|
490
|
+
}
|
|
491
|
+
}
|
|
406
492
|
],
|
|
407
|
-
"
|
|
408
|
-
"required": [
|
|
409
|
-
"sourceExpression"
|
|
410
|
-
]
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
],
|
|
414
|
-
"errorMessage": "property.binding ${0/type} requires one of the following: variables, sourceExpression, source, (sourceExpression and variables), or (source and variables)"
|
|
415
|
-
}
|
|
416
|
-
},
|
|
417
|
-
{
|
|
418
|
-
"if": {
|
|
419
|
-
"properties": {
|
|
420
|
-
"type": {
|
|
421
|
-
"const": "camunda:errorEventDefinition"
|
|
493
|
+
"errorMessage": "property.binding ${0/type} requires one of the following: variables, sourceExpression, source, (sourceExpression and variables), or (source and variables)"
|
|
422
494
|
}
|
|
423
495
|
},
|
|
424
|
-
|
|
425
|
-
"
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
496
|
+
{
|
|
497
|
+
"if": {
|
|
498
|
+
"properties": {
|
|
499
|
+
"type": {
|
|
500
|
+
"const": "camunda:errorEventDefinition"
|
|
501
|
+
}
|
|
502
|
+
},
|
|
431
503
|
"required": [
|
|
432
|
-
"
|
|
504
|
+
"type"
|
|
433
505
|
]
|
|
506
|
+
},
|
|
507
|
+
"then": {
|
|
508
|
+
"oneOf": [
|
|
509
|
+
{
|
|
510
|
+
"required": [
|
|
511
|
+
"errorRef"
|
|
512
|
+
]
|
|
513
|
+
}
|
|
514
|
+
],
|
|
515
|
+
"errorMessage": "property.binding ${0/type} requires errorRef"
|
|
434
516
|
}
|
|
435
|
-
|
|
436
|
-
"errorMessage": "property.binding ${0/type} requires errorRef"
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
],
|
|
440
|
-
"properties": {
|
|
441
|
-
"type": {
|
|
442
|
-
"$id": "#/properties/property/binding/type",
|
|
443
|
-
"type": "string",
|
|
444
|
-
"title": "property binding type",
|
|
445
|
-
"enum": [
|
|
446
|
-
"property",
|
|
447
|
-
"camunda:property",
|
|
448
|
-
"camunda:inputParameter",
|
|
449
|
-
"camunda:outputParameter",
|
|
450
|
-
"camunda:in",
|
|
451
|
-
"camunda:out",
|
|
452
|
-
"camunda:in:businessKey",
|
|
453
|
-
"camunda:executionListener",
|
|
454
|
-
"camunda:field",
|
|
455
|
-
"camunda:errorEventDefinition"
|
|
456
|
-
],
|
|
457
|
-
"errorMessage": "invalid property.binding type ${0}; must be any of { property, camunda:property, camunda:inputParameter, camunda:outputParameter, camunda:in, camunda:out, camunda:in:businessKey, camunda:executionListener, camunda:field, camunda:errorEventDefinition }",
|
|
458
|
-
"description": "The type of the property binding"
|
|
459
|
-
},
|
|
460
|
-
"name": {
|
|
461
|
-
"$id": "#/properties/property/binding/name",
|
|
462
|
-
"type": "string",
|
|
463
|
-
"title": "property binding name",
|
|
464
|
-
"description": "The name of binding xml property"
|
|
465
|
-
},
|
|
466
|
-
"event": {
|
|
467
|
-
"$id": "#/properties/property/binding/event",
|
|
468
|
-
"type": "string",
|
|
469
|
-
"title": "property binding event",
|
|
470
|
-
"description": "The event type of an execution listener binding"
|
|
471
|
-
},
|
|
472
|
-
"scriptFormat": {
|
|
473
|
-
"$id": "#/properties/property/binding/scriptFormat",
|
|
474
|
-
"type": "string",
|
|
475
|
-
"title": "property binding script format",
|
|
476
|
-
"description": "The format of a script property binding (camunda:outputParameter, camunda:inputParameter)"
|
|
477
|
-
},
|
|
478
|
-
"source": {
|
|
479
|
-
"$id": "#/properties/property/binding/source",
|
|
480
|
-
"type": "string",
|
|
481
|
-
"title": "property binding source",
|
|
482
|
-
"description": "The source value of a property binding (camunda:outputParameter, camunda:out)"
|
|
483
|
-
},
|
|
484
|
-
"target": {
|
|
485
|
-
"$id": "#/properties/property/binding/target",
|
|
486
|
-
"type": "string",
|
|
487
|
-
"title": "property binding target",
|
|
488
|
-
"description": "The target value to be mapped to (camunda:in)"
|
|
489
|
-
},
|
|
490
|
-
"expression": {
|
|
491
|
-
"$id": "#/properties/property/binding/expression",
|
|
492
|
-
"type": "boolean",
|
|
493
|
-
"title": "property binding expression",
|
|
494
|
-
"description": "True indicates that the control field value is an expression (camunda:in, camunda:field)"
|
|
495
|
-
},
|
|
496
|
-
"variables": {
|
|
497
|
-
"$id": "#/properties/property/binding/variables",
|
|
498
|
-
"type": "string",
|
|
499
|
-
"title": "property binding variables",
|
|
500
|
-
"enum": [
|
|
501
|
-
"all",
|
|
502
|
-
"local"
|
|
503
|
-
],
|
|
504
|
-
"description": "Either all or local indicating the variable mapping (camunda:in)"
|
|
505
|
-
},
|
|
506
|
-
"sourceExpression": {
|
|
507
|
-
"$id": "#/properties/property/binding/sourceExpression",
|
|
508
|
-
"type": "string",
|
|
509
|
-
"title": "property binding source expression",
|
|
510
|
-
"description": "The string containing the expression for the source attribute (camunda:out)"
|
|
511
|
-
}
|
|
512
|
-
}
|
|
513
|
-
},
|
|
514
|
-
"constraints": {
|
|
515
|
-
"$id": "#/properties/property/constraints",
|
|
516
|
-
"type": "object",
|
|
517
|
-
"title": "property constraints",
|
|
518
|
-
"description": "The validation constraints",
|
|
519
|
-
"properties": {
|
|
520
|
-
"notEmpty": {
|
|
521
|
-
"$id": "#/properties/property/constraints/notEmpty",
|
|
522
|
-
"type": "boolean",
|
|
523
|
-
"title": "property constraints not empty",
|
|
524
|
-
"description": "The control field must not be empty"
|
|
525
|
-
},
|
|
526
|
-
"minLength": {
|
|
527
|
-
"$id": "#/properties/property/constraints/minLength",
|
|
528
|
-
"type": "number",
|
|
529
|
-
"title": "property constraints min length",
|
|
530
|
-
"description": "The minimal length for the control field value"
|
|
531
|
-
},
|
|
532
|
-
"maxLength": {
|
|
533
|
-
"$id": "#/properties/property/constraints/maxLength",
|
|
534
|
-
"type": "number",
|
|
535
|
-
"title": "property constraints max length",
|
|
536
|
-
"description": "The maximal length for the control field value"
|
|
537
|
-
},
|
|
538
|
-
"pattern": {
|
|
539
|
-
"$id": "#/properties/property/constraints/pattern",
|
|
540
|
-
"title": "property constraints pattern",
|
|
541
|
-
"description": "A regular expression pattern for the constraints",
|
|
542
|
-
"oneOf": [
|
|
517
|
+
},
|
|
543
518
|
{
|
|
544
|
-
"
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
"
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
"
|
|
519
|
+
"examples": [
|
|
520
|
+
{
|
|
521
|
+
"type": "property",
|
|
522
|
+
"name": "name"
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
"type": "camunda:property",
|
|
526
|
+
"name": "property"
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
"type": "camunda:inputParameter",
|
|
530
|
+
"name": "input"
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
"type": "camunda:outputParameter",
|
|
534
|
+
"source": "output"
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
"type": "camunda:in",
|
|
538
|
+
"target": "target"
|
|
539
|
+
},
|
|
540
|
+
{
|
|
541
|
+
"type": "camunda:in:businessKey"
|
|
542
|
+
},
|
|
543
|
+
{
|
|
544
|
+
"type": "camunda:out",
|
|
545
|
+
"source": "output"
|
|
551
546
|
},
|
|
552
|
-
|
|
553
|
-
"
|
|
554
|
-
"
|
|
555
|
-
|
|
556
|
-
|
|
547
|
+
{
|
|
548
|
+
"type": "camunda:executionListener",
|
|
549
|
+
"event": "start"
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
"type": "camunda:field",
|
|
553
|
+
"name": "field"
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
"type": "camunda:errorEventDefinition",
|
|
557
|
+
"errorRef": "error"
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
"type": "camunda:errorEventDefinition",
|
|
561
|
+
"errorRef": "error"
|
|
557
562
|
}
|
|
558
|
-
|
|
563
|
+
]
|
|
564
|
+
}
|
|
565
|
+
],
|
|
566
|
+
"properties": {
|
|
567
|
+
"type": {
|
|
568
|
+
"$id": "#/properties/property/binding/type",
|
|
569
|
+
"type": "string",
|
|
570
|
+
"enum": [
|
|
571
|
+
"property",
|
|
572
|
+
"camunda:property",
|
|
573
|
+
"camunda:inputParameter",
|
|
574
|
+
"camunda:outputParameter",
|
|
575
|
+
"camunda:in",
|
|
576
|
+
"camunda:out",
|
|
577
|
+
"camunda:in:businessKey",
|
|
578
|
+
"camunda:executionListener",
|
|
579
|
+
"camunda:field",
|
|
580
|
+
"camunda:errorEventDefinition"
|
|
581
|
+
],
|
|
582
|
+
"errorMessage": "invalid property.binding type ${0}; must be any of { property, camunda:property, camunda:inputParameter, camunda:outputParameter, camunda:in, camunda:out, camunda:in:businessKey, camunda:executionListener, camunda:field, camunda:errorEventDefinition }",
|
|
583
|
+
"description": "The type of a property binding."
|
|
559
584
|
},
|
|
560
|
-
{
|
|
561
|
-
"
|
|
585
|
+
"name": {
|
|
586
|
+
"$id": "#/properties/property/binding/name",
|
|
587
|
+
"type": "string",
|
|
588
|
+
"description": "The name of a property binding."
|
|
589
|
+
},
|
|
590
|
+
"event": {
|
|
591
|
+
"$id": "#/properties/property/binding/event",
|
|
592
|
+
"type": "string",
|
|
593
|
+
"description": "The event type of a property binding (camunda:executionListener)."
|
|
594
|
+
},
|
|
595
|
+
"scriptFormat": {
|
|
596
|
+
"$id": "#/properties/property/binding/scriptFormat",
|
|
597
|
+
"type": "string",
|
|
598
|
+
"description": "The script format of a property binding (camunda:outputParameter, camunda:inputParameter)."
|
|
599
|
+
},
|
|
600
|
+
"source": {
|
|
601
|
+
"$id": "#/properties/property/binding/source",
|
|
602
|
+
"type": "string",
|
|
603
|
+
"description": "The source value of a property binding (camunda:outputParameter, camunda:out)."
|
|
604
|
+
},
|
|
605
|
+
"target": {
|
|
606
|
+
"$id": "#/properties/property/binding/target",
|
|
607
|
+
"type": "string",
|
|
608
|
+
"description": "The target value of a property binding (camunda:in)."
|
|
609
|
+
},
|
|
610
|
+
"expression": {
|
|
611
|
+
"$id": "#/properties/property/binding/expression",
|
|
612
|
+
"type": "boolean",
|
|
613
|
+
"description": "Indicates whether the control field value is an expression (camunda:in, camunda:field)."
|
|
614
|
+
},
|
|
615
|
+
"variables": {
|
|
616
|
+
"$id": "#/properties/property/binding/variables",
|
|
617
|
+
"type": "string",
|
|
618
|
+
"enum": [
|
|
619
|
+
"all",
|
|
620
|
+
"local"
|
|
621
|
+
],
|
|
622
|
+
"description": "The variable mapping of a property binding (camunda:in)."
|
|
623
|
+
},
|
|
624
|
+
"sourceExpression": {
|
|
625
|
+
"$id": "#/properties/property/binding/sourceExpression",
|
|
626
|
+
"type": "string",
|
|
627
|
+
"description": "The string containing the expression for the source attribute (camunda:out)."
|
|
562
628
|
}
|
|
563
|
-
|
|
629
|
+
}
|
|
564
630
|
}
|
|
565
631
|
}
|
|
566
|
-
},
|
|
567
|
-
"group": {
|
|
568
|
-
"$id": "#/properties/property/group",
|
|
569
|
-
"type": "string",
|
|
570
|
-
"title": "property group",
|
|
571
|
-
"description": "The custom group of the control field for the property"
|
|
572
632
|
}
|
|
573
633
|
}
|
|
574
|
-
|
|
634
|
+
]
|
|
575
635
|
},
|
|
576
|
-
"
|
|
577
|
-
"
|
|
578
|
-
"
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
"properties": {
|
|
587
|
-
"type": {
|
|
588
|
-
"$id": "#scopes/item/type",
|
|
589
|
-
"type": "string",
|
|
590
|
-
"enum": [
|
|
591
|
-
"camunda:Connector",
|
|
592
|
-
"bpmn:Error"
|
|
593
|
-
],
|
|
594
|
-
"errorMessage": "invalid scope type ${0}; must be any of { camunda:Connector, bpmn:Error }"
|
|
595
|
-
},
|
|
636
|
+
"template": {
|
|
637
|
+
"type": "object",
|
|
638
|
+
"allOf": [
|
|
639
|
+
{
|
|
640
|
+
"required": [
|
|
641
|
+
"name",
|
|
642
|
+
"id",
|
|
643
|
+
"appliesTo",
|
|
644
|
+
"properties"
|
|
645
|
+
],
|
|
596
646
|
"properties": {
|
|
597
|
-
"
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
"
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
"
|
|
647
|
+
"name": {
|
|
648
|
+
"$id": "#/name",
|
|
649
|
+
"type": "string",
|
|
650
|
+
"description": "The name of the element template."
|
|
651
|
+
},
|
|
652
|
+
"id": {
|
|
653
|
+
"$id": "#/id",
|
|
654
|
+
"type": "string",
|
|
655
|
+
"description": "The identifier of the element template."
|
|
656
|
+
},
|
|
657
|
+
"description": {
|
|
658
|
+
"$id": "#/description",
|
|
659
|
+
"type": "string",
|
|
660
|
+
"description": "The description of the element template."
|
|
661
|
+
},
|
|
662
|
+
"version": {
|
|
663
|
+
"$id": "#/version",
|
|
664
|
+
"type": "number",
|
|
665
|
+
"description": "Optional version of the template. If you add a version to a template it will be considered unique based on its ID and version. Two templates can have the same ID if their version is different."
|
|
666
|
+
},
|
|
667
|
+
"isDefault": {
|
|
668
|
+
"$id": "#/isDefault",
|
|
669
|
+
"type": "boolean",
|
|
670
|
+
"description": "Indicates whether the element template is a default template."
|
|
671
|
+
},
|
|
672
|
+
"appliesTo": {
|
|
673
|
+
"$id": "#/appliesTo",
|
|
674
|
+
"type": "array",
|
|
675
|
+
"description": "List of BPMN types the template can be applied to.",
|
|
676
|
+
"default": [],
|
|
677
|
+
"items": {
|
|
678
|
+
"$id": "#/appliesTo/items",
|
|
679
|
+
"type": "string",
|
|
680
|
+
"pattern": "^[\\w\\d]+:[\\w\\d]+$",
|
|
681
|
+
"errorMessage": {
|
|
682
|
+
"pattern": "invalid item for \"appliesTo\", should contain namespaced property, example: \"bpmn:Task\""
|
|
683
|
+
},
|
|
684
|
+
"allOf": [
|
|
685
|
+
{
|
|
686
|
+
"examples": [
|
|
687
|
+
"bpmn:Task",
|
|
688
|
+
"bpmn:ServiceTask",
|
|
689
|
+
"bpmn:SequenceFlow",
|
|
690
|
+
"bpmn:Process",
|
|
691
|
+
"bpmn:StartEvent",
|
|
692
|
+
"bpmn:Gateway"
|
|
693
|
+
]
|
|
694
|
+
}
|
|
695
|
+
]
|
|
696
|
+
}
|
|
697
|
+
},
|
|
698
|
+
"elementType": {
|
|
699
|
+
"$id": "#/elementType",
|
|
700
|
+
"type": "object",
|
|
701
|
+
"description": "The BPMN type the element will be transformed into.",
|
|
702
|
+
"default": {},
|
|
613
703
|
"properties": {
|
|
614
|
-
"
|
|
615
|
-
"
|
|
616
|
-
|
|
704
|
+
"value": {
|
|
705
|
+
"$id": "#/elementType/value",
|
|
706
|
+
"type": "string",
|
|
707
|
+
"pattern": "^[\\w\\d]+:[\\w\\d]+$",
|
|
708
|
+
"errorMessage": {
|
|
709
|
+
"pattern": "invalid item for \"elementType\", should contain namespaced property, example: \"bpmn:Task\""
|
|
710
|
+
},
|
|
711
|
+
"allOf": [
|
|
712
|
+
{
|
|
713
|
+
"examples": [
|
|
714
|
+
"bpmn:ServiceTask",
|
|
715
|
+
"bpmn:UserTask",
|
|
716
|
+
"bpmn:StartEvent",
|
|
717
|
+
"bpmn:ExclusiveGateway",
|
|
718
|
+
"bpmn:ParallelGateway"
|
|
719
|
+
]
|
|
720
|
+
}
|
|
617
721
|
]
|
|
618
722
|
}
|
|
619
|
-
}
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
723
|
+
}
|
|
724
|
+
},
|
|
725
|
+
"metadata": {
|
|
726
|
+
"$id": "#/metadata",
|
|
727
|
+
"type": "object",
|
|
728
|
+
"description": "Some custom properties for further configuration.",
|
|
729
|
+
"default": {}
|
|
623
730
|
},
|
|
624
|
-
"
|
|
625
|
-
"
|
|
626
|
-
|
|
731
|
+
"entriesVisible": {
|
|
732
|
+
"$id": "#/entriesVisible",
|
|
733
|
+
"type": "boolean",
|
|
734
|
+
"description": "Select whether non-template entries are visible in the properties panel."
|
|
735
|
+
},
|
|
736
|
+
"groups": {
|
|
737
|
+
"$id": "#/groups",
|
|
738
|
+
"type": "array",
|
|
739
|
+
"description": "Custom fields can be ordered together via groups.",
|
|
740
|
+
"allOf": [
|
|
741
|
+
{
|
|
742
|
+
"examples": [
|
|
743
|
+
[
|
|
744
|
+
{
|
|
745
|
+
"id": "group-1",
|
|
746
|
+
"label": "My Group"
|
|
747
|
+
}
|
|
748
|
+
]
|
|
749
|
+
]
|
|
750
|
+
}
|
|
627
751
|
],
|
|
628
|
-
"
|
|
752
|
+
"items": {
|
|
753
|
+
"$id": "#/groups/group",
|
|
754
|
+
"type": "object",
|
|
755
|
+
"default": {},
|
|
756
|
+
"required": [
|
|
757
|
+
"id",
|
|
758
|
+
"label"
|
|
759
|
+
],
|
|
760
|
+
"errorMessage": {
|
|
761
|
+
"required": {
|
|
762
|
+
"id": "missing id for group \"${0#}\"",
|
|
763
|
+
"label": "missing label for group \"${0#}\""
|
|
764
|
+
}
|
|
765
|
+
},
|
|
766
|
+
"properties": {
|
|
767
|
+
"id": {
|
|
768
|
+
"$id": "#/groups/group/id",
|
|
769
|
+
"type": "string",
|
|
770
|
+
"description": "The id of the custom group"
|
|
771
|
+
},
|
|
772
|
+
"label": {
|
|
773
|
+
"$id": "#/groups/group/label",
|
|
774
|
+
"type": "string",
|
|
775
|
+
"description": "The label of the custom group"
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
},
|
|
780
|
+
"documentationRef": {
|
|
781
|
+
"$id": "#/documentaionRef",
|
|
782
|
+
"type": "string",
|
|
783
|
+
"pattern": "^(https|http)://.*",
|
|
784
|
+
"errorMessage": {
|
|
785
|
+
"pattern": "Malformed documentation URL, must match \"^(https|http)://.*\""
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
},
|
|
789
|
+
"errorMessage": {
|
|
790
|
+
"required": {
|
|
791
|
+
"name": "missing template name",
|
|
792
|
+
"id": "missing template id",
|
|
793
|
+
"appliesTo": "missing appliesTo=[]",
|
|
794
|
+
"properties": "missing properties=[]"
|
|
629
795
|
}
|
|
630
796
|
}
|
|
631
|
-
|
|
632
|
-
}
|
|
633
|
-
},
|
|
634
|
-
"template": {
|
|
635
|
-
"type": "object",
|
|
636
|
-
"required": [
|
|
637
|
-
"name",
|
|
638
|
-
"id",
|
|
639
|
-
"appliesTo",
|
|
640
|
-
"properties"
|
|
797
|
+
}
|
|
641
798
|
],
|
|
642
799
|
"properties": {
|
|
643
|
-
"name": {
|
|
644
|
-
"$id": "#/name",
|
|
645
|
-
"type": "string",
|
|
646
|
-
"title": "element template name",
|
|
647
|
-
"description": "The name of the element template"
|
|
648
|
-
},
|
|
649
|
-
"id": {
|
|
650
|
-
"$id": "#/id",
|
|
651
|
-
"type": "string",
|
|
652
|
-
"title": "element template id",
|
|
653
|
-
"description": "The identifier of the element template"
|
|
654
|
-
},
|
|
655
|
-
"description": {
|
|
656
|
-
"$id": "#/description",
|
|
657
|
-
"type": "string",
|
|
658
|
-
"title": "element template description",
|
|
659
|
-
"description": "The description of the element template"
|
|
660
|
-
},
|
|
661
|
-
"version": {
|
|
662
|
-
"$id": "#/version",
|
|
663
|
-
"type": "number",
|
|
664
|
-
"title": "element template version",
|
|
665
|
-
"description": "The version of the element template"
|
|
666
|
-
},
|
|
667
|
-
"isDefault": {
|
|
668
|
-
"$id": "#/isDefault",
|
|
669
|
-
"type": "boolean",
|
|
670
|
-
"title": "element template is default",
|
|
671
|
-
"description": "Indicates whether the element template is a default template"
|
|
672
|
-
},
|
|
673
|
-
"appliesTo": {
|
|
674
|
-
"$id": "#/appliesTo",
|
|
675
|
-
"type": "array",
|
|
676
|
-
"title": "element template applies to",
|
|
677
|
-
"description": "The definition for which element types the element template can be applied",
|
|
678
|
-
"default": [],
|
|
679
|
-
"items": {
|
|
680
|
-
"$id": "#/appliesTo/items",
|
|
681
|
-
"type": "string",
|
|
682
|
-
"pattern": "^(.*?:)",
|
|
683
|
-
"errorMessage": {
|
|
684
|
-
"pattern": "invalid item for \"appliesTo\", should contain namespaced property, example: \"bpmn:Task\""
|
|
685
|
-
}
|
|
686
|
-
}
|
|
687
|
-
},
|
|
688
800
|
"properties": {
|
|
689
801
|
"$ref": "#/definitions/properties",
|
|
690
802
|
"$id": "#/properties"
|
|
691
803
|
},
|
|
692
|
-
"metadata": {
|
|
693
|
-
"$id": "#/metadata",
|
|
694
|
-
"type": "object",
|
|
695
|
-
"title": "element template metadata",
|
|
696
|
-
"description": "Some metadata for further configuration"
|
|
697
|
-
},
|
|
698
804
|
"scopes": {
|
|
699
|
-
"$
|
|
700
|
-
"$id": "#/scopes"
|
|
701
|
-
},
|
|
702
|
-
"entriesVisible": {
|
|
703
|
-
"$id": "#/entriesVisible",
|
|
704
|
-
"type": "boolean",
|
|
705
|
-
"title": "element template entries visible",
|
|
706
|
-
"description": "Select whether non-template entries are visible in the properties panel"
|
|
707
|
-
},
|
|
708
|
-
"groups": {
|
|
709
|
-
"$id": "#/groups",
|
|
805
|
+
"$id": "#/scopes",
|
|
710
806
|
"type": "array",
|
|
711
|
-
"
|
|
712
|
-
"
|
|
713
|
-
|
|
807
|
+
"description": "Special scoped bindings that allow you to configure nested elements.",
|
|
808
|
+
"allOf": [
|
|
809
|
+
{
|
|
810
|
+
"examples": [
|
|
811
|
+
[
|
|
812
|
+
{
|
|
813
|
+
"type": "bpmn:Error",
|
|
814
|
+
"id": "Error_1",
|
|
815
|
+
"properties": [
|
|
816
|
+
{
|
|
817
|
+
"value": "error-code",
|
|
818
|
+
"binding": {
|
|
819
|
+
"type": "property",
|
|
820
|
+
"name": "errorCode"
|
|
821
|
+
}
|
|
822
|
+
},
|
|
823
|
+
{
|
|
824
|
+
"value": "error-message",
|
|
825
|
+
"binding": {
|
|
826
|
+
"type": "property",
|
|
827
|
+
"name": "camunda:errorMessage"
|
|
828
|
+
}
|
|
829
|
+
},
|
|
830
|
+
{
|
|
831
|
+
"value": "error-name",
|
|
832
|
+
"binding": {
|
|
833
|
+
"type": "property",
|
|
834
|
+
"name": "name"
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
]
|
|
838
|
+
}
|
|
839
|
+
]
|
|
840
|
+
]
|
|
841
|
+
}
|
|
842
|
+
],
|
|
714
843
|
"items": {
|
|
715
|
-
"$id": "#/
|
|
844
|
+
"$id": "#/scopes/item",
|
|
716
845
|
"type": "object",
|
|
717
|
-
"title": "element template group",
|
|
718
|
-
"description": "A custom defined group for the element template",
|
|
719
846
|
"default": {},
|
|
847
|
+
"properties": {
|
|
848
|
+
"type": {
|
|
849
|
+
"$id": "#scopes/item/type",
|
|
850
|
+
"type": "string",
|
|
851
|
+
"description": "The type of a scope.",
|
|
852
|
+
"enum": [
|
|
853
|
+
"camunda:Connector",
|
|
854
|
+
"bpmn:Error"
|
|
855
|
+
],
|
|
856
|
+
"errorMessage": "invalid scope type ${0}; must be any of { camunda:Connector, bpmn:Error }"
|
|
857
|
+
},
|
|
858
|
+
"properties": {
|
|
859
|
+
"$id": "#/scopes/properties",
|
|
860
|
+
"description": "List of properties of a scope.",
|
|
861
|
+
"default": [],
|
|
862
|
+
"allOf": [
|
|
863
|
+
{
|
|
864
|
+
"$ref": "#/definitions/properties/allOf/0"
|
|
865
|
+
},
|
|
866
|
+
{
|
|
867
|
+
"$ref": "#/definitions/properties/allOf/1"
|
|
868
|
+
}
|
|
869
|
+
]
|
|
870
|
+
}
|
|
871
|
+
},
|
|
720
872
|
"required": [
|
|
721
|
-
"
|
|
722
|
-
"
|
|
873
|
+
"type",
|
|
874
|
+
"properties"
|
|
723
875
|
],
|
|
724
876
|
"errorMessage": {
|
|
725
877
|
"required": {
|
|
726
|
-
"
|
|
727
|
-
"
|
|
878
|
+
"type": "invalid scope, missing type",
|
|
879
|
+
"properties": "invalid scope ${0/type}, missing properties=[]"
|
|
728
880
|
}
|
|
729
881
|
},
|
|
730
|
-
"
|
|
731
|
-
|
|
732
|
-
"
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
882
|
+
"allOf": [
|
|
883
|
+
{
|
|
884
|
+
"if": {
|
|
885
|
+
"properties": {
|
|
886
|
+
"type": {
|
|
887
|
+
"enum": [
|
|
888
|
+
"bpmn:Error"
|
|
889
|
+
]
|
|
890
|
+
}
|
|
891
|
+
},
|
|
892
|
+
"required": [
|
|
893
|
+
"type"
|
|
894
|
+
]
|
|
895
|
+
},
|
|
896
|
+
"then": {
|
|
897
|
+
"required": [
|
|
898
|
+
"id"
|
|
899
|
+
],
|
|
900
|
+
"errorMessage": "invalid scope ${0/type}, missing id"
|
|
901
|
+
}
|
|
742
902
|
}
|
|
743
|
-
|
|
903
|
+
]
|
|
744
904
|
}
|
|
745
905
|
}
|
|
746
|
-
},
|
|
747
|
-
"errorMessage": {
|
|
748
|
-
"required": {
|
|
749
|
-
"name": "missing template name",
|
|
750
|
-
"id": "missing template id",
|
|
751
|
-
"appliesTo": "missing appliesTo=[]",
|
|
752
|
-
"properties": "missing properties=[]"
|
|
753
|
-
}
|
|
754
906
|
}
|
|
755
907
|
}
|
|
756
908
|
},
|
|
757
909
|
"oneOf": [
|
|
758
910
|
{
|
|
911
|
+
"description": "An element template configuration.",
|
|
759
912
|
"$ref": "#/definitions/template"
|
|
760
913
|
},
|
|
761
914
|
{
|
|
762
915
|
"type": "array",
|
|
916
|
+
"description": "A list of element template configurations.",
|
|
763
917
|
"items": {
|
|
764
918
|
"$ref": "#/definitions/template"
|
|
765
919
|
}
|
|
766
920
|
}
|
|
767
921
|
]
|
|
768
|
-
}
|
|
922
|
+
}
|