# Uses of Interface
org.springframework.batch.core.job.flow.State

Packages that use State
Package
Description
org.springframework.batch.core.configuration.xml
Parsers for XML based configuration
org.springframework.batch.core.job.builder
Job and flow level builders for java based configuration of batch jobs
org.springframework.batch.core.job.flow
Flow related constructs including Flow interface, executors, and related exceptions
org.springframework.batch.core.job.flow.support
Basic implementations of flow constructs
org.springframework.batch.core.job.flow.support.state
States used in defining the underlying Spring Batch state machine

- ## Uses of State in org.springframework.batch.core.configuration.xml

  Classes in org.springframework.batch.core.configuration.xml that implement State
  Modifier and Type
  Class
  Description
  `static class`
  `SimpleFlowFactoryBean.DelegateState`
  A State that proxies a delegate and changes its name but leaves its behavior unchanged.
  Methods in org.springframework.batch.core.configuration.xml that return State
  Modifier and Type
  Method
  Description
  `protected State`
  SimpleFlowFactoryBean.`createNewStepState(State state, String oldName, String stateName)`
  Provides an extension point to provide alternative `StepState` implementations within a `SimpleFlow`
  `State`
  SimpleFlowFactoryBean.DelegateState.`getState()`
  Methods in org.springframework.batch.core.configuration.xml with parameters of type State
  Modifier and Type
  Method
  Description
  `protected State`
  SimpleFlowFactoryBean.`createNewStepState(State state, String oldName, String stateName)`
  Provides an extension point to provide alternative `StepState` implementations within a `SimpleFlow`

- ## Uses of State in org.springframework.batch.core.job.builder

  Methods in org.springframework.batch.core.job.builder with parameters of type State
  Modifier and Type
  Method
  Description
  `protected void`
  FlowBuilder.`stop(String pattern, State restart)`

- ## Uses of State in org.springframework.batch.core.job.flow

  Methods in org.springframework.batch.core.job.flow that return State
  Modifier and Type
  Method
  Description
  `State`
  Flow.`getState(String stateName)`
  Retrieve the State with the given name.
  Methods in org.springframework.batch.core.job.flow that return types with arguments of type State
  Modifier and Type
  Method
  Description
  `Collection<State>`
  Flow.`getStates()`
  Convenient accessor for clients needing to explore the states of this flow.

- ## Uses of State in org.springframework.batch.core.job.flow.support

  Methods in org.springframework.batch.core.job.flow.support that return State
  Modifier and Type
  Method
  Description
  `State`
  SimpleFlow.`getStartState()`
  `State`
  SimpleFlow.`getState(String stateName)`
  Retrieve the State with the given name.
  `State`
  StateTransition.`getState()`
  Public getter for the State.
  `protected State`
  SimpleFlow.`nextState(String stateName, FlowExecutionStatus status, StepExecution stepExecution)`
  Methods in org.springframework.batch.core.job.flow.support that return types with arguments of type State
  Modifier and Type
  Method
  Description
  `protected Map<String,State>`
  SimpleFlow.`getStateMap()`
  `Collection<State>`
  SimpleFlow.`getStates()`
  Convenient accessor for clients needing to explore the states of this flow.
  Methods in org.springframework.batch.core.job.flow.support with parameters of type State
  Modifier and Type
  Method
  Description
  `static StateTransition`
  StateTransition.`createEndStateTransition(State state)`
  Create a new end state `StateTransition` specification.
  `static StateTransition`
  StateTransition.`createEndStateTransition(State state, String pattern)`
  Create a new end state `StateTransition` specification.
  `static StateTransition`
  StateTransition.`createStateTransition(State state, String next)`
  Create a new state `StateTransition` specification with a wildcard pattern that matches all outcomes.
  `static StateTransition`
  StateTransition.`createStateTransition(State state, String pattern, String next)`
  Create a new `StateTransition` specification from one `State` to another (by name).
  `protected boolean`
  SimpleFlow.`isFlowContinued(State state, FlowExecutionStatus status, StepExecution stepExecution)`
  `static StateTransition`
  StateTransition.`switchOriginAndDestination(StateTransition stateTransition, State state, String next)`
  Convenience method to switch the origin and destination of a transition, creating a new instance.

- ## Uses of State in org.springframework.batch.core.job.flow.support.state

  Classes in org.springframework.batch.core.job.flow.support.state that implement State
  Modifier and Type
  Class
  Description
  `class`
  `AbstractState`
  `class`
  `DecisionState`
  State that requires a decider to make the status decision.
  `class`
  `EndState`
  `State` implementation for ending a job if it is in progress and continuing if just starting.
  `class`
  `FlowState`
  State that delegates to a Flow
  `class`
  `SplitState`
  A `State` implementation that splits a `Flow` into multiple parallel subflows.
  `class`
  `StepState`
  `State` implementation that delegates to a `FlowExecutor` to execute the specified `Step`.