public interface WorkManager
Work
.Modifier and Type | Method and Description |
---|---|
TaskManager |
getTaskManager(String taskName)
Obtains the
TaskManager for the named Task . |
String[] |
getTaskNames()
Obtains the names of the
TaskManager instances managed by this
WorkManager . |
Class<?> |
getWorkParameterType()
Obtains the parameter type for invoking the
Work . |
ProcessFuture |
invokeWork(Object parameter)
|
Class<?> getWorkParameterType() throws NoInitialTaskException
Work
.Work
. Will be
null
if no parameter to the Work
.NoInitialTaskException
- If Work
does not have an initial Task
.ProcessFuture invokeWork(Object parameter) throws NoInitialTaskException, InvalidParameterTypeException
parameter
- Parameter for the first Task
of the Work
.ProcessFuture
to indicate when the ProcessState
executing the Work
has completed.NoInitialTaskException
- If Work
does not have an initial Task
.InvalidParameterTypeException
- Should the parameter be of incorrect type for the initial
Task
.String[] getTaskNames()
Obtains the names of the TaskManager
instances managed by this
WorkManager
.
This allows to dynamically manage this WorkManager
.
TaskManager
instances managed by this
WorkManager
.TaskManager getTaskManager(String taskName) throws UnknownTaskException
TaskManager
for the named Task
.taskName
- Name of the Task
.TaskManager
for the named Task
.UnknownTaskException
- If unknown Task
name.Copyright © 2005–2016. All rights reserved.