Hello Jervis,<br><br>According to my knowledge, Category is just a way of clubbing related stuff.<br><br>If I use knowledge agent to fetch the rules from the guvnor repository than currently I can provide only the package name.<br>
<table cellpadding="0" cellspacing="0"><tbody><tr><td style="vertical-align: top;" align="left"><div class="gwt-HTML"><a id="ext-gen861" href="http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/mortgages.submortgages/LATEST.drl" target="_blank">http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/<b>mortgages</b>/LATEST.drl</a></div>
</td><td id="ext-gen872" style="vertical-align: top;" align="left"><img title="Use this URL to download the source, or in the 'runtime agent' to access the rules in source form" class="gwt-Image" src="http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/clear.cache.gif" style="width: 16px; height: 16px; background: url("data:image/gif;base64,R0lGODlhEAAQAMQaAPb9/wJGjA5ipFWQv7bQ5MfU0PT7/5a2xff8//j9//r9//f9//z+//X8//3+//n9/+zy9fb8/whUmPv+/wxcn/Lz9e3y9f7+/wtdn/Hy9f///wAAAAAAAAAAAAAAAAAAACH5BAEAABoALAAAAAAQABAAAAWIoCaOZFkWgxAEwlCY2hEMRJURQ3CUh0A4AIEAcCEIdqJC4AcIDgEOQuClGQwYTQC2yWBYRT5FU/icTIyiAOTxEAubCoUlkIYk7gAKBvC4Q+gaPggICwASEgsLhGhVA4MIACsNABEIXxpKBA0NKysRDVJUMT4GpaZGSCMyNKU4OjAoKiwuMLUlIQA7") no-repeat scroll 0px 0px transparent;" border="0"></td>
</tr></tbody></table><br>But If I want to separate the rules under a package & move into different sub-packages than I am not able to do so from the current Guvnor.<br>Use case: If in a particular transaction only a sub package rule would be required because of its nature so I wanted to fetch only those rules.<br>
<br>Thanks for your reply..<br><br><div class="gmail_quote">On Wed, Dec 15, 2010 at 7:52 PM, Jervis Liu <span dir="ltr"><<a href="mailto:jliu@redhat.com">jliu@redhat.com</a>></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;">
Sub package is not supported at the moment. Is there any specific reason<br>
why you want to use a sub package? You might be able to achieve same<br>
result using other things, like categories.<br>
<br>
Cheers,<br>
Jervis<br>
<div><div></div><div class="h5"><br>
On 2010/12/15 22:13, Harshit Bapna wrote:<br>
> Hello All,<br>
><br>
> I have gone through the Guvnor UI and I couldn't find a way to create<br>
> sub packages under parent package.<br>
> for ex: Under package Mortgage, I want to create subMortgage.<br>
><br>
> *Also I found a method createSubPackage in RepositoryService but not<br>
> able to get the UI way to create a subpackage.*<br>
><br>
> /**<br>
> * This creates a package of the given name, and checks it in.<br>
> * @return UUID of the created item.<br>
> */<br>
> public String createSubPackage(String name,<br>
> String description,<br>
> String parentPackage) throws<br>
> SerializationException;<br>
><br>
><br>
><br>
</div></div>> _______________________________________________<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>
<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>