Hi everybody,
I have a class Car which is superclass for class ConvertibleCar, two rules
(described below) and a ConvertibleCar fact in working memory that causes both
rules to fire, resulting this way an unwanted change to the car`s attribute and
an infinite loop.
How do I evitate this problem: the specialization class fact to not match its
superclass column in a rule?
ConvertibleCar car =new ConvertibleCar(10000);
rule "rule-1"
when
$car:Convertible()
then
$car.setPotentialTheftRating("high");
end
rule "rule-2"
when
$car:Car(price<20000)
then
$car.setPotentialTheftRating("low");
end
Best regards, Oana
---------------------------------
The fish are biting.
Get more visitors on your site using Yahoo! Search Marketing._______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users