Although Drools makes extensive usage of MVEL, it is always embedded in the DRL language. So, it is Drools that defines that a field constraint is always a field accessor in the left with one or more restrictions in the right.
We need to find a way to make the Drools x MVEL relationship more clear because it is not the first time this slight confusion is made.
Anyway, docs are being updated, but take a look at the Pattern documentation (item 7.8.2.1):
https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-expert/html/ch07.html#RuleLanguage-ConditionalElements
[]s
Edson2009/3/17 Femke De Backere <femmyke@gmail.com>Thx!
Do you know where I could find a tutorial of MVEL in Drools, because I looked at some MVEL tutorials yesterday and I didn't find the solution...2009/3/17 Edson Tirelli <tirelli@post.com>
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
Edson2009/3/16 Femke De Backere <femmyke@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 doubleWhat am I doing wrong?Thx,Femke
rules-users mailing list
rules-users@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
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
rules-users@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
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users