@camunda/zeebe-element-templates-json-schema 0.29.0 → 0.30.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 +2 -2
- package/resources/error-messages.json +56 -1
- package/resources/schema.json +262 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camunda/zeebe-element-templates-json-schema",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.30.0",
|
|
4
4
|
"description": "JSON Schema for (Zeebe) Element Templates",
|
|
5
5
|
"files": [
|
|
6
6
|
"resources"
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"camunda"
|
|
27
27
|
],
|
|
28
28
|
"license": "MIT",
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "7b625bf1b1e039326ef10aef5d8d2ea12581bf71"
|
|
30
30
|
}
|
|
@@ -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 }"
|
|
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 }"
|
|
334
334
|
},
|
|
335
335
|
{
|
|
336
336
|
"path": [
|
|
@@ -732,5 +732,60 @@
|
|
|
732
732
|
2
|
|
733
733
|
],
|
|
734
734
|
"errorMessage": "When using \"zeebe:adHoc\" with properties \"outputCollection\" and \"outputElement\", \"zeebe:taskDefinition\" with property=\"type\" must be set on the same element"
|
|
735
|
+
},
|
|
736
|
+
{
|
|
737
|
+
"path": [
|
|
738
|
+
"definitions",
|
|
739
|
+
"template",
|
|
740
|
+
"allOf",
|
|
741
|
+
1,
|
|
742
|
+
"allOf",
|
|
743
|
+
9,
|
|
744
|
+
"allOf",
|
|
745
|
+
2,
|
|
746
|
+
"then",
|
|
747
|
+
"allOf",
|
|
748
|
+
0,
|
|
749
|
+
"properties",
|
|
750
|
+
"properties",
|
|
751
|
+
"items"
|
|
752
|
+
],
|
|
753
|
+
"errorMessage": "Property ${0/binding/name} must not be set when using a \"zeebe:taskDefinition\" implementation for a \"bpmn:AdHocSubProcess\""
|
|
754
|
+
},
|
|
755
|
+
{
|
|
756
|
+
"path": [
|
|
757
|
+
"definitions",
|
|
758
|
+
"template",
|
|
759
|
+
"allOf",
|
|
760
|
+
1,
|
|
761
|
+
"allOf",
|
|
762
|
+
9,
|
|
763
|
+
"allOf",
|
|
764
|
+
2,
|
|
765
|
+
"then",
|
|
766
|
+
"allOf",
|
|
767
|
+
1,
|
|
768
|
+
"properties",
|
|
769
|
+
"properties",
|
|
770
|
+
"items"
|
|
771
|
+
],
|
|
772
|
+
"errorMessage": "Property ${0/binding/property} must not be set when using a \"zeebe:taskDefinition\" implementation for a \"bpmn:AdHocSubProcess\""
|
|
773
|
+
},
|
|
774
|
+
{
|
|
775
|
+
"path": [
|
|
776
|
+
"definitions",
|
|
777
|
+
"properties",
|
|
778
|
+
"allOf",
|
|
779
|
+
1,
|
|
780
|
+
"items",
|
|
781
|
+
"allOf",
|
|
782
|
+
24,
|
|
783
|
+
"allOf",
|
|
784
|
+
1,
|
|
785
|
+
"then",
|
|
786
|
+
"properties",
|
|
787
|
+
"value"
|
|
788
|
+
],
|
|
789
|
+
"errorMessage": "Must be conforming to an ISO 8601 combined date and time representation"
|
|
735
790
|
}
|
|
736
791
|
]
|
package/resources/schema.json
CHANGED
|
@@ -469,7 +469,8 @@
|
|
|
469
469
|
"zeebe:script",
|
|
470
470
|
"zeebe:assignmentDefinition",
|
|
471
471
|
"zeebe:priorityDefinition",
|
|
472
|
-
"zeebe:adHoc"
|
|
472
|
+
"zeebe:adHoc",
|
|
473
|
+
"zeebe:taskSchedule"
|
|
473
474
|
]
|
|
474
475
|
}
|
|
475
476
|
},
|
|
@@ -1443,6 +1444,95 @@
|
|
|
1443
1444
|
}
|
|
1444
1445
|
}
|
|
1445
1446
|
]
|
|
1447
|
+
},
|
|
1448
|
+
{
|
|
1449
|
+
"allOf": [
|
|
1450
|
+
{
|
|
1451
|
+
"if": {
|
|
1452
|
+
"properties": {
|
|
1453
|
+
"binding": {
|
|
1454
|
+
"properties": {
|
|
1455
|
+
"type": {
|
|
1456
|
+
"const": "zeebe:taskSchedule"
|
|
1457
|
+
},
|
|
1458
|
+
"property": {
|
|
1459
|
+
"enum": [
|
|
1460
|
+
"dueDate",
|
|
1461
|
+
"followUpDate"
|
|
1462
|
+
]
|
|
1463
|
+
}
|
|
1464
|
+
},
|
|
1465
|
+
"required": [
|
|
1466
|
+
"type",
|
|
1467
|
+
"property"
|
|
1468
|
+
]
|
|
1469
|
+
}
|
|
1470
|
+
},
|
|
1471
|
+
"required": [
|
|
1472
|
+
"binding"
|
|
1473
|
+
]
|
|
1474
|
+
},
|
|
1475
|
+
"then": {
|
|
1476
|
+
"required": [
|
|
1477
|
+
"type"
|
|
1478
|
+
],
|
|
1479
|
+
"properties": {
|
|
1480
|
+
"type": {
|
|
1481
|
+
"enum": [
|
|
1482
|
+
"Hidden",
|
|
1483
|
+
"String",
|
|
1484
|
+
"Dropdown",
|
|
1485
|
+
"Text"
|
|
1486
|
+
]
|
|
1487
|
+
}
|
|
1488
|
+
}
|
|
1489
|
+
}
|
|
1490
|
+
},
|
|
1491
|
+
{
|
|
1492
|
+
"if": {
|
|
1493
|
+
"properties": {
|
|
1494
|
+
"binding": {
|
|
1495
|
+
"properties": {
|
|
1496
|
+
"type": {
|
|
1497
|
+
"const": "zeebe:taskSchedule"
|
|
1498
|
+
},
|
|
1499
|
+
"property": {
|
|
1500
|
+
"enum": [
|
|
1501
|
+
"dueDate",
|
|
1502
|
+
"followUpDate"
|
|
1503
|
+
]
|
|
1504
|
+
}
|
|
1505
|
+
},
|
|
1506
|
+
"required": [
|
|
1507
|
+
"type",
|
|
1508
|
+
"property"
|
|
1509
|
+
]
|
|
1510
|
+
}
|
|
1511
|
+
},
|
|
1512
|
+
"required": [
|
|
1513
|
+
"binding",
|
|
1514
|
+
"value"
|
|
1515
|
+
],
|
|
1516
|
+
"not": {
|
|
1517
|
+
"required": [
|
|
1518
|
+
"feel"
|
|
1519
|
+
]
|
|
1520
|
+
}
|
|
1521
|
+
},
|
|
1522
|
+
"then": {
|
|
1523
|
+
"properties": {
|
|
1524
|
+
"value": {
|
|
1525
|
+
"type": "string",
|
|
1526
|
+
"pattern": "^(?<date>\\d{4}-(?<month>0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01]))T(0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](Z|([+-](0[0-9]|1[0-3]):[0-5][0-9](\\[[^\\]]+\\])?))$",
|
|
1527
|
+
"description": "The value must be conforming to an ISO 8601 combined date and time representation."
|
|
1528
|
+
}
|
|
1529
|
+
},
|
|
1530
|
+
"required": [
|
|
1531
|
+
"value"
|
|
1532
|
+
]
|
|
1533
|
+
}
|
|
1534
|
+
}
|
|
1535
|
+
]
|
|
1446
1536
|
}
|
|
1447
1537
|
],
|
|
1448
1538
|
"properties": {
|
|
@@ -1729,6 +1819,31 @@
|
|
|
1729
1819
|
]
|
|
1730
1820
|
}
|
|
1731
1821
|
},
|
|
1822
|
+
{
|
|
1823
|
+
"if": {
|
|
1824
|
+
"properties": {
|
|
1825
|
+
"type": {
|
|
1826
|
+
"const": "zeebe:taskSchedule"
|
|
1827
|
+
}
|
|
1828
|
+
},
|
|
1829
|
+
"required": [
|
|
1830
|
+
"type"
|
|
1831
|
+
]
|
|
1832
|
+
},
|
|
1833
|
+
"then": {
|
|
1834
|
+
"properties": {
|
|
1835
|
+
"property": {
|
|
1836
|
+
"enum": [
|
|
1837
|
+
"dueDate",
|
|
1838
|
+
"followUpDate"
|
|
1839
|
+
]
|
|
1840
|
+
}
|
|
1841
|
+
},
|
|
1842
|
+
"required": [
|
|
1843
|
+
"property"
|
|
1844
|
+
]
|
|
1845
|
+
}
|
|
1846
|
+
},
|
|
1732
1847
|
{
|
|
1733
1848
|
"examples": [
|
|
1734
1849
|
{
|
|
@@ -1785,7 +1900,8 @@
|
|
|
1785
1900
|
"zeebe:script",
|
|
1786
1901
|
"zeebe:assignmentDefinition",
|
|
1787
1902
|
"zeebe:priorityDefinition",
|
|
1788
|
-
"zeebe:adHoc"
|
|
1903
|
+
"zeebe:adHoc",
|
|
1904
|
+
"zeebe:taskSchedule"
|
|
1789
1905
|
]
|
|
1790
1906
|
},
|
|
1791
1907
|
"name": {
|
|
@@ -2333,7 +2449,8 @@
|
|
|
2333
2449
|
"enum": [
|
|
2334
2450
|
"zeebe:formDefinition",
|
|
2335
2451
|
"zeebe:assignmentDefinition",
|
|
2336
|
-
"zeebe:priorityDefinition"
|
|
2452
|
+
"zeebe:priorityDefinition",
|
|
2453
|
+
"zeebe:taskSchedule"
|
|
2337
2454
|
]
|
|
2338
2455
|
}
|
|
2339
2456
|
},
|
|
@@ -3118,6 +3235,148 @@
|
|
|
3118
3235
|
"properties"
|
|
3119
3236
|
]
|
|
3120
3237
|
}
|
|
3238
|
+
},
|
|
3239
|
+
{
|
|
3240
|
+
"$comment": "When zeebe:taskDefinition is used, bpmn:cancelRemainingInstances, bpmn:completionCondition, and zeebe:activeElementsCollection properties are not allowed",
|
|
3241
|
+
"if": {
|
|
3242
|
+
"allOf": [
|
|
3243
|
+
{
|
|
3244
|
+
"anyOf": [
|
|
3245
|
+
{
|
|
3246
|
+
"required": [
|
|
3247
|
+
"elementType"
|
|
3248
|
+
],
|
|
3249
|
+
"properties": {
|
|
3250
|
+
"elementType": {
|
|
3251
|
+
"required": [
|
|
3252
|
+
"value"
|
|
3253
|
+
],
|
|
3254
|
+
"properties": {
|
|
3255
|
+
"value": {
|
|
3256
|
+
"const": "bpmn:AdHocSubProcess"
|
|
3257
|
+
}
|
|
3258
|
+
}
|
|
3259
|
+
}
|
|
3260
|
+
}
|
|
3261
|
+
},
|
|
3262
|
+
{
|
|
3263
|
+
"required": [
|
|
3264
|
+
"appliesTo"
|
|
3265
|
+
],
|
|
3266
|
+
"properties": {
|
|
3267
|
+
"appliesTo": {
|
|
3268
|
+
"const": [
|
|
3269
|
+
"bpmn:AdHocSubProcess"
|
|
3270
|
+
]
|
|
3271
|
+
}
|
|
3272
|
+
}
|
|
3273
|
+
}
|
|
3274
|
+
]
|
|
3275
|
+
},
|
|
3276
|
+
{
|
|
3277
|
+
"properties": {
|
|
3278
|
+
"properties": {
|
|
3279
|
+
"contains": {
|
|
3280
|
+
"type": "object",
|
|
3281
|
+
"properties": {
|
|
3282
|
+
"binding": {
|
|
3283
|
+
"properties": {
|
|
3284
|
+
"type": {
|
|
3285
|
+
"const": "zeebe:taskDefinition"
|
|
3286
|
+
},
|
|
3287
|
+
"property": {
|
|
3288
|
+
"const": "type"
|
|
3289
|
+
}
|
|
3290
|
+
},
|
|
3291
|
+
"required": [
|
|
3292
|
+
"type",
|
|
3293
|
+
"property"
|
|
3294
|
+
]
|
|
3295
|
+
}
|
|
3296
|
+
},
|
|
3297
|
+
"required": [
|
|
3298
|
+
"binding"
|
|
3299
|
+
]
|
|
3300
|
+
}
|
|
3301
|
+
}
|
|
3302
|
+
},
|
|
3303
|
+
"required": [
|
|
3304
|
+
"properties"
|
|
3305
|
+
]
|
|
3306
|
+
}
|
|
3307
|
+
]
|
|
3308
|
+
},
|
|
3309
|
+
"then": {
|
|
3310
|
+
"allOf": [
|
|
3311
|
+
{
|
|
3312
|
+
"properties": {
|
|
3313
|
+
"properties": {
|
|
3314
|
+
"items": {
|
|
3315
|
+
"not": {
|
|
3316
|
+
"properties": {
|
|
3317
|
+
"binding": {
|
|
3318
|
+
"properties": {
|
|
3319
|
+
"type": {
|
|
3320
|
+
"const": "property"
|
|
3321
|
+
},
|
|
3322
|
+
"name": {
|
|
3323
|
+
"enum": [
|
|
3324
|
+
"cancelRemainingInstances",
|
|
3325
|
+
"completionCondition"
|
|
3326
|
+
]
|
|
3327
|
+
}
|
|
3328
|
+
},
|
|
3329
|
+
"required": [
|
|
3330
|
+
"type",
|
|
3331
|
+
"name"
|
|
3332
|
+
]
|
|
3333
|
+
}
|
|
3334
|
+
},
|
|
3335
|
+
"required": [
|
|
3336
|
+
"binding"
|
|
3337
|
+
]
|
|
3338
|
+
}
|
|
3339
|
+
}
|
|
3340
|
+
}
|
|
3341
|
+
},
|
|
3342
|
+
"required": [
|
|
3343
|
+
"properties"
|
|
3344
|
+
]
|
|
3345
|
+
},
|
|
3346
|
+
{
|
|
3347
|
+
"properties": {
|
|
3348
|
+
"properties": {
|
|
3349
|
+
"items": {
|
|
3350
|
+
"not": {
|
|
3351
|
+
"properties": {
|
|
3352
|
+
"binding": {
|
|
3353
|
+
"properties": {
|
|
3354
|
+
"type": {
|
|
3355
|
+
"const": "zeebe:adHoc"
|
|
3356
|
+
},
|
|
3357
|
+
"property": {
|
|
3358
|
+
"const": "activeElementsCollection"
|
|
3359
|
+
}
|
|
3360
|
+
},
|
|
3361
|
+
"required": [
|
|
3362
|
+
"type",
|
|
3363
|
+
"property"
|
|
3364
|
+
]
|
|
3365
|
+
}
|
|
3366
|
+
},
|
|
3367
|
+
"required": [
|
|
3368
|
+
"binding"
|
|
3369
|
+
]
|
|
3370
|
+
}
|
|
3371
|
+
}
|
|
3372
|
+
}
|
|
3373
|
+
},
|
|
3374
|
+
"required": [
|
|
3375
|
+
"properties"
|
|
3376
|
+
]
|
|
3377
|
+
}
|
|
3378
|
+
]
|
|
3379
|
+
}
|
|
3121
3380
|
}
|
|
3122
3381
|
]
|
|
3123
3382
|
}
|