Package weka.knowledgeflow

# Interface StepTaskCallback<T>

Type Parameters:
  `T` - the result return type (gets encapsulated in an ExecutionResult)

public interface StepTaskCallback<T>
Callback that Steps can use when executing StepTasks via EnvironmentManager.submitTask().

Author:
  Mark Hall (mhall{[at]}pentaho{[dot]}com)

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `taskFailed(StepTask<T> failedTask, ExecutionResult<T> failedResult)`
  Gets called if the `StepTask` fails for some reason
  `void`
  `taskFinished(ExecutionResult<T> result)`
  Gets called when the `StepTask` finishes processing

- ## Method Details

  - ### taskFinished

    void taskFinished(ExecutionResult<T> result) throws Exception
    Gets called when the `StepTask` finishes processing
    Parameters:
      `result` - the `ExecutionrRsult` produced by the task
    Throws:
      `Exception` - if a problem occurs

  - ### taskFailed

    void taskFailed(StepTask<T> failedTask, ExecutionResult<T> failedResult) throws Exception
    Gets called if the `StepTask` fails for some reason
    Parameters:
      `failedTask` - the that failed
      `failedResult` - the produced by the failed task (might contain information pertaining to the failure)
    Throws:
      `Exception` - if a problem occurs