[rules-dev] A major 5.2 letdown

Edson Tirelli ed.tirelli at gmail.com
Wed Jul 27 09:24:29 EDT 2011


   I think Mark was playing with enums. If you don't mind submitting your
test, we should add it to the codebase to prevent this regression in the
future. At least it is fixed in HEAD and we should also check the fix was
backported to 5.2.x branch.

   Thanks for reporting,
    Edson

PS: I like the 5.2 results though... it is more concise... ;)


2011/7/27 Wolfgang Laun <wolfgang.laun at gmail.com>

> Given the following rule replicated for enums EDay.SUNDAY through
> EDay.THURSDAY and
> a single DummyTester fact starting with EDay.SUNDAY.
> rule "Sunday"
>   when
>     $dt:  DummyTester(EDay.SUNDAY == day)
>   then
>     System.out.println("RULE: entered rule:
> "+drools.getRule().getName());
>     modify ($dt) {setDay(EDay.MONDAY)};
> end
>
> On 5.1.1 and using HEAD:
> RULE: entered rule: Sunday
> RULE: entered rule: Monday
> RULE: entered rule: Tuesday
> RULE: entered rule: Wednsday
> RULE: entered rule: Thursday
>
> On 5.2
> RULE: entered rule: Thursday
> RULE: entered rule: Wednsday
>
> Who knows how this was fixed?
>
> Regards
> -W
>
>
> _______________________________________________
> rules-dev mailing list
> rules-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-dev
>
>


-- 
  Edson Tirelli
  JBoss Drools Core Development
  JBoss by Red Hat @ www.jboss.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-dev/attachments/20110727/560f08e1/attachment.html 


More information about the rules-dev mailing list