[rules-users] [Drools Planner] Hard constraint appears to be ignored - How to isolate a working memory corruption in drools expert

Reinis drools at orbit-x.de
Sat Mar 10 13:38:46 EST 2012


Closing this thread!

Error was in this code-block:

{code}
fooLeft.setBar(fooRight.getBar());
fooRight.setBar(barLeft);
session.update(fooLeftFact, fooLeft);
session.update(fooRightFact, fooRight);
{code}

following fix makes the error go away:

{code}
fooLeft.setBar(fooRight.getBar());
session.update(fooLeftFact, fooLeft);
fooRight.setBar(barLeft);
session.update(fooRightFact, fooRight);
{code}

Pull request retracted and I have a bad taste in my mouth since I have no technical/logical explanation why so.

Thank you guys for all the help!


On 03/09/2012 02:21 PM, Wolfgang Laun wrote:

> Works also with 5.4.0.Beta2.
>
> Does this really fail in the context of Drools' unit tests?
>
> -W
>
>
> On 9 March 2012 12:23, Wolfgang Laun <wolfgang.laun at gmail.com 
> <mailto:wolfgang.laun at gmail.com>> wrote:
>
>     Can't reproduce the described effect with 5.3.0.Final, will look at
>     5.4.0.Beta2 later today.
>
>     As far as I can see, the test case asserts the correct result which
>     Drools produces anyway?
>
>     -W
>
>     On 09/03/2012, ge0ffrey <ge0ffrey.spam at gmail.com
>     <mailto:ge0ffrey.spam at gmail.com>> wrote:
>     > Great work Reinis!
>     >
>     > --
>     > View this message in context:
>     >
>     http://drools.46999.n3.nabble.com/rules-users-Drools-Planner-Hard-constraint-appears-to-be-ignored-tp3777209p3812319.html
>     > Sent from the Drools: User forum mailing list archive at Nabble.com.
>     > _______________________________________________
>     > rules-users mailing list
>     > rules-users at lists.jboss.org <mailto:rules-users at lists.jboss.org>
>     > https://lists.jboss.org/mailman/listinfo/rules-users
>     >
>
>
>
>
> _______________________________________________
> 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