This routine only describes the structre of the method to be used for validation in T24
Last updated: 2023-11-07
This routine only describes the structre of the method to be used for validation in T24
package com.temenos.t24;
import com.temenos.api.TStructure;
import com.temenos.api.TValidationResponse;
import com.temenos.t24.api.complex.eb.templatehook.TransactionContext;
import com.temenos.t24.api.hook.system.RecordLifecycle;
import com.temenos.t24.api.records.customer.CustomerRecord;
/**
* TODO: This routine describes the structure to the hook used for Validation/Input Routine!
* RecordLifeCycle needs to be inherited for Version Level Routines
*
* @author Danish The Techie
*
*/
public class ValidationRoutineStructure extends RecordLifecycle {
@Override
public TValidationResponse validateRecord(String application, String currentRecordId, TStructure currentRecord,
TStructure unauthorisedRecord, TStructure liveRecord, TransactionContext transactionContext) {
//This routine must return a validation response
CustomerRecord cusRec = new CustomerRecord();
return cusRec.getValidationResponse();
}
}