# Uses of Class
org.springframework.batch.core.job.flow.support.StateTransition

Packages that use StateTransition
Package
Description
org.springframework.batch.core.configuration.xml
Parsers for XML based configuration
org.springframework.batch.core.job.flow.support
Basic implementations of flow constructs

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

  Method parameters in org.springframework.batch.core.configuration.xml with type arguments of type StateTransition
  Modifier and Type
  Method
  Description
  `void`
  SimpleFlowFactoryBean.`setStateTransitionComparator(Comparator<StateTransition> stateTransitionComparator)`
  `void`
  SimpleFlowFactoryBean.`setStateTransitions(List<StateTransition> stateTransitions)`
  The raw state transitions for the flow.

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

  Methods in org.springframework.batch.core.job.flow.support that return StateTransition
  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).
  `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.
  Methods in org.springframework.batch.core.job.flow.support that return types with arguments of type StateTransition
  Modifier and Type
  Method
  Description
  `protected Map<String,Set<StateTransition>>`
  SimpleFlow.`getTransitionMap()`
  Methods in org.springframework.batch.core.job.flow.support with parameters of type StateTransition
  Modifier and Type
  Method
  Description
  `int`
  DefaultStateTransitionComparator.`compare(StateTransition arg0, StateTransition arg1)`
  `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.
  Method parameters in org.springframework.batch.core.job.flow.support with type arguments of type StateTransition
  Modifier and Type
  Method
  Description
  `void`
  SimpleFlow.`setStateTransitionComparator(Comparator<StateTransition> stateTransitionComparator)`
  `void`
  SimpleFlow.`setStateTransitions(List<StateTransition> stateTransitions)`
  Public setter for the stateTransitions.