<div dir="ltr"><br> It depends if you are talking about Drools 4 or 5. You are right about Drools 4. Drools 5 has "quasi-pluggable" operators... hehehe :)<br><br> 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.<br>
<br> For more info, look at the EvaluatorDefinition interface in Drools 5 and its several implementations for examples.<br><br> []s<br> Edson<br><br><div class="gmail_quote">2008/9/11 Michael Zimmermann <span dir="ltr"><<a href="mailto:list@incunabulum.de">list@incunabulum.de</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi there,<br>
<br>
you might see this as a follow up to a discussion named "Query by<br>
Example" a couple of days ago, see here:<br>
<a href="http://lists.jboss.org/pipermail/rules-users/2008-September/006520.html" target="_blank">http://lists.jboss.org/pipermail/rules-users/2008-September/006520.html</a><br>
<br>
Question to the devs:<br>
Having looked through the code, adding support for a custom operator<br>
requires<br>
- changing the DRL.g<br>
- regenerating the DRLLexer and DRLParser classes from this grammar<br>
- changing the XyzEvaluator and related classes in<br>
org.drools.base.evaluators.<br>
<br>
If I skip MVEL, the BRMS and other places like decision tables for now,<br>
is this all to expand the DRL syntax? Or are any further steps required<br>
to connect the grammar with the "java logic"?<br>
<br>
Thanks!<br>
<br>
Michael<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>
</blockquote></div><br><br clear="all"><br>-- <br> Edson Tirelli<br> JBoss Drools Core Development<br> JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>
</div>