Pausing a parallel task in a subprocess causes a serious misbehavior

HOR-1056
Pausing a parallel task in a subprocess causes a serious misbehavior
This commit is contained in:
Dheeyi William
2016-06-07 12:50:45 -04:00
parent 824d3728e2
commit df70b70398

View File

@@ -1344,12 +1344,19 @@ class Derivation
///////
$flag = false;
if ($openThreads == 0) {
//check if there is any paused thread
$existThreadPaused = false;
if (isset($arraySiblings['pause'])) {
if (!empty($arraySiblings['pause'])) {
$existThreadPaused = true;
}
}
if ($openThreads == 0 && !$existThreadPaused) {
//Close case
$appFields["APP_STATUS"] = "COMPLETED";
$appFields["APP_FINISH_DATE"] = "now";
$this->verifyIsCaseChild($currentDelegation["APP_UID"], $currentDelegation["DEL_INDEX"]);
$flag = true;
}