ProcessMaker-BE "BPMN Import, problem to import files pm"

- Se agrego validacion para determinar si el indice existe en la variable "$map"
- Se descomento la linea "createProcessRow", se hizo pruebas y se evidencio
  que solo la importacion con la extension "pm" hace la llamada al metodo,
  la importacion con la extension "pmx" no hacen la llamada al metodo.
  Esta linea es necesaria ya que se requiere que el metodo ejecute esa linea
This commit is contained in:
Victor Saisa Lopez
2014-05-08 14:35:37 -04:00
parent 294af178d4
commit 08c417ad62

View File

@@ -1719,11 +1719,12 @@ class Processes
}
}
if (isset($oData->process["PRO_TRI_DELETED"])) {
$oData->process["PRO_TRI_DELETED"] = $map[$oData->process["PRO_TRI_DELETED"]];
$oData->process["PRO_TRI_CANCELED"] = $map[$oData->process["PRO_TRI_CANCELED"]];
$oData->process["PRO_TRI_PAUSED"] = $map[$oData->process["PRO_TRI_PAUSED"]];
$oData->process["PRO_TRI_REASSIGNED"] = $map[$oData->process["PRO_TRI_REASSIGNED"]];
foreach (array("PRO_TRI_DELETED", "PRO_TRI_CANCELED", "PRO_TRI_PAUSED", "PRO_TRI_REASSIGNED") as $value) {
$key = $value;
if (isset($map[$oData->process[$key]])) {
$oData->process[$key] = $map[$oData->process[$key]];
}
}
}
@@ -3623,7 +3624,8 @@ class Processes
$this->createProcessCategoryRow( isset( $oData->processCategory ) ? $oData->processCategory : null );
// create the process
//$this->createProcessRow( $oData->process );
$this->createProcessRow($oData->process);
$this->createTaskRows( $oData->tasks );
//it was commented becuase it seems to be working fine
//$this->createEventRows(isset($oData->event) ? $oData->event : array());