JBoss Community

Re: How does a sub-process work?

created by stellina_rosa in jBPM - View the full discussion

Hi Esteban, I'm sorry to contradict you, but the ksession is not the same in main and sub-process.

I take a test with a variable and the resul is different

 

org.drools.runtime.process.WorkflowProcessInstance process = (org.drools.runtime.process.WorkflowProcessInstance)kcontext.getProcessInstance();

System.out.println("Risultato Processo Principale: "+process.getVariable("risultato"));

 

 

.... so this means that in the main process I can't use the ksession on the sub-process.

at this point... what is the point of using of a sub-process?? is not very useful!!!

Reply to this message by going to Community

Start a new discussion in jBPM at Community