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>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; Oana<br><b><i>Marcus Ilgner &lt;marcus.ilgner@gmail.com&gt;</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>&gt; Hi everybody,<br>&gt;<br>&gt; I have a class Car which is superclass for class ConvertibleCar, two rules<br>&gt; (described below) and a ConvertibleCar fact in working memory that causes<br>&gt; both rules to fire, resulting this way an unwanted change to the car`s<br>&gt; attribute and an infinite loop.<br>&gt;<br>&gt; How do I evitate this problem: the specialization class fact to not match<br>&gt; its superclass column in a
 rule?<br>&gt;<br>&gt; ConvertibleCar car =new ConvertibleCar(10000);<br>&gt;<br>&gt; rule "rule-1"<br>&gt;     when<br>&gt;        $car:Convertible()<br>&gt;     then<br>&gt;    $car.setPotentialTheftRating("high");<br>&gt; end<br>&gt;<br>&gt; rule "rule-2"<br>&gt;     when<br>&gt;         $car:Car(price&lt;20000)<br>&gt;      then<br>&gt;     $car.setPotentialTheftRating("low");<br>&gt;  end<br>&gt;<br>&gt; Best regards, Oana<br>&gt;<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&lt;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>&#32;

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