/**

     * Gets Input Documents Rows from aProcess.

     *

     * @param $sProUid string.

     * @return void

     */

    public function getInputRows ($sProUid)

    {

        try {

            $aInput = array ();

            $oCriteria = new Criteria( 'workflow' );

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

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

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

            $oDataset->next();

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

                $oInput = new InputDocument();

                $aInput[] = $oInput->Load( $aRow['INP_DOC_UID'] );

                $oDataset->next();

            }

            return $aInput;

        } catch (Exception $oError) {

            throw ($oError);

        }

    }
    $DYN_UID = $dynaformF['DYN_UID'];
    $PRO_UID = $step['PRO_UID'];
    $html = "\r\n      <table cellspacing='0' cellpadding='0' border='1' style='border:0px;'>\r\n        <tr>\r\n        <td class='treeNode' style='border:0px;background-color:transparent;'><span id='focus{$i}'></td>\r\n        <td class='treeNode' style='border:0px;background-color:transparent;'>&nbsp;&nbsp;{$n}&nbsp;&nbsp;</td>\r\n          <td class='treeNode' style='border:0px;background-color:transparent;'>\r\n\t\t  \t<a href=\"cases_StepToRevise?type=DYNAFORM&ex={$i}&PRO_UID={$PRO_UID}&DYN_UID={$DYN_UID}&APP_UID={$APP_UID}&position=" . $step['STEP_POSITION'] . "&DEL_INDEX={$DEL_INDEX}\">{$TITLE}</a>\r\n\t\t  </td>\r\n        </tr>\r\n      </table>";
    $ch =& $tree->addChild("", $html, array('nodeType' => 'child'));
    $ch->point = '<img src="/images/ftv2mnode.gif" />';
    $i++;
}
$html = "\r\n      <table cellspacing='0' cellpadding='0' border='1' style='border:0px;'>\r\n        <tr>\r\n          <td class='treeNode' style='border:0px;background-color:transparent;'><span id='focus{$i}'></td>\r\n          <td class='treeNode' style='border:0px;background-color:transparent;'>\r\n\t\t  \t<a href=\"cases_StepToReviseInputs?PRO_UID={$PRO_UID}&APP_UID={$APP_UID}&DEL_INDEX={$DEL_INDEX}\">&nbsp;&nbsp;Input Documents</a>\r\n\t\t  </td>\r\n        </tr>\r\n      </table>";
$ch =& $tree->addChild("", $html, array('nodeType' => 'child'));
$ch->point = '</span><img src="/images/plus.gif" />';
$steps = $o->getAllInputsStepsToRevise($_GET['APP_UID']);
//$i=1;
foreach ($steps as $step) {
    require_once 'classes/model/InputDocument.php';
    $od = new InputDocument();
    $IDF = $od->Load($step['STEP_UID_OBJ']);
    $n = $step['STEP_POSITION'];
    $TITLE = " - " . $IDF['INP_DOC_TITLE'];
    $INP_DOC_UID = $IDF['INP_DOC_UID'];
    $PRO_UID = $step['PRO_UID'];
    $html = "\r\n      <table cellspacing='0' cellpadding='0' border='1' style='border:0px;'>\r\n        <tr>\r\n        <td class='treeNode' style='border:0px;background-color:transparent;'><span id='focus{$i}'></td>\r\n        <td class='treeNode' style='border:0px;background-color:transparent;'>&nbsp;&nbsp;{$n}&nbsp;&nbsp;</td>\r\n          <td class='treeNode' style='border:0px;background-color:transparent;'>\r\n\t\t  \t<a href=\"cases_StepToReviseInputs?type=INPUT_DOCUMENT&ex={$i}&PRO_UID={$PRO_UID}&INP_DOC_UID={$INP_DOC_UID}&APP_UID={$APP_UID}&position=" . $step['STEP_POSITION'] . "&DEL_INDEX={$DEL_INDEX}\">{$TITLE}</a>\r\n\t\t  </td>\r\n        </tr>\r\n      </table>";
    $ch =& $tree->addChild("", $html, array('nodeType' => 'child'));
    $ch->point = '<img src="/images/ftv2mnode.gif" />';
    $i++;
}
$i++;
$html = "\r\n      <table cellspacing='0' cellpadding='0' border='1' style='border:0px;'>\r\n        <tr>\r\n          <td class='treeNode' style='border:0px;background-color:transparent;'><span id='focus{$i}'></td>\r\n          <td class='treeNode' style='border:0px;background-color:transparent;'>\r\n\t\t  \t<a href='cases_StepToReviseOutputs?ex={$i}&PRO_UID={$PRO_UID}&DEL_INDEX={$DEL_INDEX}&APP_UID={$APP_UID}'>&nbsp;&nbsp;Output Documents</a>\r\n\t\t  </td>\r\n        </tr>\r\n      </table>";
$ch =& $tree->addChild("", $html, array('nodeType' => 'child'));
$ch->point = '</span><img src="/images/ftv2doc.gif" />';
print $tree->render();
//