Uploaded image for project: 'Guvnor'
  1. Guvnor
  2. GUVNOR-3260

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

    Details

    • Sprint:
      2017 Week 26-27
    • Steps to Reproduce:
      • Clone the attached reproducer-repo.zip in business-central
      • Open rule1 and rule2 with Guided Rule Editor
    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  manstis Michael Anstis
                  Reporter:
                  manstis Michael Anstis
                  Tester:
                  Jan Hrcek
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: