Thank you to both of you for your answer, i will have a look at this to see if it can do what i want.<br><br><br><div class="gmail_quote">On Wed, Mar 23, 2011 at 12:35 AM, Tihomir Surdilovic [via Drools - Java Rules Engine] <span dir="ltr">&lt;<a href="/user/SendEmail.jtp?type=node&node=2719668&i=0&by-user=t" target="_top" rel="nofollow" link="external">[hidden email]</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;"><div class="im">

        On 3/22/11 12:02 PM, ioda100 wrote:
</div><div class="im"><div><div class='shrinkable-quote'><br>&gt; Hi,
<br>&gt;
<br>&gt; I try to figure out how to import a package from an instance of guvnor to
<br>&gt; another instance of guvnor without destroying all the existing repository.
<br>&gt;
<br>&gt; There is an import/export function in the administration part of guvnor but
<br>&gt; it export all the repository and when import a repository, it&#39;s erasing all
<br>&gt; before importing.
<br>&gt;
<br>&gt; What i would like to be able to do is : i have a package with rules,
<br>&gt; functions, enum, dsl, test scenarios... under an instance of guvnor and i
<br>&gt; have another package under another instance and i would like to import the
<br>&gt; second package to the other instance of guvnor without erasing the existing
<br>&gt; repository. Is it a way to do this? i can&#39;t find it. maybe with the eclipse
<br>&gt; plugin? I don&#39;t want to import from a drl file because i would loose the
<br>&gt; graphical part (use of dsl, enum...).
</div></div><div class="im">Repository XML import is not a merge, so yes the existing repository 
</div>will first be erased. I don&#39;t follow your use case completely (more like 
<br>how did you get into your situation tobegin with ;) ).
<br>One thing you can take advantage of in the future is having multiple 
<br>Guvnor instances be in a Jackrabbit cluster (see 
<br><a href="http://blog.athico.com/2011/01/configuring-multiple-guvnor-instances.html" rel="nofollow" link="external" target="_blank">http://blog.athico.com/2011/01/configuring-multiple-guvnor-instances.html</a>). 
<br>If you have a need to migrate an existing repository (copy) from one 
<br>location to another, I just wrote a drools-ant task for that (check the 
<br>blog soon).
<br><br>With what you have right now, the only thing that comes to mind is to 
<br>check out all assets of your package B via the Guvnor eclipse plugin, 
<br>then add them manually (via same plugin) to package A.
<br><br>Tihomir
<br></div><div><br>&gt;
<br><div><div></div><div class="h5">&gt; My second question is that i try to use the guvnor plugin for eclipse to
<div class='shrinkable-quote'><br>&gt; manage rules in the guvnor repository. I can access to it and read/modify
<br>&gt; all but i can&#39;t modify the &quot;.brl&quot; files, i get for all the files this
<br>&gt; message : &quot;Could not open the editor: An unexpected exception was thrown.
<br>&gt; java.lang.NullPointerException
<br>&gt;         at org.drools.eclipse.rulebuilder.ui.ActionSetFieldWidget.(Unknown Source)
<br>&gt;         at
<br>&gt; org.drools.eclipse.rulebuilder.ui.RuleModeller.addActionSetFieldWidget(Unknown
<br>&gt; Source)
<br>&gt;         at org.drools.eclipse.rulebuilder.ui.RuleModeller.redrawRhs(Unknown Source)
<br>&gt;         at org.drools.eclipse.rulebuilder.ui.RuleModeller.reloadRhs(Unknown Source)
<br>&gt;         at org.drools.eclipse.rulebuilder.ui.RuleModeller.reloadWidgets(Unknown
<br>&gt; Source)
<br>&gt;         at org.drools.eclipse.rulebuilder.editors.BrlPage.setModelXML(Unknown
<br>&gt; Source)
<br>&gt;         at org.drools.eclipse.rulebuilder.editors.RuleEditor.pageChange(Unknown
<br>&gt; Source)
<br>&gt;         at
<br>&gt; org.eclipse.ui.part.MultiPageEditorPart.setActivePage(MultiPageEditorPart.java:1076)
<br>&gt;         at
<br>&gt; org.eclipse.ui.forms.editor.FormEditor.setActivePage(FormEditor.java:597)
<br>&gt;         at
<br>&gt; org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:361)
<br>&gt;         at
<br>&gt; org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:662)
<br>&gt;         at
<br>&gt; org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:462)
<br>&gt;         at
<br>&gt; org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
<br>&gt;         at
<br>&gt; org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:286)
<br>&gt;         at
<br>&gt; org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2857)
<br>&gt;         at
<br>&gt; org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2762)
<br>&gt;         at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2754)
<br>&gt;         at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2705)
<br>&gt;         at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
<br>&gt;         at
<br>&gt; org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2701)
<br>&gt;         at
<br>&gt; org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2685)
<br>&gt;         at
<br>&gt; org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2668)
<br>&gt;         at org.guvnor.tools.utils.PlatformUtils.openEditor(Unknown Source)
<br>&gt;         at org.guvnor.tools.views.RepositoryView.doubleClick(Unknown Source)
<br>&gt;         at org.guvnor.tools.views.RepositoryView.access$4(Unknown Source)
<br>&gt;         at org.guvnor.tools.views.RepositoryView$7.run(Unknown Source)
<br>&gt;         at org.guvnor.tools.views.RepositoryView$9.doubleClick(Unknown Source)
<br>&gt;         at
<br>&gt; org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredViewer.java:821)
<br>&gt;         at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
<br>&gt;         at org.eclipse.core.runtime.Platform.run(Platform.java:888)
<br>&gt;         at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
<br>&gt;         at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
<br>&gt;         at
<br>&gt; org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(StructuredViewer.java:819)
<br>&gt;         at
<br>&gt; org.eclipse.jface.viewers.AbstractTreeViewer.handleDoubleSelect(AbstractTreeViewer.java:1419)
<br>&gt;         at
<br>&gt; org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSelected(StructuredViewer.java:1195)
<br>&gt;         at
<br>&gt; org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEvent(OpenStrategy.java:238)
<br>&gt;         at org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.java:235)
<br>&gt;         at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:296)
<br>&gt;         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
<br>&gt;         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
<br>&gt;         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3910)
<br>&gt;         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3503)
<br>&gt;         at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
<br>&gt;         at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
<br>&gt;         at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
<br>&gt;         at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
<br>&gt;         at
<br>&gt; org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
<br>&gt;         at
<br>&gt; org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
<br>&gt;         at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
<br>&gt;         at
<br>&gt; org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
<br>&gt;         at
<br>&gt; org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
<br>&gt;         at
<br>&gt; org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
<br>&gt;         at
<br>&gt; org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
<br>&gt;         at
<br>&gt; org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
<br>&gt;         at
<br>&gt; org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
<br>&gt;         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
<br>&gt;         at
<br>&gt; sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
<br>&gt;         at
<br>&gt; sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
<br>&gt;         at java.lang.reflect.Method.invoke(Method.java:597)
<br>&gt;         at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
<br>&gt;         at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
<br>&gt;         at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
<br>&gt;         at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
<br>&gt; &quot;
<br>&gt;
<br>&gt; Thanks in advance for your help.
<br>&gt;
<br>&gt; --
<br>&gt; View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Merge-repository-in-Guvnor-and-editing-brl-with-eclipse-plugin-tp2715521p2715521.html?by-user=t&by-user=t" rel="nofollow" link="external" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/Merge-repository-in-Guvnor-and-editing-brl-with-eclipse-plugin-tp2715521p2715521.html</a></div>

&gt; Sent from the Drools - User mailing list archive at Nabble.com.
<br>&gt; _______________________________________________
<br>&gt; rules-users mailing list
<br></div></div>&gt; <a href="http://user/SendEmail.jtp?type=node&amp;node=2718011&amp;i=0&amp;by-user=t" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br><div class="im">&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" rel="nofollow" link="external" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>&gt;
</div></div><br><div class="im">_______________________________________________
<br>rules-users mailing list
<br><a href="http://user/SendEmail.jtp?type=node&amp;node=2718011&amp;i=1&amp;by-user=t" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br></div><div class="im"><a href="https://lists.jboss.org/mailman/listinfo/rules-users" rel="nofollow" link="external" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
        
        <br>
        <br>
        </div><hr color="#cccccc" noshade size="1">
        <div style="color: rgb(68, 68, 68); font: 12px tahoma,geneva,helvetica,arial,sans-serif;"><div class="im">
                <div style="font-weight: bold;">If you reply to this email, your message will be added to the discussion below:</div>
                </div><a href="http://drools-java-rules-engine.46999.n3.nabble.com/Merge-repository-in-Guvnor-and-editing-brl-with-eclipse-plugin-tp2715521p2718011.html?by-user=t" target="_blank" rel="nofollow" link="external">http://drools-java-rules-engine.46999.n3.nabble.com/Merge-repository-in-Guvnor-and-editing-brl-with-eclipse-plugin-tp2715521p2718011.html</a>
        </div>
        <div style="color: rgb(102, 102, 102); font: 11px tahoma,geneva,helvetica,arial,sans-serif; margin-top: 0.4em;">
                
                
        </div></blockquote></div><br>

        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Merge-repository-in-Guvnor-and-editing-brl-with-eclipse-plugin-tp2715521p2719668.html">Re: Merge repository in Guvnor and editing brl with eclipse plugin</a><br/>
Sent from the <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Drools-User-f47000.html">Drools - User mailing list archive</a> at Nabble.com.<br/>