Gianpaolo Coro 2014-06-12 17:59:00 +00:00
parent aeaef90e6b
commit b430c468a1
2 changed files with 19 additions and 2 deletions

View File

@ -170,7 +170,24 @@ public class WPSProcess implements Transducerer {
wpsInputs = wpsclient.getCurrentInputs();
wpsOutputs = wpsclient.getCurrentOutputs();
title = wpsclient.getCurrentProcessTitle();
processAbstract = wpsclient.getCurrentProcessAbstract();
String wpsServiceIndication = wpsurl.substring("http://".length());
int idxcolumn = wpsServiceIndication.indexOf(":");
int idxslash = wpsServiceIndication.indexOf("/");
int idx = -1;
if (idxcolumn>0 && idxslash>0)
idx = Math.min(idxslash, idxcolumn);
else if (idxcolumn>0)
idx = idxcolumn;
else if (idxslash>0)
idx = idxslash;
else
idx = Math.min(5, wpsServiceIndication.length());
if (idx>0)
wpsServiceIndication = wpsServiceIndication.substring(0,idx);
processAbstract = wpsServiceIndication+": "+wpsclient.getCurrentProcessAbstract();
AnalysisLogger.getLogger().debug("Process Abstract: "+processAbstract);
processDescription = wpsclient.getProcessDescription();
if ( DynamicWPSTransducerer.isTooMuchTime()){

View File

@ -14,7 +14,7 @@ public class TestWPSProcess {
static String[] algorithms = { "com.terradue.wps_hadoop.processes.examples.async.Async", "com.terradue.wps_hadoop.processes.ird.kernel_density.KernelDensity", "com.terradue.wps_hadoop.processes.terradue.envi_enrich.EnviEnrich", "com.terradue.wps_hadoop.processes.fao.intersection.Intersection", "com.terradue.wps_hadoop.processes.fao.spread.Spread" };
static String wps = "http://wps01.i-marine.d4science.org/wps/WebProcessingService";
static String wps = "http://wps01.i-marine.d4science.org:80/wps/WebProcessingService";
static AlgorithmConfiguration[] configs = { testAsynch(), testKernelDensity(), testEnvironmentalEnrichment(), testIntersection(), testSpread() };