Transient variables are not assigned to Sub Process
----------------------------------------------------
Key: JBPM-1984
URL:
https://jira.jboss.org/jira/browse/JBPM-1984
Project: JBoss jBPM
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Core Engine
Affects Versions: jBPM 3.3.1 GA, jBPM 3.3.0 GA, jBPM 3.2.5 GA , jBPM 3.2.4 GA, jBPM
3.2.3, jBPM 3.2.2
Environment: JVM
Reporter: Atanas Krachev
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())) {
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira