<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<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;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 77.95pt 1.0in 77.95pt;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>Hi All,<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 color="#333399" face="Courier New"><span
style='font-size:10.0pt;color:#333399'>I have used drools-jbrms.war and drools-guvnor.war.
I facing a Problem in both.<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 color="#333399" face="Courier New"><span
style='font-size:10.0pt;color:#333399'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 color="#333399" face="Courier New"><span
style='font-size:10.0pt;color:#333399'>I have a package called Rating which has
the following source.<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 color="#333399" face="Courier New"><span
style='font-size:10.0pt;color:#333399'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 color="#333399" face="Courier New"><span
style='font-size:10.0pt;color:#333399'>&#8216;<i><span style='font-style:italic'>Rule
1</span></i>&#8217; is Business-Rule; &#8216;<i><span style='font-style:italic'>Rule
2</span></i>&#8217; is a Technical-Rule(DRL).<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt;color:black'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt;color:black'>----------------------------------------------------</span></font><font
color="#333399"><span style='color:#333399'>----------------------------------------------------<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt;color:black'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 color=teal face="Courier New"><span
style='font-size:10.0pt;color:teal'>package rating<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 color=teal face="Courier New"><span
style='font-size:10.0pt;color:teal'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 color=teal face="Courier New"><span
style='font-size:10.0pt;color:teal'>import com.esspl.ic.dom.CallDetail;<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 color=teal face="Courier New"><span
style='font-size:10.0pt;color:teal'>import com.esspl.ic.dom.ICConstants;<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 color=teal face="Courier New"><span
style='font-size:10.0pt;color:teal'>import com.esspl.ic.dom.RateDetail;<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 color=teal face="Courier New"><span
style='font-size:10.0pt;color:teal'>import java.util.Map;<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 color=teal face="Courier New"><span
style='font-size:10.0pt;color:teal'>import java.lang.String;<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 color=teal face="Courier New"><span
style='font-size:10.0pt;color:teal'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 color=teal face="Courier New"><span
style='font-size:10.0pt;color:teal'>global Map rateCache;<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 color=teal face="Courier New"><span
style='font-size:10.0pt;color:teal'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 color=teal face="Courier New"><span
style='font-size:10.0pt;color:teal'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 color=teal face="Courier New"><span
style='font-size:10.0pt;color:teal'>rule &quot;Rule 1&quot;<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 color=teal face="Courier New"><span
style='font-size:10.0pt;color:teal'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dialect
&quot;mvel&quot;<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 color=teal face="Courier New"><span
style='font-size:10.0pt;color:teal'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; when<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 color=teal face="Courier New"><span
style='font-size:10.0pt;color:teal'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cd
: CallDetail( callType == &quot;VOICE&quot; )<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 color=teal face="Courier New"><span
style='font-size:10.0pt;color:teal'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; then<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 color=teal face="Courier New"><span
style='font-size:10.0pt;color:teal'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cd.setRate(
cd.getCallDuration()&nbsp; *&nbsp; ((RateDetail)
rateCache.get(&quot;VOICE&quot;)).getRate()&nbsp; );<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 color=teal face="Courier New"><span
style='font-size:10.0pt;color:teal'>end<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 color=teal face="Courier New"><span
style='font-size:10.0pt;color:teal'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 color=teal face="Courier New"><span
style='font-size:10.0pt;color:teal'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 color=teal face="Courier New"><span
style='font-size:10.0pt;color:teal'>rule &quot;Rule 2&quot;<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 color=teal face="Courier New"><span
style='font-size:10.0pt;color:teal'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; when<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 color=teal face="Courier New"><span
style='font-size:10.0pt;color:teal'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cd
: CallDetail( callType == &#8220;SMS&#8221;)<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 color=teal face="Courier New"><span
style='font-size:10.0pt;color:teal'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; then&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 color=teal face="Courier New"><span
style='font-size:10.0pt;color:teal'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cd.setRate(cd.getCallDuration()&nbsp;
*&nbsp; ((RateDetail) rateCache.get(&quot;SMS&quot;)).getRate() );<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 color=teal face="Courier New"><span
style='font-size:10.0pt;color:teal'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 color="#333399" face="Courier New"><span
style='font-size:10.0pt;color:#333399'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt;color:black'>----------------------------------------------------</span></font><font
color="#333399"><span style='color:#333399'>-----------------------------------------------------<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 color="#333399" face="Courier New"><span
style='font-size:10.0pt;color:#333399'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 color="#333399" face="Courier New"><span
style='font-size:10.0pt;color:#333399'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 color="#333399" face="Courier New"><span
style='font-size:10.0pt;color:#333399'>Rule 2 Compiles fine but Rule 1 does
not.<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 color="#333399" face="Courier New"><span
style='font-size:10.0pt;color:#333399'>It seems there is a Problem in compiling
a BusinessRule. The Business Rule Compiler doesn&#8217;t support Typecasting. Whereas
the Technical rule compiler supports type casting.<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 color="#333399" face="Courier New"><span
style='font-size:10.0pt;color:#333399'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 color="#333399" face="Courier New"><span
style='font-size:10.0pt;color:#333399'>I have to make all my rules as Business
Rules. But it doesn&#8217;t get compiled.<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 color="#333399" face="Courier New"><span
style='font-size:10.0pt;color:#333399'>Can anyone help me get rid of this
problem.<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 color="#333399" face="Courier New"><span
style='font-size:10.0pt;color:#333399'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 color="#333399" face="Courier New"><span
style='font-size:10.0pt;color:#333399'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 color="#333399" face="Courier New"><span
style='font-size:10.0pt;color:#333399'>Thanks in Advance,<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 color="#333399" face="Courier New"><span
style='font-size:10.0pt;color:#333399'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 color="#333399" face="Courier New"><span
style='font-size:10.0pt;color:#333399'>Vinoth<o:p></o:p></span></font></p>

</div>

</body>

</html>