PMCORE-1783
This commit is contained in:
@@ -1339,7 +1339,7 @@ class Derivation
|
|||||||
//if there are SubProcess to create
|
//if there are SubProcess to create
|
||||||
if (isset($aSP)) {
|
if (isset($aSP)) {
|
||||||
// Create case in the subprocess
|
// Create case in the subprocess
|
||||||
$this->subProcessCreation($aSP, $appFields, $currentDelegation, $iNewDelIndex, $iAppThreadIndex);
|
$subProcessFields = $this->subProcessCreation($aSP, $appFields, $currentDelegation, $iNewDelIndex, $iAppThreadIndex);
|
||||||
|
|
||||||
// If is ASYNCHRONOUS we will to route the case master
|
// If is ASYNCHRONOUS we will to route the case master
|
||||||
if ($aSP['SP_SYNCHRONOUS'] == 0) {
|
if ($aSP['SP_SYNCHRONOUS'] == 0) {
|
||||||
@@ -1382,9 +1382,9 @@ class Derivation
|
|||||||
if ($openThreads == 0) {
|
if ($openThreads == 0) {
|
||||||
$this->derivate($currentDelegation2, $nextDelegations2);
|
$this->derivate($currentDelegation2, $nextDelegations2);
|
||||||
} else {
|
} else {
|
||||||
$oSubApplication = new SubApplication();
|
$subApplication = new SubApplication();
|
||||||
$aSubApplication['SA_STATUS'] = 'ACTIVE';
|
$subProcessFields['SA_STATUS'] = 'ACTIVE';
|
||||||
$oSubApplication->update($aSubApplication);
|
$subApplication->update($subProcessFields);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1411,7 +1411,7 @@ class Derivation
|
|||||||
* @param int $delIndex
|
* @param int $delIndex
|
||||||
* @param int $threadIndex
|
* @param int $threadIndex
|
||||||
*
|
*
|
||||||
* @return void
|
* @return array
|
||||||
*/
|
*/
|
||||||
protected function subProcessCreation(array $subProcessInfo, array $appFields, array $currentDelegation, $delIndex, $threadIndex)
|
protected function subProcessCreation(array $subProcessInfo, array $appFields, array $currentDelegation, $delIndex, $threadIndex)
|
||||||
{
|
{
|
||||||
@@ -1496,6 +1496,8 @@ class Derivation
|
|||||||
$nextTaskData = $taskNextDel->toArray(BasePeer::TYPE_FIELDNAME);
|
$nextTaskData = $taskNextDel->toArray(BasePeer::TYPE_FIELDNAME);
|
||||||
$nextTaskData['USR_UID'] = $subProcessInfo['USR_UID'];
|
$nextTaskData['USR_UID'] = $subProcessInfo['USR_UID'];
|
||||||
$sendNotifications = $this->notifyAssignedUser($appFields, $nextTaskData, $newCase['INDEX']);
|
$sendNotifications = $this->notifyAssignedUser($appFields, $nextTaskData, $newCase['INDEX']);
|
||||||
|
|
||||||
|
return $attributes;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user