-
Bug Report
-
Resolution: Fixed
-
L3 - Default
-
None
-
None
AT:
- only the outgoing reference and not the actual sequence flow should be removed from the model
Failing test case:
https://github.com/camunda/camunda-bpmn-model/commit/67c469a6871f0a06ac0828de5c85040d2804d7e7
==================
floNode.getOutgoing().remove(flow) somehow clears association between edge and flow
Try these three lines to validate the bug:
FlowNode source = <someNode>;
BpmnEdge flowDi = flow.getDiagramElement();
source.getOutgoing().remove(flow);
// flowDi has no bpmnElement attribute now
// a workaround I am currently using in our project:
flowDi.setBpmnElement(flow);