/** * Paused Case * * @return \stdclass * @throws RestException * * @param string $app_uid {@min 1}{@max 32} * * @url POST /cases/:app_uid/pause */ public function pauseCase ($app_uid, $request_data) { try { $usr_uid = $this->getUserId(); $oLight = new \ProcessMaker\BusinessModel\Light(); $process = $oLight->pauseCase($usr_uid, $app_uid, $request_data); } catch (\Exception $e) { throw (new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage())); } return $process; }
/** * Paused Case * * @return \stdclass * @throws RestException * * @param string $app_uid {@min 1}{@max 32} * * @url POST /cases/:app_uid/pause */ public function pauseCase($app_uid, $request_data) { try { Validator::throwExceptionIfDataNotMetIso8601Format($request_data, array('unpauseDate')); $usr_uid = $this->getUserId(); $oLight = new \ProcessMaker\BusinessModel\Light(); $process = $oLight->pauseCase($usr_uid, $app_uid, $request_data); } catch (\Exception $e) { throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage()); } return $process; }