[rules-users] re-fire all rules

Wolfgang Laun wolfgang.laun at gmail.com
Thu Oct 14 02:19:12 EDT 2010


Iterate over all Facts in WM and call update():

for( FactHandle fh: kSession.getFactHandles() ){
  kSession.update( fh, kSession.getObject( fh ) );
}

2010/10/13 Yaniv Itzhaki <iyaniv at gmail.com>

> Hi there,
>
> Is there a way to "reset" the working memory so that all the rules will
> run again when fireAllRules() is called? (I am running the startProcess
> method number of times with the same working memory)
>
> I know that normally rules will only be run again when there was a change
> and the fact was updated. but in my case I like to run all rules again
> in some situations without having a change on the facts.
>
> so is there a way to do this?
>
> Thanks
> Yaniv
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20101014/fbeb5eb4/attachment.html 


More information about the rules-users mailing list