I think you can create an interface for your DslHelper class and upload it to Guvnor. You will need to make its methods non-static, of course.<div>Then you can define a global of the interface type in your packages and use that global in your DSLR.</div>

<div><div>In runtime you can set the implementation class as global.  <br clear="all"><br></div><div>Best Regards,</div><div><br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><br>Esteban Aliverti<br>- Developer @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com </a><br>

- Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a><br>
<br><br><div class="gmail_quote">On Tue, Mar 15, 2011 at 11:24 AM, wantastic <span dir="ltr">&lt;<a href="mailto:wantastic@gmail.com">wantastic@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hello everyone,<br>
<br>
 I am a newbie to Guvnor. I have a set of .dslr files with .dsl to translate<br>
them.<br>
I know I can just copy and paste .dslr file and .dsl file. However, the<br>
problem is that<br>
I call external function within .dsl file and when I try to validate the<br>
dsl, it complains for not having the method.<br>
<br>
ex)<br>
<br>
[condition][Trade]xpathMatch &quot;{xpath}&quot;=trade : Trade( type ==<br>
Trade.TRADE_TYPE ) and eval( DslHelper.xmlContentMatches(trade, &quot;{xpath}&quot;) )<br>
<br>
This is my condition and it has all models like Trade. However, it complains<br>
about not having DslHelper function. This function has so many dependencies<br>
that I cannot upload through POJO jar.<br>
<br>
Is there any elegant way to solve this problem?<br>
<br>
<br>
Thanks in advance :)<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Importing-existing-dslr-dsl-to-Guvnor-tp2681597p2681597.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/Importing-existing-dslr-dsl-to-Guvnor-tp2681597p2681597.html</a><br>


Sent from the Drools - User mailing list archive at Nabble.com.<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>
</font></blockquote></div><br></div></div>