Check for the non-existence of a fact specific to the rule on the LHS. When the rule fires, assert the fact to ensure it never fires again. For example<br><br>rule &quot;Foo&quot;<br>   when<br>          not Fired(rule == &quot;foo&quot;)<br>
....<br>   then<br>      insert(new Fired(&quot;foo&quot;));<br>    ...<br>end<br><br><div class="gmail_quote">On Wed, Apr 15, 2009 at 11:53 AM, Brody bach <span dir="ltr">&lt;<a href="mailto:brodybach@yahoo.com">brodybach@yahoo.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Hi all,<br>
<br>
Is there any way how I make a rule only executed once( i.e. if it has fired<br>
once, no other facts should be checked against it)<br>
<br>
Thanks for any hints<br>
Regards<br>
Brody<br>
<font color="#888888">--<br>
View this message in context: <a href="http://www.nabble.com/How-to-make-a-rule-only-executed-once--tp23061727p23061727.html" target="_blank">http://www.nabble.com/How-to-make-a-rule-only-executed-once--tp23061727p23061727.html</a><br>

Sent from the drools - user mailing list archive at Nabble.com.<br>
<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>
</font></blockquote></div><br>