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() + "\");");