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

Transition instance IDs are not consistent due to execution tree compaction/expansion

    XMLWordPrintable

Details

    • Bug Report
    • Resolution: Won't Fix
    • L3 - Default
    • None
    • None
    • engine
    • None

    Description

      When retrieving a transition instance, its ID may change although in fact the very same transition instance still exists. This may lead to confusing behavior when working with the activity/transition instance tree.

      Example:

      ActivityInstance activityInstance = runtimeService.getActivityInstance(processInstance.getId());
      TransitionInstance transitionInstance = findTransitionInstanceIn(activityInstance);
      
      runtimeService.cancelTransitionInstance(transitionInstance.getId());
      

      The last instruction may fail although the transition instance (aka async job) still exists.

      Impact on Cockpit:
      When multiple users inspect a process instance at the same time and both try to modify the instance (not necessarily in parallel), modification may fail due to this bug.

      The reason is execution tree expansion/compaction and the implementation that uses the IDs of the executions performing the async job as the transition instance ID. After expansion/compaction, the execution may be a different one and in effect, the transition instance ID has changed.

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                thorben.lindhauer Thorben Lindhauer
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Salesforce