Uploaded image for project: 'JBoss BRMS Platform'
  1. JBoss BRMS Platform
  2. RHBRMS-2296

Jcr2vfs migration tool swaps DRL declared fact's package name and class name

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    Description

      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.

      Attachments

        Activity

          People

            wmedvede@redhat.com Walter Medvedeo
            mwinkler@redhat.com Marek Winkler (Inactive)
            Archiver:
            rhn-support-ceverson Clark Everson
            Marek Winkler Marek Winkler (Inactive)
            Marek Winkler Marek Winkler (Inactive)
            Kris Verlaenen, Lukáš Petrovický (Inactive)

            Dates

              Created:
              Updated:
              Resolved:
              Archived:

              PagerDuty