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

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

      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.

        This is the controller panel for Smart Panels app

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

                Created:
                Updated:
                Resolved: