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

<div class="HOEnZb"><div class="h5">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>
</div></div></blockquote></div><br></div>