[rules-users] Re: [drools-user] using function from another .drl file

Michael Neale michael.neale at gmail.com
Fri Jan 12 06:19:57 EST 2007


If you use the one packagebuilder, and you add the source first from the one
with the function, and then the others, yes that should work just fine !

On 1/11/07, Justine Hlista <justine at vsasset.com> wrote:
>
> Another newbie question - I'm not sure if what I'm trying to do is legal.
>
> I have two drl files, and one contains a function that I would like to use
> from the other. Is that possible? I am loading the one with the function
> into the rule base first, then the other. But I get an error message from
> the other saying the function cannot be resolved. If I copy the function
> into the other, then it works.
>
> Of course, I can always write a Java helper class for a single definition
> of the function. But I was just wondering if it is possible to maintain a
> single function definition in a drl.
>
> Thanks in advance for any enlightenment!
>
> Justine
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070112/3f2b5849/attachment.html 


More information about the rules-users mailing list