This commit is contained in:
Lucio Lelii 2018-03-02 14:00:30 +00:00
parent e921c05101
commit 902cf96b0a
2 changed files with 7 additions and 2 deletions

View File

@ -9,7 +9,7 @@
</parent>
<groupId>org.gcube.dataanalysis</groupId>
<artifactId>dataminer</artifactId>
<version>1.5.2-SNAPSHOT</version>
<version>1.5.3-SNAPSHOT</version>
<name>dataminer</name>
<description>An e-Infrastructure service providing state-of-the art DataMining algorithms and ecological modelling approaches under the Web Processing Service (WPS) standard.</description>
<scm>

View File

@ -26,6 +26,7 @@ import org.gcube.common.homelibrary.util.WorkspaceUtil;
import org.gcube.contentmanagement.lexicalmatcher.utils.FileTools;
import org.gcube.dataanalysis.ecoengine.configuration.AlgorithmConfiguration;
import org.gcube.dataanalysis.wps.statisticalmanager.synchserver.mapping.AbstractEcologicalEngineMapper;
import org.n52.wps.commons.WPSConfig;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@ -44,6 +45,7 @@ public class DataspaceManager implements Runnable {
List<File> generatedFiles;
public static String computation_id = "computation_id";
public static String hostname = "hostname";
public static String data_id = "data_id";
public static String data_type = "data_type";
public static String operator_name = "operator_name";
@ -427,10 +429,13 @@ public class DataspaceManager implements Runnable {
WorkspaceItem computationsFolderItem = dataminerFolderWS.find(computationsFolder);
// LOGGER.debug("Dataspace->Creating computation item " + computation.id+" with status"+computation.status);
String itemType = "COMPUTATION";
// write a computation item for the computation
LinkedHashMap<String, String> properties = new LinkedHashMap<String, String>();
properties.put(computation_id, computation.id);
properties.put(hostname, WPSConfig.getInstance().getWPSConfig().getServer().getHostname());
properties.put(vre, computation.vre);
properties.put(operator_name, config.getAgent());
properties.put(operator_description, computation.operatorDescription);