Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-4358

line separators in CONDITION column in spreadsheet are escaped

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • None
    • 7.24.0.Final
    • decision tables

    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?

      Attachments

        Issue Links

          Activity

            People

              mfusco@redhat.com Mario Fusco
              rhn-support-hmiura Hiroko Miura
              Tibor Zimányi Tibor Zimányi
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: