And it works :)<br><br><div class="gmail_quote">On Sun, Jul 18, 2010 at 7:47 PM, Meeraj Kunnumpurath <span dir="ltr">&lt;<a href="mailto:mkunnumpurath@googlemail.com">mkunnumpurath@googlemail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Thanks.<br><br>In fact, I found this in the documentation, trying to follow your advice on using DRL functions<br><br>&lt;quote&gt;<br><br><p><a>Alternatively, you could use a static method in a 
helper class,
  e.g., <code>Foo.hello()</code>. Drools supports the use 
of
  function imports, so all you would need to do is:</a></p><pre><a>import function my.package.Foo.hello</a></pre><br>&lt;/quote&gt;<br><br>Regards<br><font color="#888888">Meeraj</font><div><div></div><div class="h5"><br>
<br><div class="gmail_quote">
On Sun, Jul 18, 2010 at 6:53 PM, Wolfgang Laun <span dir="ltr">&lt;<a href="mailto:wolfgang.laun@gmail.com" target="_blank">wolfgang.laun@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

Regretfully, no: import static is not implemented.<br>
<br>
Consider using a DRL function to wrap the call of the static method,<br>
to achieve a shorter call.<br>
<br>
-W<br>
<br>
2010/7/18 Meeraj Kunnumpurath &lt;<a href="mailto:mkunnumpurath@googlemail.com" target="_blank">mkunnumpurath@googlemail.com</a>&gt;:<br>
<div><div></div><div>&gt; Hi,<br>
&gt;<br>
&gt; Are static imports as shown below allowed in rule files? It is giving me a<br>
&gt; parse exception.<br>
&gt;<br>
&gt; package mypackage;<br>
&gt;<br>
&gt; dialect &quot;mvel&quot;<br>
&gt;<br>
&gt; import mypackage.CreditTransferTransactionInformation10;<br>
&gt; import static mypackage.ValidationHelper.invalidate;<br>
&gt;<br>
&gt; global java.util.Set accountNumbers;<br>
&gt;<br>
&gt; rule &quot;Check debtor account number is not null&quot;<br>
&gt;     salience -1<br>
&gt; when<br>
&gt;     $c : CreditTransferTransactionInformation10 ( eval(<br>
&gt; dbtrAcct.?id.?othr.?id == null ) )<br>
&gt; then<br>
&gt;     invalidate($c, &quot;PG003&quot;, &quot;Account number is absent&quot;);<br>
&gt;     drools.halt();<br>
&gt; end<br>
&gt;<br>
&gt; Ta<br>
&gt; Meeraj<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; rules-users mailing list<br>
&gt; <a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;<br>
&gt;<br>
<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>
</blockquote></div><br>
</div></div></blockquote></div><br>