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(a)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(a)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