[jboss-user] [jBPM] - Re: fireAllRules() in a loop issue

Miloud Haimoune do-not-reply at jboss.com
Mon Feb 6 10:18:42 EST 2012


Miloud Haimoune [https://community.jboss.org/people/milhaim] created the discussion

"Re: fireAllRules() in a loop issue"

To view the discussion, visit: https://community.jboss.org/message/714669#714669

--------------------------------------------------------------
I am already using the AgendaEventListener to automatically fireAllRules, I added a ProcessEventListner to update the working memory, and now it's working fine.

the method to override (more here :  https://community.jboss.org/message/608017#608017 https://community.jboss.org/message/608017):

public void afterVariableChanged(ProcessVariableChangedEvent event) {
                 org.drools.runtime.rule.FactHandle handle = event.getKnowledgeRuntime().getFactHandle( event.getProcessInstance() );
                 if(handle != null){
                                event.getKnowledgeRuntime().update( handle, event.getProcessInstance() );
                 }
}

Many thanks
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/714669#714669]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120206/494e7962/attachment.html 


More information about the jboss-user mailing list