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

Configuring a process in the process overview page doesn't work if owner was set via API

    XMLWordPrintable

Details

    • Bug Report
    • Resolution: Fixed
    • L3 - Default
    • 3.9.0, 3.9.0-preview-1
    • None
    • None
    • None
    • Not defined

    Description

      Brief summary of the bug. What is it ? Where is it ?

      Configuring a process in the process overview page doesn't work if owner was set via API

      Steps to reproduce:

      • Deploy a process
      • Set an owner via the API api/process/initial-owner
      • Go to Optimize process overview page
      • Click on configure for that project

      Actual result:

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

      Cannot read properties of null (reading 'value')

      Expected result:

      Should work

       

      Reason: The reason for that is that the frontend is not expecting a null value for "checkInterval". In a normal process overview, the response from the BE looks like this:

      { "processDefinitionName" : "Customer Onboarding", "processDefinitionKey" : "customer_onboarding_en", "owner" : \{ "id" : null, "name" : null }

      ,
      "digest" : {
      "checkInterval" :

      { "value" : 1, "unit" : "weeks" }

      ,
      "kpiReportResults" : { },
      "enabled" : false
      },
      "kpis" : [ ],
      "linkToDashboard" : "/collection/customer_onboarding_en/dashboard/customer_onboarding_en?appcue=7c293dbb-3957-4187-a079-f0237161c489"
      }
       

      In a process overview that was created by the API, it looks like this:

      { "processDefinitionName" : "Enforcing SLA Example", "processDefinitionKey" : "kartoffelpower", "owner" : \{ "id" : "samlp|Okta|giuliano.rodrigues-lima@camunda.com", "name" : "Giuliano Rodrigues Lima" }

      ,
      "digest" : {
      "checkInterval" : null,
      "kpiReportResults" : { },
      "enabled" : false
      },
      "kpis" : [ ],
      "linkToDashboard" : "/collection/kartoffelpower/dashboard/kartoffelpower?appcue=7c293dbb-3957-4187-a079-f0237161c489"
      }

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Activity

            People

              Unassigned Unassigned
              giuliano.rodrigues-lima Giuliano Rodrigues Lima
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Salesforce