[jboss-jira] [JBoss JIRA] (DROOLS-2638) Enumerations drop quotes when double quotes are used
Toni Rikkola (JIRA)
issues at jboss.org
Fri Jun 15 13:45:00 EDT 2018
Toni Rikkola created DROOLS-2638:
------------------------------------
Summary: Enumerations drop quotes when double quotes are used
Key: DROOLS-2638
URL: https://issues.jboss.org/browse/DROOLS-2638
Project: Drools
Issue Type: Bug
Components: Enumerations Editor
Reporter: Toni Rikkola
Assignee: Michael Anstis
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).
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jboss-jira
mailing list