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

Alex Vincent (JIRA) issues at jboss.org
Sat Feb 27 15:42:00 EST 2016


Alex Vincent created DROOLS-1072:
------------------------------------

             Summary: 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


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
(v6.4.11#64026)


More information about the jboss-jira mailing list