sql += " sql*/";
pmi.set_query_expression(sql);
}
WfProcessMgr[] processMgrs = pmi.get_next_n_sequence(0);
Shark shark = Shark.getInstance();
WMSessionHandle sessionHandle = sc.getSessionHandle();
AdminMisc admin = shark.getAdminMisc();
PackageAdministration pa = getSharkPackageAdmin(sessionHandle);
for (int i = 0; i < processMgrs.length; i++) {
WfProcessMgr pm = processMgrs[i];
WMEntity ent = admin.getProcessDefinitionInfoByUniqueProcessDefinitionName(sessionHandle, processMgrs[i].name());