-
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
Support zeebe:TaskListener
#88
Conversation
I left a few minor comments, but other than that it's ready to merge 🚀 |
abad235
to
f6e688b
Compare
f6e688b
to
0356acb
Compare
const targetEl = elementRegistry.get('UserTask'); | ||
|
||
// when | ||
bpmnReplace.replaceElement(el, targetEl); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not how replace should be used. The target element must not be an existing element (cf. https://github.com/bpmn-io/bpmn-js/blob/develop/lib/features/replace/BpmnReplace.js#L141). We have to fix this whole spec.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I missed that. Let's fix it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm working on a fix.
Related to camunda/camunda-modeler#4590
This PR adds support for
zeebe:TaskListener
It allows
zeebe:TaskListener
only inbpmn:UserTask
elements withzeebe:UserTask
extension and event types ofcomplete
andassignment