[jboss-jira] [JBoss JIRA] (DROOLS-442) Defect(s) in DSL and Enumerations
Jozef Marko (JIRA)
issues at jboss.org
Mon Jul 16 16:44:00 EDT 2018
[ https://issues.jboss.org/browse/DROOLS-442?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jozef Marko updated DROOLS-442:
-------------------------------
Component/s: DSLs Editor
Enumerations Editor
> Defect(s) in DSL and Enumerations
> ---------------------------------
>
> Key: DROOLS-442
> URL: https://issues.jboss.org/browse/DROOLS-442
> Project: Drools
> Issue Type: Bug
> Components: DSLs Editor, Enumerations Editor
> Affects Versions: 6.0.1.Final
> Reporter: Stephen Johns
> Assignee: Mark Proctor
> Labels: drools-tools
>
> 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 was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jboss-jira
mailing list