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

GRE DSL: Multiline code blocks break the editor

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • Guided Rule Editor
    • 2017 Week 34-35, 2017 Week 43-44
    • Hide
      • Import attached project, this project contains GuidedRule with DSL
      • Open testRule.rdslr, you can see couple of '>' in the rule.
      • Remove them, save and close rule.
      • Reopen testRule.rdslr, and we can see all the '>' are added back to rule.
      Show
      Import attached project, this project contains GuidedRule with DSL Open testRule.rdslr, you can see couple of '>' in the rule. Remove them, save and close rule. Reopen testRule.rdslr, and we can see all the '>' are added back to rule.
    • NEW
    • NEW

      Rules where the generated DRL has brackets break the editor if DSL is in use.

      When DSL is in use the normal DRL lines are marked "special" with the > character so that the DSL detection can ignore them. Once DSL has been replaced with DRL we remove the > characters.

      The codes merge brackets to the same line before the > characters are removed. This leaves > characters to the end code and they break the parser. The entire rule editor then defaults to showing the raw file data that contains a > character for each line.

              trikkola Toni Rikkola
              trikkola Toni Rikkola
              Jozef Marko Jozef Marko (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: