public class TaskResult extends Result
Task
or OrderedTask
).
A task result is typically generated by the framework as the task proceeds. When the task completes, it may be appropriate to serialize it for transmission to a server, or to immediately perform analysis on it.
The results
property contains the step results for the task.
Constructor and Description |
---|
TaskResult(java.lang.String identifier) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,StepResult> |
getResults()
Returns a Map of all of the StepResults in the task.
|
StepResult |
getStepResult(java.lang.String identifier)
Returns a step result for the specified step identifier, if one exists.
|
void |
setStepResultForStepIdentifier(java.lang.String identifier,
StepResult stepResult)
Sets the result for the step using the step's identifier as a key.
|
getEndDate, getIdentifier, getStartDate, setEndDate, setStartDate
public java.util.Map<java.lang.String,StepResult> getResults()
public StepResult getStepResult(java.lang.String identifier)
identifier
- The identifier for which to search.nil
for none.public void setStepResultForStepIdentifier(java.lang.String identifier, StepResult stepResult)
identifier
- the Step and StepResult's identifierstepResult
- the StepResult for this identifier