well for category things - it could be that if a category doesn&#39;t exist in the target &quot;space&quot; then it is created, if not, it is used. There are other things though, which are interlinked - but the same issue you bring up applies (which is why this wasn&#39;t done a while back). <div>
<br></div><div>So a simple JCR partial export won&#39;t really do - needs to be a bit more programmatic than that. </div><div><br></div><div>The question is - in the target space - do we want to create the missing things, or remove the links from them as part of the export etc... </div>
<div><br></div><div>So if RuleA depends on categoryX and categoryY, but only categoryX (same name) exists in the target place, then do we create categoryY there, or strip it? <br><br><div class="gmail_quote">On Fri, Aug 6, 2010 at 4:44 PM, Jervis Liu <span dir="ltr">&lt;<a href="mailto:jliu@redhat.com">jliu@redhat.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,<br>
<br>
I am currently evaluating a Guvnor feature request which is to implement<br>
package based import/export. The idea is to use this feature to move a<br>
rule package from the DEV repo to QA to Stage to the Prod repo. For<br>
details please check <a href="https://jira.jboss.org/browse/GUVNOR-311" target="_blank">https://jira.jboss.org/browse/GUVNOR-311</a>. My<br>
initial investigation shows that it is not possible to do a single<br>
package import/export technically. A single package in Guvnor repository<br>
is never a self-contained unit. For example, every asset under the<br>
package has a mandatory attribute which is a reference link to category<br>
information. In short, package can not be exported/imported as long as<br>
it contains references to entities outside package.<br>
<br>
There are two things I would like to ask for your opinions. Firstly, can<br>
you think of any way to implement this import/export feature? Personally<br>
I dont see how this can be done. This is similar to relational database,<br>
generally it is impossible to export and import data from/to a single<br>
non-isolated table in database. Or sometimes it is possible but with<br>
extensive care normally involved in manual work to deal with dirty data.<br>
In our case, one example of dirty data is category, but what can we do<br>
with category information, we discard package information when we do<br>
package export?<br>
<br>
Secondly, if such feature can not be implemented, can we figure out a<br>
different way to help users to better manage the life cycle in Guvnor?<br>
The current version of Guvnor is not very strong on this part yet. If<br>
you are a Guvnor user or you have experience of using similar products,<br>
how did you manage and how do you want to manage the lifecycle of assets<br>
in your repository?<br>
<br>
<br>
Thanks,<br>
<br>
Jervis<br>
<br>
<br>
_______________________________________________<br>
rules-dev mailing list<br>
<a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Michael D Neale<br>home: <a href="http://www.michaelneale.net">www.michaelneale.net</a><br>blog: <a href="http://michaelneale.blogspot.com">michaelneale.blogspot.com</a><br>

</div>