[jboss-jira] [JBoss JIRA] (DROOLS-3168) Kmodule ruleTemplate should support csv files

Webster Homer (Jira) issues at jboss.org
Mon Oct 22 10:16:00 EDT 2018


Webster Homer created DROOLS-3168:
-------------------------------------

             Summary: Kmodule ruleTemplate should support csv files
                 Key: DROOLS-3168
                 URL: https://issues.jboss.org/browse/DROOLS-3168
             Project: Drools
          Issue Type: Feature Request
          Components: core engine
            Reporter: Webster Homer
            Assignee: Mario Fusco


<ruleTemplate dtable="rules/business/TermSearchQFRules.csv"
                  template="rules/business/templates/TermSearchQF.drt"
                  row="2" col="1"/>
The kmodule ruleTemplate option should support csv files. However if you specify a csv file, drools will throw an error when it tries to process it:

"An error occurred opening the workbook. It is possible that the encoding of the document did not match the encoding of the reader."

Caused by: org.drools.template.parser.DecisionTableParseException: An error occurred opening the workbook. It is possible that the encoding of the document did not match the encoding of the reader.
	at org.drools.decisiontable.parser.xls.ExcelParser.parseFile(ExcelParser.java:87)

Change the file to an .xlsx file and it works. We want to mange these files in source control and would prefer the csv version as it is ascii.
I know that the KIE code can handle the csv file with a template, that the ruleTemplate cannot is probably a bug




--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list