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

Enumerations drop quotes when double quotes are used

    XMLWordPrintable

Details

    • NEW
    • NEW

    Description

      https://github.com/kiegroup/kie-wb-common/pull/1890

      @Rikkola The issue reported in the JIRA seem to be resolved; however I noticed (given an enumeration defined as Person.name: ['a', '"b, c"', 'd']) that the generated DRL is Person( name == "b, c" ) whereas should it be Person( name == "\"b, c\"" )? Closing and re-opening the decision table keeps the correct values selected in the table. I also tried defining the BRL fragment to use a literal value for the enumeration and this gave the same results (DRL possibly incorrect, but re-opening and editing the column was OK).

      I also checked Guided Rules and the DRL is equally wrong however re-opening the rule also led to the wrong enumeration value being selected in the editor (it selected the first option by default) and the DRL showing the same (i.e. I set it to "b, c" and re-opening the file selected a).

      Attachments

        Activity

          People

            trikkola Toni Rikkola
            trikkola Toni Rikkola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: