Exemplo n.º 1
0
             $titleProcess=$taskProcess['PRO_TITLE'];
             $oTaskNewPattern = new Task();
             $taskInfo=$oTaskNewPattern->load($oData->tas_uid);
             $titleTask=$taskInfo['TAS_TITLE'];
             if ($oData->next_task != "-1") {
                 $oTaskNextNewPattern = new Task();
                 $taskNextInfo=$oTaskNextNewPattern->load($oData->next_task);
                 $titleNextTask=$taskNextInfo['TAS_TITLE'];
             } else {
                 $titleNextTask=G::LoadTranslation("ID_END_OF_PROCESS");
             }
             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();