[rules-users] Booleans in DSLs

Gary Lamperillo glamperi at redhat.com
Fri Nov 13 10:28:13 EST 2009






I have the following DSL: 

[when]This Security is Ratable {bool:BOOLEAN:checked}=ratable:Ratable(ratableValue =="{bool}") 


The following BRL: 

rule "Ratable" 
dialect "mvel" 
when 
ratable:Ratable(ratableValue =="checked") 
then 
end 

When I create a test scenario in BRMS that looks for a "true" value for ratable, the rule does not fire. If I change the test condition to "false" the rule fires. 

Any suggestions would be appreciated. 

Thanks, 
Gary 


-- 



Gary Lamperillo 
JBoss Solutions Architect 
glamperi at redhat.com | 310.591.7516 




-- 



Gary Lamperillo 
JBoss Solutions Architect 
glamperi at redhat.com | 310.591.7516 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20091113/df62f82b/attachment.html 


More information about the rules-users mailing list