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(). <br><br>You could come up with some hack to achieve your intent with fireUntilHalt(), but why do it in a roundabout way?<br>
<br>-W<br><br><br><div class="gmail_quote">On 3 May 2012 15:11, sumatheja <span dir="ltr"><<a href="mailto:sumatheja@gmail.com" target="_blank">sumatheja@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi All,<br> I'm using a stateful knowledge session in my project, where <b>ksession.fireUntilHalt()</b> 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)? <b>AfterActivationFiredEvent </b>seems to be activated after successfully firing each rule, so I feel this wont serve the purpose. Thanks in advance.<span class="HOEnZb"><font color="#888888"><br clear="all">
<br>-- <br>cheers<br>Sumatheja Dasararaju<br><br><br>
</font></span><br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br>