Exemplo n.º 1
0
 *
 * For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
 * Coral Gables, FL, 33134, USA, or email info@colosa.com.
 */
try {
    G::LoadSystem('inputfilter');
    $filter = new InputFilter();
    $_POST = $filter->xssFilterHard($_POST);
    if (isset($_POST['form']['action'])) {
        $_POST['action'] = $_POST['form']['action'];
    }
    switch ($_POST['action']) {
        case 'availableCaseTrackerObjects':
            G::LoadClass('processMap');
            $oProcessMap = new ProcessMap();
            $oProcessMap->availableCaseTrackerObjects($_POST['PRO_UID']);
            break;
        case 'assignCaseTrackerObject':
            G::LoadClass('processMap');
            $oProcessMap = new ProcessMap();
            $cto_UID = $oProcessMap->assignCaseTrackerObject($_POST['PRO_UID'], $_POST['OBJECT_TYPE'], $_POST['OBJECT_UID']);
            $oProcessMap->getCaseTrackerObjectsCriteria($_POST['PRO_UID']);
            $infoProcess = new Process();
            $resultProcess = $infoProcess->load($_POST['PRO_UID']);
            G::auditLog('CaseTrackers', 'Assign Case Tracker Object (' . $cto_UID . ' - ' . $_POST['OBJECT_TYPE'] . ') in Process "' . $resultProcess['PRO_TITLE'] . '"');
            echo $cto_UID;
            break;
        case 'removeCaseTrackerObject':
            G::LoadClass('processMap');
            $oProcessMap = new ProcessMap();
            $oProcessMap->removeCaseTrackerObject($_POST['CTO_UID'], $_POST['PRO_UID'], $_POST['STEP_POSITION']);