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

Christian Lowe (JIRA) issues at jboss.org
Tue Jun 20 12:53:00 EDT 2017


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

Christian Lowe updated DROOLS-1623:
-----------------------------------
    Description: 
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.

  was:
Introduced in commit ___,

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}




> Inappropriate "Missing Header" DecisionTableParseException
> ----------------------------------------------------------
>
>                 Key: DROOLS-1623
>                 URL: https://issues.jboss.org/browse/DROOLS-1623
>             Project: Drools
>          Issue Type: Bug
>            Reporter: Christian Lowe
>            Assignee: Edson Tirelli
>
> 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