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:
@@ -52,6 +52,7 @@ try {
|
|||||||
$resp = new StdClass();
|
$resp = new StdClass();
|
||||||
$resp->status = 0;
|
$resp->status = 0;
|
||||||
$resp->msg = 'All process was deleted successfully';
|
$resp->msg = 'All process was deleted successfully';
|
||||||
|
//Add Audit Log
|
||||||
G::auditLog("DeleteProcess", "Process UID : " . $_POST['PRO_UIDS']);
|
G::auditLog("DeleteProcess", "Process UID : " . $_POST['PRO_UIDS']);
|
||||||
echo G::json_encode($resp);
|
echo G::json_encode($resp);
|
||||||
|
|
||||||
|
|||||||
@@ -225,8 +225,7 @@ if ($action == "uploadFileNewProcess") {
|
|||||||
//1 -exist process
|
//1 -exist process
|
||||||
$result->ExistGroupsInDatabase = ""; //"" -Default
|
$result->ExistGroupsInDatabase = ""; //"" -Default
|
||||||
//0 -Dont exist process
|
//0 -Dont exist process
|
||||||
//1 -exist process
|
//1 -exist process
|
||||||
G::auditLog("ImportProcess", " PM -> Process UID : ");
|
|
||||||
$optionGroupExistInDatabase = isset( $_REQUEST["optionGroupExistInDatabase"] ) ? $_REQUEST["optionGroupExistInDatabase"] : null;
|
$optionGroupExistInDatabase = isset( $_REQUEST["optionGroupExistInDatabase"] ) ? $_REQUEST["optionGroupExistInDatabase"] : null;
|
||||||
|
|
||||||
//!Upload file
|
//!Upload file
|
||||||
@@ -257,6 +256,9 @@ if ($action == "uploadFileNewProcess") {
|
|||||||
$oData = $oProcess->getProcessData( $path . $filename );
|
$oData = $oProcess->getProcessData( $path . $filename );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Add Audit Log
|
||||||
|
G::auditLog("ImportProcess", " PM -> Process UID : " . $oData->process['PRO_UID']);
|
||||||
|
|
||||||
$importer->throwExceptionIfExistsReservedWordsSql($oData);
|
$importer->throwExceptionIfExistsReservedWordsSql($oData);
|
||||||
|
|
||||||
//!Upload file
|
//!Upload file
|
||||||
@@ -304,6 +306,7 @@ if ($action == "uploadFileNewProcess") {
|
|||||||
//!data ouput
|
//!data ouput
|
||||||
$result->sNewProUid = $sProUid;
|
$result->sNewProUid = $sProUid;
|
||||||
$result->proFileName = $Fields['PRO_FILENAME'];
|
$result->proFileName = $Fields['PRO_FILENAME'];
|
||||||
|
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
$result->response = $e->getMessage();
|
$result->response = $e->getMessage();
|
||||||
$result->catchMessage = $e->getMessage();
|
$result->catchMessage = $e->getMessage();
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ class BpmnWorkflow extends Project\Bpmn
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->wp = new Project\Workflow();
|
$this->wp = new Project\Workflow();
|
||||||
//Add AudiLog Import Process
|
//Add Audit Log
|
||||||
\G::auditLog("ImportProcess", " PMX -> Process UID : " . $this->getUid());
|
\G::auditLog("ImportProcess", " PMX -> Process UID : " . $this->getUid());
|
||||||
$this->wp->create($wpData);
|
$this->wp->create($wpData);
|
||||||
|
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ class WorkflowBpmn extends Project\Workflow
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->bp = new Project\Bpmn();
|
$this->bp = new Project\Bpmn();
|
||||||
//Add AudiLog Import Process
|
//Add Audit Log
|
||||||
\G::auditLog("ImportProcess", " BPMN -> Process UID : " . $this->getUid());
|
\G::auditLog("ImportProcess", " BPMN -> Process UID : " . $this->getUid());
|
||||||
$this->bp->create($bpData);
|
$this->bp->create($bpData);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user