[JBoss JIRA] (DROOLS-4898) Accumulates: min does not work after retracting fact.
by Mario Fusco (Jira)
[ https://issues.redhat.com/browse/DROOLS-4898?page=com.atlassian.jira.plug... ]
Mario Fusco resolved DROOLS-4898.
---------------------------------
Resolution: Done
Fixed by https://github.com/kiegroup/drools/commit/cf80a213c7a678fe2d39058135e28c1...
The same fix for DROOLS-4896 also solved this problem. Consider however that when you modify an object in the working memory you should always notify the engine calling an update.
> Accumulates: min does not work after retracting fact.
> -----------------------------------------------------
>
> Key: DROOLS-4898
> URL: https://issues.redhat.com/browse/DROOLS-4898
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 7.26.0.Final, 7.31.0.Final
> Reporter: Hiroko Miura
> Assignee: Mario Fusco
> Priority: Major
> Labels: support
>
> The following rules does not work with specific facts.
> {noformat}
> rule "rule1_long"
> when
> accumulate( Fact( $longVal: longVal), $minVal : min($longVal))
> accumulate( Fact( $longVal2: longVal, $longVal2 > $minVal), $minVal2 : min($longVal2))
> $minFact: Fact( longVal == $minVal)
> $minFact2: Fact( longVal == $minVal2)
> then
> System.out.println("Rule ["+kcontext.getRule().getName()+ "] fires!");
> Long $diff = (Long)$minVal2 - (Long)$minVal;
> $minFact2.setDiff($diff);
> // update($minFact2);
> String errmsg = $diff == 0? " !!!!! ERROR !!!!!" : "";
> System.out.println( drools.getRule().getName() + " diff:" + $minFact2.getLongVal() + " - " + $minFact.getLongVal() + " = " + $diff + errmsg);
> System.out.println("\tretract <= "+$minFact );
> retract($minFact);
> end
> {noformat}
> There seems to be 2 kind of issues (root cause might be same though).
> - 2nd accumulate return same min value with 1st one.
> - rule fire count is less than expected.
> This does not work with specific set of facts, but works with another set of facts.
> If update is called for the fact like above commented out line, this does not happen.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 3 months
[JBoss JIRA] (DROOLS-4896) Accumulate: min with BigDecimal doesn't work as expected when drools.propertySpecific=ALLOWED
by Mario Fusco (Jira)
[ https://issues.redhat.com/browse/DROOLS-4896?page=com.atlassian.jira.plug... ]
Mario Fusco resolved DROOLS-4896.
---------------------------------
Resolution: Done
Fixed by https://github.com/kiegroup/drools/commit/cf80a213c7a678fe2d39058135e28c1...
> Accumulate: min with BigDecimal doesn't work as expected when drools.propertySpecific=ALLOWED
> ---------------------------------------------------------------------------------------------
>
> Key: DROOLS-4896
> URL: https://issues.redhat.com/browse/DROOLS-4896
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 7.14.0.Final, 7.26.0.Final, 7.31.0.Final
> Reporter: Hiroko Miura
> Assignee: Mario Fusco
> Priority: Major
> Labels: support
> Attachments: bigdecimal-accumulate-test.zip
>
>
> Regarding accumulate, min function with BigDecimal does not work as expected when drools.propertySpecific is "ALLOWED".
> The following rule worked with BRMS6.1.4(6.2.0.Final-redhat-13).
> {noformat}
> rule "rule1_BigDecimal"
> agenda-group "BigDecimal"
> when
> accumulate( Fact( $bdVal: bdVal), $minVal : min($bdVal))
> accumulate( Fact( $bdVal2: bdVal, $bdVal2 > $minVal), $minVal2 : min($bdVal2))
>
> $minFact: Fact( bdVal == new BigDecimal($minVal.intValue()))
> $minFact2: Fact( bdVal == new BigDecimal($minVal2.intValue()))
> then
> ...
> end
> {noformat}
> But after upgrading to RHPAM 7 and setting drools.propertySpecific=ALLOWED, this does not work.
> i.e. rule fires one more time than expected even though there is only one fact at the last iteration.
> This does not happen at least with Long type.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 3 months
[JBoss JIRA] (DROOLS-4607) DMN DT Analysis for symbols
by Matteo Mortari (Jira)
[ https://issues.redhat.com/browse/DROOLS-4607?page=com.atlassian.jira.plug... ]
Matteo Mortari updated DROOLS-4607:
-----------------------------------
Sprint: 2019 Week 41-43 (from Okt 7), 2019 Week 44-46 (from Okt 28), 2019 Week 47-49 (from Nov 18), 2020 Week 04-06 (from Jan 20) (was: 2019 Week 41-43 (from Okt 7), 2019 Week 44-46 (from Okt 28), 2019 Week 47-49 (from Nov 18), 2020 Week 01-03 (from Dec 30))
> DMN DT Analysis for symbols
> ---------------------------
>
> Key: DROOLS-4607
> URL: https://issues.redhat.com/browse/DROOLS-4607
> Project: Drools
> Issue Type: Feature Request
> Components: dmn engine
> Reporter: Matteo Mortari
> Assignee: Matteo Mortari
> Priority: Major
>
> Extend analysis to symbolic processing in the possible cases
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 3 months
[JBoss JIRA] (DROOLS-4606) DMN alpha network
by Matteo Mortari (Jira)
[ https://issues.redhat.com/browse/DROOLS-4606?page=com.atlassian.jira.plug... ]
Matteo Mortari updated DROOLS-4606:
-----------------------------------
Sprint: 2019 Week 41-43 (from Okt 7), 2019 Week 44-46 (from Okt 28), 2019 Week 47-49 (from Nov 18), 2020 Week 04-06 (from Jan 20) (was: 2019 Week 41-43 (from Okt 7), 2019 Week 44-46 (from Okt 28), 2019 Week 47-49 (from Nov 18), 2020 Week 01-03 (from Dec 30))
> DMN alpha network
> -----------------
>
> Key: DROOLS-4606
> URL: https://issues.redhat.com/browse/DROOLS-4606
> Project: Drools
> Issue Type: Task
> Components: dmn engine
> Reporter: Matteo Mortari
> Assignee: Matteo Mortari
> Priority: Major
>
> Start refactoring work to support alpha network
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 3 months
[JBoss JIRA] (DROOLS-1448) [XLS Decision Table] Integer values for Double attributes causes validation error
by Mario Fusco (Jira)
[ https://issues.redhat.com/browse/DROOLS-1448?page=com.atlassian.jira.plug... ]
Mario Fusco updated DROOLS-1448:
--------------------------------
Sprint: 2020 Week 01-03 (from Dec 30)
> [XLS Decision Table] Integer values for Double attributes causes validation error
> ---------------------------------------------------------------------------------
>
> Key: DROOLS-1448
> URL: https://issues.redhat.com/browse/DROOLS-1448
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 7.0.0.Beta6
> Reporter: Jozef Marko
> Assignee: Mario Fusco
> 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.13.8#713008)
4 years, 3 months