|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface WorkManager
Interface to manage a particular Work.
| Method Summary | |
|---|---|
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)
Invokes a new instance of Work which is done within the
Office. |
| Method Detail |
|---|
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
Work which is done within the
Office.
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.
name - Name of the Task.
TaskManager for the named Task.
UnknownTaskException - If unknown Task name.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||