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