I think you should put them in a drools.package file in the same directory as the rule files - I think that is how it was designed to work. <br><br><div class="gmail_quote">On Tue, Dec 14, 2010 at 12:45 AM, stanka <span dir="ltr">&lt;<a href="mailto:stanska@gmail.com">stanska@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;"><br>
Hi,<br>
I&#39;m using eclipse drools builder to develop my rules, and when I define one<br>
drools declared type in one resource and use it in a different drools<br>
resource, the declared type is not resolved. Even if the resources are in<br>
the same package.<br>
<br>
Also, when I include the files in the correct order in the knowledgeBase,<br>
everything starts working in my application.<br>
<br>
1)Is there a way to make my eclipse drools builder find the declared type in<br>
the other resources? It shows the following error: Unable to resolve<br>
ObjectType<br>
<br>
2)Is there a way to make the files work in any order? Now, my application<br>
works only if the declared types are with resource name alphabetically<br>
preceeding the name of the resource where the types are used.<br>
<br>
Please tell me if you need additional information.<br>
<font color="#888888"><br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Import-of-declared-type-in-other-drools-resources-tp2078644p2078644.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/Import-of-declared-type-in-other-drools-resources-tp2078644p2078644.html</a><br>

Sent from the Drools - Dev mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-dev mailing list<br>
<a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Michael D Neale<br>home: <a href="http://www.michaelneale.net">www.michaelneale.net</a><br>blog: <a href="http://michaelneale.blogspot.com">michaelneale.blogspot.com</a><br>