Uploaded image for project: 'Red Hat Decision Manager'
  1. Red Hat Decision Manager
  2. RHDM-92

Guided Rule Editor doesn't render RDRL with abbreviated combined relation condition correctly

XMLWordPrintable

      • Clone the attached reproducer-repo.zip in business-central
      • Open rule1 and rule2 with Guided Rule Editor

      If a RDRL contains abbreviated combined relation conditions in LHS, Guided Rule Editor doesn't render the RDRL correctly. Note that such RDRLs can be created by BRMS Migration Tool for BRMS 5.x to BRMS 6.4.0.

      For example,

      package org.kie.example.project1;
      
      rule "rule1"
      dialect "mvel"
      when
          org.kie.example.project1.Person(age != 1 &&  < 10 && > 5)
      then
      end
      
      package org.kie.example.project1;
      
      rule "rule2"
      dialect "mvel"
      when
          org.kie.example.project1.Person(age != null && != 1 &&  < 10 && > 5)
      then
      end
      

      So they are valid from DRL syntax point of view.

      When opening these RDRLs in guided rule editor, it renders wrongly even in 'Source' tab. See attached screenshots.

      • rule1.png
      • rule1-source.png
        • "&&" is rendered as "||"
      • rule2.png
      • rule2-source.png
        • Only "age != null" is rendered.

        1. reproducer-repo.zip
          62 kB
        2. rule1.png
          rule1.png
          95 kB
        3. rule1-source.png
          rule1-source.png
          94 kB
        4. rule2.png
          rule2.png
          94 kB
        5. rule2-source.png
          rule2-source.png
          93 kB

            manstis@redhat.com Michael Anstis
            rhn-support-tkobayas Toshiya Kobayashi
            Jozef Marko Jozef Marko
            Jozef Marko Jozef Marko
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: