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

line separators in CONDITION column in spreadsheet are escaped

    Details

    • Type: Bug
    • Status: Verified (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 7.1.0.GA, 7.2.0.GA, 7.3.0.GA, 7.4.0.GA
    • Fix Version/s: 7.5.0.GA
    • Component/s: BRE
    • Labels:
    • Target Release:
    • Fix Build:
      CR1
    • Steps to Reproduce:
      Hide

      run attached reproducer by 'mvn clean test'

      Show
      run attached reproducer by 'mvn clean test'
    • QE Test Coverage:
      +

      Description

      If there are several lines in a cell of CONDITION(LHS), line separators are escaped, and results in build failure.

      Output from SpredSheetCompiler:

      rule "multiple lines in action_12"
          when
              $fact:Person(name == "John",\nage >= 20)
          then
        ...
      end
      

      Error when building:

      java.lang.AssertionError: [7,30]: [ERR 101] Line 7:30 no viable alternative at input '\' in rule "multiple lines in action_12"
      [0,0]: Parser returned a null Package
      

      Escaping should be done only for literal String?

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  mfusco Mario Fusco
                  Reporter:
                  hiroko Hiroko Miura
                  Tester:
                  Daniel Rosa
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: