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.- Author:
- Janne Valkealahti
-
Method Summary
Modifier and TypeMethodDescriptionSpecify a target stateSas a first choice.Specify a target stateSas a first choice associating anActionto outgoing vertex.Specify a target stateSas a first choice associating anActionto outgoing vertex.Specify a target stateSas a last choice.Specify a target stateSas a last choice associating anActionto outgoing vertex.Specify a target stateSas a last choice associating anActionto outgoing vertex.Specify a source stateSfor thisTransition.Specify a target stateSas a then choice.Specify a target stateSas a then choice associating anActionto outgoing vertex.Specify a target stateSas a then choice associating anActionto outgoing vertex.Methods inherited from interface org.springframework.statemachine.config.common.annotation.AnnotationConfigurerBuilder
and
-
Method Details
-
source
Specify a source stateSfor thisTransition.- Parameters:
source- the source stateS- Returns:
- configurer for chaining
-
first
Specify a target stateSas 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 stateSas a first choice associating anActionto 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 stateSas a first choice associating anActionto 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 stateSas 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 stateSas a then choice associating anActionto 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 stateSas a then choice associating anActionto 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 stateSas 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 stateSas a last choice associating anActionto 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 stateSas a last choice associating anActionto 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
-