[jboss-jira] [JBoss JIRA] (DROOLS-442) Defect(s) in DSL and Enumerations
Stephen Johns (JIRA)
issues at jboss.org
Tue Feb 25 11:51:48 EST 2014
[ https://issues.jboss.org/browse/DROOLS-442?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stephen Johns updated DROOLS-442:
---------------------------------
Description:
The following works like you would think:
[when]xxx {l:ENUM:MyBean.l} {x:ENUM:MyBean.x} {y:ENUM:MyBean.y}=eval($sep.foo("any", "any", "{l}", "{x}", "{y}", "", ""))
Defect 1
If you remove the spaces between the "} {"
[when]xxx {l:ENUM:MyBean.l}{x:ENUM:MyBean.x}{y:ENUM:MyBean.y}=eval($sep.foo("any", "any", "{l}", "{x}", "{y}", "", ""))
l = ""
x = ""
y = l + x + y
Defect 2
Even in the first case, if the Enumeration returns a value that has space(s) in it (which maybe should not be allowed?) it will make for odd substitutions as well.
Note that I need spaces to be supported.
Defect 3
Regardless of the date format specified the substitution always dd-MMM-yyyy
{startTime:DATE:"dd-MMM-yyyy HH:mm"}
{startTime:DATE:"dd-MMM-yyyy:HH:mm"}
{startTime:DATE:"dd-MMM-yyyy at HH:mm"}
{startTime:DATE:"HH:mm"}
all result in "25-Feb-2014"
was:
The following works like you would think:
[when]xxx {l:ENUM:MyBean.l} {x:ENUM:MyBean.x} {y:ENUM:MyBean.y}=eval($sep.foo("any", "any", "{l}", "{x}", "{y}", "", ""))
Defect 1
If you remove the spaces between the "} {"
[when]xxx {l:ENUM:MyBean.l}{x:ENUM:MyBean.x}{y:ENUM:MyBean.y}=eval($sep.foo("any", "any", "{l}", "{x}", "{y}", "", ""))
l = ""
x = ""
y = l + x + y
Defect 2
Even in the first case, if the Enumeration returns a value that has space(s) in it (which maybe should not be allowed?) it will make for odd substitutions as well.
Note that I need spaces to be supported.
Defect 3
Regardless of the date format specified the substitution always dd-MMM-yyyy
{startTime:DATE:"dd-MMM-yyyy HH:mm"}
{startTime:DATE:"dd-MMM-yyyy:HH:mm"}
{startTime:DATE:"dd-MMM-yyyy at HH:mm"}
all result in "25-Feb-2014"
> Defect(s) in DSL and Enumerations
> ---------------------------------
>
> Key: DROOLS-442
> URL: https://issues.jboss.org/browse/DROOLS-442
> Project: Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 6.0.1.Final
> Reporter: Stephen Johns
> Assignee: Mark Proctor
>
> The following works like you would think:
> [when]xxx {l:ENUM:MyBean.l} {x:ENUM:MyBean.x} {y:ENUM:MyBean.y}=eval($sep.foo("any", "any", "{l}", "{x}", "{y}", "", ""))
> Defect 1
> If you remove the spaces between the "} {"
> [when]xxx {l:ENUM:MyBean.l}{x:ENUM:MyBean.x}{y:ENUM:MyBean.y}=eval($sep.foo("any", "any", "{l}", "{x}", "{y}", "", ""))
> l = ""
> x = ""
> y = l + x + y
> Defect 2
> Even in the first case, if the Enumeration returns a value that has space(s) in it (which maybe should not be allowed?) it will make for odd substitutions as well.
> Note that I need spaces to be supported.
> Defect 3
> Regardless of the date format specified the substitution always dd-MMM-yyyy
> {startTime:DATE:"dd-MMM-yyyy HH:mm"}
> {startTime:DATE:"dd-MMM-yyyy:HH:mm"}
> {startTime:DATE:"dd-MMM-yyyy at HH:mm"}
> {startTime:DATE:"HH:mm"}
> all result in "25-Feb-2014"
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list