-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Boundary Events not detached when moved out of host in a batch move #1202
Comments
This line causes the problem, since the array length is more than 1 in this case DetachEventBehavior just does an early return instead of replacing elements. |
Replacing elements.move preExecute in DetachEventBehaviour fixes the problem:
This is the tricky part:
For edge cases where a boundary event is attached to a task and we move them all together, context.newHost is null however the Detach behaviour in that case should not apply to the Boundary Event (since it is being carried with its host), therefore we check if a shape has a host and this host is inside the moved shapes within the context to decide if it has a host or not, for other cases checking if context.newHost exists is enough. Since this is preExecute shape.host refers to the host before the replace. |
Closed via #1206 |
Will be properly fixed through #1203 |
Describe the Bug
The Boundary Events are not converted to Intermediate Events when moved to canvas in a batch operation.
Steps to Reproduce
Expected Behavior
Such operation should either be disallowed or the events should be converted to Intermediate Events.
Environment
The text was updated successfully, but these errors were encountered: