/* TODO: We need to have a method of cleaning up old deployment data. */ private boolean deleteProcessDAO(final QName pid) { try { // Delete it from the database. return _db.exec( new BpelDatabase.Callable<Boolean>() { public Boolean run(BpelDAOConnection conn) throws Exception { ProcessDAO proc = conn.getProcess(pid); if (proc != null) { proc.delete(); return true; } return false; } }); } catch (Exception ex) { String errmsg = "DbError"; __log.error(errmsg, ex); throw new BpelEngineException(errmsg, ex); } }