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

Using a fact whose class name is I18N, guided rule does not save rule correctly

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 6.0.2
    • 6.0.1
    • Business Central
    • None
    • ER2
    • Hide
      When a rule order that had an I18N name class as part of the rule was changed in the Guided Rule Editor, the system saved the rule incorrectly, often with unexpected results in the persisted file. This issue was caused by a bug in the underlying class for persisting rule model where it incorrectly saved I18N filenames. This has now been fixed.
      Show
      When a rule order that had an I18N name class as part of the rule was changed in the Guided Rule Editor, the system saved the rule incorrectly, often with unexpected results in the persisted file. This issue was caused by a bug in the underlying class for persisting rule model where it incorrectly saved I18N filenames. This has now been fixed.

    Description

      Description of problem:
      A rule order that has I18N name class is changed in Guided Rule Editor.

      Version-Release number of selected component (if applicable):
      Red Hat JBoss BRMS 6.0.1

      How reproducible:
      Write rules in RHS and reopen the DRL file.

      Steps to Reproduce:
      1. Write rules in RHS using Guided Rule Editor.
      Created Source is:


      1. | package mygroupid.myproject;
      2. |
      3. | import java.lang.Number;
      4. | import sample.帽子;
      5. |
      6. | rule "MyGuidedRule"
      7. | dialect "mvel"
      8. | when
      9. | then
      10. | 帽子 fact0 = new 帽子();
      11. | fact0.setサイズ( "L" );
      12. | insert( fact0 );
      13. | end


      2. Save and close with X button.
      3. Reopen the guided rule file and check source:


      1. | package mygroupid.myproject;
      2. |
      3. | import java.lang.Number;
      4. | import sample.帽子;
      5. |
      6. | rule "MyGuidedRule"
      7. | dialect "mvel"
      8. | when
      9. | then
      10. | fact0.setサイズ( "L" );
      11. | 帽子 fact0 = new 帽子();
      12. | insert( fact0 );
      13. | end


      Actual results:


      1. | package mygroupid.myproject;
      2. |
      3. | import java.lang.Number;
      4. | import sample.帽子;
      5. |
      6. | rule "MyGuidedRule"
      7. | dialect "mvel"
      8. | when
      9. | then
      10. | fact0.setサイズ( "L" );
      11. | 帽子 fact0 = new 帽子();
      12. | insert( fact0 );
      13. | end


      Expected results:


      1. | package mygroupid.myproject;
      2. |
      3. | import java.lang.Number;
      4. | import sample.帽子;
      5. |
      6. | rule "MyGuidedRule"
      7. | dialect "mvel"
      8. | when
      9. | then
      10. | 帽子 fact0 = new 帽子();
      11. | fact0.setサイズ( "L" );
      12. | insert( fact0 );
      13. | end


      Additional info:
      I will attach my sample jar file.

      Attachments

        Activity

          People

            manstis@redhat.com Michael Anstis
            rhn-support-ksuzumur Keishi Suzumura
            Archiver:
            rhn-support-ceverson Clark Everson
            Tomáš Livora Tomáš Livora (Inactive)
            Tomáš Livora Tomáš Livora (Inactive)
            Lukáš Petrovický (Inactive), Vikram Goyal (Inactive)

            Dates

              Created:
              Updated:
              Resolved:
              Archived:

              PagerDuty