/** * GET list process * * @return array * @throws RestException * * @param string $action {@min 1}{@max 32} * @param string $cat_uid {@max 32}{@from path} * * @url GET /process/:action */ public function getProcessList ($action, $cat_uid = null) { try { $usr_uid = $this->getUserId(); $oLight = new \ProcessMaker\BusinessModel\Light(); $process = $oLight->getProcessList($action, $cat_uid, $usr_uid); } catch (\Exception $e) { throw (new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage())); } return $process; }