[rules-users] Rule not compiling in IDE after migration to 5.2
Michael Anstis
michael.anstis at gmail.com
Tue Jul 19 17:08:46 EDT 2011
By "IDE" I assume you mean Eclipse? Can you try as vanilla DRL?
There were alot of changes for 5.2 for "free form expressions" and perhaps
you've found a regression.
On 19 July 2011 21:52, Jamie <jshaw at llbean.com> wrote:
> This rule used to compile in the IDE under Drools 5.1.1:
>
> when
> $order: OrderFact(numberOfCreditCardDeclines >
> FraudCCDeclines.find().getCreditCardDeclinesThreshold())
>
> then
> //do something
>
> but it's breaking since I moved to 5.2, although it runs fine when I deploy
> it to the server. Any idea why?
>
> If I make the > comparison static, like this:
>
> when
> $order: OrderFact(numberOfCreditCardDeclines > 5)
>
> then
> //do something
>
> It also works fine. What's wrong?
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Rule-not-compiling-in-IDE-after-migration-to-5-2-tp3183689p3183689.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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110719/83dab24e/attachment.html
More information about the rules-users
mailing list