<br>    All operators in drools are pluggable. Whenever you use the KnowledgeBuilder to parse/compile rules, it will automatically build a static registry of available operators for the parser, but if you use the lower level parser API, you need to register the operators by yourself. Just write the following line of code, before parsing anything:<br>
<br>   new EvaluatorRegistry();<br> <br>   This will statically initialize the registry with the operators shipped with Drools. If you create your own operators, you can add them to the cache by doing:<br><br>   EvaluatorRegistry registry = new EvaluatorRegistry();<br>
   registry.addEvaluatorDefinition( new MyEvaluatorDefinition() );<br>
    <br>   []s<br>   Edson<br><br><br><div class="gmail_quote">2009/11/20 Swapnil Raverkar <span dir="ltr">&lt;<a href="mailto:swapnil.raverkar@gmail.com">swapnil.raverkar@gmail.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>I am trying to dump an XML equivalent of a DRL file using DrlParser &amp; XMLOutputter.<br><br>But when my rules file has rules with temporal operators DrlParser.parser(inputStream) throws a NullPointerException.<br><br>

Why DrlParser is not supporing temporal operators yet?<br><br><br>Cheers,<br><font color="#888888"><br>Swapnil<br>
</font><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>
<br></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>