Interface TransitionConfigurer<T,S,E>
- Type Parameters:
T- the type of a transition configurerS- the type of stateE- the type of event
- All Superinterfaces:
AnnotationConfigurerBuilder<StateMachineTransitionConfigurer<S,E>>
- All Known Subinterfaces:
ExternalTransitionConfigurer<S,,E> InternalTransitionConfigurer<S,,E> LocalTransitionConfigurer<S,E>
- All Known Implementing Classes:
DefaultExternalTransitionConfigurer,DefaultInternalTransitionConfigurer,DefaultLocalTransitionConfigurer
public interface TransitionConfigurer<T,S,E>
extends AnnotationConfigurerBuilder<StateMachineTransitionConfigurer<S,E>>
Base
TransitionConfigurer interface for configuring Transitions.- Author:
- Janne Valkealahti
-
Method Summary
Modifier and TypeMethodDescriptionSpecifyActionfor thisTransition.SpecifyActionfor thisTransition.actionFunction(Function<StateContext<S, E>, reactor.core.publisher.Mono<Void>> action) SpecifyFunctionfor thisTransition.Specify eventEfor thisTransitionwhich will be triggered by a event trigger.Specify aGuardfor thisTransition.guardExpression(String expression) Specify aGuardbacked by a SpEL expression for thisTransition.Specify a name for thisTransition.Specify a security expression for thisTransition.secured(String attributes, SecurityRule.ComparisonType match) Specify a security attributes for thisTransition.Specify a source stateSfor thisTransition.Specify a state this transition should belong to.timer(long period) Specify that this transition is triggered by a time.timerOnce(long period) Specify that this transition is triggered once by a time after a delay.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
-
state
Specify a state this transition should belong to.- Parameters:
state- the stateS- Returns:
- configurer for chaining
-
event
Specify eventEfor thisTransitionwhich will be triggered by a event trigger.- Parameters:
event- the event for transition- Returns:
- configurer for chaining
-
timer
Specify that this transition is triggered by a time.- Parameters:
period- timer period in millis- Returns:
- configurer for chaining
-
timerOnce
Specify that this transition is triggered once by a time after a delay.- Parameters:
period- timer period in millis- Returns:
- configurer for chaining
-
action
SpecifyActionfor thisTransition.- Parameters:
action- the action- Returns:
- configurer for chaining
-
action
SpecifyActionfor thisTransition.- Parameters:
action- the actionerror- action that will be called if any unexpected exception is thrown by the action.- Returns:
- configurer for chaining
-
actionFunction
SpecifyFunctionfor thisTransition.- Parameters:
action- the function action- Returns:
- configurer for chaining
-
guard
Specify aGuardfor thisTransition.- Parameters:
guard- the guard- Returns:
- configurer for chaining
-
guardExpression
Specify aGuardbacked by a SpEL expression for thisTransition.- Parameters:
expression- the SpEL expression- Returns:
- configurer for chaining
-
secured
Specify a security attributes for thisTransition.- Parameters:
attributes- the security attributesmatch- the match type- Returns:
- configurer for chaining
-
secured
Specify a security expression for thisTransition.- Parameters:
expression- the security expression- Returns:
- configurer for chaining
-
name
Specify a name for thisTransition.- Parameters:
name- the namename-- Returns:
- configurer for chaining
-