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

Calling Process Instance is not cancelled when modifying Called Process Instance

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: L3 - Default
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.9.0, 7.7.9, 7.8.6, 7.9.0-alpha4
    • Component/s: engine
    • Labels:
      None

      Description

      Steps to reproduce:
      1) deploy a process foo with a multi instance call activity
      2) deploy another process bar that contains a user task (bar is called by foo)
      3) start a process instance of foo
      4) perform the following modification:

          runtimeService.createModification("bar")
            .startAfterActivity("userTask")
            .cancelAllForActivity("userTask")
            .processInstanceIds(...)
            .execute();
      

      Observed Behavior:
      The calling process instance of foo is still active.

      Expected Behavior:
      The calling process instance of foo is cancelled.

      Hints:

      • see failing test cases [1] and [2]

      [1]: https://github.com/camunda/camunda-bpm-platform/blob/6056ad9aa8047e1477e20cbcec75a1b497eaceb4/engine/src/test/java/org/camunda/bpm/engine/test/api/runtime/ProcessInstanceModificationSubProcessTest.java#L499-L543
      [2]: https://github.com/camunda/camunda-bpm-platform/blob/6056ad9aa8047e1477e20cbcec75a1b497eaceb4/engine/src/test/java/org/camunda/bpm/engine/test/api/runtime/ProcessInstanceModificationSubProcessTest.java#L545-L594

        Issue Links

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              roman.smirnov Smirnov Roman
              Reporter:
              roman.smirnov Smirnov Roman
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development