Hello,
Unfortunately Guvnor 5.5 (and prior) only uses that file when (1) building
the package and creating the PKG file, and (2) when validating a rule.
More unfortunately (for you) there is no direct means to retrieve the
drools.package file either with REST (that I assume you're using for the
BRL rule).
You could retrieve the whole package source (IIRC something like
/package/{packageName}/source) and parse it for imports, but it's a long
winded way especially if the package is large.
That said it's only a one-off need; once you've parsed the imports you can
keep them locally.
With kind regards,
Mike
On 18 December 2013 11:14, rjr201 <rich.j.riley(a)gmail.com> wrote:
Hi Mantis, thanks for your response.
I'm using kbuilder.add(ruleResource, ResourceType.BRL);
The BRL source code I grabbed from the embedded guvnor window doesn't have
explicit path names on the classes that it's using. For example, if the
class was packagename.Person it just has Person. Which means it tells me it
doesn't recognise the class when I add it to class builder. I was wondering
if there was a way round this? If not, it's not necessarily the end of the
world to have to put everything in the root of the objectmodel jar.
PS I realise that messing around with BRL stuff outside of Guvnor is not a
nice way to have to do things, but I've got my hands tied a bit with what I
can do (I'd much rather be using all the cool stuff I've been reading about
in 6!)
--
View this message in context:
http://drools.46999.n3.nabble.com/drools-package-ResourceType-tp4027345p4...
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