Skip to content

Commit

Permalink
feat: support zeebe:calledElement templating
Browse files Browse the repository at this point in the history
deps: update to `@camunda/[email protected]`

Related to camunda/camunda-modeler#3006
  • Loading branch information
barmac committed Dec 13, 2023
1 parent 0e04e13 commit 1d2250c
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 9 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ All notable changes to [element-templates-validator](https://github.com/bpmn-io/

___Note:__ Yet to be released changes appear here._

## 1.7.0

* `FEAT`: support `zeebe:calledElement` templating
* `DEPS`: update to `@camunda/[email protected]`

## 1.6.1

* `FIX`: remove `zeebe:subscription` templating for send task
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
},
"dependencies": {
"@camunda/element-templates-json-schema": "^0.16.0",
"@camunda/zeebe-element-templates-json-schema": "^0.16.1",
"@camunda/zeebe-element-templates-json-schema": "^0.17.0",
"json-source-map": "^0.6.1",
"min-dash": "^4.1.1"
}
Expand Down
15 changes: 15 additions & 0 deletions test/fixtures/multiple-connectors-errors.json
Original file line number Diff line number Diff line change
Expand Up @@ -265,5 +265,20 @@
}
}
]
},
{
"name": "invalid called element",
"id": "io.camunda.invalidCalledElement",
"appliesTo": [
"bpmn:CallActivity"
],
"properties": [
{
"binding": {
"type": "zeebe:calledElement",
"property": "unknown"
}
}
]
}
]
15 changes: 15 additions & 0 deletions test/fixtures/multiple-connectors.json
Original file line number Diff line number Diff line change
Expand Up @@ -201,5 +201,20 @@
}
}
]
},
{
"name": "valid called element",
"id": "io.camunda.validCalledElement",
"appliesTo": [
"bpmn:CallActivity"
],
"properties": [
{
"binding": {
"type": "zeebe:calledElement",
"property": "processId"
}
}
]
}
]
2 changes: 1 addition & 1 deletion test/spec/validationSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ describe('Validator', function() {
expect(valid).to.be.false;

expect(results.map(r => r.valid)).to.eql([
false, true, false, true, false
false, true, false, true, false, false
]);

expect(results.map(r => r.object)).to.eql(samples);
Expand Down

0 comments on commit 1d2250c

Please sign in to comment.