try {
final ORecord rec = id.getRecord();
if (rec == null)
return RESULT.RECORD_NOT_CHANGED;
RUN_MODE runMode = OScenarioThreadLocal.INSTANCE.get();
boolean recordChanged = false;
for (ORecordHook hook : hooks.keySet()) {
// CHECK IF EXECUTE THE TRIGGER BASED ON STORAGE TYPE: DISTRIBUTED OR NOT
switch (runMode) {