[jboss-jira] [JBoss JIRA] Commented: (JBRULES-3080) Compilation of rules should fail when is not used quotes in a String attribute
Mark Proctor (JIRA)
jira-events at lists.jboss.org
Wed Jun 22 17:39:23 EDT 2011
[ https://issues.jboss.org/browse/JBRULES-3080?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12610526#comment-12610526 ]
Mark Proctor commented on JBRULES-3080:
---------------------------------------
I'm not so sure, I believe Drools has always supported numeric and string co-ercion.
Mark
> Compilation of rules should fail when is not used quotes in a String attribute
> ------------------------------------------------------------------------------
>
> Key: JBRULES-3080
> URL: https://issues.jboss.org/browse/JBRULES-3080
> Project: Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: drools-compiler
> Affects Versions: 5.1.1.FINAL
> Reporter: Alessandro Lazarotti
> Assignee: Mark Proctor
>
> It is mandatory that Strings are placed between quotes. Guvnor/BRMS or DRL's plain text should fail if you forgot the quotes but currently it just fails the build if you put a value different of numerics:
> f : Fact( stringAttribute == ab )
> It will fail. The same must occur for:
> f : Fact( stringAttribute == 12 )
> ... but it does not happen and the rule is never matched.
> It is very important keep the same behaviour for both cases. The rule's author needs to know about it before the package is built.
--
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