org.bitrepository.service.workflow
Class Workflow
java.lang.Object
org.bitrepository.service.workflow.Workflow
- All Implemented Interfaces:
- SchedulableJob
public abstract class Workflow
- extends Object
- implements SchedulableJob
Abstract interface for running a SchedulableJob based on WorkflowSteps.
- See Also:
{@link SchedulableJob}
,
{@link WorkflowStep}
jobID
protected JobID jobID
- The jobID
Workflow
public Workflow()
start
public void start()
- Description copied from interface:
SchedulableJob
- Start the SchedulableJob.
- Specified by:
start
in interface SchedulableJob
performStep
protected void performStep(WorkflowStep step)
- Initiates the given step and sets it to the current running step.
- Parameters:
step
- The step to start.
finish
protected void finish()
- For telling that the workflow has finished its task.
currentState
public String currentState()
- Specified by:
currentState
in interface SchedulableJob
- Returns:
- A human readable text telling the current state of the SchedulableJob.
getWorkflowStatistics
public WorkflowStatistic getWorkflowStatistics()
- Returns:
- The statistics for this workflow.
getJobID
public JobID getJobID()
- Specified by:
getJobID
in interface SchedulableJob
- Returns:
- Provides an ID to identify the SchedulableJob on
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
Copyright © 2010-2013 The State and University Library, The Royal Library and The State Archives, Denmark. All Rights Reserved.