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

Exposing local variable via output mapping fails on parallel gateway with async after

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: L3 - Default
    • Resolution: Fixed
    • Affects Version/s: 7.7.1, 7.8.0-alpha2
    • Fix Version/s: 7.8.0, 7.7.3
    • Component/s: engine
    • Labels:

      Description

      • given:
        • I expose a local variable via output mapping
      • when:
        • I use this variable after a parallel gateway with async after (see attached screenshot Diagram.png)
      • then:
        • I get the attached error message (see attached log ErrorLog.txt)
      • expected:
        • I can access the variable without any problems

      Hint:

      1. ErrorLog.txt
        10 kB
        Johannes Heinemann
      1. Diagram.png
        38 kB

        Activity

        Hide
        roman.smirnov Smirnov Roman added a comment -

        I think the problem is, that the flag isConcurrentLocal on the exposed variable is set to true. When the parallel gateway will be executed a concurrent execution will be created and the exposed variable is moved to the concurrent execution (see [1]).

        [1]: https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/persistence/entity/ExecutionEntity.java#L1119

        Show
        roman.smirnov Smirnov Roman added a comment - I think the problem is, that the flag isConcurrentLocal on the exposed variable is set to true . When the parallel gateway will be executed a concurrent execution will be created and the exposed variable is moved to the concurrent execution (see [1] ). [1] : https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/persistence/entity/ExecutionEntity.java#L1119

          People

          • Assignee:
            svetlana.dorokhova Svetlana Dorokhova
            Reporter:
            johannes.heinemann Johannes Heinemann
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: