[jboss-user] [jBPM] - Re: calling the setVariable on reloaded ProcessInstance leads to NullPointerException
amadets
do-not-reply at jboss.com
Mon Mar 4 06:12:12 EST 2013
amadets [https://community.jboss.org/people/amadets] created the discussion
"Re: calling the setVariable on reloaded ProcessInstance leads to NullPointerException"
To view the discussion, visit: https://community.jboss.org/message/800559#800559
--------------------------------------------------------------
I don't know that is a bug or not, but this not work properly.
Try this:
Map<String, Object> parameters = new HashMap<String, Object>();
parameters.add(varName, varValue);
org.drools.runtime.process.ProcessInstance processInstance = ksession.createProcessInstance(processId, parameters);
ksession.startProcessInstance(processInstance.getId());
WorkflowProcessInstance wpi = (WorkflowProcessInstance) processInstance;
ts
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/800559#800559]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130304/d44307b8/attachment.html
More information about the jboss-user
mailing list