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

Process Report: 'Distribute by' does not work if variable has empty string

XMLWordPrintable

    • 2
    • Not defined
    • 3 - Expected

      What are the steps to reproduce your problem?

      create some instances that have empty strings (in Process Variable).  Then do a process instance count report with the below settings.  The main issue is the 'Distributed By' having a String with a null value, and setting 'Visualization' to Table.

      What is the problem?

      "An application error has occured. Refresh your browser or close it and sign in again."

      "A column ID (or unique "Header" value) is required!"

      What would be the expected behavior:

      No errors.

      Hints (optional):

      See screenshot for setup

      Testing Notes:

      I reproduced this locally by doing this (this example is for process named "Invoice Receipt with alternative correlation variable"):

      • open service-config.yaml and set externalVariable.import.enabled to true
      • start backend and frontend
      • use postman or any other tool to add external variable using api post request to *http://localhost:8090/api/ingestion/variable*
      • set authorization header
      • use this request body
      [{
        "id":"123",
        "name":"testVar",
        "type":"string",
        "value":"",
        "processInstanceId":"99dac3ac-546e-11ed-84dd-62dfefa51646",
        "processDefinitionKey":"invoice",
        "serializationDataFormat":"application/json"
      }]
      • create report and select process "Invoice Receipt with alternative correlation variable"
      • set View: Process Instance
      • set Measure: Count
      • set Group By: Start Date -> Automatic
      • add second group by: variable -> testVar
      • after this step we had the error already so it should work now without any errors

        This is the controller panel for Smart Panels app

              Unassigned Unassigned
              scott.ghidiu Scott Ghidiu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: