That is correct. So u want a rule to only fire one time for the life time of the system? I have never heard of a requirement like that before :)<br><br><div class="gmail_quote">On Thu, Apr 16, 2009 at 3:31 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 David,<br>
thanks for reply...<br>
does this mean, the inserted object will stay only within the session?<br>
and the rule will be checked against again if I use a new session?<br>
Thanks<br>
<br>
Brody<br>
<br>
<br>
dave sinclair wrote:<br>
&gt;<br>
&gt; Check for the non-existence of a fact specific to the rule on the LHS.<br>
&gt; When<br>
&gt; the rule fires, assert the fact to ensure it never fires again. For<br>
&gt; example<br>
&gt;<br>
&gt; rule &quot;Foo&quot;<br>
&gt;    when<br>
&gt;           not Fired(rule == &quot;foo&quot;)<br>
&gt; ....<br>
&gt;    then<br>
&gt;       insert(new Fired(&quot;foo&quot;));<br>
&gt;     ...<br>
&gt; end<br>
&gt;<br>
&gt; On Wed, Apr 15, 2009 at 11:53 AM, Brody bach &lt;<a href="mailto:brodybach@yahoo.com">brodybach@yahoo.com</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; Hi all,<br>
&gt;&gt;<br>
&gt;&gt; Is there any way how I make a rule only executed once( i.e. if it has<br>
&gt;&gt; fired<br>
&gt;&gt; once, no other facts should be checked against it)<br>
&gt;&gt;<br>
&gt;&gt; Thanks for any hints<br>
&gt;&gt; Regards<br>
&gt;&gt; Brody<br>
&gt;&gt; --<br>
&gt;&gt; View this message in context:<br>
&gt;&gt; <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>
&gt;&gt; Sent from the drools - user mailing list archive at Nabble.com.<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; rules-users mailing list<br>
&gt;&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; rules-users mailing list<br>
&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;<br>
&gt;<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://www.nabble.com/How-to-make-a-rule-only-executed-once--tp23061727p23072887.html" target="_blank">http://www.nabble.com/How-to-make-a-rule-only-executed-once--tp23061727p23072887.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>