@Override public boolean isMember(ProcessConfDAO o) { return o.getPID().equals(pid); }
public Object call(ConfStoreConnection conn) { DeploymentUnitDAO duDao = conn.getDeploymentUnit(duName); if (duDao == null) { return null; } ProcessConfDAO pConfDao = duDao.getProcess(pid); if (pConfDao == null) { return null; } pConfDao.setProperty(propName, value); return null; } });
TDeployment.Process pinfo = dud.getProcessDeployInfo(p.getType()); if (pinfo == null) { __log.warn("Cannot load " + p.getPID() + "; cannot find descriptor."); continue; ProcessConfImpl pconf = new ProcessConfImpl(p.getPID(), p.getType(), p.getVersion(), dud, pinfo, dudao .getDeployDate(), props, p.getState(), eprContext, _configDir, generateProcessEventsAll); version = p.getVersion();
TDeployment.Process processDD = du.getProcessDeployInfo(pConfDAO.getType()); if (processDD == null) { log.warn("Cannot load " + pConfDAO.getPID() + "; cannot find descriptor."); continue; tenantConfigContext); pConf.setAbsolutePathForBpelArchive(bpelPackage.getAbsolutePath()); pConf.setState(pConfDAO.getState()); processIds.add(pConfDAO.getPID());
public ProcessState call(ConfStoreConnection conn) { DeploymentUnitDAO duDao = conn.getDeploymentUnit(duName); if (duDao == null) { String errMsg = "Deployment unit " + duName + " not found."; log.error(errMsg); throw new ContextException(errMsg); } ProcessConfDAO pConfDao = duDao.getProcess(pid); if (pConfDao == null) { String errMsg = "Process " + pid + " not found in deployment unit " + duName + "."; log.error(errMsg); throw new ContextException(errMsg); } ProcessState old = pConfDao.getState(); pConfDao.setState(processState); return old; } });
try { ProcessConfDAO newDao = dudao.createProcess(pc.getProcessId(), pc.getType(), pc.getVersion()); newDao.setState(pc.getState()); for (Map.Entry<QName, Node> prop : pc.getProcessProperties().entrySet()) { newDao.setProperty(prop.getKey(), DOMUtils.domToString(prop.getValue()));
public ProcessState call(ConfStoreConnection conn) { DeploymentUnitDAO dudao = conn.getDeploymentUnit(dudir.getName()); if (dudao == null) { String errmsg = __msgs.msgProcessNotFound(pid); __log.error(errmsg); throw new ContextException(errmsg); } ProcessConfDAO dao = dudao.getProcess(pid); if (dao == null) { String errmsg = __msgs.msgProcessNotFound(pid); __log.error(errmsg); throw new ContextException(errmsg); } ProcessState old = dao.getState(); dao.setState(state); pconf.setState(state); return old; } });
pConf.getType(), pConf.getVersion()); processConfDao.setState(pConf.getState()); for (Map.Entry<QName, Node> prop : pConf.getProcessProperties().entrySet()) { processConfDao.setProperty(prop.getKey(), DOMUtils.domToString(prop.getValue()));
public Object call(ConfStoreConnection conn) { DeploymentUnitDAO dudao = conn.getDeploymentUnit(dudir.getName()); if (dudao == null) return null; ProcessConfDAO proc = dudao.getProcess(pid); if (proc == null) return null; proc.setProperty(propName, value); return null; } });
@Override public boolean isMember(ProcessConfDAO o) { return o.getPID().equals(pid); }