HI,
drools.package was a Guvnor 5.5 (and prior) specific file used to add
imports to rules etc generated inside the application. It has no analogy
within drools-core itself.
Drools Workbench 6.0 adds imports to the files themselves so does not need
this additional helper file.
With kind regards,
Mike
On 18 December 2013 10:52, rjr201 <rich.j.riley(a)gmail.com> wrote:
Hi,
I'm embedding Guvnor using the BRL Edition Mode. I'm then grabbing the BRL
code and adding it to the KnowledgeBuilder. I'm also loading the object
model jar using a class loader. This works fine if all the classes the rule
is using are at the root of the object model jar.
My question is, can I add the class imports (what the package.drools file
does in guvnor) programmatically using KnowledgeBuilder, so my object model
doesn't have to be flat? I was hoping there would be a ResourceType for
drools.package, so I could do something like kbuilder.add("import
package.classname", ResourceType.?), but can't seem to find one.
Hopefully that makes some kind of sense to someone..
Any help on this would be greatly appreciated.
Rich.
--
View this message in context:
http://drools.46999.n3.nabble.com/drools-package-ResourceType-tp4027345.html
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users