HOR-2964
[Promotion Manager] Import is changing 'custom' process type always to bpmn type
This commit is contained in:
@@ -176,7 +176,7 @@ class Process extends BaseProcess
|
|||||||
$this->setProParent( $sNewProUid );
|
$this->setProParent( $sNewProUid );
|
||||||
$this->setProTime( 1 );
|
$this->setProTime( 1 );
|
||||||
$this->setProTimeunit( 'DAYS' );
|
$this->setProTimeunit( 'DAYS' );
|
||||||
$this->setProStatus( 'ACTIVE' );
|
$this->setProStatus((isset($aData["PRO_STATUS"])) ? $aData["PRO_STATUS"] : 'ACTIVE');
|
||||||
$this->setProTypeDay( '' );
|
$this->setProTypeDay( '' );
|
||||||
$this->setProType((isset($aData["PRO_TYPE"]))? $aData["PRO_TYPE"]: "NORMAL");
|
$this->setProType((isset($aData["PRO_TYPE"]))? $aData["PRO_TYPE"]: "NORMAL");
|
||||||
$this->setProAssignment( 'FALSE' );
|
$this->setProAssignment( 'FALSE' );
|
||||||
|
|||||||
@@ -312,6 +312,7 @@ class GranularImporter
|
|||||||
$arrayWorkflowFiles = $data["files"]["workflow"];
|
$arrayWorkflowFiles = $data["files"]["workflow"];
|
||||||
$arrayBpmnTablesFormat = $this->structureBpmnData($arrayBpmnTables);
|
$arrayBpmnTablesFormat = $this->structureBpmnData($arrayBpmnTables);
|
||||||
$arrayBpmnTablesFormat['prj_type'] = $arrayWorkflowTables['process']['PRO_TYPE'];
|
$arrayBpmnTablesFormat['prj_type'] = $arrayWorkflowTables['process']['PRO_TYPE'];
|
||||||
|
$arrayBpmnTablesFormat['pro_status'] = $arrayWorkflowTables['process']['PRO_STATUS'];
|
||||||
$result = $this->bpmn->createFromStruct($arrayBpmnTablesFormat, $generateUid);
|
$result = $this->bpmn->createFromStruct($arrayBpmnTablesFormat, $generateUid);
|
||||||
$projectUidOld = $arrayBpmnTables["project"][0]["prj_uid"];
|
$projectUidOld = $arrayBpmnTables["project"][0]["prj_uid"];
|
||||||
$projectUid = ($generateUid) ? $result[0]["new_uid"] : $result;
|
$projectUid = ($generateUid) ? $result[0]["new_uid"] : $result;
|
||||||
|
|||||||
@@ -90,6 +90,10 @@ class BpmnWorkflow extends Project\Bpmn
|
|||||||
$wpData["PRO_ID"] = $data["PRO_ID"];
|
$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 = new Project\Workflow();
|
||||||
$this->wp->create($wpData);
|
$this->wp->create($wpData);
|
||||||
|
|
||||||
@@ -1310,6 +1314,10 @@ class BpmnWorkflow extends Project\Bpmn
|
|||||||
$data["PRO_ID"] = $projectData["process"]["pro_id"];
|
$data["PRO_ID"] = $projectData["process"]["pro_id"];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isset($projectData['pro_status'])) {
|
||||||
|
$data["PRO_STATUS"] = $projectData['pro_status'];
|
||||||
|
}
|
||||||
|
|
||||||
$bwp->create($data);
|
$bwp->create($data);
|
||||||
|
|
||||||
$diagramData = $processData = array();
|
$diagramData = $processData = array();
|
||||||
|
|||||||
Reference in New Issue
Block a user