Pausing a parallel task in a subprocess causes a serious misbehavior
This commit is contained in:
Dheeyi William
2016-06-07 12:29:08 -04:00
parent 34e1cd1e11
commit a4c3a5cdc7

View File

@@ -1341,15 +1341,21 @@ class Derivation
/* Start Block : Count the open threads of $currentDelegation['APP_UID'] */
$openThreads = $this->case->GetOpenThreads( $currentDelegation['APP_UID'] );
///////
$flag = false;
if ($openThreads == 0) {
//check if there is any paused thread
$existThareadPause = false;
if (isset($arraySiblings['pause'])) {
if (!empty($arraySiblings['pause'])) {
$existThareadPause = true;
}
}
if ($openThreads == 0 && !$existThareadPause) {
//Close case
$appFields["APP_STATUS"] = "COMPLETED";
$appFields["APP_FINISH_DATE"] = "now";
$this->verifyIsCaseChild($currentDelegation["APP_UID"], $currentDelegation["DEL_INDEX"]);
$flag = true;
}