<br>Can anyone help me with this?<br><br><br>Cheers,<br><br>Swapnil<br><br><div class="gmail_quote">2009/11/21 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>Thanks Edson. That worked.<br><br>But the problem is that if i am using a temporal operator condition as: <b>this before[5s, 0s] $res</b><br>
<br>the equivalent XML generated is as follows:<br><br><b>&lt;field-constraint field-name=&quot;this&quot;&gt; <br>
       &lt;variable-restriction evaluator=&quot;before&quot; identifier=&quot;$res&quot; /&gt;<br>&lt;/field-constraint&gt;</b><br><br>over here <b>[5s,0s]</b> information is getting lost in the transformation.<br><br>Is there any fix for this?<br>

<br><br>Cheers,<br><br>Swapnil<br><br><div class="gmail_quote">2009/11/21 Edson Tirelli <span dir="ltr">&lt;<a href="mailto:ed.tirelli@gmail.com" target="_blank">ed.tirelli@gmail.com</a>&gt;</span><div><div></div><div class="h5">
<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<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" target="_blank">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;">

<div><div></div><div>
<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></div></div>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">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><font color="#888888"><br><br clear="all"><br>-- <br>  Edson Tirelli<br>  JBoss Drools Core Development<br>  JBoss by Red Hat @ <a href="http://www.jboss.com" target="_blank">www.jboss.com</a><br>
</font><br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">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></div></div><br>
</blockquote></div><br>