[jboss-jira] [JBoss JIRA] (DROOLS-1448) [XLS Decision Table] Integer values for Double attributes causes validation error

Michael Anstis (JIRA) issues at jboss.org
Wed Feb 22 14:50:00 EST 2017


    [ https://issues.jboss.org/browse/DROOLS-1448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13367748#comment-13367748 ] 

Michael Anstis commented on DROOLS-1448:
----------------------------------------

The problem has nothing to do with the Workbench; compilation of the attached XLS file fails due to use of an {{int}} literal on a {{double}} field.

"Rule Compilation error The method setBasePrice(Double) in the type Policy is not applicable for the arguments (int)"

> [XLS Decision Table] Integer values for Double attributes causes validation error
> ---------------------------------------------------------------------------------
>
>                 Key: DROOLS-1448
>                 URL: https://issues.jboss.org/browse/DROOLS-1448
>             Project: Drools
>          Issue Type: Bug
>    Affects Versions: 7.0.0.Beta6
>            Reporter: Jozef Marko
>            Assignee: Michael Anstis
>            Priority: Minor
>              Labels: dtable_testday_preparation, qe-test-day, reported-by-qe
>         Attachments: Driver.java, ExamplePolicyPricing.xls, Policy.java, Screenshot from 2017-02-02 10-22-21.png
>
>
> If the XLS decision contains Integer values for column ( attribute ) that is Double data type, then the XLS decision table is not validated successfully. After conversion to guided decision table is the table validated successfully.



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


More information about the jboss-jira mailing list