[rules-users] Question about custom accumulation functions

Wolfgang Laun wolfgang.laun at gmail.com
Sat Oct 26 03:30:01 EDT 2013


No way of guessing what code you have there. Why not start
a new thread, with all the trimmings? (Code, version,...)
-W

On 25/10/2013, mikerod <mjr4184 at gmail.com> wrote:
> On a somewhat related note:
>
> I have a rule, where the value of #getResult may match the constraint at
> some point during the accumulation, but later on will result in a value
> that
> does not match the constraint anymore.
>
> So in my scenario, the LHS of the rule is true at some point during the
> accumulation of working memory elements, so the RHS fires.  My RHS
> logically
> inserts new facts into working memory, via #insertLogical.
>
> Later, the #getResult returns a non-matching value, and the LHS of the rule
> becomes false.  However, from what I'm seeing, the facts inserted into
> working memory from "intermediate" matches of the LHS, are not being
> retracted when the LHS becomes false later on.
>
> Is this expected behavior?
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/rules-users-Question-about-custom-accumulation-functions-tp3280838p4026504.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