[rules-users] Even to check if all the rules have been fired

Wolfgang Laun wolfgang.laun at gmail.com
Thu May 3 10:30:06 EDT 2012


You don't say why you are using fireUntilHalt(). What you want to know,
i.e., that all rules due to the insertion of some facts have been fired, is
naturally provided by fireAllRules().

You could come up with some hack to achieve your intent with
fireUntilHalt(), but why do it in a roundabout way?

-W


On 3 May 2012 15:11, sumatheja <sumatheja at gmail.com> wrote:

> Hi All,
>         I'm using a stateful knowledge session in my project, where *
> ksession.fireUntilHalt()* will trigger the rules as and when the facts
> are inserted. I,m developing a functionaly where I need to insert some new
> facts and and retract them once the valid rules have been fired. I'm unable
> to find the exact event listener to check if all the valid rules have been
> fired. Do I need to handle this case(is it implicitly handled)? *AfterActivationFiredEvent
> *seems to be activated after successfully firing each rule, so I feel
> this wont serve the purpose. Thanks in advance.
>
> --
> cheers
> Sumatheja Dasararaju
>
>
>
> _______________________________________________
> 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/20120503/8c9cb097/attachment.html 


More information about the rules-users mailing list