[rules-users] Reference a declared FactType from another rule file?

Wolfgang Laun wolfgang.laun at gmail.com
Tue Nov 30 15:55:35 EST 2010


I can't say how it with 5.0.1, but you can do it with 5.1.1, if
- both DRLs are in the same package and
- the DRL with the declare is compiled before those that use it.

-W

On 30 November 2010 21:34, Gerret Hansper <gerret.public at gmx.de> wrote:

> Hi all,
>
> does anybody know whether it's possible to reference a FactType declared
> in one rule file from another one? I'm developing rules with Eclipse
> (using Drools 5.0.1) and the rules are spread over a couple of .drl
> files. It would be nice to be able to declare a FactType in one file,
> have a rule insert instances of it into working memory and have another
> rule in another file (but the same package) use it in its LHS.
> I've tried various import statements but the compiler doesn't seem to be
> able to resolve the reference.
>
> Thanks,
>     Gerret
>
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20101130/cdbe4f60/attachment.html 


More information about the rules-users mailing list