@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"; } }
@Override public String executeProcess(File zipLocation, RunMetadata metadata) { return executeProcess(zipLocation, metadata.toKeyValueMap()); }