[jboss-jira] [JBoss JIRA] Closed: (JBRULES-2260) MVEL not support multiple setters in modify

Mark Proctor (JIRA) jira-events at lists.jboss.org
Sun Apr 4 00:52:37 EDT 2010


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

Mark Proctor closed JBRULES-2260.
---------------------------------

    Fix Version/s: 5.1.0.M2
       Resolution: Done


cbrock claims this is fixed in the MVEL JIRA.

> MVEL not support multiple setters in modify
> -------------------------------------------
>
>                 Key: JBRULES-2260
>                 URL: https://jira.jboss.org/jira/browse/JBRULES-2260
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: drools-compiler
>         Environment: JBoss Drool Core 5.1.0.trunk-N200908260601-H218 in Eclipse 3.5 (installed as part of JBoss Tools Nightly Build)
>            Reporter: Jeff DeLong
>            Assignee: Mark Proctor
>             Fix For: 5.1.0.M2
>
>
> MVEL not support multiple setters in modify. The following results in an exception:
> 		modify(alert) {setServerHeartBeatStatus("down"),
> 						setPassportScannerStatus("down")
> 							
> 		}
> Description	Resource	Path	Location	Type
> BuildError: Unable to build expression for 'consequence': Failed to compile: 1 compilation error(s): 
>  - (4,-82) unable to resolve method using strict-mode: java.lang.Object.setServerHeartBeatStatus(java.lang.String) '		//actions
> 		modify(alert) {setServerHeartBeatStatus("down"),
> 						setPassportScannerStatus("down")
> 							
> 		}
> 		
> '	KioskEventRules.drl	/kiosk-rules/src/main/rules	line 156	Drools Error
> The expression does work if the dialect is Java.
> However the following works with the MVEL dialect:
> 	modify(alert) {passportScannerStatus = "down"}
> Also
> 	
> 	modify(alert) {serverHeartBeatStatus = "down",
> 						passportScannerStatus = "down"
> 							
> 		}
> I will also log this in the MVEL JIRA.

-- 
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