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

Incidents tab in cockpit is broken

    XMLWordPrintable

Details

    Description

      Steps to reproduce:
      1. start webapp in develop-profile
      2. login into Cockpit
      3. select deployed process Async After
      4. drill down into a given process instance
      5. select the tab Incidents

      Problem:
      The incidents will not be shown.

      Hint:
      The given service task A has set the attribute asyncAfter.

      An error will be thrown inside cockpit:

       TypeError: Cannot read property 'length' of undefined
          at http://localhost:8080/camunda/api/cockpit/plugin/base/static/app/plugin.js:1040:99
          at Array.forEach (native)
          at Object.forEach (http://localhost:8080/camunda/app/cockpit/scripts/deps.js:11593:11)
          at http://localhost:8080/camunda/api/cockpit/plugin/base/static/app/plugin.js:1036:21
          at http://localhost:8080/camunda/app/cockpit/scripts/deps.js:19216:11
          at deferred.promise.then.wrappedCallback (http://localhost:8080/camunda/app/cockpit/scripts/deps.js:22589:81)
          at deferred.promise.then.wrappedCallback (http://localhost:8080/camunda/app/cockpit/scripts/deps.js:22589:81)
          at http://localhost:8080/camunda/app/cockpit/scripts/deps.js:22675:26
          at Scope.$get.Scope.$eval (http://localhost:8080/camunda/app/cockpit/scripts/deps.js:23682:28)
          at Scope.$get.Scope.$digest (http://localhost:8080/camunda/app/cockpit/scripts/deps.js:23494:31)
      

      The problem is the following line:
      https://github.com/camunda/camunda-bpm-webapp/blob/master/webapp/src/main/resources-plugin/base/app/views/processInstance/incidentsTab.js#L79

      activityIdToInstancesMap[activityId] returns undefinied, so that activityIdToInstancesMap[activityId].length does not work in that case.

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Issue Links

            Activity

              People

                michael.schoettes Michael Schoettes
                roman.smirnov Roman Smirnov
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Salesforce