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

In Cockpit, process instances count for all versions is zero under certain conditions

    XMLWordPrintable

Details

    • Bug Report
    • Resolution: Fixed
    • L3 - Default
    • 7.11.0, 7.10.4, 7.11.0-alpha3
    • 7.7.10, 7.11.0, 7.9.8, 7.8.13, 7.10.2, 7.11.0-alpha2
    • engine
    • None

    Description

      Given

      1. Multiple versions of a process definition with key foo and tenant id null are deployed
      2. For each process definition version, there exist multiple running process instances with tenant id bar
      3. Tenant ids of process instances which differ from the process definition tenant id must be set with the help of a custom implementation of TenantIdProvider

      Steps to reproduce

      1. Go to processes view in Cockpit and open the process definition runtime view

      Observed behavior

      • In the left sidebar, the running instances count of the current version shows a number greater than 0
      • In the left sidebar, the running instances count of all versions shows 0

      Expected behavior
      The running instances count of all versions shows the correct number of running process instances of all versions

      Solution candidates
      Solution #1: Fix on frontend-side by performing multiple REST requests for each process definition id and calculate the sum.

      Solution #2: Fix on backend-side by introducing a new filter criterion processDefinitionWithoutTenantId; In this case, all process instances with and without tenant id should be counted which belong to a process definition key without tenant id

      Solution #2 should be preferred over solution #1 as the performance of loading the process definition runtime view decreases with an increasing number of process definition versions.

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Issue Links

            Activity

              People

                michael.schoettes Michael Schoettes
                tassilo.weidner Tassilo Weidner
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Salesforce