MT-63, MT-64, MT-65, MT-66

This commit is contained in:
Gustavo Adolfo Cruz Laura
2016-03-29 18:18:09 -04:00
parent 3633b04e5b
commit a761fe05b3
6 changed files with 27 additions and 2 deletions

View File

@@ -2636,6 +2636,28 @@ class Processes
}
}
/**
* Get Step Rows from a Process
*
* @param $sProUid array.
* @return array $aStep.
*/
public function getStepRowsByElement($sProUid, $element)
{
try {
$elementSteps = array();
$steps = $this->getStepRows($sProUid);
foreach ($steps as $step) {
if ($step['STEP_TYPE_OBJ'] === $element) {
$elementSteps[] = $step;
}
}
return $elementSteps;
} catch (Exception $oError) {
throw ($oError);
}
}
/**
* Create Step Rows from a Process
*