Class JsrSplitState
- java.lang.Object
- org.springframework.batch.core.job.flow.support.state.AbstractState
- org.springframework.batch.core.job.flow.support.state.SplitState
- org.springframework.batch.core.jsr.job.flow.support.state.JsrSplitState
- All Implemented Interfaces:
FlowHolder
,State
public class JsrSplitState extends SplitState
JSR-352 states that artifacts cannot set the ExitStatus from within a split for a job. Because of this, this state will reset the exit status once the flows have completed (prior to aggregation of the results).- Since:
- 3.0
- Author:
- Michael Minella
Constructor Summary
Constructors Constructor Description JsrSplitState(java.util.Collection<Flow> flows, java.lang.String name)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected FlowExecutionStatus
doAggregation(java.util.Collection<FlowExecution> results, FlowExecutor executor)
Resets theJobExecution
's exit status before aggregating the results of the flows within the split.Methods inherited from class org.springframework.batch.core.job.flow.support.state.SplitState
getFlows, handle, isEndState, setTaskExecutor
Methods inherited from class org.springframework.batch.core.job.flow.support.state.AbstractState
getName, toString
Method Detail
doAggregation
protected FlowExecutionStatus doAggregation(java.util.Collection<FlowExecution> results, FlowExecutor executor)
Resets theJobExecution
's exit status before aggregating the results of the flows within the split.- Overrides:
doAggregation
in classSplitState
- Parameters:
results
- theFlowExecution
s from each of the flows executed within this splitexecutor
- theFlowExecutor
used to execute the flows