public class TaskQuerier extends Object implements Runnable
WorkflowProcessorQueue, and then to set
 their state to Executing (running Category), so they will be picked up on the
 next WorkflowState change, and end up executing.| Constructor and Description | 
|---|
| TaskQuerier(WorkflowProcessorQueue processorQueue,
           PrioritySorter prioritizer,
           WorkflowInstanceRepository repo,
           long waitSeconds)Constructs a new TaskQuerier with the given  WorkflowProcessorQueue,
 and with the associatedPrioritySorterwhich acts as a sorter of
 the runnableWorkflowProcessors. | 
| Modifier and Type | Method and Description | 
|---|---|
| TaskProcessor | getNext() | 
| List<WorkflowProcessor> | getRunnableProcessors() | 
| boolean | isRunning() | 
| void | run()Marches through the set of processors that are currently in the Processor
 queue, checks to see if they are NOT in the done state, or if they are
 currently in the holding state. | 
| void | setRunning(boolean running) | 
public TaskQuerier(WorkflowProcessorQueue processorQueue, PrioritySorter prioritizer, WorkflowInstanceRepository repo, long waitSeconds)
WorkflowProcessorQueue,
 and with the associated PrioritySorter which acts as a sorter of
 the runnable WorkflowProcessors.processorQueue - The associated set of queued Workflow Tasks.prioritizer - The prioritizer to use to sort the ready-to-run Workflow Tasks.repo - The WorkflowInstanceRepository to save the state of
          WorkflowInstances.waitSeconds - The default amount of seconds to wait while dispositioning
        processorspublic void run()
prioritizer.public boolean isRunning()
public void setRunning(boolean running)
running - the running to setpublic List<WorkflowProcessor> getRunnableProcessors()
public TaskProcessor getNext()
TaskProcessor from the List of
 runnableProcessors. Removes that TaskProcessor from the
 actual runnableProcessors List.TaskProcessor from the List of
         runnableProcessors.Copyright © 1999–2017 Apache OODT. All rights reserved.