Nested Rules In Drools
问题 I have a .drl file which contains more than 100 rules. There are approximately 40 rules like rule "1", some 35 like rule "2" and rest are like rule "3". rule "1" when m: MyBeanClass( something1 == "train" && something2 == somevalue2) then m.setSomeThing(someOtherValue); update(m); end rule "2" when m: MyBeanClass( something1 == "bus" && something2 == somevalue2) then m.setSomeThing(someOtherValue); update(m); end rule "3" when m: MyBeanClass( something1 == "car" && something2 == somevalue2)