Package com.atlassian.bamboo.task
Interface TaskActionExecutor
-
- All Known Implementing Classes:
TaskActionExecutorImpl
public interface TaskActionExecutor
Executor of task-related actions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TaskResult
executePostTaskActions(@NotNull InternalTaskType task, @Nullable TaskResult taskResult, @NotNull Collection<PrePostTaskActions> taskActions)
Run post-task execution actions.Collection<PrePostTaskActions>
executePreTaskActions(@NotNull InternalTaskType task, @NotNull CommonTaskContext taskContext)
Run pre-task execution actions.
-
-
-
Method Detail
-
executePreTaskActions
Collection<PrePostTaskActions> executePreTaskActions(@NotNull @NotNull InternalTaskType task, @NotNull @NotNull CommonTaskContext taskContext)
Run pre-task execution actions.- Parameters:
task
- a current task which will be executed after these pre-task actionstaskContext
- a current task context- Returns:
- Collection<PrePostTaskActions> a list of actions which have been executed
-
executePostTaskActions
TaskResult executePostTaskActions(@NotNull @NotNull InternalTaskType task, @Nullable @Nullable TaskResult taskResult, @NotNull @NotNull Collection<PrePostTaskActions> taskActions)
Run post-task execution actions.- Parameters:
task
- a current task which was be executed before these post-task actionstaskResult
- a result returned by the task; may benull
in case the task terminated abnormally- Returns:
- TaskResult task result (may be modified by post-task actions)
-
-