[rules-users] Getting hold of the Evaluator Registry

Edson Tirelli tirelli at post.com
Tue Jul 14 18:04:57 EDT 2009


   I am working in one example of drools features where I implement a custom
evaluator here:

http://anonsvn.jboss.org/repos/labs/labs/jbossrules/contrib/lotrc/src/main/java/org/drools/examples/lotrc/evaluators/IsAdjacentToEvaluatorDefinition.java

   I use the configuration file instead of API in the example:

http://anonsvn.jboss.org/repos/labs/labs/jbossrules/contrib/lotrc/src/main/resources/META-INF/drools.packagebuilder.conf

   []s
   Edson

2009/7/14 Edson Tirelli <tirelli at post.com>

>
>    Asif,
>
>    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.
>
>    See:
>
>
> http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/builder/KnowledgeBuilderConfigurationTest.java
>
>    Test method:
>
> testEvaluatorConfiguration()
>
>    []s
>    Edson
>
> 2009/7/14 Asif Iqbal <Asif.Iqbal at infor.com>
>
>>  Hi,
>>
>>
>>
>> What I need to do is modify one of the evaluator classes specifically
>> ‘<=’, 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.
>>
>>
>>
>> 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?
>>
>>
>>
>> Cheers
>>
>>
>>
>> I
>>
>> _______________________________________________
>> rules-users mailing list
>> rules-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>>
>
>
> --
>  Edson Tirelli
>  JBoss Drools Core Development
>  JBoss by Red Hat @ www.jboss.com
>



-- 
 Edson Tirelli
 JBoss Drools Core Development
 JBoss by Red Hat @ www.jboss.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20090714/99614b6f/attachment.html 


More information about the rules-users mailing list