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

After migrating a process instance to a new version of a process, the user task history of the instance is incomplete

XMLWordPrintable

    • Icon: Bug Report Bug Report
    • Resolution: Unresolved
    • Icon: L3 - Default L3 - Default
    • None
    • None
    • cockpit

      Environment (Required on creation):

      Camunda Platform, any version.

      Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket):

      After migrating a process instance to a new version of a process, the information obtained at Process > History > pickAnInstance > User Tasks is incomplete.

      Steps to reproduce (Required on creation):

      1. Deploy SUPPORT-13237.bpmn.
      2. Start one or more instances
      3. Finish some of the user tasks
      4. Have a look information obtained at Process > History > pickAnInstance > User Tasks: image-2022-03-18-12-39-59-500.png.
      5. Change the workflow, e.g.: change the version to "2"
      6. Deploy the changed workflow
      7. Migrate all workflow instances to the new version.
      8. Have a look information obtained at Process > History > pickAnInstance > User Tasks: image-2022-03-18-12-45-31-408.png.

      Observed Behavior (Required on creation):

      Incomplete User Tasks history.

      Expected behavior (Required on creation):

      Complete User Tasks history.

      Root Cause (Required on prioritization):

      Cockpit's payload to the http://localhost:8080/camunda/api/engine/engine/default/history/task?firstResult=0&maxResults=50 REST API includes the processDefinitionId property, e.g.:

      {
      "processInstanceId":"b62083d2-a555-11ec-af41-000c29be88fd",
      "processDefinitionId":"process:3:6741580d-a6c0-11ec-96fe-000c29be88fd",
      "sorting":[{"sortBy":"startTime","sortOrder":"desc"}]
      }
      

      Solution Ideas (Optional):

      Do not include the processDefinitionId property in Cockpit's payload to the http://localhost:8080/camunda/api/engine/engine/default/history/task?firstResult=0&maxResults=50 REST API.

      Hints (optional):

        This is the controller panel for Smart Panels app

              Unassigned Unassigned
              daniel.ewing Daniel Ewing
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: