/** * @url GET notifications/all * @param array $roleIds */ public function getAllNotifications($roleIds = null) { try { $session = Session::singleton(); $session->activateRoles($roleIds); RuleEngine::getProcessViolationsFromDB($session); return Notifications::getAll(); } catch (Exception $e) { throw new RestException($e->getCode(), $e->getMessage()); } }