<br>   Glad to hear things are moving forward! <br><br>   How do you feel about writing a quick tutorial on how to implement a custom evaluator so that others can benefit from your experience? :) We could post it on the blog and add to the manual with the proper credits.<br>
<br>   Regarding your question, &quot;in&quot; is a special parser syntax sugar we have in Drools. So:<br><br>field in (&quot;aValue&quot;, $aVariable, Some.CONSTANT)<br><br>   Is exactly the same as:<br><br>field == &quot;aValue&quot; || == $aVariable || == Some.CONSTANT<br>
<br>   So, the answer is, without patching Drools, unfortunately, it is not possible to do the same with custom evaluators. In your case, the best I can suggest without changing Drools parser is to have your evaluator receive all possible values as a single String:<br>
<br>code codeChecker &quot;V100-V200, 243327005, 243327005&quot;<br><br>    So, your operator would just split the list and check all values there as appropriate. Obviously, if you would like to submit a patch for Drools allowing custom evaluators to accept multiple values, we would gladly apply the patch to the code base and support it from that time forward.<br>
<br>    Cheers,<br>       Edson<br><br><div class="gmail_quote">2010/2/1 kashif10 <span dir="ltr">&lt;<a href="mailto:kash452@yahoo.com">kash452@yahoo.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Thanks all of you!<br>
<br>
We are heading toward  the solution.<br>
<br>
i) We start putting interenal data too in WM.<br>
ii) For time period matching I simply write a method in Fact class, which<br>
calls using the exact name matching fucntionality.<br>
iii) For complex code matching including exact number match, Range match,<br>
wildcard match. I created the customEvalutor, usning new operator<br>
codeChecker, to handle all required scenarios,   as follows:<br>
<br>
exists (Diagnosis(name == &quot;diag3&quot; || ( code codeChecker &quot;V100-V200&quot; &amp;&amp;<br>
codeSystem == &quot;2.16.840.1.113883.6.96&quot; )  ))<br>
<br>
<br>
Ques: I need suggestion how to use my custom Evaluator codeChecker in<br>
following suggested OR combination using in. As you know that if we don&#39;t<br>
use &quot;in&quot; then we have to add so many ORed patterns.<br>
<br>
        exists (Diagnosis(name in ( &quot;Vibrio abc splendidus&quot; , &quot;kash&quot;) || ( code in<br>
( &quot;243327005&quot;, &quot;243327005&quot;) &amp;&amp; codeSystem == &quot;2.16.840.1.113883.6.96&quot; )  ) )<br>
<br>
<br>
<br>
-Kash<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://n3.nabble.com/Weblogic-rules-to-Drools-rules-tp126265p181432.html" target="_blank">http://n3.nabble.com/Weblogic-rules-to-Drools-rules-tp126265p181432.html</a><br>
</font><div><div></div><div class="h5">Sent from the Drools - User mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>  Edson Tirelli<br>  JBoss Drools Core Development<br>  JBoss by Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>