BUG 7864 7635 "Parallel Join Routing Rule by evaluation problem" SOLVED

- problem when a condition is evaluated false, so the join never completes solved
This commit is contained in:
Erik Amaru Ortiz
2011-10-24 08:48:59 -04:00
parent ccf5d21531
commit 93d9f365f5
3 changed files with 234 additions and 197 deletions

View File

@@ -1198,17 +1198,22 @@ class Cases {
$oDataset3->next();
$aRow3 = $oDataset3->getRow();
if (is_array($aRow3)) {
//there are closed delegations, so we need to get back without returning delegation rows
} else { //if not we start the recursion searching previous open tasks from this task.
//TODO there are closed delegations, so we need to get back without returning delegation rows
}
else { //if not we start the recursion searching previous open tasks from this task.
if (!in_array($aRow['TAS_UID'],$aPreviousTasks)) {
// storing the current task uid of the task currently checked
$aPreviousTasks[] = $aRow['TAS_UID'];
// passing the array of previous tasks in oprder to avoid an infinite loop that prevents
$openPreviousTask = $this->searchOpenPreviousTasks($aRow['TAS_UID'], $sAppUid, $aPreviousTasks);
if (!in_array($aRow['TAS_UID'],$aPreviousTasks)){
// storing the current task uid of the task currently checked
$aPreviousTasks[] = $aRow['TAS_UID'];
// passing the array of previous tasks in oprder to avoid an infinite loop that prevents
$aTaskReviewed[] = $this->searchOpenPreviousTasks($aRow['TAS_UID'], $sAppUid, $aPreviousTasks);
if (count($previousTasks) > 0) {
array_push($aTaskReviewed, $openPreviousTask);
}
}
}
}
}
//$this->searchOpenPreviousTasks();
$oDataset->next();