BUG 000 Hook for the trigger PM_CREATE_NEW_DELEGATION

This commit is contained in:
Julio Cesar Laura
2012-01-10 12:22:32 -04:00
parent 7e52c7e410
commit baad71c5d9
2 changed files with 26 additions and 13 deletions

View File

@@ -40,6 +40,7 @@ define('PM_EXTERNAL_STEP', 1009);
define('PM_CASE_DOCUMENT_LIST_ARR', 1010);
define('PM_LOGIN', 1011);
define('PM_UPLOAD_DOCUMENT_BEFORE', 1012);
define('PM_CREATE_NEW_DELEGATION', 1013);
/**
* @package workflow.engine.classes

View File

@@ -134,7 +134,19 @@ class AppDelegation extends BaseAppDelegation {
throw ( new Exception ( 'Failed Data validation. ' . $msg ) );
}
return $this->getDelIndex();
$delIndex = $this->getDelIndex();
// Hook for the trigger PM_CREATE_NEW_DELEGATION
if (defined('PM_CREATE_NEW_DELEGATION')) {
$data = new stdclass();
$data->TAS_UID = $sTasUid;
$data->APP_UID = $sAppUid;
$data->DEL_INDEX = $delIndex;
$oPluginRegistry = &PMPluginRegistry::getSingleton();
$oPluginRegistry->executeTriggers(PM_CREATE_NEW_DELEGATION, $data);
}
return $delIndex;
}
/**