[rules-users] MVEL expression

Edson Tirelli tirelli at post.com
Mon Mar 16 20:19:57 EDT 2009


   Left side of a constraint should always be a field name... no expression
allowed. Either move the expression to the right side or use eval.

Patient( sedation.ultiva > ( 0.1 - 0.02 ) )

   Or even better:

Patient(sedation.ultiva > 0.08)

   []s
   Edson

2009/3/16 Femke De Backere <femmyke at gmail.com>

> Hi,
>
> The following expression keeps returning the error [112,32]: [ERR 103]
> Line 112:32 no viable alternative at input '+' in rule
> "RuleFlow-Split-masterproef.ruleflows.shortsedation-18-22" in pattern
> Patient:
> Patient(sedation.ultiva+0.02 > 0.1)
> with sedation.ultiva returning a double
> What am I doing wrong?
> Thx,
> Femke
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>


-- 
 Edson Tirelli
 JBoss Drools Core Development
 JBoss, a division of Red Hat @ www.jboss.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20090316/ec3e675b/attachment.html 


More information about the rules-users mailing list