<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
yes you can use a variable, and no you cannot dynamically generate
rules in an eval.<br>
<br>
Mark<br>
Arsalan S. Zaidi wrote:
<blockquote
cite="mid:9E2A64E42D1FE1409AE18487B7446C19189D45@PUNEXC16.kanbay.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; ">
<meta name="Generator" content="Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
/* List Definitions */
@list l0
        {mso-list-id:2041978684;
        mso-list-type:hybrid;
        mso-list-template-ids:1283088734 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
        {mso-level-tab-stop:.5in;
        mso-level-number-position:left;
        text-indent:-.25in;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
-->
</style>
<div class="Section1">
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;">Hi.<o:p></o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;">Two questions:<o:p></o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;"><o:p> </o:p></span></font></p>
<ol style="margin-top: 0in;" start="1" type="1">
<li class="MsoNormal" style=""><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;">Is it possible to use a
variable in a IN(…) ? <o:p></o:p></span></font></li>
</ol>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;"><o:p> </o:p></span></font></p>
<p class="MsoNormal" style="text-indent: 0.5in;"><font face="Arial"
size="2"><span style="font-size: 10pt; font-family: Arial;">E.g.<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-indent: 0.5in;"><font face="Arial"
size="2"><span style="font-size: 10pt; font-family: Arial;"><o:p> </o:p></span></font></p>
<p class="MsoNormal" style="text-indent: 0.5in;"><font face="Arial"
size="2"><span style="font-size: 10pt; font-family: Arial;">when<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left: 1in;"><font face="Arial"
size="2"><span style="font-size: 10pt; font-family: Arial;">$someVar :
SomeObj()<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: 0.5in;"><font
face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;">(“pqr”
in (“abc”, $someVar))<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left: 0.5in;"><font face="Arial"
size="2"><span style="font-size: 10pt; font-family: Arial;">then<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left: 0.5in;"><font face="Arial"
size="2"><span style="font-size: 10pt; font-family: Arial;">
…<o:p></o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;"><o:p> </o:p></span></font></p>
<ol style="margin-top: 0in;" start="2" type="1">
<li class="MsoNormal" style=""><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;">Can I use strings in an
eval() to dynamically generate rules?<o:p></o:p></span></font></li>
</ol>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;"><o:p> </o:p></span></font></p>
<p class="MsoNormal" style="margin-left: 0.5in;"><font face="Arial"
size="2"><span style="font-size: 10pt; font-family: Arial;">E.g.<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left: 0.5in;"><font face="Arial"
size="2"><span style="font-size: 10pt; font-family: Arial;"><o:p> </o:p></span></font></p>
<p class="MsoNormal" style="margin-left: 0.5in;"><font face="Arial"
size="2"><span style="font-size: 10pt; font-family: Arial;">when<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: 0.5in;"><font
face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;">eval(“$aaa ==
0”)<o:p></o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;"> then<o:p></o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;"> …<o:p></o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;">Thanks in advance!<o:p></o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;">--Arsalan<o:p></o:p></span></font></p>
</div>
<table>
<tbody>
<tr>
<td bgcolor="#ffffff"><font color="#000000">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.<br>
<br>
</font></td>
</tr>
</tbody>
</table>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
</blockquote>
<br>
</body>
</html>