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

GRE regression in handling nested enum values

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 6.0.0
    • 6.0.0
    • Business Central
    • None

      Description of problem: Bug 724629 was fixed for 5.3.0 and it concludes that enum values like Person$Sex.FEMALE should be presented as Sex.FEMALE in Guided Rule Editor. Currently in 6.0.x it is displayed as Person$Sex.FEMALE and the same value appears in the generated DRL source. When a rule using such value is saved and reopened the select box listing the enum values is reset and contains no items (only the "Choose ..." hint).

      Version-Release number of selected component (if applicable):
      ER6

      How reproducible:
      -

      Steps to Reproduce:
      1. prepare a data model described in bug 724629
      2. add Person fact with sex field and set it to Person$Sex.FEMALE
      3. save the rule, close it and reopen

      Actual results:
      The select box for Person.sex field is reset. DRL source contains Person$Sex.FEMALE.

      Expected results:

      • The select box in GRE should contain values without the enclosing class, e.g. Sex.FEMALE.
      • The same format should appear in the DRL source.
      • GRE should handle nested enum values correctly when reopening the rule

      Additional info:

              manstis@redhat.com Michael Anstis
              jlocker Jiří Locker (Inactive)
              Archiver:
              rhn-support-ceverson Clark Everson
              Jiří Locker Jiří Locker (Inactive)
              Jiří Locker Jiří Locker (Inactive)
              Cheng Zhang (Inactive), Musharraf Hussain

                Created:
                Updated:
                Resolved:
                Archived: