Class TaskQueueExecutionResult
- java.lang.Object
 - 
- de.xima.fc.workflow.processor.model.TaskQueueExecutionResult
 
 
- 
- All Implemented Interfaces:
 ITaskQueueExecutionResult,Serializable
public final class TaskQueueExecutionResult extends Object implements ITaskQueueExecutionResult
POJO implementation of aITaskQueueExecutionResult.- Since:
 - 7.0.0
 - Author:
 - XIMA MEDIA GmbH
 - See Also:
 - Serialized Form
 
 
- 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TaskQueueExecutionResultforException(ITaskExecutionErrorResult errorResult, List<ITaskExecutionResult> individualResults)static ITaskQueueExecutionResultforResult(ITaskExecutionResult finalResult, List<ITaskExecutionResult> individualResults)static TaskQueueExecutionResultforSuccess(ITaskExecutionSuccessResult successResult, List<ITaskExecutionResult> individualResults)List<ITaskExecutionResult>getIndividualResults()ITaskExecutionResultgetMainResult()- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface de.xima.fc.interfaces.workflow.execution.ITaskQueueExecutionResult
isSuccessful 
 - 
 
 - 
 
- 
- 
Method Detail
- 
getMainResult
public ITaskExecutionResult getMainResult()
- Specified by:
 getMainResultin interfaceITaskQueueExecutionResult- Returns:
 - The combined result obtained after each task was executed. This is, for the most part, just the individual result of the task that was run most recently.
 
 
- 
getIndividualResults
public List<ITaskExecutionResult> getIndividualResults()
- Specified by:
 getIndividualResultsin interfaceITaskQueueExecutionResult- Returns:
 - The individual results for each task that was executed. This is a list of snapshots of the result obtained after each task was run. Tasks run prior to another task may affect the individual result of that task.
 
 
- 
forException
public static TaskQueueExecutionResult forException(ITaskExecutionErrorResult errorResult, List<ITaskExecutionResult> individualResults)
- Parameters:
 errorResult- Exception of the failed tasks that caused the queue to end in an error.individualResults- List with all individual results for each task queue item.- Returns:
 - A new POJO with the error result as the main result and the given individual results.
 
 
- 
forSuccess
public static TaskQueueExecutionResult forSuccess(ITaskExecutionSuccessResult successResult, List<ITaskExecutionResult> individualResults)
- Parameters:
 successResult- Combined success result of all executed tasks.individualResults- List with all individual results for each task queue item.- Returns:
 - A new POJO with the success result as the main result and the given individual results.
 
 
- 
forResult
public static ITaskQueueExecutionResult forResult(ITaskExecutionResult finalResult, List<ITaskExecutionResult> individualResults)
- Parameters:
 finalResult- Either anITaskExecutionErrorResultorITaskExecutionSuccessResult.individualResults- List with all individual results for each task queue item.- Returns:
 - A new POJO with the final result as the main result and the given individual results.
 
 
 - 
 
 -