public static void getRelatedProcesses(Persistable persistable) throws Exception {
QueryResult queryresult = WfEngineHelper.service.getAssociatedProcesses(persistable, null, ((WTContained) persistable).getContainerReference());
while(queryresult.hasMoreElements()){
WfProcess wfprocess = (WfProcess)queryresult.nextElement(); //
}
}