<div dir="ltr">Hello all, <br><br>This is the set of rules i have<br><br>rule &quot;IP Route File rule&quot;<br>&nbsp;&nbsp;&nbsp; salience 2000<br>&nbsp;&nbsp;&nbsp; when<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Line ( line matches &quot;^.*\s+show\s+ip\s+route\s*$&quot; )<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Line ( line matches &quot;^.*\s+dest\s+address\s*$ )<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; file : FileFinder()<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; then <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; file.setFileType(&quot;ip route file&quot;);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; drools.halt();<br>end<br><br><br><br>All I am doing in rules is, I read each line from the given file, convert them into Line Objects and see if any of my<br>
rules matches. There are about 50 such rules, that will help me differentiate what kind of file is present in my input<br>directory.<br><br>The question I have , is there a way I can know if Line Object matched any of the rules ? If a Line Object is not matched by<br>
any of rules, I can just retract that object from the memory and prevent Out of Memory Exception if the file size is huge<br><br>Thanks<br>Shiva<br><br><br></div>