<span id="goog_1264873486784"></span><span id="goog_1264873486785"></span><a href="/"></a>On Sat, Jan 30, 2010 at 6:56 PM, kashif10 &lt;<a href="mailto:kash452@yahoo.com">kash452@yahoo.com</a>&gt; wrote:<br>&gt;<br>&gt; Thanks edson for you nice advise.<br>
&gt; It really reduce the memory uage from 400 mb 70 mb..<br>&gt;<br>&gt;  compareDiagnosis(  valueName[0] in (&quot;Heart Failure&quot;) ||<br>&gt;  (valueCode[0] in<br>&gt; (&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>
&gt; &quot;428.0 - 428.9&quot;) , valueCodeSystem[0] == &quot;2.16.840.1.113883.6.2&quot; )    )<br>&gt;<br>&gt;<br>&gt; Here I have some questions.<br>&gt;<br>&gt; i) we have to iterate whole valueName not only [0]. How we can do it.<br>
<br>Check out<br>
<br>
 <a href="http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools-expert/html_single/index.html#RuleLanguage-ConditionalElements">http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools-expert/html_single/index.html#RuleLanguage-ConditionalElements</a><br>
<br>in  <a id="d0e4795">4.8.2.8. Conditional Element &quot;from&quot;, which is one way of avoiding the potentially evil next().<br><br>Also, consider creating fact objects, from your original data, which are better suited for writing rules.<br>
<br><br></a>&gt; ii) we have not only simple valueCode matching, we can have<br>&gt;   a) Range in code such as 428.0 - 428.9, so any thing in WM having<br>&gt; valueCode b/w this range should match.<br>&gt;   b) but we can&#39;t use simply numbers , we have to use String as we can have<br>
&gt; code having alphabet such as &quot;V32.4&quot;<br>&gt;    c) we can have wild card usage too. e.g code in Rule can be &quot;V2*&quot; which<br>&gt; can be match any thing at the place opf asterik in WM valuCodes.<br>
<br>Same chapter of the documentation, see the &quot;matches&quot; operator in section <font size="2"><a id="d0e4100">4.8.2.1.1.3.1. Operators</a></font><br><br>-W<br><br>&gt;<br>&gt;  I see that Rule engine do introspection &amp; call get methods of the fields &amp;<br>
&gt; can do simple condition maching like ==, &lt;, &gt;etc.  But mostly we have some<br>&gt; complex logic in matching like I told you in pt ii) of valuecode matching.<br>&gt; I think only sol is to call methods which will comes inside eval() &amp; If we<br>
&gt; start usig it for long rules. rules will never load &amp; stuck :(...<br>&gt;<br>&gt; Need your expet  advise for those long &amp; complex rules.<br>&gt;<br>&gt; Thanks<br>&gt;<br>&gt;<br>&gt; --<br>&gt; View this message in context: <a href="http://n3.nabble.com/Weblogic-rules-to-Drools-rules-tp126265p178895.html">http://n3.nabble.com/Weblogic-rules-to-Drools-rules-tp126265p178895.html</a><br>
&gt; Sent from the Drools - User mailing list archive at Nabble.com.<br>&gt; _______________________________________________<br>&gt; rules-users mailing list<br>&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>&gt;<br><br>