Merging changes made by Brayan related to counters

This commit is contained in:
Julio Cesar Laura
2015-03-26 23:57:28 -04:00
parent 6c6e43e458
commit bd3a3c40ba
2 changed files with 19 additions and 10 deletions

View File

@@ -593,6 +593,7 @@ class Derivation
//Count how many tasks should be derivated.
//$countNextTask = count($nextDelegations);
$removeList = true;
foreach ($nextDelegations as $nextDel) {
//BpmnEvent - END-MESSAGE-EVENT - Check and get unique id
if (preg_match("/^(.{32})\/(\-1)$/", $nextDel["TAS_UID"], $arrayMatch)) {
@@ -759,6 +760,7 @@ class Derivation
$aFields['APP_STATUS'] = $currentDelegation['APP_STATUS'];
$inbox = new ListInbox();
$inbox->newRow($aFields, $appFields['CURRENT_USER_UID'], false, array(), ($nextDel['TAS_ASSIGN_TYPE'] == 'SELF_SERVICE' ? true : false));
$removeList = false;
}
} else {
$oRow = ApplicationPeer::retrieveByPK($appFields['APP_UID']);