-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Property bindings of type "camunda:executionListener" ignores name property #13
Comments
@pinussilvestrus Can you confirm that this was the intended behavior? I can't find a test verifying this. |
The schema rules seem to not strictly validate the According to the docs, |
Hi @philippfromme and @pinussilvestrus , you arguments sound reasonable. Maybe the Another approach would be to use a more specific attribute such as Kind regards |
I'm moving this to backlog as a potential enhancement. We are also happy to accept external contributions. |
Thank you for your evaluation and I would be happy to contribute, @barmac . I just realized I deleted my fork, when cleaning up my repos and forgot about the open pull request. Luckily I still had my changes locally and was able to open a new pull request. |
…ripts This adds support for `camunda:executionListener` binding of each supported implementation type. Backwards compatibility is maintained while ensuring the new property is of correct value. Related to bpmn-io/bpmn-js-element-templates#13 --------- Co-authored-by: Maciej Barelkowski <[email protected]>
…roperty binding This also updates `@bpmn-io/element-templates-validator` to v1.2.0. Closes #13 Co-authored-by: Maciej Barelkowski <[email protected]>
This also updates `@bpmn-io/element-templates-validator` to v1.2.0. Closes #13 Co-authored-by: Maciej Barelkowski <[email protected]>
Describe the Bug
Element templates including an execution listener binding do not respect the configured property name. In consequence, it currently is not possible to define a class-based execution listener as template.
Per documentation (https://unpkg.com/@camunda/element-templates-json-schema/resources/schema.json) the name attribute at properties/property/binding/name is not specific to any type. In additional this currently breaks the properties panel.
Steps to Reproduce
Mine looks similar to this:
Expected Behavior
The "name" property should be evaluated for execution listeners.
I discovered the behaviour is defined here: CreateHelper.js#L153. Whatever is calculated as parater value is assgined to "value". The default should not point to "value" but rather to "binding.name". If that is not configured "value" seems okay. In theory only the following line would need a change: CreateHelper.js#L173
Environment
I would happily try to create a pull request, if that is okay to you.
Kind regards
Alexander Skrock
The text was updated successfully, but these errors were encountered: