public class TaskProcessor extends WorkflowProcessor
helper, lifecycleManager
Constructor and Description |
---|
TaskProcessor(WorkflowLifecycleManager lifecycleManager,
WorkflowInstance instance) |
Modifier and Type | Method and Description |
---|---|
Class<? extends WorkflowTaskInstance> |
getInstanceClass() |
String |
getJobId() |
List<WorkflowProcessor> |
getRunnableSubProcessors()
This is the core method of the WorkflowProcessor class in the new Wengine
style workflows.
|
List<TaskProcessor> |
getRunnableWorkflowProcessors() |
void |
handleSubProcessorMetadata(WorkflowProcessor workflowProcessor) |
protected boolean |
hasSubProcessors() |
void |
setInstanceClass(Class<? extends WorkflowTaskInstance> instanceClass) |
void |
setJobId(String jobId) |
void |
setSubProcessors(List<WorkflowProcessor> subProcessors) |
void |
setWorkflowInstance(WorkflowInstance instance) |
compareTo, getExcusedSubProcessorIds, getLifecycleManager, getListeners, getMinReqSuccessfulSubProcessors, getPostConditions, getPreConditions, getSubProcessors, getWorkflowInstance, isAnyCategory, isAnyState, isDone, nextState, notifyChange, passedPostConditions, passedPreConditions, setExcusedSubProcessorIds, setLifecycleManager, setListeners, setMinReqSuccessfulSubProcessors, setPostConditions, setPreConditions
public TaskProcessor(WorkflowLifecycleManager lifecycleManager, WorkflowInstance instance)
public Class<? extends WorkflowTaskInstance> getInstanceClass()
public void setJobId(String jobId)
public String getJobId()
public void setInstanceClass(Class<? extends WorkflowTaskInstance> instanceClass)
public void setWorkflowInstance(WorkflowInstance instance)
setWorkflowInstance
in class WorkflowProcessor
instance
- the workflowInstance to setpublic List<TaskProcessor> getRunnableWorkflowProcessors()
getRunnableWorkflowProcessors
in class WorkflowProcessor
protected boolean hasSubProcessors()
public List<WorkflowProcessor> getRunnableSubProcessors()
WorkflowProcessor
Workflow
, these style WorkflowProcessors
actually require their implementing sub-classes to return the current set
of Runnable sub-processors (which could be tasks, conditions, even
Workflow
s themselves.
The Parallel sub-class returns a list of task or condition processors that
are able to run at a given time. The Sequential sub-class returns only a
single task or condition processor to run, and so forth.getRunnableSubProcessors
in class WorkflowProcessor
public void setSubProcessors(List<WorkflowProcessor> subProcessors)
setSubProcessors
in class WorkflowProcessor
subProcessors
- the subProcessors to setpublic void handleSubProcessorMetadata(WorkflowProcessor workflowProcessor)
handleSubProcessorMetadata
in class WorkflowProcessor
Copyright © 1999-2014 Apache OODT. All Rights Reserved.