I recommend you to read the manual first. <br><br><div class="gmail_quote">2010/6/16 Giovanni Motta <span dir="ltr"><<a href="mailto:mottagio@gmail.com">mottagio@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
You have 2 options here:<div><font size="2" color="black" face="Courier New"><span style="font-size:10pt;font-family:'Courier New';color:black">status == “</span></font><font size="2" color="green" face="Courier New"><span style="font-size:10pt;font-family:'Courier New';color:green">yes"</span></font><font size="2" color="black" face="Courier New"><span style="font-size:10pt;font-family:'Courier New';color:black"> </span></font><b><font size="2" color="#960000" face="Courier New"><span style="font-size:10pt;font-family:'Courier New';color:rgb(150, 0, 0);font-weight:bold">||</span></font></b><font size="2" color="black" face="Courier New"><span style="font-size:10pt;font-family:'Courier New';color:black"> status == </span></font><font size="2" color="green" face="Courier New"><span style="font-size:10pt;font-family:'Courier New';color:green">"no"</span></font><br>
<font size="2" color="black" face="Courier New"><span style="font-size:10pt;font-family:'Courier New';color:black">status == “</span></font><font size="2" color="green" face="Courier New"><span style="font-size:10pt;font-family:'Courier New';color:green">yes"</span></font><font size="2" color="black" face="Courier New"><span style="font-size:10pt;font-family:'Courier New';color:black"> </span></font><b><font size="2" color="#960000" face="Courier New"><span style="font-size:10pt;font-family:'Courier New';color:rgb(150, 0, 0);font-weight:bold">||</span></font></b><font size="2" color="black" face="Courier New"><span style="font-size:10pt;font-family:'Courier New';color:black"> == </span></font><font size="2" color="green" face="Courier New"><span style="font-size:10pt;font-family:'Courier New';color:green">"no"</span></font></div>
<div><font color="#008000" face="'Courier New'"><br></font></div><div><div class="gmail_quote">'or' connector is not applied on constraints, but on patterns.</div><div class="gmail_quote">
<br></div><div class="gmail_quote">Regards</div><div class="gmail_quote"><br></div><div class="gmail_quote">2010/6/16 Fnu Mahalakshmi <span dir="ltr"><<a href="mailto:FMahalakshmi@nyx.com" target="_blank">FMahalakshmi@nyx.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class="h5">
<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">Hi,</span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> </span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">I want to just depict ‘&&’ and ‘or’
in my rules and did as follows:</span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> </span></font></p>
<p class="MsoNormal" style="text-autospace:none"><b><font size="2" color="#960000" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:#960000;font-weight:bold">rule</span></font></b><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> </span></font><font size="2" color="green" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:green">"Update
value”</span></font><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New""></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><b><font size="2" color="#960000" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:#960000;font-weight:bold">no-loop</span></font></b><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> </span></font><b><font size="2" color="#960000" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:#960000;font-weight:bold">true</span></font></b><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New""></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> </span></font><b><font size="2" color="#960000" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:#960000;font-weight:bold">when</span></font></b><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New""></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> $y :Y(name != </span></font><font size="2" color="green" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:green">""</span></font><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:black">)</span></font><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New""></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> $x: X(status != </span></font><font size="2" color="green" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:green">""</span></font><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:black">)</span></font><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New""></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> $z : Z( y == $y, x == $X,(status == “</span></font><font size="2" color="green" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:green">yes"</span></font><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> </span></font><b><font size="2" color="#960000" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:#960000;font-weight:bold">or</span></font></b><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> status == </span></font><font size="2" color="green" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:green">"no"</span></font><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:black">))</span></font><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New""></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> </span></font><b><font size="2" color="#960000" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:#960000;font-weight:bold">then</span></font></b><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New""></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> </span></font><b><font size="2" color="#960000" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:#960000;font-weight:bold">modify</span></font></b><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:black">($z){};</span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> </span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:black">end</span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> </span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:black">The above does not work. Is it not valid to write as above??</span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:black">How else can I depict “or” ? relation?</span></font></p>
<p class="MsoNormal" style="text-autospace:none"><b><font size="2" color="#960000" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:#960000;font-weight:bold">rule</span></font></b><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> </span></font><font size="2" color="green" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:green">"Update value"</span></font><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New""></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><b><font size="2" color="#960000" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:#960000;font-weight:bold">no-loop</span></font></b><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> </span></font><b><font size="2" color="#960000" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:#960000;font-weight:bold">true</span></font></b><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New""></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> </span></font><b><font size="2" color="#960000" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:#960000;font-weight:bold">when</span></font></b><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New""></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> $y :Y(name != </span></font><font size="2" color="green" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:green">""</span></font><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:black">)</span></font><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New""></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> $x: X(status != </span></font><font size="2" color="green" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:green">""</span></font><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:black">)</span></font><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New""></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> $z : Z( y == $y, x == $X,(status == “</span></font><font size="2" color="green" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:green">yes"</span></font><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> </span></font><b><font size="2" color="#960000" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:#960000;font-weight:bold">, </span></font></b><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:black">status == </span></font><font size="2" color="green" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:green">"no"</span></font><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:black">))</span></font><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New""></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> </span></font><b><font size="2" color="#960000" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:#960000;font-weight:bold">then</span></font></b><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New""></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> </span></font><b><font size="2" color="#960000" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:#960000;font-weight:bold">modify</span></font></b><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:black">($z){</span></font></p>
<p class="MsoNormal" style="margin-left:1.0in;text-indent:.5in;text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:black">setOutput($z)};</span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> </span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:black">end</span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> </span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> </span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:black">even this does not work.</span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> </span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:black">I also want to add all the values specific to this condition and
just print them out in my output file.</span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:black">So I tried adding it to a list (which is done by setOutput().</span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:black">But here I keep getting multiple entries for the same value.</span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:black">For eg. {a,b,c } //are instances of type z</span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:black">They keep getting added again and again. Should it not process
input only once????</span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> </span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> </span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:black">Please help.</span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> </span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:black">Thank you</span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:black">m</span></font></p>
</div>
<pre></pre>
<p></p><hr size="1"><p></p>
<p><strong><font color="green">Please consider the environment before printing this email.</font></strong></p>
<p><strong>Visit our website at <a href="http://www.nyse.com" target="_blank">http://www.nyse.com</a> <br>
*****************************************************************************
<br>
Note: The information contained in this message and any attachment to it is privileged, confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by replying to the message, and please delete it from your system. Thank you. NYSE Euronext.
</strong></p><pre></pre></div>
<br></div></div>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><br>Esteban Aliverti<br>