Details
-
Bug
-
Resolution: Won't Do
-
Major
-
jBPM 3.2.2, jBPM 3.2.3, jBPM 3.3.0 GA, jBPM 3.2.4 GA, jBPM 3.3.1 GA, jBPM 3.2.5 GA
-
None
-
Low
-
Workaround Exists
-
Description
Transient variables are not assigned to Sub Process
I have a Super Process consisting of few Sub processes and transient variables map is supposed to be assigned to the
Sub Processes too in order to be available to them too.
But this behavior is true only if we have define at least one Super process variable to be Read by a Sub process.
The bug could be resolved if in org.jbpm.graph.node.ProcessState.execute(...)
----------
if ((variableAccesses != null) && (!variableAccesses.isEmpty())) {
ContextInstance superContextInstance = executionContext.getContextInstance();
ContextInstance subContextInstance = subProcessInstance.getContextInstance();
subContextInstance.setTransientVariables(superContextInstance.getTransientVariables());
---------
is changed like:
---------
ContextInstance superContextInstance = executionContext.getContextInstance();
ContextInstance subContextInstance = subProcessInstance.getContextInstance();
subContextInstance.setTransientVariables(superContextInstance.getTransientVariables());
if ((variableAccesses != null) && (!variableAccesses.isEmpty())) {