if (ComponentConstants.VALUE_SOURCE_OBJECT.equals(p.getValue())) {
migration.addInputPort(new InputPort(p.getName(), 0));
workflow.addDatalink(new Datalink(workflow, SOURCE_PORT_NAME, migration, p.getName()));
} else if (ComponentConstants.VALUE_PARAMETER.equals(p.getValue())) {
migration.addInputPort(new InputPort(p.getName(), 0));
TextConstant c = new TextConstant(p.getName(), parameters.get(p.getName()));
workflow.addProcessor(c);
workflow.addDatalink(new Datalink(c, "value", migration, p.getName()));
}
}