<div dir="ltr">HI,<div><br></div><div><span style="font-family:arial,sans-serif;font-size:13px">drools.package was a Guvnor 5.5 (and prior) specific file used to add imports to rules etc generated inside the application. </span><span style="font-family:arial,sans-serif">It has no analogy within drools-core itself.</span></div>
<div><span style="font-family:arial,sans-serif"><br></span></div><div><span style="font-family:arial,sans-serif">Drools Workbench 6.0 adds imports to the files themselves so does not need this additional helper file.</span></div>
<div><span style="font-family:arial,sans-serif"><br></span></div><div><span style="font-family:arial,sans-serif">With kind regards,</span></div><div><span style="font-family:arial,sans-serif"><br></span></div><div><span style="font-family:arial,sans-serif">Mike</span></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On 18 December 2013 10:52, rjr201 <span dir="ltr"><<a href="mailto:rich.j.riley@gmail.com" target="_blank">rich.j.riley@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I'm embedding Guvnor using the BRL Edition Mode. I'm then grabbing the BRL<br>
code and adding it to the KnowledgeBuilder. I'm also loading the object<br>
model jar using a class loader. This works fine if all the classes the rule<br>
is using are at the root of the object model jar.<br>
<br>
My question is, can I add the class imports (what the package.drools file<br>
does in guvnor) programmatically using KnowledgeBuilder, so my object model<br>
doesn't have to be flat? I was hoping there would be a ResourceType for<br>
drools.package, so I could do something like kbuilder.add("import<br>
package.classname", ResourceType.?), but can't seem to find one.<br>
<br>
Hopefully that makes some kind of sense to someone..<br>
<br>
Any help on this would be greatly appreciated.<br>
Rich.<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/drools-package-ResourceType-tp4027345.html" target="_blank">http://drools.46999.n3.nabble.com/drools-package-ResourceType-tp4027345.html</a><br>
Sent from the Drools: User forum mailing list archive at Nabble.com.<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></div>