[jboss-jira] [JBoss JIRA] (DROOLS-1072) Generate warning or error when Ruletemplate files specified in kmodule.xml does not exist

Mario Fusco (Jira) issues at jboss.org
Thu May 23 12:20:00 EDT 2019


     [ https://issues.jboss.org/browse/DROOLS-1072?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mario Fusco resolved DROOLS-1072.
---------------------------------
    Resolution: Done


Fixed by https://github.com/kiegroup/drools/commit/524fb4cd1dc153ca1decedf186d2ea24df97468f

> Generate warning or error when Ruletemplate files specified in kmodule.xml does not exist
> -----------------------------------------------------------------------------------------
>
>                 Key: DROOLS-1072
>                 URL: https://issues.jboss.org/browse/DROOLS-1072
>             Project: Drools
>          Issue Type: Enhancement
>          Components: decision tables
>    Affects Versions: 6.4.0.Beta2
>            Reporter: Alex Vincent
>            Assignee: Mario Fusco
>            Priority: Major
>
> When you specify a ruletemplate for a given kbase in the kmodule.xml, it does not generate a warning or an error if the template or dtable does not exist.
> For instance the following kmodule.xml:
> <?xml version="1.0" encoding="UTF-8"?>
> <kmodule xmlns="http://jboss.org/kie/6.0.0/kmodule">
>     <kbase name="KBase1" packages="process, rules, decisiontables, ruletemplates">
>     	<ruleTemplate dtable="decisiontables/dt_duplicate_facts.xls"
>                   template="ruletemplates/tpl_duplicate_facts.drt"
>                   row="2" col="2"/>
>         <ruleTemplate dtable="doesnotexist/dt_duplicate_facts.xls"
>                   template="doesnotexist/tpl_duplicate_facts.drt"
>                   row="2" col="2"/>
>         <ksession name="KSession1"/>
>     </kbase>
> </kmodule>
> This does not generate an error or warning even with trace log level. The user should be notified that these files don't exist (doesnotexist/dt_duplicate_facts.xls and doesnotexist/tpl_duplicate_facts.drt).



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


More information about the jboss-jira mailing list