[
https://issues.jboss.org/browse/DROOLS-4138?page=com.atlassian.jira.plugi...
]
Carl Mes edited comment on DROOLS-4138 at 6/11/19 10:53 AM:
------------------------------------------------------------
Update: I think I might have found the root cause for why the
"drools.trimCellsInDTable" option is not working for templates. The logic that
implements this property is found in
[
KnowledgeBuilderImpl.java#L405|https://github.com/kiegroup/drools/blob/7....],
however the templates are generated using the logic on
[
KnowledgeBuilderImpl.java#L383|https://github.com/kiegroup/drools/blob/7....]
(loadFromInputStreamWithTemplates), so this property is unreachable when building
templates (drt + xlsx).
was (Author: rhn-gps-cames):
Update: I think I might have found the root cause for why the
"drools.trimCellsInDTable" option is not working for templates. The logic that
implements this property is found in
[
KnowledgeBuilderImpl.java#L405|https://github.com/kiegroup/drools/blob/7....],
however the templates are generated using the logic on
[
KnowledgeBuilderImpl.java#L405|https://github.com/kiegroup/drools/blob/7....]
(loadFromInputStreamWithTemplates), so this property is unreachable when building
templates (drt + xlsx).
Building a KJAR using Decision Table Templates throws NPE
---------------------------------------------------------
Key: DROOLS-4138
URL:
https://issues.jboss.org/browse/DROOLS-4138
Project: Drools
Issue Type: Bug
Components: core engine
Affects Versions: 7.18.0.Final, 7.23.0.Final
Reporter: Carl Mes
Assignee: Mario Fusco
Priority: Major
Attachments: DecisionTableConfigurationImpl.java
Steps to building a new KJar by defining Resource objects and adding then using
KieFileSystem.write(), if a Decision Table Template resource type is added then we get a
null pointer exception when the KieBuilder.buildAll() method is invoked.
Sample code that demonstrates this error can be found here:
https://github.com/carlmes/decision-table-template, specifically the notes in
[
TestDecisionTableBuild.java|https://github.com/carlmes/decision-table-tem...].
Red Hat support case:
https://access.redhat.com/support/cases/#/case/02397413
I have created a proposed fix in
[
DecisionTableConfigurationImpl.java|https://github.com/kiegroup/drools/bl...],
by implementing the missing properties in the fromProperties and toProperties methods.
Please see attached updated file that has been tested to fix the issue locally.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)