Search in sources :

Example 1 with ProgressImpl

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);
}
Also used : ProgressImpl(uk.ac.bbsrc.tgac.miso.core.data.workflow.impl.ProgressImpl) Progress(uk.ac.bbsrc.tgac.miso.core.data.workflow.Progress) WorkflowName(uk.ac.bbsrc.tgac.miso.core.data.workflow.Workflow.WorkflowName)

Example 2 with ProgressImpl

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;
}
Also used : ProgressImpl(uk.ac.bbsrc.tgac.miso.core.data.workflow.impl.ProgressImpl) Progress(uk.ac.bbsrc.tgac.miso.core.data.workflow.Progress) SampleProgressStep(uk.ac.bbsrc.tgac.miso.core.data.workflow.impl.SampleProgressStep) ProgressStep(uk.ac.bbsrc.tgac.miso.core.data.workflow.ProgressStep) PoolProgressStep(uk.ac.bbsrc.tgac.miso.core.data.workflow.impl.PoolProgressStep)

Aggregations

Progress (uk.ac.bbsrc.tgac.miso.core.data.workflow.Progress)2 ProgressImpl (uk.ac.bbsrc.tgac.miso.core.data.workflow.impl.ProgressImpl)2 ProgressStep (uk.ac.bbsrc.tgac.miso.core.data.workflow.ProgressStep)1 WorkflowName (uk.ac.bbsrc.tgac.miso.core.data.workflow.Workflow.WorkflowName)1 PoolProgressStep (uk.ac.bbsrc.tgac.miso.core.data.workflow.impl.PoolProgressStep)1 SampleProgressStep (uk.ac.bbsrc.tgac.miso.core.data.workflow.impl.SampleProgressStep)1