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!