From b789ee867d960c80ea3e46b13e981207b9e09a23 Mon Sep 17 00:00:00 2001 From: Marco Antonio Nina Mena Date: Thu, 9 Nov 2017 15:49:37 -0400 Subject: [PATCH] HOR-3985 External Database Connection doesn't work in script task after Synchronous subprocess - save and restore session when process is child process --- workflow/engine/classes/Derivation.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/workflow/engine/classes/Derivation.php b/workflow/engine/classes/Derivation.php index 45e980a42..fb6206fb3 100644 --- a/workflow/engine/classes/Derivation.php +++ b/workflow/engine/classes/Derivation.php @@ -1574,7 +1574,11 @@ class Derivation } $currentDelegation2 = array('APP_UID' => $aSA['APP_PARENT'], 'DEL_INDEX' => $aSA['DEL_INDEX_PARENT'], 'APP_STATUS' => 'TO_DO', 'TAS_UID' => $aParentCase['TAS_UID'], 'ROU_TYPE' => $aDeriveTasks[1]['ROU_TYPE'] ); + $g = new G(); + $g->sessionVarSave(); + $_SESSION['PROCESS'] = $aParentCase['PRO_UID']; $this->derivate($currentDelegation2, $nextDelegations2); + $g->sessionVarRestore(); if ($delIndex > 0) { $flagNotification = false;