/** * Cancel Case * * @param string $cas_uid {@min 1}{@max 32} * * @copyright Colosa - Bolivia * * @url POST /cases/:app_uid/cancel */ public function doPutCancelCase($app_uid) { $response = array("status" => "false"); try { $userUid = $this->getUserId(); $cases = new \ProcessMaker\BusinessModel\Cases(); $cases->putCancelCase($app_uid, $userUid); $response["status"] = "ok"; } catch (\Exception $e) { throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage()); } return $response; }
/** * Cancel Case * * @param string $cas_uid {@min 1}{@max 32} * * @author Brayan Pereyra (Cochalo) <*****@*****.**> * @copyright Colosa - Bolivia * * @url PUT /:cas_uid/cancel */ public function doPutCancelCase($cas_uid) { try { $userUid = $this->getUserId(); $cases = new \ProcessMaker\BusinessModel\Cases(); $cases->putCancelCase($cas_uid, $userUid); } catch (\Exception $e) { throw (new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage())); } }