-
Bug Report
-
Resolution: Fixed
-
L3 - Default
-
7.11.0-alpha3
-
None
If:
- variable is created with execution.setVariable("test", Variables.untypedValue(Spin.JSON("{}"), true));
Then:
- execution.getVariableTyped("test").isTransient() is false
Expected:
- execution.getVariableTyped("test").isTransient() is true
Impact:
- The original variable test is not persisted, but if I copy the value I accessed via #getVariableTyped to another variable, this new variable will be persisted
- Example case: I set a transient variable and then have a call activity mapping that hands all variables over to the called process; the variable will be persisted in the called process
Root cause:
- When we construct a typed value out of a variable, we do not take the transient flag into account
Failing test cases
https://github.com/camunda/camunda-bpm-platform/commit/cc58efcdeccaa5801c334288f11d11fd3c96e14f