Hi,<br><br>I have two questions.<br><br>1) Is there any other way/method in Drools to test the truth value of a condition other than &quot;eval&quot;? <br>In almost all rules of my application needs to test conditions, and it takes ages to run using &quot;eval&quot;. <br>
<br>2) Say I have a java method which returns a boolean, and I have used it within an &quot;eval&quot; function. (eg: eval(message.emptyMessageFinder()) )<br>This &quot;emptyMessageFinder()&quot; method will return a &quot;boolean&quot; if there&#39;s an empty message. This function is containing many loops and recursive operations.<br>
<br>Will I get a performance improvement if I alternate the above such that the &quot;emptyMessageFinder()&quot; method sets a boolean attribute (anyEmptyMessage)<br>in the Message class to true and false, and I&#39;m using following in my drl.<br>
<br>when <br>   m: Message()<br>   m.emptyMessageFinder()<br>   eval(m.anyEmptyMessage)  //can I use eval here??<br>......<br><br>If someone can answer these questions it would be a great help!<br><br>Thank you in advance!<br>
<br>-- <br>Best Regards,<br>Nirmal<br><br>C.S.Nirmal J. Fernando<br>Department of Computer Science &amp; Engineering,<br>Faculty of Engineering,<br>University of Moratuwa,<br>Sri Lanka.<div><br></div><div>Blog: <a href="http://nirmalfdo.blogspot.com/" target="_blank">http://nirmalfdo.blogspot.com/</a></div>
<br>