JBoss Community

Re: jBPM 5.1 - How to read variable in a Java application

created by Itajubá Segundo in jBPM - View the full discussion

Hi people. I found a solution using WorkflowProcessInstance. Here is the code:

 

Map<String, Object> params2 = new HashMap<String, Object>();

params2.put("valor", 20000);

ProcessInstance pi = ksession.startProcess("com.ims.teste.requisicao", params2);

     

WorkflowProcessInstance wfi = (WorkflowProcessInstance)pi;

   

System.out.println(wfi.getVariable("valor"));

 

 

Thank you.

 

Regards

Reply to this message by going to Community

Start a new discussion in jBPM at Community