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:
@@ -2197,12 +2197,14 @@ class Processes
|
|||||||
public function renewAllProcessVariableUid(&$data)
|
public function renewAllProcessVariableUid(&$data)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$map = array ();
|
if (isset($data->processVariables)) {
|
||||||
foreach ($data->processVariables as $key => $val) {
|
$map = array();
|
||||||
if (isset( $val['VAR_UID'] )) {
|
foreach ($data->processVariables as $key => $val) {
|
||||||
$newGuid = $this->getUnusedProcessVariableGUID();
|
if (isset($val['VAR_UID'])) {
|
||||||
$map[$val['VAR_UID']] = $newGuid;
|
$newGuid = $this->getUnusedProcessVariableGUID();
|
||||||
$data->processVariables[$key]['VAR_UID'] = $newGuid;
|
$map[$val['VAR_UID']] = $newGuid;
|
||||||
|
$data->processVariables[$key]['VAR_UID'] = $newGuid;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
17
workflow/engine/src/ProcessMaker/Project/Workflow.php
Normal file → Executable file
17
workflow/engine/src/ProcessMaker/Project/Workflow.php
Normal file → Executable file
@@ -1153,19 +1153,20 @@ class Workflow extends Handler
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Update WEB_ENTRY_EVENT.EVN_UID
|
//Update WEB_ENTRY_EVENT.EVN_UID
|
||||||
foreach ($arrayWorkflowData["webEntryEvent"] as $key => $value) {
|
if (isset($arrayWorkflowData["webEntryEvent"])) {
|
||||||
$webEntryEventEventUid = $arrayWorkflowData["webEntryEvent"][$key]["EVN_UID"];
|
foreach ($arrayWorkflowData["webEntryEvent"] as $key => $value) {
|
||||||
|
$webEntryEventEventUid = $arrayWorkflowData["webEntryEvent"][$key]["EVN_UID"];
|
||||||
|
|
||||||
foreach ($arrayUid as $value2) {
|
foreach ($arrayUid as $value2) {
|
||||||
$arrayItem = $value2;
|
$arrayItem = $value2;
|
||||||
|
|
||||||
if ($arrayItem["old_uid"] == $webEntryEventEventUid) {
|
if ($arrayItem["old_uid"] == $webEntryEventEventUid) {
|
||||||
$arrayWorkflowData["webEntryEvent"][$key]["EVN_UID"] = $arrayItem["new_uid"];
|
$arrayWorkflowData["webEntryEvent"][$key]["EVN_UID"] = $arrayItem["new_uid"];
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//Workflow tables
|
//Workflow tables
|
||||||
$workflowData = (object)($arrayWorkflowData);
|
$workflowData = (object)($arrayWorkflowData);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user