jBPM process instance variables getting set to null after setting a process instance key
Issue
We create a new jBPM process using below constructor:
org.jbpm.graph.exe.ProcessInstance.ProcessInstance(ProcessDefinition processDefinition, Map variables);
At this point all the parameters passed to the process are stored in contextInstance:
processInstance.getContextInstance().getVariables().get("paramName");
returns the value of the parameter.
But when we set the key in the process instance:
processInstance.setKey("a_key");
then the variableMap is reset to null i.e. processInstance.getContextInstance().getVariables() returns null.
Environment
- jBPM
- 3.2.7
- 3.2.8
- 3.2.9
- 3.2.10
-
JBoss Enterprise SOA Platform (SOA-P)
- 4.3.0_CP02
- 4.3.0_CP03
- 4.3.0_CP04
-
5.0.x
- 5.1.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
