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 15:51:41 -04:00
parent e31956cf23
commit 14566e1de0
4 changed files with 29 additions and 10 deletions

View File

@@ -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();

View File

@@ -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();