bpmn-js
bpmn-js copied to clipboard
Boundary event can be placed on process via append anything
Describe the Bug
With the connectors extension, I can place a boundary event on process (canvas). When I use dragging, it's converted to an intermediate event, but it does not happen when I use the append action (click on the entry in the menu). This breaks the modeler in two ways:
- Modeler is broken immediately when I append a non-interrupting boundary event.
- Modeler is broken once I try to connect a task to it if it's an interrupting boundary event.
Steps to Reproduce
- Go to demo.bpmn.io
- Select an element and open the append anything menu
- Look for boundary event
Then:
- Click non-interrupting (breaks immediately)
- Click interrupting and then connect task to it
Expected Behavior
Optimal solution would be to convert the event as soon as appended. We should remove the event definition if it's incompatible.
We could also disable boundary events temporarily in the connectors extension, but it doesn't solve the core issue.
Environment
- Browser: Chrome 104
- OS: MacOS
- Library version: Current + https://github.com/bpmn-io/bpmn-js-connectors-extension
Sentry issue: BPMN-IO-DEMO-21H
Sentry issue: BPMN-IO-DEMO-2YW
@barmac is this the issue that generated the Sentry spike?
There was no single spike, but this issue is responsible for the two top events-producing issues on sentry for the demo.bpmn.io project. Note that we generated many more events in Camunda Modeler project.
The issue is not fixed upstream due to https://github.com/bpmn-io/bpmn-js-connectors-extension/issues/54