[jboss-jira] [JBoss JIRA] Closed: (JBRULES-1639) unable to evaluate expressions on string length in MVEL dialect

Edson Tirelli (JIRA) jira-events at lists.jboss.org
Tue Oct 7 08:56:21 EDT 2008


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

Edson Tirelli closed JBRULES-1639.
----------------------------------

    Fix Version/s: 5.0.0.M3
       Resolution: Done


MVEL 2.0 author added an option for mvel to work in a consistent way with Drools. 


> unable to evaluate expressions on string length in MVEL dialect
> ---------------------------------------------------------------
>
>                 Key: JBRULES-1639
>                 URL: https://jira.jboss.org/jira/browse/JBRULES-1639
>             Project: JBoss Drools
>          Issue Type: Bug
>          Components: drools-compiler
>    Affects Versions: 4.0.6
>         Environment: os x, drools 4.0.7
>            Reporter: Alex McCarrier
>            Assignee: Edson Tirelli
>             Fix For: 5.0.0.M3
>
>   Original Estimate: 0 minutes
>  Remaining Estimate: 0 minutes
>
> This actually happens in 4.0.7 (not an option in versions field so I marked as 4.0.6).
> If you have a rule like:
> rule "whatever"
> 	when
> 		MyObj(stringField.length == "5")
> 	then
> 		.. do something ..
> end
> You end up with a compile exception complaining that length is not a valid property.  Same happens if you try to use eval() to work around it.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list