JBoss Community

Re: afterProcessCompleted() not firing when last workflow task is business rule

created by cold gin in jBPM - View the full discussion

Sorry it took so long to get back, as I was running some tests on this issue. I was able to solve my problem by doing the following in my process event listener:

 

public void afterNodeTriggered(ProcessNodeTriggeredEvent event) {
     ksession.fireAllRules();
    }

 

This advances the process when a business rule task is encountered. This post pointed me in the right direction towards calling fireAllRules():

 

https://community.jboss.org/message/627263

 

And thanks for replying Demian



Reply to this message by going to Community

Start a new discussion in jBPM at Community