[rules-users] How to write Drools rule basing on a changed property?

kapokfly ivan.jiang.ww at foxmail.com
Wed Nov 9 03:29:29 EST 2011


Requirement: 

1) 
     Rule 
     When
         Person.address.address1 is changed 
     THEN 

2) Ideally we should have 2 objects, 1 for the old person instance, the
other for the new person instance so contextually the LHS equals to
oldPerson.address.address1 != newPerson.address.address1. 

A properties change listener might not be the best solution as it might span
multiple calls and the property change could be done on the web layer which
is out of the JBoss Drools knowledge session. 

Ivan

--
View this message in context: http://drools.46999.n3.nabble.com/How-to-write-Drools-rule-basing-on-a-changed-property-tp3492926p3492926.html
Sent from the Drools: User forum mailing list archive at Nabble.com.



More information about the rules-users mailing list