org.bitrepository.service.workflow
Class Workflow

java.lang.Object
  extended by 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}

Field Summary
protected  JobID jobID
          The jobID
 
Fields inherited from interface org.bitrepository.service.workflow.SchedulableJob
NOT_RUNNING
 
Constructor Summary
Workflow()
           
 
Method Summary
 String currentState()
           
 boolean equals(Object o)
           
protected  void finish()
          For telling that the workflow has finished its task.
 JobID getJobID()
           
 WorkflowStatistic getWorkflowStatistics()
           
 int hashCode()
           
protected  void performStep(WorkflowStep step)
          Initiates the given step and sets it to the current running step.
 void start()
          Start the SchedulableJob.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.bitrepository.service.workflow.SchedulableJob
getDescription, initialise
 

Field Detail

jobID

protected JobID jobID
The jobID

Constructor Detail

Workflow

public Workflow()
Method Detail

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.