I'm trying to nest the LHS of rules in the following way:
$c : Cheese (type == "stilton")
$c.addRuleToList( "Rule_stilton" );
System.out.println("Rule_stilton was fired");
rule "Rule_price" extends "Rule_stilton"
Cheese(price <= 6.00) from $c
$c.addRuleToList( "Rule_price" );
System.out.println("Rule_price was fired");
The class Cheese contains a list field of matching rules of that instance
and a public function 'addRuleToList', which adds the rule name into that
I get build error: "Unable to find declaration in list while generating the
consequence invoker". Is there some other way to reach that?
Thanks in advance.
Any help will be appreciated.
View this message in context:
Sent from the Drools - User mailing list archive at Nabble.com