Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0-beta-18
-
Fix Version/s: 2.0-beta-19
-
Component/s: None
-
Labels:None
-
Environment:Mac OS X
-
Number of attachments :
Description
The ObjectModifiedEvent provides access to the modified Object's FactHandle via getFactHandle(), but since the Event is triggered after the Object is already modified, you can't use the FactHandle to look up the Object that existed for the FactHandle before the modify took place. (Note: it already has a getObject() method that returns the new Object associated with the FactHandle).
The ObjectModifiedEvent should have a new getOldObject() method that returns the Object associated with the FactHandle before the modify took place.
Likewise, the ObjectRetractedEvent provides access to the retracted Object's FactHandle via getFactHandle(), but since the Event is triggered after the Object is already retracted, you can't use the FactHandle to look up the retracted Object.
The ObjectRetractedEvent should also have a new getOldObject() method that returns the retracted Object.
getOldObject() methods added to ObjectModifiedEvent and ObjectRetractedEvent