[jboss-jira] [JBoss JIRA] Commented: (JBRULES-2260) MVEL not support multiple setters in modify
Jeff DeLong (JIRA)
jira-events at lists.jboss.org
Thu Aug 27 15:51:23 EDT 2009
[ https://jira.jboss.org/jira/browse/JBRULES-2260?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12483149#action_12483149 ]
Jeff DeLong commented on JBRULES-2260:
--------------------------------------
Also logged in MVEL-184
> 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
>
> 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