Hi All, I'm trying to nest the LHS of rules in the following way:
rule "Rule_stilton" when $c : Cheese (type == "stilton") then $c.addRuleToList( "Rule_stilton" ); System.out.println("Rule_stilton was fired"); end rule "Rule_price" extends "Rule_stilton" when Cheese(price <= 6.00) from $c then $c.addRuleToList( "Rule_price" ); System.out.println("Rule_price was fired"); End 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 list. 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: http://n3.nabble.com/Nesting-rules-in-Drools-5-x-tp106902p106902.html Sent from the Drools - User mailing list archive at Nabble.com. _______________________________________________ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users