/**
* Builds an experiment workflow from the recommended components.
*/
public void buildExperimentWorkflow() {
MyExperimentExecutablePlanGenerator planGenerator = new MyExperimentExecutablePlanGenerator(
selectedAlternative.getName(), user.getFullName());
// Parameters
Map<String, String> parameters = new HashMap<String, String>();
for (Parameter p : selectedAlternative.getAction().getParams()) {
parameters.put(p.getName(), p.getValue());
}
try {
planGenerator.setMigrationAction(actionInfos.get(selectedAlternative), parameters);
planGenerator.addQaComponent(recommendedComponents);
DigitalObject workflow = planGenerator.generateExecutablePlan();
developExperiments.setAlternativeWorkflow(selectedAlternative, workflow);
facesMessages.addInfo("Experiment workflow built.");
} catch (PlanningException e) {
facesMessages.addError("Could not generate workflow from the selected components: " + e.getMessage());
}