PM-3664 (Endpoint) api/1.0/{workflow}/light/start-case devuelve parámetros vacios

This commit is contained in:
Ronald Quenta
2015-09-24 15:48:24 -04:00
parent 9fa3c2d2bf
commit be0cd32d5f

View File

@@ -271,11 +271,23 @@ class Light
{
try {
$oCase = new \Cases();
$oUser = new \Users();
$this->lookinginforContentProcess( $proUid );
$aData = $oCase->startCase( $taskUid, $userId );
$aUserLog = $oUser->loadDetailed($userId);
$_SESSION['APPLICATION'] = $aData['APPLICATION'];
$_SESSION['INDEX'] = $aData['INDEX'];
$_SESSION['PROCESS'] = $aData['PROCESS'];
$_SESSION['TASK'] = $taskUid;
$_SESSION["USER_LOGGED"] = $userId;
$_SESSION["USR_USERNAME"] = $aUserLog['USR_USERNAME'];
$aFields = $oCase->loadCase( $aData['APPLICATION'], $aData['INDEX'] );
$oCase->updateCase( $aData['APPLICATION'], $aFields );
$response = array();
$response['caseId'] = $aData['APPLICATION'];
$response['caseIndex'] = $aData['INDEX'];