MT-12: I solved the processDefinition
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user