} else {
            $proUid = $_REQUEST['PRO_UID'];
        }
        G::LoadClass('processes');
        $infoProcess = new Processes();
        $resultProcess = $infoProcess->getProcessRow($proUid);
    }

    if(isset($proUid) && $proUid != "") {
        G::LoadClass("processes");

        $infoProcess = new Processes();

        if (!in_array($_REQUEST["action"], array("load"))) {
            $infoProcess->updateProcessRow(array(
                "PRO_UID"         => $proUid,
                "PRO_UPDATE_DATE" => date("Y-m-d H:i:s")
            ));
        }

        $resultProcess = $infoProcess->getProcessRow($proUid);
    }

    //G::LoadClass( 'processMap' );
    $oProcessMap = new processMap(new DBConnection());

    switch ($_REQUEST['action']) {
        case 'load':
            $_SESSION['PROCESS'] = $oData->uid;
            if ($oData->ct) {
                $sOutput = $oProcessMap->load($oData->uid, true, $_SESSION['APPLICATION'], - 1, $_SESSION['TASK'], $oData->ct);
            } else {
    $fields[] = "Hide the case number and the case title in the steps";
}
if (array_key_exists('PRO_SUBPROCESS', $newFields)) {
    $fields[] = "This a sub process";
}
if (array_key_exists('PRO_TRI_DELETED', $newFields)) {
    $fields[] = "Execute a trigger when a case is deleted";
}
if (array_key_exists('PRO_TRI_CANCELED', $newFields)) {
    $fields[] = "Execute a trigger when a case is canceled";
}
if (array_key_exists('PRO_TRI_PAUSED', $newFields)) {
    $fields[] = "Execute a trigger when a case is paused";
}
if (array_key_exists('PRO_TRI_REASSIGNED', $newFields)) {
    $fields[] = "Execute a trigger when a case is reassigned";
}
if (array_key_exists('PRO_TRI_UNPAUSED', $newFields)) {
    $fields[] = "Execute a trigger when a case is unpaused";
}
if (array_key_exists('PRO_TYPE_PROCESS', $newFields)) {
    $fields[] = "Type of process (only owners can edit private processes)";
}
G::auditLog('EditProcess', 'Edit fields (' . implode(', ', $fields) . ') in process "' . $_POST['form']['PRO_TITLE'] . '"');
if (isset($_POST['form']['PRO_UID']) && !empty($_POST['form']['PRO_UID'])) {
    $valuesProcess['PRO_UID'] = $_POST['form']['PRO_UID'];
    $valuesProcess['PRO_UPDATE_DATE'] = date("Y-m-d H:i:s");
    G::LoadClass('processes');
    $infoProcess = new Processes();
    $resultProcess = $infoProcess->updateProcessRow($valuesProcess);
}