[jboss-jira] [JBoss JIRA] Resolved: (JBRULES-2939) support complex expression in left hand side of constraint

Edson Tirelli (JIRA) jira-events at lists.jboss.org
Fri Apr 22 10:16:19 EDT 2011


     [ https://issues.jboss.org/browse/JBRULES-2939?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edson Tirelli resolved JBRULES-2939.
------------------------------------

         Assignee: Edson Tirelli  (was: Mark Proctor)
    Fix Version/s: 5.2.0.M2
       Resolution: Done


The engine now supports free form expressions as constraints.

> support complex expression in left hand side of constraint
> ----------------------------------------------------------
>
>                 Key: JBRULES-2939
>                 URL: https://issues.jboss.org/browse/JBRULES-2939
>             Project: Drools
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: drools-compiler (expert)
>    Affects Versions: 5.1.1.FINAL
>            Reporter: Radai Rosenblatt
>            Assignee: Edson Tirelli
>             Fix For: 5.2.0.M2
>
>
> currently drools does not support the following syntax:
> ...
> Number($var8 : longValue , ((longValue) * (1.5)) < $var7) from ...
> ...
> (results in "no viable alternative at input ')' in...")
> however, this works fine if the condition is re-written like this: "longValue < (($var7)/1.5)"
> it would be nice if drools knew how to cope with the condition in its original form as well.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list