Uploaded image for project: 'Camunda Optimize'
  1. Camunda Optimize
  2. OPT-1708

Branch Analysis fails in certain combination of gateway - end event

    • Icon: Bug Report Bug Report
    • Resolution: Fixed
    • Icon: L3 - Default L3 - Default
    • 2.3.0
    • None
    • frontend
    • None

      Given
      The branch analysis process (see attached bpmn file)

      When
      I select the marked gateway and end event (see attached screenshot)

      Then
      I get an error Cannot read property 'id' of undefined

      Hint
      It seems that the analysis crashes only in this combination. It is the only combination where the sub processes boundary event is taken into account.

      response of the evaluation query

      {
        "id" : null,
        "name" : null,
        "lastModified" : null,
        "created" : null,
        "owner" : null,
        "lastModifier" : null,
        "combined" : false,
        "data" : {
          "parameters" : {
            "processPart" : null,
            "sorting" : null
          },
          "processPart" : null,
          "configuration" : { },
          "processDefinitionKey" : "branch_analysis_process",
          "processDefinitionVersion" : "1",
          "filter" : [ ],
          "view" : {
            "operation" : "count",
            "entity" : "flowNode",
            "property" : "frequency"
          },
          "groupBy" : {
            "type" : "flowNodes",
            "value" : null
          },
          "visualization" : "heat"
        },
        "reportType" : "process",
        "processInstanceCount" : 9644,
        "result" : {
          "Task_1mdlnzi" : 463,
          "Task_1m59ujf" : 4790,
          "EndEvent_117c8ut" : 4293,
          "Task_1ii0j8x" : 3918,
          "StartEvent_1tr99we" : 3919,
          "Task_1j3opp7" : 3846,
          "Task_0wtzc3m" : 933,
          "ExclusiveGateway_19sy74y" : 2886,
          "IntermediateThrowEvent_14s4459" : 3917,
          "EndEvent_0navry4" : 1964,
          "BoundaryEvent_0geopts" : 1953,
          "Task_0upnv02" : 3917,
          "ExclusiveGateway_05qilyy" : 5723,
          "EndEvent_1xw9n0h" : 1501,
          "StartEvent_1" : 9641,
          "Task_04m9iwc" : 5723,
          "ExclusiveGateway_031q6au" : 9641,
          "EndEvent_12s0jxo" : 3846,
          "ExclusiveGateway_1lvpsuf" : 1964,
          "ExclusiveGateway_10u6jxf" : 4293,
          "ExclusiveGateway_02bi0hi" : 4790
        },
        "resultType" : "map"
      }
      

        This is the controller panel for Smart Panels app

            [OPT-1708] Branch Analysis fails in certain combination of gateway - end event

            I could reproduce the bug with a similar process containing a sub-process with attached boundary event.
            Branches that includes a boundary event cannot be analyzed.

            Michael Schoettes added a comment - I could reproduce the bug with a similar process containing a sub-process with attached boundary event. Branches that includes a boundary event cannot be analyzed.

            Johannes added a comment -

            sebastian.stamm: Spontaneously, do you have an idea what might be the cause?

            Johannes added a comment - sebastian.stamm : Spontaneously, do you have an idea what might be the cause?

            Spontaneously not, but I have a hunch that it might be related to the highlighting of the part between the gateway and end event. To validate, try creating a process part with the gateway and end event. If that also fails, it's the highlighting algorithm. If that works, its the analysis.

            johannes.heinemann: Should I have a more thorough look at this?

            Sebastian Stamm added a comment - Spontaneously not, but I have a hunch that it might be related to the highlighting of the part between the gateway and end event. To validate, try creating a process part with the gateway and end event. If that also fails, it's the highlighting algorithm. If that works, its the analysis. johannes.heinemann : Should I have a more thorough look at this?

            Johannes added a comment - - edited

            sebastian.stamm: Thanks for your note on this! Yes, let's take a thorough look. I want the branch analysis and the process part to work properly.

            Johannes added a comment - - edited sebastian.stamm : Thanks for your note on this! Yes, let's take a thorough look. I want the branch analysis and the process part to work properly.

            johannes.heinemann: I pushed a fix to master.

            Sebastian Stamm added a comment - johannes.heinemann : I pushed a fix to master.

              Unassigned Unassigned
              michael.schoettes Michael Schoettes
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: