JBoss Community

Re: how to fire rules after human task!!!

created by Esteban Aliverti in jBPM - View the full discussion

You can use ksession.fireUntilHalt() before you start your process. Something like this:

 

new Thread(new Runnable() {
            public void run() {
                ksession.fireUntilHalt();
            }
        }).start();
 
ksession.startProcess("processId");

 

fireUntilHalt() will fire whenever a rule gets activated.

Reply to this message by going to Community

Start a new discussion in jBPM at Community