diff --git a/src/main/java/org/gcube/dataanalysis/geo/wps/interfaces/WPSProcess.java b/src/main/java/org/gcube/dataanalysis/geo/wps/interfaces/WPSProcess.java index da926ad..969eff8 100644 --- a/src/main/java/org/gcube/dataanalysis/geo/wps/interfaces/WPSProcess.java +++ b/src/main/java/org/gcube/dataanalysis/geo/wps/interfaces/WPSProcess.java @@ -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()){ diff --git a/src/main/java/org/gcube/dataanalysis/geo/wps/test/processes/TestWPSProcess.java b/src/main/java/org/gcube/dataanalysis/geo/wps/test/processes/TestWPSProcess.java index e32b125..84f9c01 100644 --- a/src/main/java/org/gcube/dataanalysis/geo/wps/test/processes/TestWPSProcess.java +++ b/src/main/java/org/gcube/dataanalysis/geo/wps/test/processes/TestWPSProcess.java @@ -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() };