I am reading Trigger Framework and try to follow the architecture in SFDC Trigger Framework .
I notice there no example on comparing with old data.Is this correct if I just do like this in Object_TriggerHandler
private void setPopulateDivision(){
for (Opportunity opp : (List<Opportunity>)trigger.new) {
if((opp.Division__c=='CRM' || opp.Divisions__c=='HR' && opp.Division__c != Trigger.oldMap.get(opp.Id).Division__c)
//logic
}
}
}
I notice also there no isBefore and isInsert handler.Anyone got example on how doing validation in trigger framework?
null
in that case is a common approach.