Exemplo n.º 1
0
 public function get($processUid)
 {
     $response = array();
     try {
         $process = new \ProcessMaker\BusinessModel\Process();
         $data = $process->loadProcess($processUid);
         //Response
         $response["success"] = true;
         $response["message"] = "Process load successfully";
         $response["data"] = $data;
     } catch (\Exception $e) {
         throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage());
     }
     return $response;
 }