org.apache.oodt.cas.workflow.engine
Interface WorkflowProcessorThread

All Superinterfaces:
Runnable
All Known Implementing Classes:
IterativeWorkflowProcessorThread, NonBlockingIterativeWorkflowProcessorThread

public interface WorkflowProcessorThread
extends Runnable

Version:
$Revision$

A Threaded interface for processing a WorkflowInstance. The job of this class is to actually take the WorkflowInstance and execute its jobs. The class should maintain the state of the instance, such as the currentTaskId, and so forth.

Author:
mattmann

Method Summary
 WorkflowInstance getWorkflowInstance()
           
 void pause()
           Pauses exectuion of a WorkflowInstace being handled by this WorkflowProcessorThread.
 void resume()
           Resumes execution of a pause()d WorkflowInstace by this WorkflowProcessorThread.
 void stop()
           Stops once and for all the thread from processing the workflow.
 
Methods inherited from interface java.lang.Runnable
run
 

Method Detail

getWorkflowInstance

WorkflowInstance getWorkflowInstance()
Returns:
The WorkflowInstance that this Thread is processing.

stop

void stop()

Stops once and for all the thread from processing the workflow. This method should not maintain the state of the workflow, it should gracefully shut down the WorkflowProcessorThread and any of its subsequent resources.


resume

void resume()

Resumes execution of a pause()d WorkflowInstace by this WorkflowProcessorThread.


pause

void pause()

Pauses exectuion of a WorkflowInstace being handled by this WorkflowProcessorThread.



Copyright © 1999-2011 Apache OODT. All Rights Reserved.