[jboss-jira] [JBoss JIRA] (JBRULES-3715) when using BigDecimal Comparing to 0 only works for a certain number of time

Mario Fusco (JIRA) jira-events at lists.jboss.org
Tue Jan 15 06:16:22 EST 2013


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

Mario Fusco resolved JBRULES-3715.
----------------------------------

    Resolution: Done


We decided that the mvel comparison semantic fits better the drools needs, so I made also the jitted constraints to behave accordingly.
                
> when using BigDecimal Comparing to 0 only works for a certain number of time
> ----------------------------------------------------------------------------
>
>                 Key: JBRULES-3715
>                 URL: https://issues.jboss.org/browse/JBRULES-3715
>             Project: JBRULES
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: All
>    Affects Versions: 5.4.0.Final
>         Environment: Jdk1.6; Drools 5.5
>            Reporter: Nicolas Heron
>            Assignee: Mario Fusco
>         Attachments: BugBigDecimalDrools.zip
>
>
> in a rule like this : 
> rule "Hello World"
>   dialect "mvel"
>   no-loop
>     when
>       $c :  Contract( aValue == 0.0B )
>     then
>        $c.setDone("OK");
>        update($c);       
> end
> when called a certain number of times, the comparaison does not work

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list