Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rptSvcClazz = OpenmrsClassLoader.getInstance().loadClass("org.openmrs.module.reporting.cohort.definition.service.CohortDefinitionService");
- obj = Context.getService(rptSvcClazz);
- method = rptSvcClazz.getMethod("getDefinitionTypes");
- allCohortDefTypes = method.invoke(obj);
- println "Defined cohort definition types: " + allCohortDefTypes​
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement