[jboss-jira] [JBoss JIRA] (DROOLS-3611) PropertyReactive with custom operator going in recursion on modify
Mario Fusco (Jira)
issues at jboss.org
Mon Dec 16 13:06:48 EST 2019
[ https://issues.redhat.com/browse/DROOLS-3611?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mario Fusco resolved DROOLS-3611.
---------------------------------
Resolution: Explained
If you call an external function that function could virtually modifying anything on the object, so it's impossible for us to determine which property has been modified and then enable property reactivity on that change.
> PropertyReactive with custom operator going in recursion on modify
> ------------------------------------------------------------------
>
> Key: DROOLS-3611
> URL: https://issues.redhat.com/browse/DROOLS-3611
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 7.17.0.Final
> Reporter: shivani chandna
> Assignee: Mario Fusco
> Priority: Major
>
> We have two rules each modifying separate properties but.
>
> As long as we are using PropertyReactive with builtin operators like contains, matches the updates are restricted. There is no infinite recursion.
> We have created a custom operator that checks the value in the when condition eg: when DClass( collectionSet matchesInSet "value")
> then modify $c( setDataPoint( "s" );
> This usage of custom operator is making rule execution go in infinite loop. Enabling drools trace we see: Fired rule Rule 1 Fired rule Rule 2 Fired rule Rule 1 Fired rule Rule 2..... infinitely.
> As PropertyReactive is working properly with collections (Contains works well - there is no recursion) this looks like some fix is required in rule engine.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
More information about the jboss-jira
mailing list