2011/1/19 Mohod, Akash <span dir="ltr">&lt;<a href="mailto:Akash.Mohod@morganstanley.com">Akash.Mohod@morganstanley.com</a>&gt;</span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div>
<div><span style="font-size: 7.5pt; color: gray;"><font color="gray" face="Arial" size="1"><span style="font-size: 14pt;"><font size="2"><font color="#000000" face="Times New Roman" size="3"><font face="Arial" size="1"><font size="2"><div>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Just saw this mail .  My case was a slightly different.  The Double there is one that we use in Mvel as in when we do something like </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> $age : Double () from accumulate ( ) </span></p><p class="MsoNormal">
<span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">I was using this to compare with double in java .  Hope this is clear.</span></p>
</div></font></font></font></font></span></font></span></div></div></blockquote><div><br><br>Is this &quot;Double&quot; java.lang.Double?<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div><span style="font-size: 7.5pt; color: gray;"><font color="gray" face="Arial" size="1"><span style="font-size: 14pt;"><font size="2"><font color="#000000" face="Times New Roman" size="3"><font face="Arial" size="1"><font size="2"><div>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Regards,</span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Akash </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p><div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
<p class="MsoNormal"><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;"> <a href="mailto:rules-users-bounces@lists.jboss.org" target="_blank">rules-users-bounces@lists.jboss.org</a> [mailto:<a href="mailto:rules-users-bounces@lists.jboss.org" target="_blank">rules-users-bounces@lists.jboss.org</a>] <b>On Behalf Of </b>Wolfgang Laun<br>
<b>Sent:</b> Tuesday, January 18, 2011 4:25 PM<br><b>To:</b> Rules Users List<br><b>Subject:</b> Re: [rules-users] Greater than or less than in eval</span></p></div><p class="MsoNormal"> </p><p class="MsoNormal" style="margin-bottom: 12pt;">
Double as in java.lang.Double? This would be strange, since these types sure are compatible.<br>-W</p><div><p class="MsoNormal">2011/1/18 Mohod, Akash &lt;<a href="mailto:Akash.Mohod@morganstanley.com" target="_blank">Akash.Mohod@morganstanley.com</a>&gt;</p>
<div><div><div><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Thanks Wolfgang. Good spot there. The data types were not matching . Fixed now.</span><span style="color: black;"></span></p><p class="MsoNormal">
<span style="font-size: 11pt; color: rgb(31, 73, 125);">One of them was double and other was Double. </span><span style="color: black;"></span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span><span style="color: black;"></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Regards,</span><span style="color: black;"></span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Akash </span><span style="color: black;"></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span><span style="color: black;"></span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span><span style="color: black;"></span></p>
<div style="border-style: solid none none; border-color: -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;"><p class="MsoNormal"><b><span style="font-size: 10pt; color: black;">From:</span></b><span style="font-size: 10pt; color: black;"> <a href="mailto:rules-users-bounces@lists.jboss.org" target="_blank">rules-users-bounces@lists.jboss.org</a> [mailto:<a href="mailto:rules-users-bounces@lists.jboss.org" target="_blank">rules-users-bounces@lists.jboss.org</a>] <b>On Behalf Of </b>Wolfgang Laun<br>
<b>Sent:</b> Tuesday, January 18, 2011 1:57 PM<br><b>To:</b> Rules Users List<br><b>Subject:</b> Re: [rules-users] Greater than or less than in eval</span><span style="color: black;"></span></p></div><div><div><p class="MsoNormal">
<span style="color: black;"> </span></p><p class="MsoNormal"><span style="color: black;">Space after &quot;$&quot;?<br><br>Error message?<br><br>Types of Employee.age, Event.ageLimit?<br><br>It would be preferable to to use</span></p>
<p class="MsoNormal"><span style="color: black;">when </span></p><p class="MsoNormal"><span style="color: black;">                Employee ($name : name, $age : age)</span></p><p class="MsoNormal"><span style="color: black;">                Event ($eventName : eventName, ageLimit &gt; $age)</span></p>
<p class="MsoNormal" style="margin-bottom: 12pt;"><span style="color: black;">then<br><br>-W</span></p><div><p class="MsoNormal"><span style="color: black;">2011/1/18 Mohod, Akash &lt;<a href="mailto:Akash.Mohod@morganstanley.com" target="_blank">Akash.Mohod@morganstanley.com</a>&gt;</span></p>
<div><div><div><p class="MsoNormal"><span style="color: black;">Hi, </span></p><p class="MsoNormal"><span style="color: black;"> </span></p><p class="MsoNormal"><span style="color: black;">I am trying to write the following rule using Drools 5.1 but having issues.</span></p>
<p class="MsoNormal"><span style="color: black;"> </span></p><p class="MsoNormal"><span style="color: black;">when </span></p><p class="MsoNormal"><span style="color: black;">                Employee ($name : name, $ age : age)</span></p>
<p class="MsoNormal"><span style="color: black;">                Event ($eventName : eventName , $ageLimit : ageLimit)</span></p><p class="MsoNormal"><span style="color: black;">                eval($age &lt; $ ageLimit)</span></p>
<p class="MsoNormal"><span style="color: black;">then</span></p><p class="MsoNormal"><span style="color: black;">                System.out.println (“ Can participate in the event ”);</span></p><p class="MsoNormal"><span style="color: black;">end</span></p>
<p class="MsoNormal"><span style="color: black;"> </span></p><p class="MsoNormal"><span style="color: black;"> </span></p><p class="MsoNormal"><span style="color: black;">The rule fails to compile. </span></p><p class="MsoNormal">
<span style="color: black;"> </span></p><p class="MsoNormal"><span style="color: black;">Regards,</span></p><p class="MsoNormal"><span style="color: black;">Akash </span></p><p class="MsoNormal"><span style="color: black;"> </span></p>
<p class="MsoNormal"><span style="color: black;"> </span></p></div></div><div><div class="MsoNormal" style="text-align: center;" align="center"><span style="font-size: 7.5pt; color: black;"><hr align="center" size="2" width="100%">
</span></div></div><div><p class="MsoNormal"><span style="font-size: 7.5pt; color: gray;">NOTICE: </span><span style="font-size: 7.5pt; color: gray;" lang="EN-GB">Morgan Stanley is not acting as a municipal advisor and the opinions or views contained herein are not intended to be, and do not constitute, advice within the meaning of Section 975 of the Dodd-Frank Wall Street Reform and Consumer Protection Act. </span><span style="font-size: 7.5pt; color: gray;">If you have received this communication in error, please destroy all electronic and paper copies and notify the sender immediately. Mistransmission is not intended to waive confidentiality or privilege. Morgan Stanley reserves the right, to the extent permitted under applicable law, to monitor electronic communications. This message is subject to terms available at the following link: </span><span style="font-size: 14pt; color: gray;"><a href="http://www.morganstanley.com/disclaimers" target="_blank"><span style="font-size: 7.5pt; color: gray;">http://www.morganstanley.com/disclaimers</span></a></span><span style="font-size: 7.5pt; color: gray;">. If you cannot access these links, please notify us by reply message and we will send the contents to you. By messaging with Morgan Stanley you consent to the foregoing.</span><span style="color: black;"></span></p>
</div></div><p class="MsoNormal" style="margin-bottom: 12pt;"><span style="color: black;"><br>_______________________________________________<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></span></p></div><p class="MsoNormal"><span style="color: black;"> </span></p></div></div>
</div></div><div><div><div><div class="MsoNormal" style="text-align: center;" align="center"><span style="font-size: 7.5pt; color: black;"><hr align="center" size="2" width="100%"></span></div></div><div><p class="MsoNormal">
<span style="font-size: 7.5pt; color: gray;">NOTICE: </span><span style="font-size: 7.5pt; color: gray;" lang="EN-GB">Morgan Stanley is not acting as a municipal advisor and the opinions or views contained herein are not intended to be, and do not constitute, advice within the meaning of Section 975 of the Dodd-Frank Wall Street Reform and Consumer Protection Act. </span><span style="font-size: 7.5pt; color: gray;">If you have received this communication in error, please destroy all electronic and paper copies and notify the sender immediately. Mistransmission is not intended to waive confidentiality or privilege. Morgan Stanley reserves the right, to the extent permitted under applicable law, to monitor electronic communications. This message is subject to terms available at the following link: </span><span style="font-size: 14pt; color: gray;"><a href="http://www.morganstanley.com/disclaimers" target="_blank"><span style="font-size: 7.5pt; color: gray;">http://www.morganstanley.com/disclaimers</span></a></span><span style="font-size: 7.5pt; color: gray;">. If you cannot access these links, please notify us by reply message and we will send the contents to you. By messaging with Morgan Stanley you consent to the foregoing.</span></p>
</div></div></div></div><p class="MsoNormal" style="margin-bottom: 12pt;"><br>_______________________________________________<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></p></div><p class="MsoNormal"> </p></div></font></font></font></font></span></font></span></div>

<div><span style="font-size: 7.5pt; color: gray;"><font color="gray" face="Arial" size="1"><span style="font-size: 14pt;"><font size="2"><font color="#000000" face="Times New Roman" size="3"><font face="Arial" size="1">
<hr>
</font></font></font></span></font></span></div>
<div><span style="font-size: 7.5pt; color: gray;"><font face="Arial"><span style="font-size: 14pt;"><font face="Times New Roman"><font face="Arial"><font color="#808080" size="1">NOTICE: <span style="font-size: 7.5pt; color: gray;"><font face="Arial"><span style="font-size: 14pt;"><font face="Times New Roman"><font face="Arial"><font size="1"><font color="#808080"><span style="font-size: 9pt;" lang="EN-GB"><font size="1">Morgan Stanley is not acting as a municipal advisor and the opinions or views contained herein are not intended to be, and do not constitute, advice within the meaning of Section 975 of the Dodd-Frank Wall Street Reform and Consumer Protection Act. </font></span></font></font></font></font></span></font></span>If you have received this communication in error, please destroy all electronic and paper copies and notify the sender immediately. Mistransmission is not intended to waive confidentiality or privilege. Morgan Stanley reserves the right, to the extent permitted under applicable law, to monitor electronic communications. This message is subject to terms available at the following link: </font><a href="http://www.morganstanley.com/disclaimers" target="_blank"><font color="#808080" size="1">http://www.morganstanley.com/disclaimers</font></a><font color="#808080" size="1">. If you cannot access these links, please notify us by reply message and we will send the contents to you. By messaging with Morgan Stanley you consent to the foregoing.</font></font></font></span></font></span></div>
<font size="+0"></font><font size="+0"></font><font size="+0"></font><span></span><font size="+0"></font><span></span></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>