HOR-2902
This commit is contained in:
@@ -1068,7 +1068,23 @@ class Derivation
|
||||
switch ($routeType) {
|
||||
case "SEC-JOIN":
|
||||
$arrayOpenThread = ($flagTaskIsMultipleInstance && $flagTaskAssignTypeIsMultipleInstance)? $this->case->searchOpenPreviousTasks($currentDelegation["TAS_UID"], $currentDelegation["APP_UID"]) : array();
|
||||
$arraySiblings = $this->case->getOpenSiblingThreads($nextDel["TAS_UID"], $currentDelegation["APP_UID"], $currentDelegation["DEL_INDEX"], $currentDelegation["TAS_UID"]);
|
||||
|
||||
if ($flagTaskIsMultipleInstance && $flagTaskAssignTypeIsMultipleInstance && $nextDel["ROU_PREVIOUS_TYPE"] == 'SEC-JOIN') {
|
||||
$appDelegation = new AppDelegation();
|
||||
$arraySiblings = $appDelegation->getAllTasksBeforeSecJoin(
|
||||
$nextDel["ROU_PREVIOUS_TASK"],
|
||||
$currentDelegation["APP_UID"],
|
||||
$appFields['DEL_PREVIOUS'],
|
||||
'OPEN'
|
||||
);
|
||||
} else {
|
||||
$arraySiblings = $this->case->getOpenSiblingThreads(
|
||||
$nextDel["TAS_UID"],
|
||||
$currentDelegation["APP_UID"],
|
||||
$currentDelegation["DEL_INDEX"],
|
||||
$currentDelegation["TAS_UID"]
|
||||
);
|
||||
}
|
||||
if(is_array($arrayOpenThread) && is_array($arraySiblings)){
|
||||
$arrayOpenThread = array_merge($arrayOpenThread, $arraySiblings);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user