Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-2276

When an outgoing SequenceFlow is removed from a FlowNode, the diagram element of SequenceFlow loses bpmnElement attribute

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: L3 - Default
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.2.0, 7.1.3, 7.2.0-alpha3
    • Component/s: bpmn model api
    • Labels:
      None

      Description

      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);

        Attachments

          Activity

            People

            Assignee:
            meyer Daniel Meyer
            Reporter:
            ganesh Ganesh Ingle
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: