<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=windows-1252"
 http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Shahad Ahmed wrote:
<blockquote
 cite="mid:1d2fdded0901280411v331d612dja63067b427d6ea3f@mail.gmail.com"
 type="cite">Okay, I've figured this out. There is a bug in the Guvnor
that means it cannot open or perform operations on version 4 ruleflow
assets in an v4 repository that was migrated to version 5 by the
Guvnor. I've raised this as a JIRA  JBRULES-1945 and attached a patch
to the JIRA. The patch also allows you to open, view and edit version 4
.rf (graphical) ruleflow files using the V5 Eclipse plugin, and also
open v4 .rfm assets in the Guvnor. One of the classes in the patch
(RuleFlowMigrator) can also be used as a command line application to
migrate version 4 .rf files to version 5 if required.</blockquote>
I know kris added a patch to load v4 rulelfows, but I guess guvnor
isn't aware of the properties switch that needs to be applied. We'll
review your patch asap.<br>
<br>
Thanks<br>
<br>
Mark<br>
<blockquote
 cite="mid:1d2fdded0901280411v331d612dja63067b427d6ea3f@mail.gmail.com"
 type="cite">
  <div><br>
  </div>
  <div>Regards</div>
  <div>Shahad</div>
  <div><br>
  <br>
  <div class="gmail_quote">On Mon, Jan 12, 2009 at 11:10 AM, Shahad
Ahmed <span dir="ltr">&lt;<a moz-do-not-send="true"
 href="mailto:shahad.ahmed2@gmail.com">shahad.ahmed2@gmail.com</a>&gt;</span>
wrote:<br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div>Does anyone know if there is a way of specifying that the
Guvnor 5.0M4 should migrate ruleflows from version 4.0 to 5.0 when
importing a version 4.0 repository into the Guvnor, or is this
bug/oversight in the Guvnor?<br>
    </div>
    <div><br>
    </div>
    <div>I'm trying to import a drools 4.0.7 repository into Guvnor
5.0M4 – the repository was originally exported out of a drools 4.0.7
BRMS (i.e. in XML format). However, when I try and build a package
containing a ruleflow in the imported repository it fails, but the same
repository builds under the drools 4.0.7 BRMS. Packages without
ruleflows build okay, so it looks as if the failure has to do with the
ruleflows in packages.</div>
    <div><br>
    </div>
    <div>I know that drools 4 ruleflows are not compatible with drools
5 ruleflows, and that there's a drools property that allows the
compiler to automatically migrate ruleflows from 4.0 to 5.0. I had
assumed the Guvnor applies this migration as I see the following in the
log when I import the repository, but a quick look at code in the
drools trunk suggests that this migration simply changes version
numbers in the repository, but does not migrate the ruleflows:</div>
    <div><br>
    </div>
    <div>17:27:59,931 INFO  [STDOUT] AUTO MIGRATION: Performing
drools.package migration.</div>
    <div>17:28:00,369 INFO  [STDOUT] AUTO MIGRATION: drools.package
migration completed.</div>
    <div><br>
    </div>
    <div>The reason I suspect it's something to do with ruleflows is
that when I try and do anything with the ruleflow assets in the Guvnor,
I see the following error:</div>
    <div><br>
    </div>
    <div>17:30:40,634 INFO  [STDOUT] (null: 1, 59): cvc-elt.1: Cannot
find the declaratio</div>
    <div>n of element
'org.drools.ruleflow.core.impl.RuleFlowProcessImpl'.</div>
    <div><br>
    </div>
    <div>When I try and build a package with a ruleflow I see the
following error in the log:</div>
    <div><br>
    </div>
    <div>Caused by: java.lang.NullPointerException</div>
    <div>        at
org.drools.compiler.ProcessBuilder.buildProcess(ProcessBuilder.java:9</div>
    <div>9)</div>
    <div>        at
org.drools.compiler.ProcessBuilder.addProcessFromFile(ProcessBuilder.</div>
    <div>java:228)</div>
    <div>        at
org.drools.compiler.PackageBuilder.addProcessFromXml(PackageBuilder.j</div>
    <div>ava:435)</div>
    <div>        at
org.drools.compiler.PackageBuilder.addRuleFlow(PackageBuilder.java:40</div>
    <div>7)</div>
    <div>        at
org.drools.guvnor.server.contenthandler.RuleFlowHandler.compile(RuleF</div>
    <div>lowHandler.java:108)</div>
    <div>        at
org.drools.guvnor.server.builder.ContentPackageAssembler.buildAsset(C</div>
    <div>ontentPackageAssembler.java:167)</div>
    <div>        at
org.drools.guvnor.server.builder.ContentPackageAssembler.buildPackage</div>
    <div>(ContentPackageAssembler.java:154)</div>
    <div>        at
org.drools.guvnor.server.builder.ContentPackageAssembler.&lt;init&gt;(Conte</div>
    <div>ntPackageAssembler.java:103)</div>
    <div>        at
org.drools.guvnor.server.builder.ContentPackageAssembler.&lt;init&gt;(Conte</div>
    <div>ntPackageAssembler.java:116)</div>
    <div>        at
org.drools.guvnor.server.ServiceImplementation.buildPackage(ServiceIm</div>
    <div>plementation.java:1370)</div>
    <div>        at
org.drools.guvnor.server.ServiceImplementation.buildPackage(ServiceIm</div>
    <div>plementation.java:1354) </div>
    <div><br>
    </div>
    <div>Regards</div>
    <div>Shahad</div>
    <font color="#888888">
    <div><br>
    </div>
    </font></blockquote>
  </div>
  <br>
  </div>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
  </pre>
</blockquote>
<br>
</body>
</html>