TaskActionExecutor¶
-
public class
TaskActionExecutor
¶ Builds action parameters from
TaskContext
and executes the action by invoking its service or raising its event.
Constructors¶
TaskActionExecutor¶
-
public
TaskActionExecutor
(TaskService taskService, TaskActivityService activityService, EventRelay eventRelay)¶
Methods¶
execute¶
-
public void
execute
(Task task, TaskActionInformation actionInformation, TaskContext taskContext)¶ Executes the action for the given task.
Parameters: - task – the task for which its action should be executed, not null
- actionInformation – the information about the action, not null
- taskContext – the context of the current task execution, not null
Throws: - TaskHandlerException – when the task couldn’t be executed
setBundleContext¶
-
void
setBundleContext
(BundleContext bundleContext)¶