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.
Hi,
I'm using eclipse drools builder to develop my rules, and when I define one
drools declared type in one resource and use it in a different drools
resource, the declared type is not resolved. Even if the resources are in
the same package.
Also, when I include the files in the correct order in the knowledgeBase,
everything starts working in my application.
1)Is there a way to make my eclipse drools builder find the declared type in
the other resources? It shows the following error: Unable to resolve
ObjectType
2)Is there a way to make the files work in any order? Now, my application
works only if the declared types are with resource name alphabetically
preceeding the name of the resource where the types are used.
Please tell me if you need additional information.
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Import-of-declared-type-in-other-drools-resources-tp2078644p2078644.html
Sent from the Drools - Dev mailing list archive at Nabble.com.
_______________________________________________
rules-dev mailing list
rules-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev