Package de.uka.ipd.sdq.workflow
Class Workflow
java.lang.Object
de.uka.ipd.sdq.workflow.jobs.AbstractJob
de.uka.ipd.sdq.workflow.jobs.AbstractCompositeJob
de.uka.ipd.sdq.workflow.jobs.SequentialJob
de.uka.ipd.sdq.workflow.Workflow
- All Implemented Interfaces:
ICompositeJob
,IJob
,Iterable<IJob>
,Collection<IJob>
,List<IJob>
- Direct Known Subclasses:
BlackboardBasedWorkflow
Implementation of a workflow. A workflow is a special composite job which
executes all other jobs while displaying the progress in a progress bar to
the user. Additionally, the Workflow has an internal WorkflowExceptionHandler
that handles exception based on the environment (UI available or not). The
given Progress Monitor will receive updates before and after a job is
executed.
-
Field Summary
Fields inherited from class de.uka.ipd.sdq.workflow.jobs.AbstractCompositeJob
myExecutedJobs, myJobs
Fields inherited from class de.uka.ipd.sdq.workflow.jobs.AbstractJob
logger
-
Constructor Summary
ConstructorDescriptionInstantiates a new workflow.Workflow
(IJob job, WorkflowExceptionHandler exceptionHandler) Instantiates a new workflow.Workflow
(IJob job, IProgressMonitor monitor, WorkflowExceptionHandler workflowExceptionHandler) Instantiates a new workflow. -
Method Summary
Methods inherited from class de.uka.ipd.sdq.workflow.jobs.SequentialJob
cleanup, execute, executeWithDelayedCleanUp, executeWithImmediateCleanUp
Methods inherited from class de.uka.ipd.sdq.workflow.jobs.AbstractCompositeJob
add, add, addAll, addAll, addFirst, addJob, addLast, clear, clone, contains, containsAll, descendingIterator, element, equals, get, getFirst, getLast, getName, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeAll, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, retainAll, set, setName, size, subList, toArray, toArray, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface de.uka.ipd.sdq.workflow.jobs.ICompositeJob
addJob
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
-
Field Details
-
exceptionHandler
The exception handler.
-
-
Constructor Details
-
Workflow
Instantiates a new workflow.- Parameters:
job
- the job
-
Workflow
Instantiates a new workflow.- Parameters:
job
- the jobexceptionHandler
- the exception handler
-
Workflow
public Workflow(IJob job, IProgressMonitor monitor, WorkflowExceptionHandler workflowExceptionHandler) Instantiates a new workflow.- Parameters:
job
- the jobmonitor
- the progress monitor to useworkflowExceptionHandler
- the workflow exception handler
-
-
Method Details
-
run
public void run()Run.
-