Advertisement
Guest User

Untitled

a guest
Jan 14th, 2013
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 0.34 KB | None | 0 0
  1. rptSvcClazz =  OpenmrsClassLoader.getInstance().loadClass("org.openmrs.module.reporting.cohort.definition.service.CohortDefinitionService");
  2.  obj = Context.getService(rptSvcClazz);
  3.  method = rptSvcClazz.getMethod("getDefinitionTypes");
  4.  allCohortDefTypes = method.invoke(obj);
  5.  println "Defined cohort definition types: " + allCohortDefTypes​
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement