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

Wolfgang Laun wolfgang.laun at gmail.com
Wed Feb 13 03:34:23 EST 2013


Best practice is to use a condition that guarantees that the discount
hasn't been
assigned for a shopping cart.

Ideally, you also shouldn't need salience, with conditions for selecting a
certain policy not leaving any possibility for multiple "hits".

-W

On 13/02/2013, pdario <dario.piantanida at gmail.com> wrote:
> Well, so how can I make this rule fire for each fact?
>
> My scenario is:
> - different rules in the same activation-group to assign discount to the
> shopping cart
> - different activation-group to manage different discount policies
> - each rule has different salience to be sure only the most relevant one
> fires in each group
>
> I would like to apply discounts to several carts with just one call to the
> rule engine.
>
> Is it possible or do I have to fireAllRules with one one insertion at a
> time?
>
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Evaluate-rules-for-multiple-facts-of-the-same-type-within-a-StateuflSession-tp4022157p4022267.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>


More information about the rules-users mailing list