} else
return null;
}
private String submitForApproval() {
TestbedManager testbedMan = (TestbedManager) JSFUtil.getManagedObject("TestbedManager");
ExperimentBean expBean = (ExperimentBean)JSFUtil.getManagedObject("ExperimentBean");
Experiment exp = expBean.getExperiment();
exp.getExperimentSetup().setState(Experiment.STATE_COMPLETED);
exp.getExperimentApproval().setState(Experiment.STATE_IN_PROGRESS);
testbedMan.updateExperiment(exp);
expBean.setCurrentStage(ExperimentBean.PHASE_EXPERIMENTAPPROVAL);
FacesContext.getCurrentInstance().getExternalContext().getSessionMap().remove("BenchmarkBeans");
// Attempt to approve the experiment, and forward appropriately
if( ! AdminManagerImpl.experimentRequiresApproval(exp) ) {
autoApproveExperiment();