Interface JunctionTransitionConfigurer<S,E>
- Type Parameters:
S
- the type of stateE
- the type of event
- All Superinterfaces:
AnnotationConfigurerBuilder<StateMachineTransitionConfigurer<S,
E>>
- All Known Implementing Classes:
DefaultJunctionTransitionConfigurer
public interface JunctionTransitionConfigurer<S,E>
extends AnnotationConfigurerBuilder<StateMachineTransitionConfigurer<S,E>>
TransitionConfigurer
interface for configuring Transition
from a junction pseudo state.-
Method Summary
Modifier and TypeMethodDescriptionSpecify a target stateS
as a first choice.Specify a target stateS
as a first choice associating anAction
to outgoing vertex.Specify a target stateS
as a first choice associating anAction
to outgoing vertex.Specify a target stateS
as a last choice.Specify a target stateS
as a last choice associating anAction
to outgoing vertex.Specify a target stateS
as a last choice associating anAction
to outgoing vertex.Specify a source stateS
for thisTransition
.Specify a target stateS
as a then choice.Specify a target stateS
as a then choice associating anAction
to outgoing vertex.Specify a target stateS
as a then choice associating anAction
to outgoing vertex.Methods inherited from interface org.springframework.statemachine.config.common.annotation.AnnotationConfigurerBuilder
and
-
Method Details
-
source
Specify a source stateS
for thisTransition
.- Parameters:
source
- the source stateS
- Returns:
- configurer for chaining
-
first
Specify a target stateS
as a first choice. This must be set.In normal if/else if/else this would represent if.
- Parameters:
target
- the target stateguard
- the guard for this choice- Returns:
- configurer for chaining
-
first
Specify a target stateS
as a first choice associating anAction
to outgoing vertex. This must be set.In normal if/else if/else this would represent if.
- Parameters:
target
- the target stateguard
- the guard for this choiceaction
- the action- Returns:
- configurer for chaining
-
first
JunctionTransitionConfigurer<S,E> first(S target, Guard<S, E> guard, Action<S, E> action, Action<S, E> error) Specify a target stateS
as a first choice associating anAction
to outgoing vertex. This must be set.In normal if/else if/else this would represent if.
- Parameters:
target
- the target stateguard
- the guard for this choiceaction
- the actionerror
- action that will be called if any unexpected exception is thrown by the action.- Returns:
- configurer for chaining
-
then
Specify a target stateS
as a then choice. This is optional. Multiple thens will preserve order.In normal if/else if/else this would represent else if.
- Parameters:
target
- the target stateguard
- the guard for this choice- Returns:
- configurer for chaining
-
then
Specify a target stateS
as a then choice associating anAction
to outgoing vertex. This is optional. Multiple thens will preserve order.In normal if/else if/else this would represent else if.
- Parameters:
target
- the target stateguard
- the guard for this choiceaction
- the action- Returns:
- configurer for chaining
-
then
JunctionTransitionConfigurer<S,E> then(S target, Guard<S, E> guard, Action<S, E> action, Action<S, E> error) Specify a target stateS
as a then choice associating anAction
to outgoing vertex. This is optional. Multiple thens will preserve order.In normal if/else if/else this would represent else if.
- Parameters:
target
- the target stateguard
- the guard for this choiceaction
- the actionerror
- action that will be called if any unexpected exception is thrown by the action.- Returns:
- configurer for chaining
-
last
Specify a target stateS
as a last choice. This must be set.In normal if/else if/else this would represent else.
- Parameters:
target
- the target state- Returns:
- configurer for chaining
-
last
Specify a target stateS
as a last choice associating anAction
to outgoing vertex. This must be set.In normal if/else if/else this would represent else.
- Parameters:
target
- the target stateaction
- the action- Returns:
- configurer for chaining
-
last
Specify a target stateS
as a last choice associating anAction
to outgoing vertex. This must be set.In normal if/else if/else this would represent else.
- Parameters:
target
- the target stateaction
- the actionerror
- action that will be called if any unexpected exception is thrown by the action.- Returns:
- configurer for chaining
-