Miloud Haimoune [
https://community.jboss.org/people/milhaim] created the discussion
"Re: How to read return-variable from bpmn files to java file?"
To view the discussion, visit:
https://community.jboss.org/message/742314#742314
--------------------------------------------------------------
you have to cast the processInstance to WorkflowProcessInstanceImpl:
use :
WorkflowProcessInstanceImpl processInstance = (WorkflowProcessInstanceImpl)
ksession.getProcessInstance(processInstanceId)
or
WorkflowProcessInstanceImpl instance=(WorkflowProcessInstanceImpl)
ksession.startProcess("org.jbpm.sample.hello",paras);
and processInstance*.*getVariable("ret");
this is working from me
*HTH
*
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/742314#742314]
Start a new discussion in jBPM at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]