I have three rules: rule "First rule" salience 20 ruleflow-group "rfs_1" lock-on-active true when $c: Car(color == "red") then $c.setPrice(1); update($c); end rule "Second rule" salience 25 ruleflow-group "rfs_1" lock-on-active true when $c: Car(size == "small") then $c.setPrice(2); update($c); end
rule "Second step" salience 40 ruleflow-group "rfs_2" lock-on-active true when $c: Car() then System.out.println($c); end I have class, for example Car, which has three prioperties: color, size, price. I insert into session fact-Car("red", "small"), next start process, and execute rules. After that, price value is 1. I thought that "Second rule" should be fired only because it has bigger salience but it is exactly the opposite. Could anyone explain me why first rule was executed/fired and what can I do to fire only "Second rule" (without invoking "First rule"). Thanks -- View this message in context: http://drools.46999.n3.nabble.com/Lock-on-active-and-ruleflow-group-tp3237089p3237089.html Sent from the Drools: User forum mailing list archive at Nabble.com. _______________________________________________ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users