[
https://issues.jboss.org/browse/DROOLS-3972?page=com.atlassian.jira.plugi...
]
Mario Fusco commented on DROOLS-3972:
-------------------------------------
Can you please clarify why do you have a constraints like
{source}
Double.parseDouble(amount) == "20"
{source}
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)