Exemplo n.º 1
0
 public function delete($processUid, $checkCases = 1)
 {
     $response = array();
     try {
         $process = new \ProcessMaker\BusinessModel\Process();
         $result = $process->deleteProcess($processUid, $checkCases && $checkCases == 1 ? true : false);
         //Response
         $response["success"] = true;
         $response["message"] = "Process was deleted successfully";
     } catch (\Exception $e) {
         throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage());
     }
     return $response;
 }