PM-978 "FIX notice new issues(webentry, variables). Complete Extended XML bpmn schema to add running artifacts in file .pmx" SOLVED

This commit is contained in:
Freddy Daniel Rojas Valda
2015-02-03 15:44:38 -04:00
parent f5c3286e73
commit b7fc7ee980
2 changed files with 17 additions and 14 deletions

View File

@@ -2197,14 +2197,16 @@ class Processes
public function renewAllProcessVariableUid(&$data) public function renewAllProcessVariableUid(&$data)
{ {
try { try {
$map = array (); if (isset($data->processVariables)) {
$map = array();
foreach ($data->processVariables as $key => $val) { foreach ($data->processVariables as $key => $val) {
if (isset( $val['VAR_UID'] )) { if (isset($val['VAR_UID'])) {
$newGuid = $this->getUnusedProcessVariableGUID(); $newGuid = $this->getUnusedProcessVariableGUID();
$map[$val['VAR_UID']] = $newGuid; $map[$val['VAR_UID']] = $newGuid;
$data->processVariables[$key]['VAR_UID'] = $newGuid; $data->processVariables[$key]['VAR_UID'] = $newGuid;
} }
} }
}
} catch (Exception $e) { } catch (Exception $e) {
throw $e; throw $e;

3
workflow/engine/src/ProcessMaker/Project/Workflow.php Normal file → Executable file
View File

@@ -1153,6 +1153,7 @@ class Workflow extends Handler
} }
//Update WEB_ENTRY_EVENT.EVN_UID //Update WEB_ENTRY_EVENT.EVN_UID
if (isset($arrayWorkflowData["webEntryEvent"])) {
foreach ($arrayWorkflowData["webEntryEvent"] as $key => $value) { foreach ($arrayWorkflowData["webEntryEvent"] as $key => $value) {
$webEntryEventEventUid = $arrayWorkflowData["webEntryEvent"][$key]["EVN_UID"]; $webEntryEventEventUid = $arrayWorkflowData["webEntryEvent"][$key]["EVN_UID"];
@@ -1165,7 +1166,7 @@ class Workflow extends Handler
} }
} }
} }
}
//Workflow tables //Workflow tables
$workflowData = (object)($arrayWorkflowData); $workflowData = (object)($arrayWorkflowData);