From c336d5d8d2f09f761e8a5bb0169cea3171a5aab1 Mon Sep 17 00:00:00 2001 From: Giancarlo Panichi Date: Fri, 25 May 2018 13:44:02 +0000 Subject: [PATCH] ref 11819: SW Test org.gcube.portlet-user.data-miner-manager https://support.d4science.org/issues/11819 Fixed to support System parameters on service git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/statistical-algorithms-importer@167757 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../server/generator/AlgorithmGenerator.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/server/generator/AlgorithmGenerator.java b/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/server/generator/AlgorithmGenerator.java index 0916659..ba5ad5e 100644 --- a/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/server/generator/AlgorithmGenerator.java +++ b/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/server/generator/AlgorithmGenerator.java @@ -256,10 +256,15 @@ public class AlgorithmGenerator { } } - + + code.add(""); + + for (GlobalVariables globalVariable : project.getInputData().getListGlobalVariables()) { + code.add(" inputvariables.add(\"" + globalVariable.getName() + "\");"); + } + for (InputOutputVariables selVariable : project.getInputData().getListInputOutputVariables()) { - if (selVariable != null && selVariable.getDataType() != null - && selVariable.getDataType().compareTo(DataType.SYSTEM) != 0) { + if (selVariable != null && selVariable.getDataType() != null) { switch (selVariable.getIoType()) { case INPUT: code.add(" inputvariables.add(\"" + selVariable.getName() + "\");");