diff --git a/workflow/engine/classes/Derivation.php b/workflow/engine/classes/Derivation.php index 124a4dd2a..f4a34571f 100644 --- a/workflow/engine/classes/Derivation.php +++ b/workflow/engine/classes/Derivation.php @@ -845,7 +845,8 @@ class Derivation return $arrayDerivationResult; } - /** Route the case + /** + * Route the case * If need to create another thread we can execute the doDerivate * * @param array $currentDelegation @@ -853,7 +854,11 @@ class Derivation * @param bool $removeList * * @return void - * @throws /Exception + * @throws Exception + * + * @see beforeDerivate() + * @see doDerivation() + * @see verifyIsCaseChild() */ function derivate(array $currentDelegation, array $nextDelegations, $removeList = true) { @@ -1049,6 +1054,9 @@ class Derivation break; default: $iNewDelIndex = $this->doDerivation($currentDelegation, $nextDel, $appFields, $aSP); + //Load Case Data again because the information could be change in method "doDerivation" + $verifyApplication = $this->case->loadCase($currentDelegation['APP_UID']); + $appFields['APP_DATA'] = $verifyApplication['APP_DATA']; //When the users route the case in the same time if($iNewDelIndex !== 0){ $arrayDerivationResult[] = [