JBoss Community

Re: Use of process variables after a startProcess

created by cheney-dut in jBPM - View the full discussion

ProcessInstance pi = ksession.startProcess("com.sample.Hello", params);

String result = (String) ((WorkflowProcessInstance)pi).getVariable("Object 1");

 

It can get the variables, when the process has no sub-process.

But i have another quertion!

if i set the variables in the parent process instance, how can i get them in the sub-process instance?

Thank you!

Reply to this message by going to Community

Start a new discussion in jBPM at Community