task = new TaskDef(taskName);
tasks.put(taskName, task);
}
for (Map.Entry<String, String> entry: node.getInMappings().entrySet()) {
if (task.getInputParams().get(entry.getKey()) == null) {
VariableScope variableScope = (VariableScope) node.resolveContext(VariableScope.VARIABLE_SCOPE, entry.getValue());
if (variableScope != null) {
task.getInputParams().put(entry.getKey(), variableScope.findVariable(entry.getValue()).getType().getStringType());
}
}
}
for (Map.Entry<String, String> entry: node.getOutMappings().entrySet()) {
if (task.getOutputParams().get(entry.getKey()) == null) {
VariableScope variableScope = (VariableScope) node.resolveContext(VariableScope.VARIABLE_SCOPE, entry.getValue());
if (variableScope != null && !"outcome".equals(entry.getKey())) {
task.getOutputParams().put(entry.getKey(), variableScope.findVariable(entry.getValue()).getType().getStringType());
}
}
}
}
WorkspaceModifyOperation op = new WorkspaceModifyOperation() {