Skip to content

Commit 1fc65b6

Browse files
committed
test: hidden property without value should be deprecated
1 parent 19a8afe commit 1fc65b6

File tree

3 files changed

+57
-0
lines changed

3 files changed

+57
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
export const template = {
2+
'name': 'HiddenProperty',
3+
'id': 'com.camunda.example.HiddenProperty',
4+
'appliesTo': [
5+
'bpmn:Task'
6+
],
7+
'elementType': {
8+
'value': 'bpmn:BusinessRuleTask'
9+
},
10+
'properties': [
11+
{
12+
'type': 'Hidden',
13+
'value': 'decision',
14+
'binding': {
15+
'type': 'zeebe:calledDecision',
16+
'property': 'decisionId'
17+
}
18+
},
19+
{
20+
'type': 'Hidden',
21+
'binding': {
22+
'type': 'zeebe:calledDecision',
23+
'property': 'resultVariable'
24+
}
25+
}
26+
]
27+
};
28+
29+
export const errors = null;
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
export const template = {
2+
'name': 'Zeebe User Task Hidden Property',
3+
'id': 'com.camunda.example.ZeebeUserTaskHiddenProperty',
4+
'description': 'A template to define a value less hidden property for a Zeebe user task.',
5+
'version': 1,
6+
'appliesTo': [
7+
'bpmn:Task'
8+
],
9+
'elementType': {
10+
'value': 'bpmn:UserTask'
11+
},
12+
'properties': [
13+
{
14+
'type': 'Hidden',
15+
'binding': {
16+
'type': 'zeebe:userTask',
17+
}
18+
}
19+
]
20+
};
21+
22+
export const errors = null;

packages/zeebe-element-templates-json-schema/test/spec/validationSpec.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,12 @@ describe('validation', function() {
199199
it('element-type-invalid');
200200

201201

202+
it('hidden-property');
203+
204+
205+
it('hidden-zeebe-user-task');
206+
207+
202208
describe('element type - event definition', function() {
203209

204210
it('element-type-event-definition');

0 commit comments

Comments
 (0)