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 Transition
s.- Author:
- Janne Valkealahti
-
Method Summary
Modifier and TypeMethodDescriptionSpecifyAction
for thisTransition
.SpecifyAction
for thisTransition
.actionFunction
(Function<StateContext<S, E>, reactor.core.publisher.Mono<Void>> action) SpecifyFunction
for thisTransition
.Specify eventE
for thisTransition
which will be triggered by a event trigger.Specify aGuard
for thisTransition
.guardExpression
(String expression) Specify aGuard
backed 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 stateS
for 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 stateS
for 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 eventE
for thisTransition
which 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
SpecifyAction
for thisTransition
.- Parameters:
action
- the action- Returns:
- configurer for chaining
-
action
SpecifyAction
for thisTransition
.- Parameters:
action
- the actionerror
- action that will be called if any unexpected exception is thrown by the action.- Returns:
- configurer for chaining
-
actionFunction
SpecifyFunction
for thisTransition
.- Parameters:
action
- the function action- Returns:
- configurer for chaining
-
guard
Specify aGuard
for thisTransition
.- Parameters:
guard
- the guard- Returns:
- configurer for chaining
-
guardExpression
Specify aGuard
backed 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
-