PM-2633 Admin>Settings>Logs>Audit Log: Al importar un proceso el audit log no indica que lo importa indica que se creo el proceso.

Causa : Llamada al metodo Auditlog en esas situaciones(Importació Eliminacióe procesos).
Solució  Agregar el registro para el Auditlog en situaciones de Importació Eliminación procesos .pm, .pmx y bpmn.
This commit is contained in:
dheeyi
2015-05-19 10:38:06 -04:00
parent 4c87fa26e7
commit 6f73401b2c
5 changed files with 9 additions and 3 deletions

View File

@@ -42,7 +42,6 @@ if ($access != 1) {
//$oProcessMap = new ProcessMap();
$uids = explode(',', $_POST['PRO_UIDS']);
try {
foreach ($uids as $uid) {
//$oProcessMap->deleteProcess($uid);
@@ -53,7 +52,7 @@ try {
$resp = new StdClass();
$resp->status = 0;
$resp->msg = 'All process was deleted successfully';
G::auditLog("DeleteProcess", "Process UID : " . $_POST['PRO_UIDS']);
echo G::json_encode($resp);
} catch (Exception $e) {

View File

@@ -226,6 +226,7 @@ if ($action == "uploadFileNewProcess") {
$result->ExistGroupsInDatabase = ""; //"" -Default
//0 -Dont exist process
//1 -exist process
G::auditLog("ImportProcess", " PM -> Process UID : ");
$optionGroupExistInDatabase = isset( $_REQUEST["optionGroupExistInDatabase"] ) ? $_REQUEST["optionGroupExistInDatabase"] : null;
//!Upload file

View File

@@ -150,7 +150,9 @@ $arrayAction = array(
"AssignUserTask" => G::LoadTranslation("ID_ASSIGN_USER_TASK"),
"AssignGroupTask" => G::LoadTranslation("ID_ASSIGN_GROUP_TASK"),
"DeleteUserTask" => G::LoadTranslation("ID_DELETE_USER_TASK"),
"DeleteGroupTask" => G::LoadTranslation("ID_DELETE_GROUP_TASK")
"DeleteGroupTask" => G::LoadTranslation("ID_DELETE_GROUP_TASK"),
"ImportProcess" => G::LoadTranslation("ID_IMPORT_PROCESS"),
"DeleteProcess" => G::LoadTranslation("ID_DELETE_PROCESS")
);
asort($arrayAction);

View File

@@ -75,6 +75,8 @@ class BpmnWorkflow extends Project\Bpmn
}
$this->wp = new Project\Workflow();
//Add AudiLog Import Process
\G::auditLog("ImportProcess", " PMX -> Process UID : " . $this->getUid());
$this->wp->create($wpData);
} catch (\Exception $e) {

View File

@@ -59,6 +59,8 @@ class WorkflowBpmn extends Project\Workflow
}
$this->bp = new Project\Bpmn();
//Add AudiLog Import Process
\G::auditLog("ImportProcess", " BPMN -> Process UID : " . $this->getUid());
$this->bp->create($bpData);
// At this time we will add a default diagram and process