Package eu.scape_project.planning.services.myexperiment

Examples of eu.scape_project.planning.services.myexperiment.MyExperimentExecutablePlanGenerator


    /**
     * 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());
        }
View Full Code Here

TOP

Related Classes of eu.scape_project.planning.services.myexperiment.MyExperimentExecutablePlanGenerator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.