<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<html                                                                                                                                          >

<head>

<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
                        
 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
        {
        font-family:Arial;
        color:windowtext;}

div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>
<DIV id=idOWAReplyText8626 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2></FONT>&nbsp;</DIV></DIV>
<DIV dir=ltr><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hi All,</SPAN></FONT></DIV>
<DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I am using Drools 4.0.3 
</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I have the following in drl 
file.</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial">package 
com.framework.service.remote.rules; </SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial"></SPAN></FONT></B>&nbsp;</P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial">import 
com.framework.service.EssRuleConditionService; </SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial">import 
com.framework.service.util.CurrentLeg; </SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial">import 
java.util.ArrayList; </SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial">import 
java.util.List; </SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial">import 
java.lang.Boolean;&nbsp; </SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial"></SPAN></FONT></B>&nbsp;</P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial">function 
List depStationFun68307cu() { </SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
EssRuleConditionService essRuleConditionService = new 
EssRuleConditionService();&nbsp; </SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
essRuleConditionService.setDepStation("21618");&nbsp; </SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
return essRuleConditionService.getDepStation(); </SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial">}&nbsp; 
</SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial">function 
List depStationFun68308cu() { </SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
EssRuleConditionService essRuleConditionService = new 
EssRuleConditionService();&nbsp; </SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
essRuleConditionService.setDepStation("20932");&nbsp; </SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;return essRuleConditionService.getDepStation(); </SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial">}&nbsp; 
</SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial">function 
List depStationFun68309cu() { </SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
EssRuleConditionService essRuleConditionService = new EssRuleConditionService(); 
</SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
essRuleConditionService.setDepStation("21972");&nbsp; </SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial">&nbsp; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return 
essRuleConditionService.getDepStation(); </SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial">}&nbsp; 
</SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial"></SPAN></FONT></B>&nbsp;</P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial">rule 
"68307" </SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
dialect "java" </SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
when&nbsp; </SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
currentLeg : 
CurrentLeg()&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;eval(currentLeg.getORGSTN().size()!=0 &amp;&amp; 
depStationFun68307cu().containsAll(currentLeg.getORGSTN()))&nbsp; 
</SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
then&nbsp;&nbsp; </SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
currentLeg.setDataProcessedByDrool(new Boolean(true)); </SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
currentLeg.setRuleSetId("9003");</SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
currentLeg.setFssBoardDailyLegId("");</SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
end </SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial">rule 
"68308" </SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
dialect "java" </SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
when </SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
currentLeg : 
CurrentLeg()&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
eval(currentLeg.getORGSTN().size()!=0 &amp;&amp; 
depStationFun68308cu().containsAll(currentLeg.getORGSTN()))&nbsp; 
</SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
then&nbsp;&nbsp; </SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
currentLeg.setDataProcessedByDrool(new Boolean(true)); </SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
currentLeg.setRuleSetId("9003");</SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
currentLeg.setRuleSetCategoryId("15722");</SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
currentLeg.setFssBoardDailyLegId("");&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
end </SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial">rule 
"68309" </SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
dialect "java" </SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
when&nbsp; </SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
currentLeg : 
CurrentLeg()&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
eval(currentLeg.getORGSTN().size()!=0 &amp;&amp; 
depStationFun68309cu().containsAll(currentLeg.getORGSTN()))&nbsp; 
</SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
then&nbsp;&nbsp; </SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
currentLeg.setDataProcessedByDrool(new Boolean(true)); </SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
currentLeg.setRuleSetId("9003");</SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
currentLeg.setRuleSetCategoryId("15722");</SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
currentLeg.setFssBoardDailyLegId("");</SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
end</SPAN></FONT></B><FONT face=Arial color=#339966 size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: #339966; FONT-FAMILY: Arial"> </SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I have the following code to access 
drl file :</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
<P class=MsoNormal><B><FONT face=Arial size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Arial">// get the .drl 
constructed as inputstream</SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Arial">// 
droolsInputString is drl file read into String.</SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Arial">// I dont have 
any issue reading the file but i get the null pointer exception 
</SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT></B>&nbsp;</P>
<P class=MsoNormal><B><FONT face=Arial size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Arial">byte[] bytesOfDRL 
= droolsInputString.getBytes();</SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Arial">InputStream 
inputStream = new ByteArrayInputStream(bytesOfDRL);</SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Arial">Reader source = 
new InputStreamReader(inputStream);</SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT></B>&nbsp;</P>
<P class=MsoNormal><B><FONT face=Arial size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Arial">PackageBuilderConfiguration 
conf = new PackageBuilderConfiguration();</SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT></B>&nbsp;</P>
<P class=MsoNormal><B><FONT face=Arial size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Arial">PackageBuilder 
builder = new PackageBuilder(conf);</SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Arial">builder.addPackageFromDrl(source);</SPAN></FONT></B></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
<P class=MsoNormal><B><FONT face=Arial size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Arial">// when the last 
line is executed. &nbsp;<FONT color=#ff6600><SPAN 
style="COLOR: #ff6600">builder.addPackageFromDrl(source);</SPAN></FONT></SPAN></FONT></B></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Here i get the following 
exception</SPAN></FONT></P>
<P class=MsoNormal><B><FONT face=Arial size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT></B>&nbsp;</P>
<P class=MsoNormal><B><FONT face=Arial color=#3366ff size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #3366ff; FONT-FAMILY: Arial">17:57:50,776 
ERROR [STDERR] java.lang.NullPointerException</SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#3366ff size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #3366ff; FONT-FAMILY: Arial">17:57:50,776 
ERROR [STDERR] at 
org.drools.rule.builder.dialect.java.JavaConsequenceBuilder.build(JavaConsequenceBuilder.java:54)</SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#3366ff size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #3366ff; FONT-FAMILY: Arial">17:57:50,776 
ERROR [STDERR] at 
org.drools.rule.builder.RuleBuilder.build(RuleBuilder.java:67)</SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#3366ff size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #3366ff; FONT-FAMILY: Arial">17:57:50,776 
ERROR [STDERR] at 
org.drools.compiler.PackageBuilder.addRule(PackageBuilder.java:446)</SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#3366ff size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #3366ff; FONT-FAMILY: Arial">17:57:50,791 
ERROR [STDERR] at 
org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:304)</SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#3366ff size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #3366ff; FONT-FAMILY: Arial">17:57:50,791 
ERROR [STDERR] at 
org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:167)</SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#3366ff size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #3366ff; FONT-FAMILY: Arial">17:57:50,791 
ERROR [STDERR] at 
com.egatematrix.ess.framework.service.remote.rules.RulesEngineInvoker.readRule(RulesEngineInvoker.java:108)</SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#3366ff size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #3366ff; FONT-FAMILY: Arial">17:57:50,791 
ERROR [STDERR] at 
com.egatematrix.ess.framework.service.RuleService.doProcess(RuleService.java:302)</SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#3366ff size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #3366ff; FONT-FAMILY: Arial">17:57:50,791 
ERROR [STDERR] at 
com.egatematrix.ess.framework.service.FetchFSSData.invokeRuleService(FetchFSSData.java:141)</SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#3366ff size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #3366ff; FONT-FAMILY: Arial">17:57:50,791 
ERROR [STDERR] at 
com.egatematrix.ess.framework.service.FetchFSSData.triggerData(FetchFSSData.java:69)</SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#3366ff size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #3366ff; FONT-FAMILY: Arial">17:57:50,791 
ERROR [STDERR] at 
com.egatematrix.ess.framework.service.FetchFSSData$1.run(FetchFSSData.java:85)</SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#3366ff size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #3366ff; FONT-FAMILY: Arial">17:57:50,791 
ERROR [STDERR] at 
java.util.TimerThread.mainLoop(Timer.java:512)</SPAN></FONT></B></P>
<P class=MsoNormal><B><FONT face=Arial color=#3366ff size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #3366ff; FONT-FAMILY: Arial">17:57:50,791 
ERROR [STDERR] at 
java.util.TimerThread.run(Timer.java:462)</SPAN></FONT></B></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I have tried compiling the drl file 
in drl editor. There is no error in drl file.</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Can any one help me resolving the 
issue?</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Regards,</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Shiva</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Tel: +91-40-27782000 Ext: 
4259</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt"></SPAN></FONT>&nbsp;</P></DIV></DIV>

</body>

</html>