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:
@@ -75,10 +75,14 @@ class BpmnWorkflow extends Project\Bpmn
|
||||
}
|
||||
|
||||
$this->wp = new Project\Workflow();
|
||||
//Add Audit Log
|
||||
\G::auditLog("ImportProcess", " PMX -> Process UID : " . $this->getUid());
|
||||
$this->wp->create($wpData);
|
||||
|
||||
//Add Audit Log
|
||||
$ogetProcess = new \Process();
|
||||
$getprocess=$ogetProcess->load($this->getUid());
|
||||
$nameProcess=$getprocess['PRO_TITLE'];
|
||||
\G::auditLog("ImportProcess", 'PMX File Imported '.$nameProcess. ' ('.$this->getUid().')');
|
||||
|
||||
} catch (\Exception $e) {
|
||||
$prjUid = $this->getUid();
|
||||
//$this->remove();
|
||||
|
||||
@@ -59,13 +59,18 @@ class WorkflowBpmn extends Project\Workflow
|
||||
}
|
||||
|
||||
$this->bp = new Project\Bpmn();
|
||||
//Add Audit Log
|
||||
\G::auditLog("ImportProcess", " BPMN -> Process UID : " . $this->getUid());
|
||||
$this->bp->create($bpData);
|
||||
|
||||
// At this time we will add a default diagram and process
|
||||
$this->bp->addDiagram();
|
||||
$this->bp->addProcess();
|
||||
|
||||
//Add Audit Log
|
||||
$ogetProcess = new \Process();
|
||||
$getprocess=$ogetProcess->load($this->getUid());
|
||||
$nameProcess=$getprocess['PRO_TITLE'];
|
||||
\G::auditLog("ImportProcess", 'BPMN Imported '.$nameProcess. ' ('.$this->getUid().')');
|
||||
|
||||
} catch (\Exception $e) {
|
||||
$prjUid = $this->getUid();
|
||||
$this->remove();
|
||||
|
||||
Reference in New Issue
Block a user