示例#1
0
             G::auditLog("DerivationRule",'PROCESS NAME : '.$titleProcess.' : '.$oData->pro_uid.' Routing rule : '.$sType.' from -> '.$titleTask.' : '.$oData->tas_uid.' To -> '.$titleNextTask.' : '.$oData->next_task);
             break;
     }
     if (($oData->type != 0) && ($oData->type != 5) && ($oData->type != 8)) {
         if ($oProcessMap->getNumberOfRoutes($oData->pro_uid, $oData->tas_uid, $oData->next_task, $sType) > 0) {
             die();
         }
         unset($aRow);
     }
     if (($oData->delete) || ($oData->type == 0) || ($oData->type == 5) || ($oData->type == 8)) {
         G::LoadClass('tasks');
         $oTasks = new Tasks();
         $oTasks->deleteAllRoutesOfTask($oData->pro_uid, $oData->tas_uid);
         $oTasks->deleteAllGatewayOfTask($oData->pro_uid, $oData->tas_uid);
     }
     $oProcessMap->saveNewPattern($oData->pro_uid, $oData->tas_uid, $oData->next_task, $sType, $oData->delete);
     break;
 case 'deleteAllRoutes':
     G::LoadClass('tasks');
     $oTaskNewPattern = new Task();
     $taskInfo=$oTaskNewPattern->load($oData->tas_uid);
     $titleTask=$taskInfo['TAS_TITLE'];
     G::auditlog("DeleteRoutes",'Delete All Routes From Task -> '.$titleTask.' : '.$oData->tas_uid);
     $oTasks = new Tasks();
     $oTasks->deleteAllRoutesOfTask($oData->pro_uid, $oData->tas_uid);
     break;
 case 'objectPermissions':
     $oProcessMap->objectsPermissionsList($oData->pro_uid);
     break;
 case 'newObjectPermission':
     $oProcessMap->newObjectPermission($oData->pro_uid);