@camunda/zeebe-element-templates-json-schema 0.36.0 → 0.38.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/zeebe-element-templates-json-schema",
3
- "version": "0.36.0",
3
+ "version": "0.38.0",
4
4
  "description": "JSON Schema for (Zeebe) Element Templates",
5
5
  "files": [
6
6
  "resources"
@@ -25,6 +25,5 @@
25
25
  "element-templates",
26
26
  "camunda"
27
27
  ],
28
- "license": "MIT",
29
- "gitHead": "336b49f596986af7ea4021df960b1fced01020e0"
28
+ "license": "MIT"
30
29
  }
@@ -330,7 +330,7 @@
330
330
  "properties",
331
331
  "type"
332
332
  ],
333
- "errorMessage": "invalid property.binding type ${0}; must be any of { property, zeebe:taskDefinition:type, zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader, bpmn:Message#property, bpmn:Message#zeebe:subscription#property, zeebe:taskDefinition, zeebe:calledElement, zeebe:linkedResource, zeebe:userTask, zeebe:formDefinition, zeebe:calledDecision, zeebe:script, zeebe:assignmentDefinition, zeebe:priorityDefinition, zeebe:adHoc, zeebe:taskSchedule, bpmn:Signal#property, bpmn:TimerEventDefinition#property }"
333
+ "errorMessage": "invalid property.binding type ${0}; must be any of { property, zeebe:taskDefinition:type, zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader, bpmn:Message#property, bpmn:Message#zeebe:subscription#property, zeebe:taskDefinition, zeebe:calledElement, zeebe:linkedResource, zeebe:userTask, zeebe:formDefinition, zeebe:calledDecision, zeebe:script, zeebe:assignmentDefinition, zeebe:priorityDefinition, zeebe:adHoc, zeebe:taskSchedule, zeebe:executionListener, zeebe:taskListener, bpmn:Signal#property, bpmn:TimerEventDefinition#property }"
334
334
  },
335
335
  {
336
336
  "path": [
@@ -851,5 +851,19 @@
851
851
  "not"
852
852
  ],
853
853
  "errorMessage": "Binding with `type`=`bpmn:TimerEventDefinition#property` and `name`=`timeCycle` is only allowed on `bpmn:StartEvent` or `bpmn:BoundaryEvent` templates"
854
+ },
855
+ {
856
+ "path": [
857
+ "definitions",
858
+ "template",
859
+ "allOf",
860
+ 1,
861
+ "allOf",
862
+ 12,
863
+ "then",
864
+ "properties",
865
+ "properties"
866
+ ],
867
+ "errorMessage": "Binding with `type`=`zeebe:output` cannot be used when `propagateAllChildVariables` is set to `true`"
854
868
  }
855
869
  ]
@@ -1734,10 +1734,7 @@
1734
1734
  "const": "bpmn:ConditionalEventDefinition#zeebe:conditionalFilter#property"
1735
1735
  },
1736
1736
  "name": {
1737
- "enum": [
1738
- "variableNames",
1739
- "variableEvents"
1740
- ]
1737
+ "const": "variableEvents"
1741
1738
  }
1742
1739
  },
1743
1740
  "required": [
@@ -1766,6 +1763,50 @@
1766
1763
  }
1767
1764
  }
1768
1765
  ]
1766
+ },
1767
+ {
1768
+ "if": {
1769
+ "properties": {
1770
+ "binding": {
1771
+ "properties": {
1772
+ "type": {
1773
+ "enum": [
1774
+ "zeebe:executionListener",
1775
+ "zeebe:taskListener"
1776
+ ]
1777
+ }
1778
+ },
1779
+ "required": [
1780
+ "type"
1781
+ ]
1782
+ }
1783
+ },
1784
+ "required": [
1785
+ "binding"
1786
+ ]
1787
+ },
1788
+ "then": {
1789
+ "required": [
1790
+ "type"
1791
+ ],
1792
+ "properties": {
1793
+ "type": {
1794
+ "const": "Hidden"
1795
+ }
1796
+ },
1797
+ "anyOf": [
1798
+ {
1799
+ "required": [
1800
+ "value"
1801
+ ]
1802
+ },
1803
+ {
1804
+ "required": [
1805
+ "generatedValue"
1806
+ ]
1807
+ }
1808
+ ]
1809
+ }
1769
1810
  }
1770
1811
  ],
1771
1812
  "properties": {
@@ -2170,16 +2211,102 @@
2170
2211
  "then": {
2171
2212
  "properties": {
2172
2213
  "name": {
2214
+ "const": "variableEvents"
2215
+ }
2216
+ },
2217
+ "required": [
2218
+ "name"
2219
+ ]
2220
+ }
2221
+ }
2222
+ ]
2223
+ },
2224
+ {
2225
+ "allOf": [
2226
+ {
2227
+ "if": {
2228
+ "properties": {
2229
+ "type": {
2230
+ "const": "zeebe:executionListener"
2231
+ }
2232
+ },
2233
+ "required": [
2234
+ "type"
2235
+ ]
2236
+ },
2237
+ "then": {
2238
+ "properties": {
2239
+ "eventType": {
2173
2240
  "enum": [
2174
- "variableNames",
2175
- "variableEvents"
2241
+ "start",
2242
+ "end"
2176
2243
  ]
2177
2244
  }
2178
2245
  },
2179
2246
  "required": [
2180
- "name"
2247
+ "eventType"
2181
2248
  ]
2182
2249
  }
2250
+ },
2251
+ {
2252
+ "if": {
2253
+ "properties": {
2254
+ "type": {
2255
+ "const": "zeebe:taskListener"
2256
+ }
2257
+ },
2258
+ "required": [
2259
+ "type"
2260
+ ]
2261
+ },
2262
+ "then": {
2263
+ "properties": {
2264
+ "eventType": {
2265
+ "enum": [
2266
+ "creating",
2267
+ "assigning",
2268
+ "updating",
2269
+ "completing"
2270
+ ]
2271
+ }
2272
+ },
2273
+ "required": [
2274
+ "eventType"
2275
+ ]
2276
+ }
2277
+ },
2278
+ {
2279
+ "if": {
2280
+ "properties": {
2281
+ "type": {
2282
+ "not": {
2283
+ "enum": [
2284
+ "zeebe:executionListener",
2285
+ "zeebe:taskListener"
2286
+ ]
2287
+ }
2288
+ }
2289
+ },
2290
+ "required": [
2291
+ "type"
2292
+ ]
2293
+ },
2294
+ "then": {
2295
+ "not": {
2296
+ "anyOf": [
2297
+ {
2298
+ "required": [
2299
+ "eventType"
2300
+ ]
2301
+ },
2302
+ {
2303
+ "required": [
2304
+ "retries"
2305
+ ]
2306
+ }
2307
+ ]
2308
+ }
2309
+ }
2183
2310
  }
2184
2311
  ]
2185
2312
  },
@@ -2212,6 +2339,14 @@
2212
2339
  {
2213
2340
  "type": "zeebe:taskDefinition",
2214
2341
  "property": "type"
2342
+ },
2343
+ {
2344
+ "type": "zeebe:executionListener",
2345
+ "eventType": "start"
2346
+ },
2347
+ {
2348
+ "type": "zeebe:taskListener",
2349
+ "eventType": "completing"
2215
2350
  }
2216
2351
  ]
2217
2352
  }
@@ -2241,6 +2376,8 @@
2241
2376
  "zeebe:priorityDefinition",
2242
2377
  "zeebe:adHoc",
2243
2378
  "zeebe:taskSchedule",
2379
+ "zeebe:executionListener",
2380
+ "zeebe:taskListener",
2244
2381
  "bpmn:Signal#property",
2245
2382
  "bpmn:TimerEventDefinition#property",
2246
2383
  "bpmn:ConditionalEventDefinition#property",
@@ -2271,6 +2408,16 @@
2271
2408
  "$id": "#/properties/property/binding/linkName",
2272
2409
  "type": "string",
2273
2410
  "description": "The `linkName` of the element (zeebe:linkedResource)."
2411
+ },
2412
+ "eventType": {
2413
+ "$id": "#/properties/property/binding/eventType",
2414
+ "type": "string",
2415
+ "description": "The event type of a property binding (zeebe:executionListener, zeebe:taskListener)."
2416
+ },
2417
+ "retries": {
2418
+ "$id": "#/properties/property/binding/retries",
2419
+ "type": "string",
2420
+ "description": "The number of retries for a listener (zeebe:executionListener, zeebe:taskListener)."
2274
2421
  }
2275
2422
  }
2276
2423
  },
@@ -2446,11 +2593,6 @@
2446
2593
  "description": "List of keywords to help users find the template. Used in search and filtering, but not displayed in the UI.",
2447
2594
  "default": []
2448
2595
  },
2449
- "entriesVisible": {
2450
- "$id": "#/entriesVisible",
2451
- "type": "boolean",
2452
- "description": "Defines whether all property input fields are shown, even those normally hidden by the template."
2453
- },
2454
2596
  "groups": {
2455
2597
  "$id": "#/groups",
2456
2598
  "type": "array",
@@ -4016,6 +4158,220 @@
4016
4158
  }
4017
4159
  }
4018
4160
  ]
4161
+ },
4162
+ {
4163
+ "if": {
4164
+ "properties": {
4165
+ "properties": {
4166
+ "contains": {
4167
+ "properties": {
4168
+ "binding": {
4169
+ "properties": {
4170
+ "type": {
4171
+ "const": "zeebe:calledElement"
4172
+ },
4173
+ "property": {
4174
+ "const": "propagateAllChildVariables"
4175
+ }
4176
+ },
4177
+ "required": [
4178
+ "property",
4179
+ "type"
4180
+ ]
4181
+ },
4182
+ "value": {
4183
+ "const": true
4184
+ }
4185
+ },
4186
+ "required": [
4187
+ "binding",
4188
+ "value"
4189
+ ]
4190
+ }
4191
+ }
4192
+ },
4193
+ "required": [
4194
+ "properties"
4195
+ ]
4196
+ },
4197
+ "then": {
4198
+ "properties": {
4199
+ "properties": {
4200
+ "not": {
4201
+ "contains": {
4202
+ "properties": {
4203
+ "binding": {
4204
+ "properties": {
4205
+ "type": {
4206
+ "const": "zeebe:output"
4207
+ }
4208
+ },
4209
+ "required": [
4210
+ "type"
4211
+ ]
4212
+ }
4213
+ },
4214
+ "required": [
4215
+ "binding"
4216
+ ]
4217
+ }
4218
+ }
4219
+ }
4220
+ },
4221
+ "required": [
4222
+ "properties"
4223
+ ]
4224
+ }
4225
+ },
4226
+ {
4227
+ "allOf": [
4228
+ {
4229
+ "if": {
4230
+ "properties": {
4231
+ "properties": {
4232
+ "contains": {
4233
+ "properties": {
4234
+ "binding": {
4235
+ "properties": {
4236
+ "type": {
4237
+ "const": "zeebe:taskListener"
4238
+ }
4239
+ },
4240
+ "required": [
4241
+ "type"
4242
+ ]
4243
+ }
4244
+ },
4245
+ "required": [
4246
+ "binding"
4247
+ ]
4248
+ }
4249
+ }
4250
+ },
4251
+ "required": [
4252
+ "properties"
4253
+ ]
4254
+ },
4255
+ "then": {
4256
+ "anyOf": [
4257
+ {
4258
+ "required": [
4259
+ "elementType"
4260
+ ],
4261
+ "properties": {
4262
+ "elementType": {
4263
+ "required": [
4264
+ "value"
4265
+ ],
4266
+ "properties": {
4267
+ "value": {
4268
+ "const": "bpmn:UserTask"
4269
+ }
4270
+ }
4271
+ }
4272
+ }
4273
+ },
4274
+ {
4275
+ "required": [
4276
+ "appliesTo"
4277
+ ],
4278
+ "properties": {
4279
+ "appliesTo": {
4280
+ "const": [
4281
+ "bpmn:UserTask"
4282
+ ]
4283
+ }
4284
+ }
4285
+ }
4286
+ ]
4287
+ }
4288
+ },
4289
+ {
4290
+ "if": {
4291
+ "properties": {
4292
+ "properties": {
4293
+ "contains": {
4294
+ "properties": {
4295
+ "binding": {
4296
+ "properties": {
4297
+ "type": {
4298
+ "const": "zeebe:executionListener"
4299
+ }
4300
+ },
4301
+ "required": [
4302
+ "type"
4303
+ ]
4304
+ }
4305
+ },
4306
+ "required": [
4307
+ "binding"
4308
+ ]
4309
+ }
4310
+ }
4311
+ },
4312
+ "required": [
4313
+ "properties"
4314
+ ]
4315
+ },
4316
+ "then": {
4317
+ "required": [
4318
+ "entriesVisible"
4319
+ ],
4320
+ "properties": {
4321
+ "entriesVisible": {
4322
+ "type": "object",
4323
+ "required": [
4324
+ "executionListeners"
4325
+ ],
4326
+ "properties": {
4327
+ "executionListeners": {
4328
+ "const": false
4329
+ }
4330
+ }
4331
+ }
4332
+ }
4333
+ }
4334
+ },
4335
+ {
4336
+ "if": {
4337
+ "properties": {
4338
+ "properties": {
4339
+ "contains": {
4340
+ "properties": {
4341
+ "binding": {
4342
+ "properties": {
4343
+ "type": {
4344
+ "const": "zeebe:taskListener"
4345
+ }
4346
+ },
4347
+ "required": [
4348
+ "type"
4349
+ ]
4350
+ }
4351
+ },
4352
+ "required": [
4353
+ "binding"
4354
+ ]
4355
+ }
4356
+ }
4357
+ },
4358
+ "required": [
4359
+ "properties"
4360
+ ]
4361
+ },
4362
+ "then": {
4363
+ "properties": {
4364
+ "entriesVisible": {
4365
+ "properties": {
4366
+ "taskListeners": {
4367
+ "const": false
4368
+ }
4369
+ }
4370
+ }
4371
+ }
4372
+ }
4373
+ }
4374
+ ]
4019
4375
  }
4020
4376
  ]
4021
4377
  },
@@ -4519,6 +4875,33 @@
4519
4875
  }
4520
4876
  }
4521
4877
  }
4878
+ },
4879
+ "entriesVisible": {
4880
+ "$id": "#/entriesVisible",
4881
+ "oneOf": [
4882
+ {
4883
+ "type": "boolean"
4884
+ },
4885
+ {
4886
+ "type": "object",
4887
+ "properties": {
4888
+ "outputs": {
4889
+ "type": "boolean",
4890
+ "default": false
4891
+ },
4892
+ "executionListeners": {
4893
+ "type": "boolean",
4894
+ "default": true
4895
+ },
4896
+ "taskListeners": {
4897
+ "type": "boolean",
4898
+ "default": false
4899
+ }
4900
+ },
4901
+ "additionalProperties": false
4902
+ }
4903
+ ],
4904
+ "description": "Defines whether standard property groups, normally hidden by the template, are shown. When set to true, all standard groups are shown. When set to an object, specified standard groups are additionally shown (e.g. { \"outputs\": true })."
4522
4905
  }
4523
4906
  }
4524
4907
  }
@@ -1,17 +0,0 @@
1
- {
2
- "$schema": "./schema.json",
3
- "name": "abc",
4
- "id": "502175ce-da98-405c-af9f-c88883dddfa6",
5
- "version": 1732785081726,
6
- "description": "",
7
- "appliesTo": [
8
- "bpmn:Task"
9
- ],
10
- "engines": {
11
- "camunda": "*"
12
- },
13
- "properties": [],
14
- "icon": {
15
- "contents": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAJBlWElmTU0AKgAAAAgABgEGAAMAAAABAAIAAAESAAMAAAABAAEAAAEaAAUAAAABAAAAVgEbAAUAAAABAAAAXgEoAAMAAAABAAIAAIdpAAQAAAABAAAAZgAAAAAAAABIAAAAAQAAAEgAAAABAAOgAQADAAAAAQABAACgAgAEAAAAAQAAABSgAwAEAAAAAQAAABQAAAAACYcg2gAAAAlwSFlzAAALEwAACxMBAJqcGAAAAm1pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDYuMC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iPgogICAgICAgICA8dGlmZjpQaG90b21ldHJpY0ludGVycHJldGF0aW9uPjI8L3RpZmY6UGhvdG9tZXRyaWNJbnRlcnByZXRhdGlvbj4KICAgICAgICAgPHRpZmY6WFJlc29sdXRpb24+NzI8L3RpZmY6WFJlc29sdXRpb24+CiAgICAgICAgIDx0aWZmOllSZXNvbHV0aW9uPjcyPC90aWZmOllSZXNvbHV0aW9uPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICAgICA8dGlmZjpDb21wcmVzc2lvbj4xPC90aWZmOkNvbXByZXNzaW9uPgogICAgICAgICA8dGlmZjpSZXNvbHV0aW9uVW5pdD4yPC90aWZmOlJlc29sdXRpb25Vbml0PgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KsVruIwAAANlJREFUOBHtlM0NhiAMhoui83hnCcdiHCfw5jqScDMh+vn2Sw0xUj14tAla+vMALcFsu9CLUr3IYtQHvK7ouq6E8UTsXRAuQVX9Sw3dGKOm3AIBmKaJIc45FcZO3MMr2Y/I5nEccU95QIeIjyenj7rDlBKFEMh7z8h5ngk2a8tpBgtcnQOJaETbtjQMA4f0fU/LslBd10VocSnsQjobYzzWbJpGbUwRCIJ0tOu6Awib2A9jphSPLDGoiAByXfznv7pDBAMmZRbwGZLPb4ECzZM0/XtttOo88/0AKcyM+XZC2/gAAAAASUVORK5CYII="
16
- }
17
- }