예제 #1
0
    /**

     * Gets the Output Documents Rows from a Process.

     *

     * @param $sProUid string.

     * @return $aOutput array

     */

    public function getOutputRows ($sProUid)

    {

        try {

            $aOutput = array ();

            $oCriteria = new Criteria( 'workflow' );

            $oCriteria->add( OutputDocumentPeer::PRO_UID, $sProUid );

            $oDataset = OutputDocumentPeer::doSelectRS( $oCriteria );

            $oDataset->setFetchmode( ResultSet::FETCHMODE_ASSOC );

            $oDataset->next();

            while ($aRow = $oDataset->getRow()) {

                $oOutput = new OutputDocument();

                $aOutput[] = $oOutput->Load( $aRow['OUT_DOC_UID'] );

                $oDataset->next();

            }

            return $aOutput;

        } catch (Exception $oError) {

            throw ($oError);

        }

    }