[rules-users] @propertyReactive not work when condition are coded in java

wtang wtang at kana.com
Thu May 22 15:49:54 EDT 2014


I have rule1 and rule2 and rule1 is modifying an object whose property is
checked in the when part of rule2 and rule2 should fire.

The problem is rule2 is not firing.  When I took out the @PropertyReactive
annotation, then rule2 will fire.

After further investigation, I find the cause is because in the when part I
am calling java function to do the comparison as suppose to using native
operators like "==".

Property Reactive seems to be not working when in the WHEN part of the rules
we are calling java function to do the comparison as suppose to using native
operators like ==, <, >, etc.  

Please advice.



--
View this message in context: http://drools.46999.n3.nabble.com/propertyReactive-not-work-when-condition-are-coded-in-java-tp4029657.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list