Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-6522

Duplicated position for field when subclassing using Data Modeler

XMLWordPrintable

    • Hide

      My specific implementation has a SuperClass class with the following definition:
      Long superField1 (position 0)
      Long superField2 (position 1)
      String[0..N] superField3 (position 2)
      String superField4 (position 3)

      The SubClass class definition:
      Double subClassField1 (position 0)

      Save the Model and Build/Deploy the project (should be successful)

      Create a rule that uses the SubClass in the WHEN clause and attempt to evaluate based on one of the SuperClass fields.

      Save the rule and build/deploy the project (should fail with errors indicating "Duplicated position..."

      Show
      My specific implementation has a SuperClass class with the following definition: Long superField1 (position 0) Long superField2 (position 1) String [0..N] superField3 (position 2) String superField4 (position 3) The SubClass class definition: Double subClassField1 (position 0) Save the Model and Build/Deploy the project (should be successful) Create a rule that uses the SubClass in the WHEN clause and attempt to evaluate based on one of the SuperClass fields. Save the rule and build/deploy the project (should fail with errors indicating "Duplicated position..."

      When creating a super/subclass relationship in the workbench's Data Modeler, I receive the following error:

      "Duplicated position 0 for field '<fieldName>' on <myClass>'"
      Where the fieldName is the name of the field in position 0 in the super class, and myClass is the sub-class.

      This seems to only happen when I change an existing object to be a subclass of this super class. When I create a new object that subclasses it there doesn't seem to be an error.

              wmedvede@redhat.com Walter Medvedeo
              devyndraen Stephen Slaboda (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: