MT-12: I solved the processDefinition

This commit is contained in:
Paula V. Quispe
2016-03-23 16:40:41 -04:00
parent 7ad8e6b1fc
commit 1d4bf258e8
2 changed files with 13 additions and 10 deletions

View File

@@ -67,18 +67,20 @@ class PMXGenerator
foreach ($elementData as $recordData) {
$recordNode = $this->domDocument->createElement("record");
$recordData = array_change_key_case($recordData, CASE_LOWER);
if(is_array($recordData)){
$recordData = array_change_key_case($recordData, CASE_LOWER);
foreach ($recordData as $key => $value) {
if (is_object($value)) {
$value = serialize($value);
foreach ($recordData as $key => $value) {
if (is_object($value)) {
$value = serialize($value);
}
$columnNode = $this->domDocument->createElement($key);
$columnNode->appendChild($this->getTextNode($value));
$recordNode->appendChild($columnNode);
}
$columnNode = $this->domDocument->createElement($key);
$columnNode->appendChild($this->getTextNode($value));
$recordNode->appendChild($columnNode);
}
$elementNode->appendChild($recordNode);
$elementNode->appendChild($recordNode);
}
}
$dataNode->appendChild($elementNode);

View File

@@ -108,11 +108,12 @@ class ProcessDefinitionMigrator implements Importable, Exportable
$oData->timerEvent = $this->processes->getTimerEvents($prj_uid);
$oData->emailEvent = $this->processes->getEmailEvent($prj_uid);
$oData->abeConfiguration = $this->processes->getActionsByEmail($prj_uid);
$oData->processUser = $this->processes->getProcessUser($prj_uid);
$oData->groupwfs = $this->processes->groupwfsMerge($oData->groupwfs, $oData->processUser, "USR_UID");
$oData->process["PRO_TYPE_PROCESS"] = "PUBLIC";
$result = array(
'bpmn-definition' => $bpmnStruct,
'bpmn-definition' => (array)$bpmnStruct,
'workflow-definition' => (array)$oData
);
return $result;