[rules-users] variables in rules

Mark Proctor mproctor at codehaus.org
Mon Aug 13 08:33:04 EDT 2007


yes you can use a variable, and no you cannot dynamically generate rules 
in an eval.

Mark
Arsalan S. Zaidi wrote:
>
> Hi.
>
>  
>
> Two questions:
>
>  
>
>    1. Is it possible to use a variable in a IN(...) ?
>
>  
>
> E.g.
>
>  
>
> when
>
> $someVar : SomeObj()
>
> ("pqr" in ("abc", $someVar))
>
> then
>
>             ...
>
>  
>
>    2. Can I use strings in an eval() to dynamically generate rules?
>
>  
>
> E.g.
>
>  
>
> when
>
> eval("$aaa == 0")
>
>             then
>
>                         ...
>
>  
>
> Thanks in advance!
>
>  
>
> --Arsalan
>
> This message contains information that may be privileged or 
> confidential and is the property of the Capgemini Group. It is 
> intended only for the person to whom it is addressed. If you are not 
> the intended recipient, you are not authorized to read, print, retain, 
> copy, disseminate, distribute, or use this message or any part 
> thereof. If you receive this message in error, please notify the 
> sender immediately and delete all copies of this message.
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>   

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


More information about the rules-users mailing list