[jboss-jira] [JBoss JIRA] (DROOLS-4624) Accumulate doesn't get modified and parsed to double String correctly

Mario Fusco (Jira) issues at jboss.org
Mon Dec 16 12:48:11 EST 2019


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

Mario Fusco resolved DROOLS-4624.
---------------------------------
    Resolution: Explained


My understanding is that in your case the 'amount' field is of type String, so yes, it is necessary to convert it to a proper numeric value before being able to sum it up. Is this not what you expected? If I'm not understanding correctly please feel free to reopen this jira and attach a complete reproducer.

> Accumulate doesn't get modified and parsed to double String correctly
> ---------------------------------------------------------------------
>
>                 Key: DROOLS-4624
>                 URL: https://issues.redhat.com/browse/DROOLS-4624
>             Project: Drools
>          Issue Type: Bug
>         Environment: 7.27.0.Final
>            Reporter: Almas Toimbekov
>            Assignee: Mario Fusco
>            Priority: Optional
>              Labels: accumulate, modify
>
> I have to sum one field on all objects of "Resource" class. And I found out that accumulate's behavior is odd when before accumulating I am modifying that field.



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the jboss-jira mailing list