Esempio n. 1
0
     $sOutput = $oProcessMap->addTask($oData->uid, $oData->position->x, $oData->position->y);
     $sOutputAux = G::json_decode($sOutput);
     $sOutputAux = (array)$sOutputAux;
     G::auditLog('AddTask','Add new task ('.$sOutputAux['uid'].') in process "'.$resultProcess['PRO_TITLE'].'"');
     break;
 case 'addSubProcess':
     $sOutput = $oProcessMap->addSubProcess($oData->uid, $oData->position->x, $oData->position->y);
     $sOutputAux = G::json_decode($sOutput);
     $sOutputAux = (array)$sOutputAux;
     G::auditLog('AddSubProcess','Add new sub process ('.$sOutputAux['uid'].') in process "'.$resultProcess['PRO_TITLE'].'"');
     break;
 case 'taskColor':
     $oTask->taskColor($oData->pro_uid, $oData->tas_uid);
     break;
 case 'addTaskHidden':
     $sOutput = $oProcessMap->addTaskHidden($oData->uid, $oData->position->x, $oData->position->y);
     break;
 case 'editTaskProperties':
     $oProcessMap->editTaskProperties($oData->uid, (isset($oData->iForm) ? $oData->iForm : 1), $oData->index);
     break;
 case 'saveTaskPosition':
     $sOutput = $oProcessMap->saveTaskPosition($oData->uid, $oData->position->x, $oData->position->y);
     $oTask = new Task();
     $oTask->load($uidAux);
     G::auditLog('SaveTaskPosition','Change task position ('.$oTask->getTasTitle().') in process "'.$resultProcess['PRO_TITLE'].'"');
     break;
 case 'deleteTask':
     $oTaskNewPattern = new Task();
     $taskInfo=$oTaskNewPattern->load($oData->tas_uid);
     $titleTask=$taskInfo['TAS_TITLE'];
     G::auditlog("DeleteTask",'Delete Task -> '.$titleTask.' : '.$oData->tas_uid);