I can&#39;t say how it with 5.0.1, but you can do it with 5.1.1, if<br>- both DRLs are in the same package and<br>- the DRL with the declare is compiled before those that use it.<br><br>-W <br><br><div class="gmail_quote">
On 30 November 2010 21:34, Gerret Hansper <span dir="ltr">&lt;<a href="mailto:gerret.public@gmx.de">gerret.public@gmx.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi all,<br>
<br>
does anybody know whether it&#39;s possible to reference a FactType declared<br>
in one rule file from another one? I&#39;m developing rules with Eclipse<br>
(using Drools 5.0.1) and the rules are spread over a couple of .drl<br>
files. It would be nice to be able to declare a FactType in one file,<br>
have a rule insert instances of it into working memory and have another<br>
rule in another file (but the same package) use it in its LHS.<br>
I&#39;ve tried various import statements but the compiler doesn&#39;t seem to be<br>
able to resolve the reference.<br>
<br>
Thanks,<br>
     Gerret<br>
<br>
<br>
<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>
</blockquote></div><br>