public class ReflectiveWorkBuilder.ReflectiveTaskBuilder extends Object implements TaskFactory<ReflectiveWorkBuilder,Indexed,Indexed>, Task<ReflectiveWorkBuilder,Indexed,Indexed>
Task
meta-data.Constructor and Description |
---|
ReflectiveTaskBuilder(Method method)
Initiate.
|
public TaskBuilder<ReflectiveWorkBuilder,Indexed,Indexed> getBuilder()
TaskBuilder
.TaskBuilder
.public void buildTaskContext()
TaskContext
.public void buildParameter()
public void buildObject(String scopeManagedObjectName)
ManagedObject
to the Task
.scopeManagedObjectName
- Scope name of the ManagedObject
.public DependencyMappingBuilder buildObject(String officeManagedObjectName, ManagedObjectScope managedObjectScope)
ManagedObjectScope
bound ManagedObject
.officeManagedObjectName
- Office
name of the ManagedObject
.managedObjectScope
- ManagedObjectScope
for the ManagedObject
.DependencyMappingBuilder
.public void buildFlow(String taskName, FlowInstigationStrategyEnum strategy, Class<?> argumentType)
taskName
- Task name.strategy
- FlowInstigationStrategyEnum
.argumentType
- Type of argument passed to the JobSequence
.public void buildFlow(String workName, String taskName, FlowInstigationStrategyEnum strategy, Class<?> argumentType)
workName
- Work name.taskName
- Task name.strategy
- FlowInstigationStrategyEnum
.argumentType
- Type of argument passed to the JobSequence
.public void setNextTaskInFlow(String taskName)
taskName
- Task name.public void setNextTaskInFlow(String workName, String taskName)
workName
- Work name.taskName
- Task name.public Task<ReflectiveWorkBuilder,Indexed,Indexed> createTask(ReflectiveWorkBuilder work)
TaskFactory
Task
.createTask
in interface TaskFactory<ReflectiveWorkBuilder,Indexed,Indexed>
work
- Work
for the Task
.Task
to be done for the Work
.public Object doTask(TaskContext<ReflectiveWorkBuilder,Indexed,Indexed> context) throws Throwable
Task
doTask
in interface Task<ReflectiveWorkBuilder,Indexed,Indexed>
context
- TaskContext
for the Task
.Task
. This allows stringing
Task
instances together into a JobSequence
.Throwable
- Indicating failure of the Task
.Copyright © 2005–2016. All rights reserved.