Description of problem: When migrating DRL assets declaring facts, Jcr2vfs migration tool imports assets into VFS repository in such a way, that the package name and class name of the asset are swapped. For instance, the class mortgages.Applicant is migrated as follows (part of VFS repo dump): <assetWithHistory> ... <relativePath>mortgages/src/main/resources/mortgages/mortgages.java</relativePath> <source>package Applicant; /** * This class was automatically generated by the data modeler tool. */ public class mortgages implements java.io.Serializable { ... I have (hopefully) tracked the breaking change to the commit [1] - look for lines such as the highlighted one - a new instance of DataObjectImpl is created, but the arguments are swapped, please see [2]. There are several occurences of this change. [1] https://github.com/droolsjbpm/drools-wb/commit/98f8e709f28595ffcec2ea992ffb95c7e81f19be#diff-3586a1f931677591d16849a6a19781b0R100 [2] https://github.com/droolsjbpm/kie-wb-common/blob/master/kie-wb-common-services/kie-wb-common-data-modeller-core/src/main/java/org/kie/workbench/common/services/datamodeller/core/impl/DataObjectImpl.java#L35 Version-Release number of selected component (if applicable): BRMS 6.2.0 ER4 How reproducible: always Steps to Reproduce: 1. Migrate a repository containing a DRL asset declaring a fact Actual results: Asset is imported with package name and class name swapped. Expected results: Asset is imported with correct package name and class name.
The following solves the issue: master: http://github.com/droolsjbpm/drools-wb/commit/17ce25c43 6.3.x: http://github.com/droolsjbpm/drools-wb/commit/402d1f445
Verified in BRMS 6.2.0 ER5.