Juliano Dantas [
https://community.jboss.org/people/jdantas9] created the discussion
"Re: how to setVariable"
To view the discussion, visit:
https://community.jboss.org/message/776251#776251
--------------------------------------------------------------
I have the same problem, but in my case, when I use "setVariable()", process and
kruntime are null. I'm using the version 5.2. Look at my stacktrace:
java.lang.NullPointerException: null
at
org.jbpm.process.instance.impl.ProcessInstanceImpl.getProcess(ProcessInstanceImpl.java:67)
~[jbpm-flow-5.2.0.Final.jar:5.2.0.Final]
at
org.jbpm.process.instance.impl.ProcessInstanceImpl.getContextInstance(ProcessInstanceImpl.java:127)
~[jbpm-flow-5.2.0.Final.jar:5.2.0.Final]
at
org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.setVariable(WorkflowProcessInstanceImpl.java:238)
~[jbpm-flow-5.2.0.Final.jar:5.2.0.Final]
Thanks.
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/776251#776251]
Start a new discussion in jBPM at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]