You just have to copy those events and implement in your eventHandler class. Here is example you can return value through DateEventArgs variable
[DataEventHandler(tableStr(AnyTable), DataEventType::ValidatedWrite)]
public static void InventLocation_onValidatedWrite(Common sender, DataEventArgs e)
{
// convert Common to AnyTable
AnyTable anyTable = sender;
// the DataEventArgs actually are ValidateEventArgs and can be converted
ValidateEventArgs validateEventArgs = e;
// the ValidateEventArgs carry the validation result (so far)
boolean ret = validateEventArgs.parmValidateResult();
// the table has some additional validation logic and gives back the result
ret = anyTable.doSomeAdditionalCustomValidation(ret);
// provide the args with the validation result
validateEventArgs.parmValidateResult(ret);
}