[Promotion Manager] Import is changing 'custom' process type always to bpmn type
This commit is contained in:
dheeyi william
2017-04-03 15:54:07 -04:00
parent 47b0201bb8
commit b1188bc6a2

View File

@@ -310,7 +310,9 @@ class GranularImporter
$arrayBpmnTables = $data["tables"]["bpmn"];
$arrayWorkflowTables = $data["tables"]["workflow"];
$arrayWorkflowFiles = $data["files"]["workflow"];
$result = $this->bpmn->createFromStruct($this->structureBpmnData($arrayBpmnTables), $generateUid);
$arrayBpmnTablesFormat = $this->structureBpmnData($arrayBpmnTables);
$arrayBpmnTablesFormat['prj_type'] = $arrayWorkflowTables['process']['PRO_TYPE'];
$result = $this->bpmn->createFromStruct($arrayBpmnTablesFormat, $generateUid);
$projectUidOld = $arrayBpmnTables["project"][0]["prj_uid"];
$projectUid = ($generateUid) ? $result[0]["new_uid"] : $result;
if ($generateUid) {