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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.5.0.GA
    • 7.1.0.GA, 7.2.0.GA, 7.3.0.GA, 7.4.0.GA
    • BRE
    • CR1
    • +
    • Hide

      run attached reproducer by 'mvn clean test'

      Show
      run attached reproducer by 'mvn clean test'

      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?

              mfusco@redhat.com Mario Fusco
              rhn-support-hmiura Hiroko Miura
              Daniel Rosa Daniel Rosa
              Daniel Rosa Daniel Rosa
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: