Re: JESS: How can I write this rule?

2007-10-21 Thread Wolfgang Laun
On 10/21/07, Robert Kirby [EMAIL PROTECTED] wrote: If you want to consider only enabled instances, (defrule CP::enabled-example-rule Enabled My-Template with the greatest index1 and among those enabled with the smallest index2. (My-Template (id ?id) (enabled TRUE) (index1 ?index1)

Re: JESS: How can I write this rule?

2007-10-21 Thread Nicolas Fortin
Hello group, Thank you very much Robert and Wolfgang for helping me even if it is the week end. I really appreciate this. After some tries in a test program with the rule that you suggested, I modified my real program to integrate the new rule. As you can see this rule is similar to Wolfgang's