HOR-3985 External Database Connection doesn't work in script task after Synchronous subprocess

- save and restore session when process is child process
This commit is contained in:
Marco Antonio Nina Mena
2017-11-09 15:49:37 -04:00
parent 8d93f051cc
commit b789ee867d

View File

@@ -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;