tkobayas commented on issue #6243:
URL: 
https://github.com/apache/incubator-kie-drools/issues/6243#issuecomment-2647728161

   Hi @orit1992 , I reproduced the issue and filed 
https://github.com/apache/incubator-kie-drools/issues/6246 an will work on a 
fix.
   
   Btw, as you are migrating from Drools 6.5, I think "Property Reactivity" is 
a caveat.
   
   Property reactivity was introduced since Drools 5.4, but it was not enabled 
by default. However, it’s enabled by default since Drools 7. It means you see 
that rules react differently when you upgrade the version as you see now 
(actually, it's also including the filed bug, though).
   
   If you want the behaviour closer to Drools 6.5, disable the Property 
reactivity feature.
   ```java
   System.setProperty("drools.propertySpecific", "DISABLED");
   ```
   
https://docs.drools.org/7.73.0.Final/drools-docs/html_single/#_property_reactivity_enabled_by_default
   
   The issue you reported will also go away, because it's a bug in Property 
reactivity.
   
   Note that disabling Property reactivity will cause an infinite loop in your 
reproducer, because rule "Set worker name" keeps activating itself. It would 
work the same if you run the reproducer with Drools 6.5. But I think your 
original rules have no problem with disabling Property reactivity, because they 
worked with 6.5 on your side.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to