[rules-users] Adding a custom operator to drools?

Edson Tirelli tirelli at post.com
Thu Sep 11 16:00:13 EDT 2008


   BTW,  most important thing that I forgot to mention: we obviously are
interested in feedback and contributions on the feature, from simple ideas
and suggestions to actual patches and improvements!

   []s
   Edson

2008/9/11 Edson Tirelli <tirelli at post.com>

>
>    It depends if you are talking about Drools 4 or 5. You are right about
> Drools 4. Drools 5 has "quasi-pluggable" operators... hehehe :)
>
>    It has an interface you can implement to add operators and the parser
> accepts a quote for custom operators. It is not yet the way I want it to be
> for Drools 5 final, but it works already.
>
>    For more info, look at the EvaluatorDefinition interface in Drools 5 and
> its several implementations for examples.
>
>    []s
>    Edson
>
> 2008/9/11 Michael Zimmermann <list at incunabulum.de>
>
> Hi there,
>>
>> you might see this as a follow up to a discussion named "Query by
>> Example" a couple of days ago, see here:
>> http://lists.jboss.org/pipermail/rules-users/2008-September/006520.html
>>
>> Question to the devs:
>> Having looked through the code, adding support for a custom operator
>> requires
>> - changing the DRL.g
>> - regenerating the DRLLexer and DRLParser classes from this grammar
>> - changing the XyzEvaluator and related classes in
>>  org.drools.base.evaluators.
>>
>> If I skip MVEL, the BRMS and other places like decision tables for now,
>> is this all to expand the DRL syntax? Or are any further steps required
>> to connect the grammar with the "java logic"?
>>
>> Thanks!
>>
>> Michael
>> _______________________________________________
>> 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, a division of Red Hat @ www.jboss.com
>



-- 
Edson Tirelli
JBoss Drools Core Development
JBoss, a division of Red Hat @ www.jboss.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20080911/f0ba2a07/attachment.html 


More information about the rules-users mailing list