use of uk.ac.bbsrc.tgac.miso.core.data.workflow.impl.ProgressImpl in project miso-lims by miso-lims.
the class DefaultWorkflowManager method beginWorkflow.
@Override
public Workflow beginWorkflow(String workflowNameString) throws IOException {
WorkflowName workflowName = WorkflowName.valueOf(workflowNameString);
Progress progress = new ProgressImpl();
progress.setWorkflowName(workflowName);
save(progress);
return workflowName.createWorkflow(progress);
}
use of uk.ac.bbsrc.tgac.miso.core.data.workflow.impl.ProgressImpl in project miso-lims by miso-lims.
the class HibernateProgressDaoIT method makeProgress.
/**
* Similar to a Progress constructor. However, an ID is not set, as IDs are dynamically generated.
*/
private Progress makeProgress(WorkflowName workflowName, User user, Date creationTime, Date lastModified, List<ProgressStep> steps) {
Progress progress = new ProgressImpl();
progress.setWorkflowName(workflowName);
progress.setUser(user);
progress.setCreationTime(creationTime);
progress.setLastModified(lastModified);
progress.setSteps(steps);
for (ProgressStep step : steps) {
step.setProgress(progress);
}
return progress;
}
Aggregations