@camunda/zeebe-element-templates-json-schema 0.32.0 → 0.34.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 +30 -1
- package/resources/schema.json +215 -6
- package/resources/test.json +0 -17
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.34.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": "c0c565b30fa34074256c2bf1912757ebd1cb2472"
|
|
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, zeebe:taskSchedule }"
|
|
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 }"
|
|
334
334
|
},
|
|
335
335
|
{
|
|
336
336
|
"path": [
|
|
@@ -769,5 +769,34 @@
|
|
|
769
769
|
"value"
|
|
770
770
|
],
|
|
771
771
|
"errorMessage": "Must be conforming to an ISO 8601 combined date and time representation"
|
|
772
|
+
},
|
|
773
|
+
{
|
|
774
|
+
"path": [
|
|
775
|
+
"definitions",
|
|
776
|
+
"template",
|
|
777
|
+
"allOf",
|
|
778
|
+
1,
|
|
779
|
+
"allOf",
|
|
780
|
+
10,
|
|
781
|
+
"allOf",
|
|
782
|
+
1,
|
|
783
|
+
"then",
|
|
784
|
+
"properties",
|
|
785
|
+
"properties"
|
|
786
|
+
],
|
|
787
|
+
"errorMessage": "Binding with `type`=`bpmn:Signal#property` is required, when using `elementType.eventDefinition`=`bpmn:SignalEventDefinition`"
|
|
788
|
+
},
|
|
789
|
+
{
|
|
790
|
+
"path": [
|
|
791
|
+
"definitions",
|
|
792
|
+
"properties",
|
|
793
|
+
"allOf",
|
|
794
|
+
1,
|
|
795
|
+
"items",
|
|
796
|
+
"allOf",
|
|
797
|
+
26,
|
|
798
|
+
"then"
|
|
799
|
+
],
|
|
800
|
+
"errorMessage": "FEEL is not supported for `zeebe:calledElement` variable propagation properties"
|
|
772
801
|
}
|
|
773
802
|
]
|
package/resources/schema.json
CHANGED
|
@@ -1549,6 +1549,87 @@
|
|
|
1549
1549
|
}
|
|
1550
1550
|
}
|
|
1551
1551
|
]
|
|
1552
|
+
},
|
|
1553
|
+
{
|
|
1554
|
+
"if": {
|
|
1555
|
+
"properties": {
|
|
1556
|
+
"binding": {
|
|
1557
|
+
"properties": {
|
|
1558
|
+
"type": {
|
|
1559
|
+
"const": "bpmn:Signal#property"
|
|
1560
|
+
}
|
|
1561
|
+
},
|
|
1562
|
+
"required": [
|
|
1563
|
+
"type"
|
|
1564
|
+
]
|
|
1565
|
+
}
|
|
1566
|
+
},
|
|
1567
|
+
"required": [
|
|
1568
|
+
"binding"
|
|
1569
|
+
]
|
|
1570
|
+
},
|
|
1571
|
+
"then": {
|
|
1572
|
+
"required": [
|
|
1573
|
+
"type"
|
|
1574
|
+
],
|
|
1575
|
+
"properties": {
|
|
1576
|
+
"type": {
|
|
1577
|
+
"enum": [
|
|
1578
|
+
"String",
|
|
1579
|
+
"Text",
|
|
1580
|
+
"Hidden",
|
|
1581
|
+
"Dropdown"
|
|
1582
|
+
]
|
|
1583
|
+
}
|
|
1584
|
+
}
|
|
1585
|
+
}
|
|
1586
|
+
},
|
|
1587
|
+
{
|
|
1588
|
+
"if": {
|
|
1589
|
+
"properties": {
|
|
1590
|
+
"binding": {
|
|
1591
|
+
"properties": {
|
|
1592
|
+
"type": {
|
|
1593
|
+
"const": "zeebe:calledElement"
|
|
1594
|
+
},
|
|
1595
|
+
"property": {
|
|
1596
|
+
"enum": [
|
|
1597
|
+
"propagateAllParentVariables",
|
|
1598
|
+
"propagateAllChildVariables"
|
|
1599
|
+
]
|
|
1600
|
+
}
|
|
1601
|
+
},
|
|
1602
|
+
"required": [
|
|
1603
|
+
"type",
|
|
1604
|
+
"property"
|
|
1605
|
+
]
|
|
1606
|
+
}
|
|
1607
|
+
},
|
|
1608
|
+
"required": [
|
|
1609
|
+
"binding"
|
|
1610
|
+
]
|
|
1611
|
+
},
|
|
1612
|
+
"then": {
|
|
1613
|
+
"required": [
|
|
1614
|
+
"type"
|
|
1615
|
+
],
|
|
1616
|
+
"properties": {
|
|
1617
|
+
"type": {
|
|
1618
|
+
"enum": [
|
|
1619
|
+
"Hidden",
|
|
1620
|
+
"Boolean"
|
|
1621
|
+
]
|
|
1622
|
+
},
|
|
1623
|
+
"value": {
|
|
1624
|
+
"type": "boolean"
|
|
1625
|
+
}
|
|
1626
|
+
},
|
|
1627
|
+
"not": {
|
|
1628
|
+
"required": [
|
|
1629
|
+
"feel"
|
|
1630
|
+
]
|
|
1631
|
+
}
|
|
1632
|
+
}
|
|
1552
1633
|
}
|
|
1553
1634
|
],
|
|
1554
1635
|
"properties": {
|
|
@@ -1569,7 +1650,8 @@
|
|
|
1569
1650
|
"zeebe:property",
|
|
1570
1651
|
"zeebe:input",
|
|
1571
1652
|
"bpmn:Message#property",
|
|
1572
|
-
"bpmn:Message#zeebe:subscription#property"
|
|
1653
|
+
"bpmn:Message#zeebe:subscription#property",
|
|
1654
|
+
"bpmn:Signal#property"
|
|
1573
1655
|
]
|
|
1574
1656
|
}
|
|
1575
1657
|
},
|
|
@@ -1674,7 +1756,9 @@
|
|
|
1674
1756
|
"enum": [
|
|
1675
1757
|
"processId",
|
|
1676
1758
|
"bindingType",
|
|
1677
|
-
"versionTag"
|
|
1759
|
+
"versionTag",
|
|
1760
|
+
"propagateAllParentVariables",
|
|
1761
|
+
"propagateAllChildVariables"
|
|
1678
1762
|
]
|
|
1679
1763
|
}
|
|
1680
1764
|
},
|
|
@@ -1861,6 +1945,28 @@
|
|
|
1861
1945
|
]
|
|
1862
1946
|
}
|
|
1863
1947
|
},
|
|
1948
|
+
{
|
|
1949
|
+
"if": {
|
|
1950
|
+
"properties": {
|
|
1951
|
+
"type": {
|
|
1952
|
+
"const": "bpmn:Signal#property"
|
|
1953
|
+
}
|
|
1954
|
+
},
|
|
1955
|
+
"required": [
|
|
1956
|
+
"type"
|
|
1957
|
+
]
|
|
1958
|
+
},
|
|
1959
|
+
"then": {
|
|
1960
|
+
"properties": {
|
|
1961
|
+
"name": {
|
|
1962
|
+
"const": "name"
|
|
1963
|
+
}
|
|
1964
|
+
},
|
|
1965
|
+
"required": [
|
|
1966
|
+
"name"
|
|
1967
|
+
]
|
|
1968
|
+
}
|
|
1969
|
+
},
|
|
1864
1970
|
{
|
|
1865
1971
|
"examples": [
|
|
1866
1972
|
{
|
|
@@ -1918,7 +2024,8 @@
|
|
|
1918
2024
|
"zeebe:assignmentDefinition",
|
|
1919
2025
|
"zeebe:priorityDefinition",
|
|
1920
2026
|
"zeebe:adHoc",
|
|
1921
|
-
"zeebe:taskSchedule"
|
|
2027
|
+
"zeebe:taskSchedule",
|
|
2028
|
+
"bpmn:Signal#property"
|
|
1922
2029
|
]
|
|
1923
2030
|
},
|
|
1924
2031
|
"name": {
|
|
@@ -1971,7 +2078,7 @@
|
|
|
1971
2078
|
"generatedValue": {
|
|
1972
2079
|
"$id": "#/properties/property/generatedValue",
|
|
1973
2080
|
"type": "object",
|
|
1974
|
-
"description": "
|
|
2081
|
+
"description": "Object that defines how a default value should be generated.",
|
|
1975
2082
|
"required": [
|
|
1976
2083
|
"type"
|
|
1977
2084
|
],
|
|
@@ -3380,6 +3487,107 @@
|
|
|
3380
3487
|
}
|
|
3381
3488
|
}
|
|
3382
3489
|
]
|
|
3490
|
+
},
|
|
3491
|
+
{
|
|
3492
|
+
"allOf": [
|
|
3493
|
+
{
|
|
3494
|
+
"if": {
|
|
3495
|
+
"properties": {
|
|
3496
|
+
"properties": {
|
|
3497
|
+
"contains": {
|
|
3498
|
+
"properties": {
|
|
3499
|
+
"binding": {
|
|
3500
|
+
"properties": {
|
|
3501
|
+
"type": {
|
|
3502
|
+
"const": "bpmn:Signal#property"
|
|
3503
|
+
}
|
|
3504
|
+
},
|
|
3505
|
+
"required": [
|
|
3506
|
+
"type"
|
|
3507
|
+
]
|
|
3508
|
+
}
|
|
3509
|
+
},
|
|
3510
|
+
"required": [
|
|
3511
|
+
"binding"
|
|
3512
|
+
]
|
|
3513
|
+
}
|
|
3514
|
+
}
|
|
3515
|
+
},
|
|
3516
|
+
"required": [
|
|
3517
|
+
"properties"
|
|
3518
|
+
]
|
|
3519
|
+
},
|
|
3520
|
+
"then": {
|
|
3521
|
+
"required": [
|
|
3522
|
+
"elementType"
|
|
3523
|
+
],
|
|
3524
|
+
"properties": {
|
|
3525
|
+
"elementType": {
|
|
3526
|
+
"required": [
|
|
3527
|
+
"eventDefinition",
|
|
3528
|
+
"value"
|
|
3529
|
+
],
|
|
3530
|
+
"properties": {
|
|
3531
|
+
"value": {
|
|
3532
|
+
"enum": [
|
|
3533
|
+
"bpmn:StartEvent",
|
|
3534
|
+
"bpmn:IntermediateCatchEvent",
|
|
3535
|
+
"bpmn:IntermediateThrowEvent",
|
|
3536
|
+
"bpmn:BoundaryEvent",
|
|
3537
|
+
"bpmn:EndEvent"
|
|
3538
|
+
]
|
|
3539
|
+
},
|
|
3540
|
+
"eventDefinition": {
|
|
3541
|
+
"const": "bpmn:SignalEventDefinition"
|
|
3542
|
+
}
|
|
3543
|
+
}
|
|
3544
|
+
}
|
|
3545
|
+
}
|
|
3546
|
+
}
|
|
3547
|
+
},
|
|
3548
|
+
{
|
|
3549
|
+
"if": {
|
|
3550
|
+
"properties": {
|
|
3551
|
+
"elementType": {
|
|
3552
|
+
"properties": {
|
|
3553
|
+
"eventDefinition": {
|
|
3554
|
+
"const": "bpmn:SignalEventDefinition"
|
|
3555
|
+
}
|
|
3556
|
+
},
|
|
3557
|
+
"required": [
|
|
3558
|
+
"eventDefinition"
|
|
3559
|
+
]
|
|
3560
|
+
}
|
|
3561
|
+
},
|
|
3562
|
+
"required": [
|
|
3563
|
+
"elementType"
|
|
3564
|
+
]
|
|
3565
|
+
},
|
|
3566
|
+
"then": {
|
|
3567
|
+
"properties": {
|
|
3568
|
+
"properties": {
|
|
3569
|
+
"contains": {
|
|
3570
|
+
"properties": {
|
|
3571
|
+
"binding": {
|
|
3572
|
+
"properties": {
|
|
3573
|
+
"type": {
|
|
3574
|
+
"const": "bpmn:Signal#property"
|
|
3575
|
+
}
|
|
3576
|
+
},
|
|
3577
|
+
"required": [
|
|
3578
|
+
"type"
|
|
3579
|
+
]
|
|
3580
|
+
}
|
|
3581
|
+
},
|
|
3582
|
+
"required": [
|
|
3583
|
+
"binding"
|
|
3584
|
+
]
|
|
3585
|
+
}
|
|
3586
|
+
}
|
|
3587
|
+
}
|
|
3588
|
+
}
|
|
3589
|
+
}
|
|
3590
|
+
]
|
|
3383
3591
|
}
|
|
3384
3592
|
]
|
|
3385
3593
|
},
|
|
@@ -3778,9 +3986,10 @@
|
|
|
3778
3986
|
"properties": {
|
|
3779
3987
|
"eventDefinition": {
|
|
3780
3988
|
"$id": "#/elementType/eventDefinition",
|
|
3781
|
-
"description": "
|
|
3989
|
+
"description": "Define the event definition type for a typed event template. Otherwise, ignore.",
|
|
3782
3990
|
"enum": [
|
|
3783
|
-
"bpmn:MessageEventDefinition"
|
|
3991
|
+
"bpmn:MessageEventDefinition",
|
|
3992
|
+
"bpmn:SignalEventDefinition"
|
|
3784
3993
|
]
|
|
3785
3994
|
}
|
|
3786
3995
|
}
|
package/resources/test.json
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "Ad hoc",
|
|
3
|
-
"id": "com.camunda.example.completionCondition",
|
|
4
|
-
"appliesTo": [
|
|
5
|
-
"bpmn:AdHocSubProcess"
|
|
6
|
-
],
|
|
7
|
-
"properties": [
|
|
8
|
-
{
|
|
9
|
-
"type": "String",
|
|
10
|
-
"feel": "required",
|
|
11
|
-
"binding": {
|
|
12
|
-
"type": "zeebe:taskDefinition",
|
|
13
|
-
"property": "type"
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
]
|
|
17
|
-
}
|