Actions by email action processing finished.
This commit is contained in:
@@ -23,25 +23,25 @@
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*/
|
||||
|
||||
define('G_PLUGIN_CLASS', 1);
|
||||
define('PM_CREATE_CASE', 1001);
|
||||
define('PM_UPLOAD_DOCUMENT', 1002);
|
||||
define('PM_CASE_DOCUMENT_LIST', 1003);
|
||||
define('PM_BROWSE_CASE', 1004);
|
||||
define('PM_NEW_PROCESS_LIST', 1005);
|
||||
define('PM_NEW_PROCESS_SAVE', 1006);
|
||||
define('PM_NEW_DYNAFORM_LIST', 1007);
|
||||
define('PM_NEW_DYNAFORM_SAVE', 1008);
|
||||
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);
|
||||
define('PM_SINGLE_SIGN_ON', 1014);
|
||||
define('PM_GET_CASES_AJAX_LISTENER', 1015);
|
||||
define('PM_BEFORE_CREATE_USER', 1016);
|
||||
define('PM_AFTER_LOGIN', 1017);
|
||||
define('PM_HASH_PASSWORD', 1018);
|
||||
//define('G_PLUGIN_CLASS', 1);
|
||||
//define('PM_CREATE_CASE', 1001);
|
||||
//define('PM_UPLOAD_DOCUMENT', 1002);
|
||||
//define('PM_CASE_DOCUMENT_LIST', 1003);
|
||||
//define('PM_BROWSE_CASE', 1004);
|
||||
//define('PM_NEW_PROCESS_LIST', 1005);
|
||||
//define('PM_NEW_PROCESS_SAVE', 1006);
|
||||
//define('PM_NEW_DYNAFORM_LIST', 1007);
|
||||
//define('PM_NEW_DYNAFORM_SAVE', 1008);
|
||||
//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);
|
||||
//define('PM_SINGLE_SIGN_ON', 1014);
|
||||
//define('PM_GET_CASES_AJAX_LISTENER', 1015);
|
||||
//define('PM_BEFORE_CREATE_USER', 1016);
|
||||
//define('PM_AFTER_LOGIN', 1017);
|
||||
//define('PM_HASH_PASSWORD', 1018);
|
||||
|
||||
/**
|
||||
* @package workflow.engine.classes
|
||||
|
||||
@@ -147,31 +147,24 @@ class PMFeatureRegistry
|
||||
public function executeTriggers ($triggerId, $data)
|
||||
{
|
||||
foreach ($this->features as $feature) {
|
||||
$feature->executeTrigger($triggerId, $data);
|
||||
$feature->executeTriggers($triggerId, $data);
|
||||
}
|
||||
}
|
||||
|
||||
public function setupFeatures ()
|
||||
{
|
||||
return true;
|
||||
$featureDirList = glob(PATH_FEATURES . "/*", GLOB_ONLYDIR);
|
||||
$path = PATH_FEATURES;
|
||||
$featureDirList = glob(PATH_FEATURES."/*", GLOB_ONLYDIR);
|
||||
foreach ($featureDirList as $directory) {
|
||||
if ($directory == 'ViewContainers') {
|
||||
if (basename($directory) === 'ViewContainers') {
|
||||
continue;
|
||||
}
|
||||
$featureApiClassList = Util\Common::rglob($directory . DS . 'Services' . DS . 'Api' . "/*");
|
||||
foreach ($featureApiClassList as $classFile) {
|
||||
if (pathinfo($classFile, PATHINFO_EXTENSION) === 'php') {
|
||||
$relClassPath = str_replace('.php', '', str_replace($servicesDir, '', $classFile));
|
||||
$namespace = '\\ProcessMaker\\Services\\Api\\' . basename($classFile, '.php');
|
||||
$namespace = strpos($namespace, "//") === false? $namespace: str_replace("//", '', $namespace);
|
||||
require_once $classFile;
|
||||
$this->rest->addAPIClass($namespace);
|
||||
}
|
||||
}
|
||||
}
|
||||
foreach ($this->features as $feature) {
|
||||
$name = basename($directory);
|
||||
$featureClass = $name.'Feature';
|
||||
require_once $directory.DS.$featureClass.'.php';
|
||||
$feature = new $featureClass($name);
|
||||
$feature->setup();
|
||||
$this->features[$name] = $feature;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user