[jboss-jira] [JBoss JIRA] (DROOLS-1623) Inappropriate "Missing Header" DecisionTableParseException

Mario Fusco (JIRA) issues at jboss.org
Wed Jun 21 06:14:00 EDT 2017


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

Mario Fusco updated DROOLS-1623:
--------------------------------
    Component/s: core engine


> Inappropriate "Missing Header" DecisionTableParseException
> ----------------------------------------------------------
>
>                 Key: DROOLS-1623
>                 URL: https://issues.jboss.org/browse/DROOLS-1623
>             Project: Drools
>          Issue Type: Bug
>          Components: core engine
>            Reporter: Christian Lowe
>            Assignee: Mario Fusco
>
> Introduced in [this commit|https://github.com/kiegroup/drools/commit/0bd98541b3177bdc7d0e1f5ff74fc47c5964686a],
> A condition in the "when" section of a drt file, which begins with the word package, such as:
> {code:mvel}
>         $box: Box (
>             packageName == $productPackageName,
>         )
> {code}
> ... will cause an error:
> {code:java}
> org.drools.template.parser.DecisionTableParseException: Missing header
> 	at org.drools.template.parser.DefaultTemplateContainer.parseTemplate(DefaultTemplateContainer.java:127)
>         .......
> {code}
> Previously, the parsing logic would only look for unindented keywords. Now, DefaultTemplateContainer will trim the line, see that it starts with the word "package," and error out.



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list