Thanks Marcus for your response.<br><br>But it isn't the case for my problem. <br>To add a new condition like that don't solve anything in my case. Imagine we have 10 classes like ConvertibleCar. What we do then?<br><br>Regards,<br> Oana<br><b><i>Marcus Ilgner <marcus.ilgner@gmail.com></i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> Hi Oana,<br><br>On 2/16/07, nicolae oana <oananicolae1981@yahoo.com> wrote:<br>> Hi everybody,<br>><br>> I have a class Car which is superclass for class ConvertibleCar, two rules<br>> (described below) and a ConvertibleCar fact in working memory that causes<br>> both rules to fire, resulting this way an unwanted change to the car`s<br>> attribute and an infinite loop.<br>><br>> How do I evitate this problem: the specialization class fact to not match<br>> its superclass column in a
rule?<br>><br>> ConvertibleCar car =new ConvertibleCar(10000);<br>><br>> rule "rule-1"<br>> when<br>> $car:Convertible()<br>> then<br>> $car.setPotentialTheftRating("high");<br>> end<br>><br>> rule "rule-2"<br>> when<br>> $car:Car(price<20000)<br>> then<br>> $car.setPotentialTheftRating("low");<br>> end<br>><br>> Best regards, Oana<br>><br><br>I'd say that this behaviour is correct in principle. If you want to<br>avoid this, you could add further constraints in the rules concerning<br>the superclass:<br><br>rule "rule-2"<br> when<br> $car:Car(price<20000, class != Convertible.class)<br> then<br> $car.setPotentialTheftRating("low");<br> end<br><br>I'm not sure if this works exactly like that (don't have a Drools<br>installation at hand), but I guess you get the idea.<br><br>Best
regards<br>Marcus<br>_______________________________________________<br>rules-users mailing list<br>rules-users@lists.jboss.org<br>https://lists.jboss.org/mailman/listinfo/rules-users<br></oananicolae1981@yahoo.com></blockquote><br><p> 
<hr size=1>The fish are biting.<br>
<a href="http://us.rd.yahoo.com/evt=49679/*http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php?o=US2140&cmp=Yahoo&ctv=Q107Tagline&s=Y&s2=EM&b=50"> Get more visitors</a> on your site using <a href="
http://us.rd.yahoo.com/evt=49679/*http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php?o=US2140&cmp=Yahoo&ctv=Q107Tagline&s=Y&s2=EM&b=50">Yahoo! Search Marketing.</a>