You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Diagram breaks when trying to reconnect data association to text annotation.
See the attached logs for the error.
Steps to Reproduce
Steps to reproduce the behavior:
Create a task.
Add text annotation.
Create a data object.
Connect data object to the task.
Try to reconnect data association to text annotation.
After that, the shapes will never be rerendered after movement.
Expected Behavior
Connection should be disallowed and the diagram should be still editable.
Environment
Please complete the following information:
Browser: Chrome 73 (for demo.bpmn.io)
OS: MacOS
Library version: bpmn-js@3.4.0 and Camunda Modeler 3.0.1
Logs
Click to open log
[2019-04-30T11:52:02.659Z] client:error [diagram_4.bpmn] Cannot read property 'push' of undefined
at push (webpack:///node_modules/bpmn-js/lib/features/modeling/BpmnUpdater.js:603:0)
at updateSemanticParent (webpack:///node_modules/bpmn-js/lib/features/modeling/BpmnUpdater.js:679:0)
at updateConnection (webpack:///node_modules/bpmn-js/lib/features/modeling/BpmnUpdater.js:171:0)
at file:///Applications/Camunda%20Modeler%203.0.1.app/Contents/Resources/app.asar/public/6.6.js:1:481809
at file:///Applications/Camunda%20Modeler%203.0.1.app/Contents/Resources/app.asar/public/0.0.js:1:214623
at listener (webpack:///node_modules/diagram-js/lib/core/EventBus.js:362:0)
at _invokeListener (webpack:///node_modules/diagram-js/lib/core/EventBus.js:348:0)
at _invokeListeners (webpack:///node_modules/diagram-js/lib/core/EventBus.js:310:0)
at fire (webpack:///node_modules/diagram-js/lib/command/CommandStack.js:346:0)
at file:///Applications/Camunda%20Modeler%203.0.1.app/Contents/Resources/app.asar/public/0.0.js:1:318674
[2019-04-30T11:52:02.994Z] client:error [diagram_4.bpmn] Cannot read property 'push' of undefined
at push (webpack:///node_modules/bpmn-js/lib/features/modeling/BpmnUpdater.js:603:0)
at updateSemanticParent (webpack:///node_modules/bpmn-js/lib/features/modeling/BpmnUpdater.js:679:0)
at updateConnection (webpack:///node_modules/bpmn-js/lib/features/modeling/BpmnUpdater.js:171:0)
at file:///Applications/Camunda%20Modeler%203.0.1.app/Contents/Resources/app.asar/public/6.6.js:1:481809
at file:///Applications/Camunda%20Modeler%203.0.1.app/Contents/Resources/app.asar/public/0.0.js:1:214623
at listener (webpack:///node_modules/diagram-js/lib/core/EventBus.js:362:0)
at _invokeListener (webpack:///node_modules/diagram-js/lib/core/EventBus.js:348:0)
at _invokeListeners (webpack:///node_modules/diagram-js/lib/core/EventBus.js:310:0)
at fire (webpack:///node_modules/diagram-js/lib/command/CommandStack.js:346:0)
at file:///Applications/Camunda%20Modeler%203.0.1.app/Contents/Resources/app.asar/public/0.0.js:1:318674
[2019-04-30T11:52:04.438Z] client:error [diagram_4.bpmn] Cannot read property 'push' of undefined
at push (webpack:///node_modules/bpmn-js/lib/features/modeling/BpmnUpdater.js:603:0)
at updateSemanticParent (webpack:///node_modules/bpmn-js/lib/features/modeling/BpmnUpdater.js:679:0)
at updateConnection (webpack:///node_modules/bpmn-js/lib/features/modeling/BpmnUpdater.js:171:0)
at file:///Applications/Camunda%20Modeler%203.0.1.app/Contents/Resources/app.asar/public/6.6.js:1:481809
at file:///Applications/Camunda%20Modeler%203.0.1.app/Contents/Resources/app.asar/public/0.0.js:1:214623
at listener (webpack:///node_modules/diagram-js/lib/core/EventBus.js:362:0)
at _invokeListener (webpack:///node_modules/diagram-js/lib/core/EventBus.js:348:0)
at _invokeListeners (webpack:///node_modules/diagram-js/lib/core/EventBus.js:310:0)
at fire (webpack:///node_modules/diagram-js/lib/command/CommandStack.js:346:0)
at file:///Applications/Camunda%20Modeler%203.0.1.app/Contents/Resources/app.asar/public/0.0.js:1:318674
[2019-04-30T11:52:04.759Z] client:error [diagram_4.bpmn] Cannot read property 'push' of undefined
at push (webpack:///node_modules/bpmn-js/lib/features/modeling/BpmnUpdater.js:603:0)
at updateSemanticParent (webpack:///node_modules/bpmn-js/lib/features/modeling/BpmnUpdater.js:679:0)
at updateConnection (webpack:///node_modules/bpmn-js/lib/features/modeling/BpmnUpdater.js:171:0)
at file:///Applications/Camunda%20Modeler%203.0.1.app/Contents/Resources/app.asar/public/6.6.js:1:481809
at file:///Applications/Camunda%20Modeler%203.0.1.app/Contents/Resources/app.asar/public/0.0.js:1:214623
at listener (webpack:///node_modules/diagram-js/lib/core/EventBus.js:362:0)
at _invokeListener (webpack:///node_modules/diagram-js/lib/core/EventBus.js:348:0)
at _invokeListeners (webpack:///node_modules/diagram-js/lib/core/EventBus.js:310:0)
at fire (webpack:///node_modules/diagram-js/lib/command/CommandStack.js:346:0)
at file:///Applications/Camunda%20Modeler%203.0.1.app/Contents/Resources/app.asar/public/0.0.js:1:318674
[2019-04-30T11:52:05.114Z] client:error [diagram_4.bpmn] Cannot read property 'push' of undefined
at push (webpack:///node_modules/bpmn-js/lib/features/modeling/BpmnUpdater.js:603:0)
at updateSemanticParent (webpack:///node_modules/bpmn-js/lib/features/modeling/BpmnUpdater.js:679:0)
at updateConnection (webpack:///node_modules/bpmn-js/lib/features/modeling/BpmnUpdater.js:171:0)
at file:///Applications/Camunda%20Modeler%203.0.1.app/Contents/Resources/app.asar/public/6.6.js:1:481809
at file:///Applications/Camunda%20Modeler%203.0.1.app/Contents/Resources/app.asar/public/0.0.js:1:214623
at listener (webpack:///node_modules/diagram-js/lib/core/EventBus.js:362:0)
at _invokeListener (webpack:///node_modules/diagram-js/lib/core/EventBus.js:348:0)
at _invokeListeners (webpack:///node_modules/diagram-js/lib/core/EventBus.js:310:0)
at fire (webpack:///node_modules/diagram-js/lib/command/CommandStack.js:346:0)
at file:///Applications/Camunda%20Modeler%203.0.1.app/Contents/Resources/app.asar/public/0.0.js:1:318674
[2019-04-30T11:52:05.430Z] client:error [diagram_4.bpmn] Cannot read property 'push' of undefined
at push (webpack:///node_modules/bpmn-js/lib/features/modeling/BpmnUpdater.js:603:0)
at updateSemanticParent (webpack:///node_modules/bpmn-js/lib/features/modeling/BpmnUpdater.js:679:0)
at updateConnection (webpack:///node_modules/bpmn-js/lib/features/modeling/BpmnUpdater.js:171:0)
at file:///Applications/Camunda%20Modeler%203.0.1.app/Contents/Resources/app.asar/public/6.6.js:1:481809
at file:///Applications/Camunda%20Modeler%203.0.1.app/Contents/Resources/app.asar/public/0.0.js:1:214623
at listener (webpack:///node_modules/diagram-js/lib/core/EventBus.js:362:0)
at _invokeListener (webpack:///node_modules/diagram-js/lib/core/EventBus.js:348:0)
at _invokeListeners (webpack:///node_modules/diagram-js/lib/core/EventBus.js:310:0)
at fire (webpack:///node_modules/diagram-js/lib/command/CommandStack.js:346:0)
at file:///Applications/Camunda%20Modeler%203.0.1.app/Contents/Resources/app.asar/public/0.0.js:1:318674
[2019-04-30T11:52:06.938Z] app:workspace saving
[2019-04-30T11:52:06.938Z] app:config set workspace
[2019-04-30T11:52:06.939Z] app:config saved
The text was updated successfully, but these errors were encountered:
I can reproduce this. It is correct, that this shouldn't be allowed. Cf. the BPMN 2.0 reference, Data Objects should only be attachable to FlowElements:
We should consider adding a Rule which disallow adding data associations to Artifacts (which are not FlowElements).
Describe the Bug
Diagram breaks when trying to reconnect data association to text annotation.
See the attached logs for the error.
Steps to Reproduce
Steps to reproduce the behavior:
After that, the shapes will never be rerendered after movement.
Expected Behavior
Connection should be disallowed and the diagram should be still editable.
Environment
Please complete the following information:
Logs
Click to open log
The text was updated successfully, but these errors were encountered: