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 :)

On Thu, Apr 16, 2009 at 3:31 AM, Brody bach <brodybach@yahoo.com> wrote:

Hi David,
thanks for reply...
does this mean, the inserted object will stay only within the session?
and the rule will be checked against again if I use a new session?
Thanks

Brody


dave sinclair wrote:
>
> 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
>
> rule "Foo"
>    when
>           not Fired(rule == "foo")
> ....
>    then
>       insert(new Fired("foo"));
>     ...
> end
>
> On Wed, Apr 15, 2009 at 11:53 AM, Brody bach <brodybach@yahoo.com> wrote:
>
>>
>> Hi all,
>>
>> Is there any way how I make a rule only executed once( i.e. if it has
>> fired
>> once, no other facts should be checked against it)
>>
>> Thanks for any hints
>> Regards
>> Brody
>> --
>> View this message in context:
>> http://www.nabble.com/How-to-make-a-rule-only-executed-once--tp23061727p23061727.html
>> Sent from the drools - user mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> rules-users mailing list
>> rules-users@lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>
> _______________________________________________
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>

--
View this message in context: http://www.nabble.com/How-to-make-a-rule-only-executed-once--tp23061727p23072887.html
Sent from the drools - user mailing list archive at Nabble.com.

_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users