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.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to