From 3707ad75a17f9975d7e3d0cb680fc280499ef715 Mon Sep 17 00:00:00 2001 From: Victor Saisa Lopez Date: Mon, 28 Mar 2016 15:57:24 -0400 Subject: [PATCH] HOR-551 "Improve GetNextDerivationInfo(CaseId, DelIndex) - return..." SOLVED Issue: Improve GetNextDerivationInfo(CaseId, DelIndex) - return Assignment type Cause: Nuevo requerimiento de variable/key Solution: Se agrega la variable/key assignmentType al array retornado por la funcion PMFGetNextDerivationInfo HOR-551 "Improve GetNextDerivationInfo(CaseId, DelIndex) - return..." SOLVED Issue: Improve GetNextDerivationInfo(CaseId, DelIndex) - return Assignment type Cause: Nuevo requerimiento de variable/key Solution: Se agrega la variable/key assignmentType al array retornado por la funcion PMFGetNextDerivationInfo --- workflow/engine/classes/class.pmFunctions.php | 21 +++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/workflow/engine/classes/class.pmFunctions.php b/workflow/engine/classes/class.pmFunctions.php index 0f412cb04..2a4a31eb2 100755 --- a/workflow/engine/classes/class.pmFunctions.php +++ b/workflow/engine/classes/class.pmFunctions.php @@ -3306,13 +3306,22 @@ function PMFGetNextDerivationInfo($caseUid, $delIndex) break; } } - } - $arrayNextDerivationInfo[] = [ - 'taskUid' => $nextTaskUid, - 'users' => $arrayUserUid, - 'groups' => $arrayGroupUid, - ]; + $assignmentType = $arrayInfo['NEXT_TASK']['TAS_ASSIGN_TYPE']; + + if ($arrayInfo['NEXT_TASK']['TAS_ASSIGN_TYPE'] == 'SELF_SERVICE' && + trim($arrayInfo['NEXT_TASK']['TAS_GROUP_VARIABLE']) != '' + ) { + $assignmentType = 'SELF_SERVICE_VALUE'; + } + + $arrayNextDerivationInfo[] = [ + 'taskUid' => $nextTaskUid, + 'assignmentType' => $assignmentType, + 'users' => $arrayUserUid, + 'groups' => $arrayGroupUid, + ]; + } } //Return