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

Sentry ifPart evaluation may fail when containing stage completes before

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: L3 - Default
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.3.0, 7.2.3, 7.3.0-alpha1
    • Component/s: engine
    • Labels:
      None

      Description

      Problem:

      Whenever a sentry is satisfied that is used as an exit criterion of a task, it may occur that the containing stage completes as well. In this case, the stage's variables are removed. In some cases however, we perform another check after that whether some sentries contained in that stage are satisfied. In this case, ifPart expressions may not resolve since the stage's local variables are already gone.

      Solution hint:

      Should be fixed in CmmnExecution#handleChildTransition and should not perform the second sentry check if the stage is already completed.

      Test case:
      https://github.com/camunda/camunda-bpm-platform/commit/9bb636e26da02129ea0fcfdb2ad1a5d5efe2d817

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: