Skip to content

Commit 6137db6

Browse files
yT0n1barmac
authored andcommitted
feat: add support for bindingType on calledElement, calledDecision, formDefinition
1 parent a17aa61 commit 6137db6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+4590
-44
lines changed

packages/zeebe-element-templates-json-schema/src/defs/properties.json

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,9 @@
608608
}
609609
}
610610
}
611+
},
612+
{
613+
"$ref": "./properties/bindingType.json"
611614
}
612615
],
613616
"properties": {
@@ -730,7 +733,11 @@
730733
"then": {
731734
"properties": {
732735
"property": {
733-
"const": "processId"
736+
"enum": [
737+
"processId",
738+
"bindingType",
739+
"versionTag"
740+
]
734741
}
735742
},
736743
"required": [
@@ -779,7 +786,9 @@
779786
"property": {
780787
"enum": [
781788
"formId",
782-
"externalReference"
789+
"externalReference",
790+
"bindingType",
791+
"versionTag"
783792
]
784793
}
785794
},
@@ -804,7 +813,9 @@
804813
"property": {
805814
"enum": [
806815
"decisionId",
807-
"resultVariable"
816+
"resultVariable",
817+
"versionTag",
818+
"bindingType"
808819
]
809820
}
810821
},
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
{
2+
"allOf": [
3+
{
4+
"if": {
5+
"properties": {
6+
"binding": {
7+
"properties": {
8+
"property": {
9+
"const": "bindingType"
10+
},
11+
"type": {
12+
"enum": [
13+
"zeebe:calledDecision",
14+
"zeebe:formDefinition",
15+
"zeebe:calledElement"
16+
]
17+
}
18+
},
19+
"required": [
20+
"type",
21+
"property"
22+
]
23+
}
24+
},
25+
"required": [
26+
"binding"
27+
]
28+
},
29+
"then": {
30+
"required": [
31+
"type",
32+
"value"
33+
],
34+
"properties": {
35+
"type": {
36+
"enum": [
37+
"Hidden",
38+
"Dropdown"
39+
]
40+
},
41+
"value": {
42+
"enum": [
43+
"latest",
44+
"versionTag",
45+
"deployment"
46+
]
47+
}
48+
}
49+
}
50+
},
51+
{
52+
"if": {
53+
"properties": {
54+
"binding": {
55+
"properties": {
56+
"property": {
57+
"const": "versionTag"
58+
},
59+
"type": {
60+
"enum": [
61+
"zeebe:calledDecision",
62+
"zeebe:formDefinition",
63+
"zeebe:calledElement"
64+
]
65+
}
66+
},
67+
"required": [
68+
"type",
69+
"property"
70+
]
71+
}
72+
},
73+
"required": [
74+
"binding"
75+
]
76+
},
77+
"then": {
78+
"allOf": [
79+
{
80+
"required": [
81+
"type"
82+
],
83+
"properties": {
84+
"type": {
85+
"enum": [
86+
"Hidden",
87+
"Dropdown",
88+
"String",
89+
"Text"
90+
]
91+
}
92+
}
93+
},
94+
{
95+
"not": {
96+
"required": [
97+
"feel"
98+
]
99+
}
100+
}
101+
]
102+
}
103+
}
104+
]
105+
}

0 commit comments

Comments
 (0)