On 19 July 2011 22:52, Jamie <jshaw(a)llbean.com> wrote:
This rule used to compile in the IDE under Drools 5.1.1:
when
$order: OrderFact(numberOfCreditCardDeclines >
FraudCCDeclines.find().getCreditCardDeclinesThreshold())
For Drools 5.1.1, this is syntactically incorrect. All but very simple
expressions on the right hand side of a comparison operator must be enclosed
in parentheses. A simple literal is one of the forms that are acceptable
without parentheses.
5.2.0 is much more tolerant.
-W
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-migrati...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users