[rules-users] 6.0.1.F Defect(s) in DSL and Enumerations

SrjTx clickthex at yahoo.com
Mon Feb 24 19:05:37 EST 2014


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.







--
View this message in context: http://drools.46999.n3.nabble.com/6-0-1-F-Defect-s-in-DSL-and-Enumerations-tp4028283.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list