This commit is contained in:
Ronald Quenta
2017-08-01 12:16:06 -04:00
parent 6cdb07c2c8
commit cc5fcb08bc
116 changed files with 4797 additions and 3202 deletions

View File

@@ -2,6 +2,8 @@
namespace ProcessMaker\BusinessModel;
use \G;
use ProcessMaker\Plugins\Interfaces\StepDetail;
use ProcessMaker\Plugins\PluginRegistry;
use \ProcessMaker\Util;
class Task
@@ -627,14 +629,15 @@ class Task
}
//Call plugin
$pluginRegistry = &\PMPluginRegistry::getSingleton();
$pluginRegistry = PluginRegistry::loadSingleton();
$externalSteps = $pluginRegistry->getSteps();
if (is_array($externalSteps) && count($externalSteps) > 0) {
foreach ($externalSteps as $key => $value) {
/** @var StepDetail $value */
foreach ($externalSteps as $value) {
$arraydbStep[] = array(
$this->getFieldNameByFormatFieldName("OBJ_UID") => $value->sStepId,
$this->getFieldNameByFormatFieldName("OBJ_TITLE") => $value->sStepTitle,
$this->getFieldNameByFormatFieldName("OBJ_UID") => $value->getStepId(),
$this->getFieldNameByFormatFieldName("OBJ_TITLE") => $value->getStepTitle(),
$this->getFieldNameByFormatFieldName("OBJ_DESCRIPTION") => "",
$this->getFieldNameByFormatFieldName("OBJ_TYPE") => "EXTERNAL"
);