" results = new HashMap<String, Object>();\n" +
" // add results here\n";
}
for (Map.Entry<String, String> entry: taskNode.getOutMappings().entrySet()) {
String type = null;
VariableScope variableScope = (VariableScope) taskNode.resolveContext(VariableScope.VARIABLE_SCOPE, entry.getValue());
if (variableScope != null) {
type = variableScope.findVariable(entry.getValue()).getType().getStringType();
}
testCode +=
" // results.put(\"" + entry.getKey() + "\", value);" + (type == null ? "" : " // type " + type) + "\n";