Created attachment 857289 [details] rdrl with problems Hi. Given this rule that works correctly in BRMS5: //created on: Sep 6, 2012 import org.acme.insurance.Policy; import org.acme.insurance.Driver; rule "pricemultiplevehicles" salience -10 ruleflow-group "total" when //conditions driver: Driver() policyM: Policy(policyType=="MASTER", driver==driver, price == 0) total : Number(doubleValue > 0) from accumulate ( Policy(policyType=="AUTO", driver == driver, p:price) sum( p ) ) then //actions modify (policyM) {setPrice(total.intValue())} end ... the migration tool transforms to the rule attached to this BZ containing structural problems making it unable to compile. To reproduce the problem, try migrating the repo found here: http://people.redhat.com/jbride/bldw/policy_quote_scenario_export.zip .... and take a look at the resulting 'pricemultiplevehicles.rdrl' . thanks! jeff
It seems that the technical rules in BRMS 5.x can be saved both with and without the initial "rule" statement (and the "end" statement at the end). The migration tool should scan the DRL and only add the "rule" and "end" if they are missing. Also the import statements should be handled in a right way.
There was a problem related with rules with import statements and the sequence adding imports and adding the package name. This has been fixed at: Commit: 6.0.x https://github.com/droolsjbpm/drools-wb/commit/16848d90aa190b2d989f22a71038bff56d9f8594
Verified fixed in 6.0.1-ER1.