<br>   I am working in one example of drools features where I implement a custom evaluator here:<br><br><a href="http://anonsvn.jboss.org/repos/labs/labs/jbossrules/contrib/lotrc/src/main/java/org/drools/examples/lotrc/evaluators/IsAdjacentToEvaluatorDefinition.java">http://anonsvn.jboss.org/repos/labs/labs/jbossrules/contrib/lotrc/src/main/java/org/drools/examples/lotrc/evaluators/IsAdjacentToEvaluatorDefinition.java</a><br>
<br>   I use the configuration file instead of API in the example:<br><br><a href="http://anonsvn.jboss.org/repos/labs/labs/jbossrules/contrib/lotrc/src/main/resources/META-INF/drools.packagebuilder.conf">http://anonsvn.jboss.org/repos/labs/labs/jbossrules/contrib/lotrc/src/main/resources/META-INF/drools.packagebuilder.conf</a><br>
<br>   []s<br>   Edson<br><br><div class="gmail_quote">2009/7/14 Edson Tirelli <span dir="ltr">&lt;<a href="mailto:tirelli@post.com">tirelli@post.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>   Asif,<br><br>   My recommendation is create a new operator for you instead of overriding existing ones. Although if you really want to replace the existing ones, setting the property or calling the API to register a new operator will override the default.<br>

<br>   See:<br><br><a href="http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/builder/KnowledgeBuilderConfigurationTest.java" target="_blank">http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/builder/KnowledgeBuilderConfigurationTest.java</a><br>

<br>   Test method:<br><br>testEvaluatorConfiguration()<br><br>   []s<br>   Edson<br><br><div class="gmail_quote">2009/7/14 Asif Iqbal <span dir="ltr">&lt;<a href="mailto:Asif.Iqbal@infor.com" target="_blank">Asif.Iqbal@infor.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;"><div><div></div><div class="h5">








<div link="blue" vlink="purple" lang="EN-US">

<div>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;" lang="EN-GB">Hi,</span></font></p>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;" lang="EN-GB"> </span></font></p>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;" lang="EN-GB">What I need to do is modify one of the evaluator
classes specifically ‘&lt;=’, so that it can handle strings. Now I know
I need to create a class similar to ComparableEvaluatorDefinition. But what I want
to do is replace the existing one in the evaluator registry with my
implementation which will include the additional String capability.</span></font></p>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;" lang="EN-GB"> </span></font></p>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;" lang="EN-GB">From my understanding that should be all that is
required. Unless im missing something… now all I need to know is how do I
get hold of the evaluator registry?</span></font></p>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;" lang="EN-GB"> </span></font></p>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;" lang="EN-GB">Cheers</span></font></p>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;" lang="EN-GB"> </span></font></p>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;" lang="EN-GB">I</span></font></p>

</div>

</div>


<br></div></div>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">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>
<br></blockquote></div><font color="#888888"><br><br clear="all"><br>-- <br>  Edson Tirelli<br>  JBoss Drools Core Development<br>  JBoss by Red Hat @ <a href="http://www.jboss.com" target="_blank">www.jboss.com</a><br>
</font></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>