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:
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user