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(a)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(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users