Skip to content
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

Merged
merged 2 commits into from
Nov 14, 2024
Merged

Support zeebe:TaskListener #88

merged 2 commits into from
Nov 14, 2024

Conversation

misiekhardcore
Copy link
Contributor

@misiekhardcore misiekhardcore commented Nov 11, 2024

Related to camunda/camunda-modeler#4590

This PR adds support for zeebe:TaskListener

It allows zeebe:TaskListener only in bpmn:UserTask elements with zeebe:UserTask extension and event types of complete and assignment

@barmac
Copy link
Contributor

barmac commented Nov 14, 2024

I left a few minor comments, but other than that it's ready to merge 🚀

@misiekhardcore misiekhardcore merged commit 39be108 into main Nov 14, 2024
4 checks passed
@misiekhardcore misiekhardcore deleted the user-task-listener branch November 14, 2024 09:48
@bpmn-io-tasks bpmn-io-tasks bot removed the needs review Review pending label Nov 14, 2024
const targetEl = elementRegistry.get('UserTask');

// when
bpmnReplace.replaceElement(el, targetEl);
Copy link
Collaborator

@philippfromme philippfromme Nov 28, 2024

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.

Copy link
Contributor

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.

Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants