Other than custom selectors, as you have already discovered, I don&#39;t believe there is anything that fits your description &quot;out of the box&quot;. Those clever chaps at Plugtree often have something up their sleeves; perhaps they know of something? There have also been a lot of changes for 5.2 but I&#39;m unsure if this is covered there either.<br>
<br>org.drools.guvnor.server.RepositoryPackageOperations.buildPackage would be a good starting point if you want to write your own (and contribute back?)<br><br>With kind regards,<br><br>Mike<br><br><div class="gmail_quote">
On 4 May 2011 15:57, Vincent Legendre <span dir="ltr">&lt;<a href="mailto:vincent.legendre@eurodecision.com">vincent.legendre@eurodecision.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi all,<br>
<br>
I am looking for a clever way to compile only parts of a Guvnor package<br>
according to some criteria on items (categories, metadata ...), but<br>
outside Guvnor if possible.<br>
The main idea starts by the fact that it is a little bit complex for a<br>
business user to manage packages and compilations, and even more if he<br>
has to manage conditional compilations (using selectors) of a single<br>
package to produce multiple KB compiled according to business criterions.<br>
<br>
I want to compile automatically some KB according to categories (more<br>
generally asset&#39;s fields) with something external to Guvnor. Thus I need<br>
a way to query Guvnor repository with criterion to get either :<br>
     - the corresponding ressources (DRL)<br>
     - the filtered compiled KB (PKG ressource)<br>
Filtering with DRL (like custom selectors in Guvnor) will be perfect,<br>
using a custom class too.<br>
<br>
Is there such service ?<br>
Does the KnowledgeAgent allow filtering (did not see anything in docs) ?<br>
Or do I need to add a new service in Guvnor war directly ?<br>
<br>
Thanks!<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>