I have a TBO that executes during 'doSave'
I would like to get the old value of an attribute and do some conditional logic based on the delta between the old and new values.
Is the code snipet below basically correct or is there another/better way to capture the 'old' data
...
String qualification = "custom_document where r_object_id = '" + this.getString('r_object_id') + "'";
IDfSysobject objClone = (IDfSysObject)getSession().getObjectByQualification(qualification);
newValue = this.getString('attr1');
oldValue = objClone.getString('attr1');
if (newVal != oldval) {
... do something ...
}