org.bitrepository.service.workflow
Class WorkflowManager

java.lang.Object
  extended by org.bitrepository.service.workflow.WorkflowManager

public abstract class WorkflowManager
extends Object


Nested Class Summary
 class WorkflowManager.WorkflowEventListener
          Stores workflow statistics when a workflow has finished.
 
Field Summary
static int MAX_NUMBER_OF_STATISTISCS_FOR_A_WORKFLOW
           
 
Constructor Summary
WorkflowManager(WorkflowContext context, WorkflowSettings configuration, JobScheduler scheduler)
           
 
Method Summary
 WorkflowStatistic getCurrentStatistics(JobID jobID)
           
protected abstract  String getDefaultWorkflowPackage()
          Allows subclasses to define a workflow package where workflow classes defined with a simplename in the settings will be prefixed with the namespace defined here.
 WorkflowStatistic getLastCompleteStatistics(JobID workflowID)
           
 Date getNextScheduledRun(JobID jobID)
           
 long getRunInterval(JobID jobID)
           
 Workflow getWorkflow(JobID workflowID)
           
 List<JobID> getWorkflows(String collectionID)
           
 String startWorkflow(JobID jobID)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_NUMBER_OF_STATISTISCS_FOR_A_WORKFLOW

public static final int MAX_NUMBER_OF_STATISTISCS_FOR_A_WORKFLOW
See Also:
Constant Field Values
Constructor Detail

WorkflowManager

public WorkflowManager(WorkflowContext context,
                       WorkflowSettings configuration,
                       JobScheduler scheduler)
Method Detail

startWorkflow

public String startWorkflow(JobID jobID)

getWorkflows

public List<JobID> getWorkflows(String collectionID)

getWorkflow

public Workflow getWorkflow(JobID workflowID)

getCurrentStatistics

public WorkflowStatistic getCurrentStatistics(JobID jobID)

getLastCompleteStatistics

public WorkflowStatistic getLastCompleteStatistics(JobID workflowID)

getNextScheduledRun

public Date getNextScheduledRun(JobID jobID)

getRunInterval

public long getRunInterval(JobID jobID)

getDefaultWorkflowPackage

protected abstract String getDefaultWorkflowPackage()
Allows subclasses to define a workflow package where workflow classes defined with a simplename in the settings will be prefixed with the namespace defined here.



Copyright © 2010-2013 The State and University Library, The Royal Library and The State Archives, Denmark. All Rights Reserved.