-
Notifications
You must be signed in to change notification settings - Fork 24
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
Ensure interoperability with connectors extension #211
Comments
CC @smbea. I'm currently looking into this. |
This can be prevented by checking if it's there first
That one I have to check, not sure what is going on |
I can provide a fix for this one @smbea |
Two options to fix this:
If we decide to use the same entry ID we should settle down on one of them; if we want to distinguish |
My initial thought was that although for us it's |
Entries to apply element template appear twice due to different IDs: Same root cause + resolution like #211 (comment) I think @smbea. |
The fix for the first situation (unlink template) would be this: https://github.com/camunda/camunda-bpmn-js/compare/211-change-unlink-template-action-name But actually, changing the id here doesn't fix the issue for the last case mentioned because the entries still differ (the entries fed from here have groups and the others have categories. And those aren't translated since they aren't fed through here, they are fed through the connectors extension @nikku |
The entries have different IDs as well, hence multiple ones are attached, I think? |
They do. But what I'm saying is: changing the ids to match with the ones given in the connectors extension doesn't fix the issue, because of how they are added https://github.com/bpmn-io/bpmn-js-connectors-extension/blob/08816c046cc42adc470052826f56bdd4ca9bc52f/src/replace-menu/ReplaceMenu.js#L98. Since the entries still differ (category vs group for example), they are added on top. I added a WIP commit here if you want to test it out. |
As agreed, let's not push this for Modeler 5.6.0 since there are still some loose ends we need to align regarding the usage with the connectors extension |
@smbea this is fixed via bpmn-io/bpmn-js-connectors-extension#55. There is no good reason why the connectors extension shall not adhere to the existing replace menu contract (keying element uniquely, by ID). |
Use existing pattern to allow interop with connectors extension. Related to #211
Use existing pattern to allow interop with connectors extension. Related to #211
Use existing pattern to allow interop with connectors extension. Related to #211
What should we do?
Ensure the newly implemented replace menu plays nicely with the connectors extension.
TypeUtil#isDifferentType
type util bpmn-io/bpmn-js#1787Why should we do it?
We are able to transition smoothly between both versions.
Related to #214.
The text was updated successfully, but these errors were encountered: