HMessageExchange mex = (HMessageExchange) getSession().get(HMessageExchange.class, new Long(mexid));
return mex == null ? null : new MessageExchangeDaoImpl(_sm, mex);
}
public ProcessDAO createProcess(QName pid, QName type, String guid, long version) {
HProcess process = new HProcess();
process.setProcessId(pid.toString());
process.setTypeName(type.getLocalPart());
process.setTypeNamespace(type.getNamespaceURI());
process.setDeployDate(new Date());
process.setGuid(guid);
process.setVersion(version);
getSession().save(process);
return new ProcessDaoImpl(_sm, process);
}