Пример #1
0
 /**
  * @return \stdclass
  * @throws RestException
  *
  * @param string $app_uid {@min 1}{@max 32}
  * @param string $to_usr_uid {@min 1}{@max 32}
  *
  * @url POST /reassign/:app_uid/user/:to_usr_uid
  */
 public function reassignCase ($app_uid, $to_usr_uid)
 {
     try {
         $usr_uid = $this->getUserId();
         $oLight = new \ProcessMaker\BusinessModel\Light();
         $process = $oLight->reassignCase($usr_uid, $app_uid, $to_usr_uid);
     } catch (\Exception $e) {
         throw (new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage()));
     }
     return $process;
 }