[jboss-jira] [JBoss JIRA] (DROOLS-3972) Evaluation of facts hasn't been affected by 'modify()' when parsing String to Double

Mario Fusco (Jira) issues at jboss.org
Thu May 16 10:15:01 EDT 2019


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

Mario Fusco edited comment on DROOLS-3972 at 5/16/19 10:14 AM:
---------------------------------------------------------------

Can you please clarify why do you have a constraints like

    Double.parseDouble(amount) == "20"

The method parseDouble returns a primitive double, so why are comparing it with a String?


was (Author: mfusco):
Can you please clarify why do you have a constraints like
{{
Double.parseDouble(amount) == "20"}}

The method parseDouble returns a primitive double, so why are comparing it with a String?

> Evaluation of facts hasn't been affected by 'modify()'  when parsing String to Double
> -------------------------------------------------------------------------------------
>
>                 Key: DROOLS-3972
>                 URL: https://issues.jboss.org/browse/DROOLS-3972
>             Project: Drools
>          Issue Type: Bug
>          Components: executable model
>    Affects Versions: 7.20.0.Final
>         Environment: Ubuntu
>            Reporter: Almas Toimbekov
>            Assignee: Mario Fusco
>            Priority: Major
>              Labels: double, evaluation, execution, parse
>
> When I modify amount in an example below from 5 to 20 (both are Strings) and then try to evaluate this fact parsing it to Double - the third rule doesn't fire. But it fires when use 'update()' instead of 'modify() {}'



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list