From f273a7108593d0e4dbc7369d965e15ce0347b157 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julio=20Cesar=20Laura=20Avenda=C3=B1o?= Date: Thu, 7 Feb 2019 15:43:04 -0400 Subject: [PATCH] PMC-369 --- workflow/engine/classes/Derivation.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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[] = [