[rules-users] Issue with simple accumulate sum rule

Wolfgang Laun wolfgang.laun at gmail.com
Mon Sep 16 14:57:28 EDT 2013


On 16/09/2013, stelomax <stephen.lomax at mattelli.com> wrote:
> Problem solved...was not an issue with Accumulate.  It was an issue with my
> understanding of decision tables.
>
> I had missed the all important "update" off the action of the decision
> table.  This lead to some peculiar behavior where println the fact worked
> fine, but executing a rule on the fact took the previous value of the fact.
> I am assuming this is down to the way the rules engine works when firing
> rules as opposed to simply retrieving values?

If your decisions depend on what's going on behind your back, you need
to be told, too ;-) And that's also the basic principle of rule
evaluation where facts may change.

-W

>
> Regardless the issue is resolved, thanks for your help (and patience) as
> always.
>
> Steve
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Issue-with-simple-accumulate-sum-rule-tp4025933p4025986.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