[jboss-jira] [JBoss JIRA] (DROOLS-1279) [GSS] compilation of spreadsheet fails with specific condition

Hiroko Miura (JIRA) issues at jboss.org
Thu Sep 8 21:00:00 EDT 2016


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

Hiroko Miura updated DROOLS-1279:
---------------------------------
    Description: 
Reproducer is attached.with problematic spredsheet named SampleNG.xml.
Compilation of  this fails with the following error.

java.lang.RuntimeException: Error while creating KieBase[Message [id=1, level=ERROR, path=dtables/SampleNG.xls, line=8, column=0
   text=Unable to Analyse Expression checktest == AAA:
[Error: unable to resolve method using strict-mode: com.sample.DecisionTableTest$Message.AAA()]
[Near : {... checktest == AAA ....}]

because  the following DRL is generated.

rule "HelloWorld_12"
	when
		m:Message(checktest in (AAA), status == "Message.HELLO")
  ...

i.e. double quotation of value ("AAA") specified in the cell is removed.
 
If D column does not exist like Sample.xml(also included in reproducer) or rule template of D column is modified  like "status == $param " (see  SampleOK.xml), this does not happen.


  was:
Reproducer is attached.with problematic spredsheet named SampleNG.xml.
Compilation of  this fails with the following error.

java.lang.RuntimeException: Error while creating KieBase[Message [id=1, level=ERROR, path=dtables/SampleNG.xls, line=8, column=0
   text=Unable to Analyse Expression checktest == AAA:
[Error: unable to resolve method using strict-mode: com.sample.DecisionTableTest$Message.AAA()]
[Near : {... checktest == AAA ....}]

because  the following DRL is generated.

rule "HelloWorld_12"
	when
		m:Message(checktest in(AAA), (checktest != "dummy") == "false")
  ...

i.e. double quotation of value ("AAA") specified in the cell is removed.
 
If D column does not exist like Sample.xml(also included in reproducer) or D column is modified like SampleOK.xml, this does not happen.


     Attachment: reproducer.zip


> [GSS] compilation of spreadsheet fails with specific condition
> --------------------------------------------------------------
>
>                 Key: DROOLS-1279
>                 URL: https://issues.jboss.org/browse/DROOLS-1279
>             Project: Drools
>          Issue Type: Bug
>          Components: build, decision tables
>    Affects Versions: 6.4.0.Final
>            Reporter: Hiroko Miura
>            Assignee: Petr Široký
>              Labels: support
>             Fix For: 6.5.0.Final
>
>         Attachments: reproducer.zip
>
>
> Reproducer is attached.with problematic spredsheet named SampleNG.xml.
> Compilation of  this fails with the following error.
> java.lang.RuntimeException: Error while creating KieBase[Message [id=1, level=ERROR, path=dtables/SampleNG.xls, line=8, column=0
>    text=Unable to Analyse Expression checktest == AAA:
> [Error: unable to resolve method using strict-mode: com.sample.DecisionTableTest$Message.AAA()]
> [Near : {... checktest == AAA ....}]
> because  the following DRL is generated.
> rule "HelloWorld_12"
> 	when
> 		m:Message(checktest in (AAA), status == "Message.HELLO")
>   ...
> i.e. double quotation of value ("AAA") specified in the cell is removed.
>  
> If D column does not exist like Sample.xml(also included in reproducer) or rule template of D column is modified  like "status == $param " (see  SampleOK.xml), this does not happen.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)



More information about the jboss-jira mailing list