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]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to