Open philippfromme opened 1 year ago
We don't validate the element type also for other binding types. The only exception are bpmn:Message* bindings where we enforce BPMN compliance (no message binding on Service Task etc.).
At the moment, the JSON schema is not strict enough, so we rely on template developer for correctness. Perhaps it would make sense to enforce the correct types instead.
Describe the bug
I can apply the following template to a
bpmn:Task
even though thezeebe:TaskDefinition
extension element is only supported by abpmn:ServiceTask
. The meta data isn't taken into account.https://github.com/camunda/camunda-modeler/assets/7633572/d3aad30b-b13f-4349-8e63-8bfa99125cb6
Steps to reproduce
zeebe:TaskDefinition
propertiesbpmn:Task
zeebe:TaskDefinition
extension element is createdExpected behavior
Either template cannot be applied in the first place or only applicable properties are applied.
Environment
Additional context
https://github.com/bpmn-io/bpmn-js-element-templates/pull/29