NGimhana commented on a change in pull request #128: URL: https://github.com/apache/oodt/pull/128#discussion_r693691003
########## File path: webapp/wmservices/src/main/java/org/apache/oodt/cas/wmservices/services/WMJaxrsServiceV2.java ########## @@ -78,6 +79,50 @@ public WorkflowManagerStatus getWorkflowManagerStatus() { } } + /** + * returns all registered events + * + * @return events + */ + @GET + @Path("events") + @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML}) + public WorkflowEventListResource getRegisteredEvents() { + try { + WorkflowManagerClient wmclient = getContextClient(); + List events = wmclient.getRegisteredEvents(); + WorkflowEventListResource eventResource = new WorkflowEventListResource(events); + return eventResource; + } catch (WorkflowException e) { Review comment: Lets use multiple-catch in single line here because same body content is repeating. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@oodt.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org