[jboss-user] [jBPM] - Re: How to read return-variable from bpmn files to java file?

Miloud Haimoune do-not-reply at jboss.com
Mon Jun 18 06:25:00 EDT 2012


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&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120618/6a223213/attachment.html 


More information about the jboss-user mailing list