-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add ad-hoc subprocess #47
Conversation
I guess we just need to adjust the test case. The order is kind of random. I'd expect the transaction to be the last option after all the *-subprocess options. |
Based on |
I think just expecting the plain element to be available in the menu is a viable strategy. (9d237e7) |
But it's supposed to be the same as in for..in loop: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/entries#description |
How should we go about this? Merge and fix the order later? |
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 will create a follow-up issue for the order.
I think this is OK. |
@philippfromme I think this problem was caused by a bug in the library. We use "previous option index" to place the remove template action after it. However, if the desired option is at index 1, the previous option is placed at index 0. This is |
So the bug must have existed before, but we did not have a test to reproduce it. |
Proposed Changes
Add ad-hoc subprocess to menu options and update dependencies.
Related to camunda/camunda-modeler#4739
Checklist
To ensure you provided everything we need to look at your PR:
@bpmn-io/sr
toolCloses {LINK_TO_ISSUE}
orRelated to {LINK_TO_ISSUE}