[rules-users] Evaluate rules for multiple facts of the same type within a StateuflSession

pdario dario.piantanida at gmail.com
Mon Feb 18 03:39:40 EST 2013


Hello, the "tinting" example from the whitepaper assumes each Tint fits
exactly one Param, right?
This is not my case, as a Cart can match different discounts and we want to
assign the highest possible.

Is the pattern still suitable?

Another thing I see is Param is evaluating plain attributes from the Tints,
but (not sure if this is the correct pattern) I'm using this to find if a
Cart contains a specific item

when
  Cart ($items : buyingItems, payment == Card....)
  i : Item (code == XXXXX) from $items
then
.............

Thank you, as Cotton.Ben has thoroughly said!! :)



--
View this message in context: http://drools.46999.n3.nabble.com/Evaluate-rules-for-multiple-facts-of-the-same-type-within-a-StateuflSession-tp4022157p4022388.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list