/** * Get Step Rows from a Process * * @param $sProUid array. * @return array $aStep. */ public function getStepRows ($sProUid) { try { $aStep = array (); $oCriteria = new Criteria( 'workflow' ); $oCriteria->add( StepPeer::PRO_UID, $sProUid ); $oDataset = StepPeer::doSelectRS( $oCriteria ); $oDataset->setFetchmode( ResultSet::FETCHMODE_ASSOC ); $oDataset->next(); while ($aRow = $oDataset->getRow()) { $oStep = new Step(); $aStep[] = $oStep->Load( $aRow['STEP_UID'] ); $oDataset->next(); } return $aStep; } catch (Exception $oError) { throw ($oError); } }