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

Local transient variables show up in database when creating a message correlation with REST

    Details

    • Type: Bug Report
    • Status: Ready
    • Priority: L3 - Default
    • Resolution: Unresolved
    • Affects Version/s: 7.12.0-alpha1
    • Fix Version/s: 7.12.0
    • Component/s: None
    • Labels:
      None

      Description

      Steps:
      Create a message correlation with REST: https://docs.camunda.org/manual/7.11/reference/rest/message/post-message/
      use processVariablesLocal and make them transient

      Expectation: the transient ones do not show up in the database at all.
      This is true for the non-local variable, but for the local one, the data shows up in the history and database, which we did not expect.

      Please find attached the screenshots.

      1. AfterCorrelationRestCall.png
        171 kB
      2. Correlation_REST.png
        271 kB
      3. CorrelationTest_ProcessInstanceStarted.png
        135 kB
      4. DBScreenshot.png
        180 kB
      5. ProcessInstanceEnded.png
        185 kB

        Issue Links

          Activity

          Hide
          thorben.lindhauer Thorben Lindhauer added a comment - - edited

          Root cause:

          • the transient flag is only evaluated in org.camunda.bpm.engine.impl.core.variable.scope.AbstractVariableScope.setVariable(String, TypedValue, AbstractVariableScope); when calling VariableScope#setVariableLocal it is not taken into account

          Impact:

          • This problem occurs in all APIs that use local variables; fixing this will also fix CAM-10527 and similar problems
          Show
          thorben.lindhauer Thorben Lindhauer added a comment - - edited Root cause: the transient flag is only evaluated in org.camunda.bpm.engine.impl.core.variable.scope.AbstractVariableScope.setVariable(String, TypedValue, AbstractVariableScope); when calling VariableScope#setVariableLocal it is not taken into account Impact: This problem occurs in all APIs that use local variables; fixing this will also fix CAM-10527 and similar problems

            People

            • Assignee:
              Unassigned
              Reporter:
              garima.yadav Garima Yadav
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:

                Development