<p>It seems as if your rules will fit nicely into a decisiontable.</p>
<p>Sent from my HTC (Android)</p>
<p><blockquote type="cite">On Jan 30, 2010 7:58 PM, &quot;kashif10&quot; &lt;<a href="mailto:kash452@yahoo.com">kash452@yahoo.com</a>&gt; wrote:<br><br><br>
Thanks edson for you nice advise.<br>
It really reduce the memory uage from 400 mb 70 mb..<br>
<br>
 compareDiagnosis(  valueName[0] in (&quot;Heart Failure&quot;) ||<br>
  (valueCode[0] in<br>
(&quot;402.01&quot;,&quot;402.11&quot;,&quot;402.91&quot;,&quot;402.01&quot;,&quot;402.03&quot;,&quot;402.11&quot;,&quot;402.13&quot;,&quot;402.91&quot;,&quot;402.93&quot;,<br>
&quot;428.0 - 428.9&quot;) , valueCodeSystem[0] == &quot;2.16.840.1.113883.6.2&quot; )    )<br>
<br>
<br>
Here I have some questions.<br>
<br>
i) we have to iterate whole valueName not only [0]. How we can do it.<br>
<br>
ii) we have not only simple valueCode matching, we can have<br>
   a) Range in code such as 428.0 - 428.9, so any thing in WM having<br>
valueCode b/w this range should match.<br>
   b) but we can&#39;t use simply numbers , we have to use String as we can have<br>
code having alphabet such as &quot;V32.4&quot;<br>
    c) we can have wild card usage too. e.g code in Rule can be &quot;V2*&quot; which<br>
can be match any thing at the place opf asterik in WM valuCodes.<br>
<br>
 I see that Rule engine do introspection &amp; call get methods of the fields &amp;<br>
can do simple condition maching like ==, &lt;, &gt;etc.  But mostly we have some<br>
complex logic in matching like I told you in pt ii) of valuecode matching.<br>
I think only sol is to call methods which will comes inside eval() &amp; If we<br>
start usig it for long rules. rules will never load &amp; stuck :(...<br>
<br>
Need your expet  advise for those long &amp; complex rules.<br>
<br>
Thanks<br>
<font color="#888888"><br>
<br>
--<br>
View this message in context: <a href="http://n3.nabble.com/Weblogic-rules-to-Drools-rules-tp126265p178895.html" target="_blank">http://n3.nabble.com/Weblogic-rules-to-Drools-rules-tp126265p178895.html</a><br>
</font><p><font color="#500050">Sent from the Drools - User mailing list archive at Nabble.com.
____________________________________...</font></p></blockquote></p>