@FrankVhh
It looks ok to have a "no other reductions are applied" as a blocker, I find
cumbersome to repeat all the conditions of other rules negated.
Anyway, I'll try to summarize my situation:
rule "20% discount"
salience 0
effective 1st Feb -> 28th Feb
activaction-group "online discounts"
when
paying with credicard
cart contains special product A
then
cart.setDiscount(20)
rule "15% discount"
salience -10
effective 1st Feb -> 28th Feb
activaction-group "online discounts"
when
paying with credicard
cart contains special product B
then
cart.setDiscount(15)
rule "10% discount"
salience -20
activaction-group "online discounts"
when
paying with credicard
then
cart.setDiscount(10)
rule "No discount"
salience -30
activaction-group "online discounts"
when
paying not with creditcard
then
cart.setDiscount(0)
I thought activation-group / salience combination was the easiest and more
natural way to follow business rules.
How would you suggest to change these?
--
View this message in context:
http://drools.46999.n3.nabble.com/Evaluate-rules-for-multiple-facts-of-th...
Sent from the Drools: User forum mailing list archive at
Nabble.com.