HOR-1605-A "In PMFNewCase Add..."

This commit is contained in:
Luis Fernando Saisa Lopez
2016-11-18 15:47:39 -05:00
parent 373c1e8d4b
commit 18412391e1
2 changed files with 10 additions and 3 deletions

View File

@@ -2130,15 +2130,16 @@ function PMFNewCaseImpersonate ($processId, $userId, $variables, $taskId = '')
* @param string(32) | $userId | User ID | The unique ID of the user.
* @param string(32) | $taskId | Task ID | The unique ID of the task.
* @param array | $variables | Array of variables | An associative array of the variables which will be sent to the case.
* @param string(32) | $status=null | Status | Status of the case DRAFT or TO_DO.
* @return string | $idNewCase | Case ID | If an error occured, it returns the integer zero. Otherwise, it returns a string with the case UID of the new case.
*
*/
function PMFNewCase ($processId, $userId, $taskId, $variables)
function PMFNewCase ($processId, $userId, $taskId, $variables, $status = null)
{
G::LoadClass( 'wsBase' );
$ws = new wsBase();
$result = $ws->newCase( $processId, $userId, $taskId, $variables );
$result = $ws->newCase($processId, $userId, $taskId, $variables, 0, $status);
if ($result->status_code == 0) {
return $result->caseId;