JBoss Community

Re: Use of process variables after a startProcess

created by Esteban Aliverti in jBPM - View the full discussion

Another case of magical casting:

 

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

 

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

 

Please note that getVariable() returns an Object, so you will need to cast it to the real type.

Reply to this message by going to Community

Start a new discussion in jBPM at Community