RestService :: validateTaskParameters: Bitrix method

      
<?php 
//  Bitrix\Bizproc\RestService :: validateTaskParameters()
//  /dist/bitrix/modules/bizproc/lib/restservice.php:1067

    
private static function validateTaskParameters(array $params)
    {
        if (empty(
$params['TASK_ID']))
        {
            throw new 
RestException('empty TASK_ID'self::ERROR_TASK_VALIDATION);
        }
        if (empty(
$params['STATUS']) || \CBPTaskUserStatus::resolveStatus($params['STATUS']) === null)
        {
            throw new 
RestException('incorrect STATUS'self::ERROR_TASK_VALIDATION);
        }
    }