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@167682 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2018-05-23 08:43:45 +00:00
parent 1fa6e44f05
commit d51d7686fc
1 changed files with 12 additions and 9 deletions

View File

@ -258,16 +258,19 @@ public class AlgorithmGenerator {
}
for (InputOutputVariables selVariable : project.getInputData().getListInputOutputVariables()) {
switch (selVariable.getIoType()) {
case INPUT:
code.add(" inputvariables.add(\"" + selVariable.getName() + "\");");
break;
case OUTPUT:
code.add(" outputvariables.add(\"" + selVariable.getName() + "\");");
break;
default:
break;
if (selVariable != null && selVariable.getDataType() != null
&& selVariable.getDataType().compareTo(DataType.SYSTEM) != 0) {
switch (selVariable.getIoType()) {
case INPUT:
code.add(" inputvariables.add(\"" + selVariable.getName() + "\");");
break;
case OUTPUT:
code.add(" outputvariables.add(\"" + selVariable.getName() + "\");");
break;
default:
break;
}
}
}