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

The earliest variable in a batch is taken as the value when the ID exists multiple times in the batch

XMLWordPrintable

    • Icon: Bug Report Bug Report
    • Resolution: Fixed
    • Icon: L3 - Default L3 - Default
    • 3.10.0-alpha1, 3.10.0
    • None
    • backend
    • None
    • 3
    • Not defined

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

      When an external variable batch contains two variables with the same ID for the same instance, we store the first one on the json array as the variable value. While the desired behaviour might not be obvious, I would possibly say that we should take the later value as the "correct" value in this scenario. Whatever the decision, we should probablu document this usage as the behaviour is non-obvious to users

      Steps to reproduce:

      1. Ingest external variable batch containing two of the same variable IDs/instance IDs but with different values
      2. Observe that the first variable in the batch list is that persisted to the process instance in Optimize

       

      Actual result :

      The first variable in the batch is the saved result

      Expected result:

      Probably that the last variable in the batch list is that persisted to the process instance in Optimize

        This is the controller panel for Smart Panels app

              Unassigned Unassigned
              joshua.windels Joshua Windels
              Helene Waechtler Helene Waechtler
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: