@Override public String executeProcess(File zipLocation, Map<String, String> metadata) { if (zipLocation == null || !zipLocation.exists()) { throw new IllegalArgumentException("zipLocation paramater may not be null or does not exist"); } WPSTask task = new WPSTask(zipLocation, metadata); task.start(); if (task.isAlive()) { return "ok"; } else { return "not started"; } }
@Override public String executeProcess(String sosEndpoint, RunMetadata metadata) { if (StringUtils.isBlank(sosEndpoint)) { throw new IllegalArgumentException("sosEndpoint parameter may not be null or blank"); } WPSTask task = new WPSTask(sosEndpoint, metadata.toKeyValueMap()); task.start(); if (task.isAlive()) { return "ok"; } else { return "not started"; } }