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"><<a href="mailto:brodybach@yahoo.com">brodybach@yahoo.com</a>></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>
><br>
> Check for the non-existence of a fact specific to the rule on the LHS.<br>
> When<br>
> the rule fires, assert the fact to ensure it never fires again. For<br>
> example<br>
><br>
> rule "Foo"<br>
> when<br>
> not Fired(rule == "foo")<br>
> ....<br>
> then<br>
> insert(new Fired("foo"));<br>
> ...<br>
> end<br>
><br>
> On Wed, Apr 15, 2009 at 11:53 AM, Brody bach <<a href="mailto:brodybach@yahoo.com">brodybach@yahoo.com</a>> wrote:<br>
><br>
>><br>
>> Hi all,<br>
>><br>
>> Is there any way how I make a rule only executed once( i.e. if it has<br>
>> fired<br>
>> once, no other facts should be checked against it)<br>
>><br>
>> Thanks for any hints<br>
>> Regards<br>
>> Brody<br>
>> --<br>
>> View this message in context:<br>
>> <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>
>><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>
><br>
><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>