<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&#39;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&#39;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 &nbsp;[STDOUT] AUTO MIGRATION: Performing drools.package migration.</div><div>17:28:00,369 INFO &nbsp;[STDOUT] AUTO MIGRATION: drools.package migration completed.</div><div><br></div><div>The reason I suspect it&#39;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 &nbsp;[STDOUT] (null: 1, 59): cvc-elt.1: Cannot find the declaratio</div><div>n of element &#39;org.drools.ruleflow.core.impl.RuleFlowProcessImpl&#39;.</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>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;at org.drools.compiler.ProcessBuilder.buildProcess(ProcessBuilder.java:9</div><div>9)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;at org.drools.compiler.ProcessBuilder.addProcessFromFile(ProcessBuilder.</div>
<div>java:228)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;at org.drools.compiler.PackageBuilder.addProcessFromXml(PackageBuilder.j</div><div>ava:435)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;at org.drools.compiler.PackageBuilder.addRuleFlow(PackageBuilder.java:40</div>
<div>7)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;at org.drools.guvnor.server.contenthandler.RuleFlowHandler.compile(RuleF</div><div>lowHandler.java:108)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;at org.drools.guvnor.server.builder.ContentPackageAssembler.buildAsset(C</div>
<div>ontentPackageAssembler.java:167)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;at org.drools.guvnor.server.builder.ContentPackageAssembler.buildPackage</div><div>(ContentPackageAssembler.java:154)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;at org.drools.guvnor.server.builder.ContentPackageAssembler.&lt;init&gt;(Conte</div>
<div>ntPackageAssembler.java:103)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;at org.drools.guvnor.server.builder.ContentPackageAssembler.&lt;init&gt;(Conte</div><div>ntPackageAssembler.java:116)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;at org.drools.guvnor.server.ServiceImplementation.buildPackage(ServiceIm</div>
<div>plementation.java:1370)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;at org.drools.guvnor.server.ServiceImplementation.buildPackage(ServiceIm</div><div>plementation.java:1354)&nbsp;</div><div><br></div><div>Regards</div><div>Shahad</div><div><br></div>