[Promotion Manager] Import is changing 'custom' process type always to bpmn type
This commit is contained in:
dheeyi william
2017-04-04 14:46:56 -04:00
parent d7a7962609
commit 3892a07e83
3 changed files with 10 additions and 1 deletions

View File

@@ -176,7 +176,7 @@ class Process extends BaseProcess
$this->setProParent( $sNewProUid );
$this->setProTime( 1 );
$this->setProTimeunit( 'DAYS' );
$this->setProStatus( 'ACTIVE' );
$this->setProStatus((isset($aData["PRO_STATUS"])) ? $aData["PRO_STATUS"] : 'ACTIVE');
$this->setProTypeDay( '' );
$this->setProType((isset($aData["PRO_TYPE"]))? $aData["PRO_TYPE"]: "NORMAL");
$this->setProAssignment( 'FALSE' );

View File

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

View File

@@ -90,6 +90,10 @@ class BpmnWorkflow extends Project\Bpmn
$wpData["PRO_ID"] = $data["PRO_ID"];
}
if (array_key_exists("PRO_STATUS", $data)) {
$wpData["PRO_STATUS"] = $data["PRO_STATUS"];
}
$this->wp = new Project\Workflow();
$this->wp->create($wpData);
@@ -1310,6 +1314,10 @@ class BpmnWorkflow extends Project\Bpmn
$data["PRO_ID"] = $projectData["process"]["pro_id"];
}
if (isset($projectData['pro_status'])) {
$data["PRO_STATUS"] = $projectData['pro_status'];
}
$bwp->create($data);
$diagramData = $processData = array();