T
- the type of a transition configurerS
- the type of stateE
- the type of eventpublic interface TransitionConfigurer<T,S,E> extends AnnotationConfigurerBuilder<StateMachineTransitionConfigurer<S,E>>
TransitionConfigurer
interface for configuring Transition
s.Modifier and Type | Method and Description |
---|---|
T |
action(Action<S,E> action)
Specify
Action for this Transition . |
T |
action(Action<S,E> action,
Action<S,E> error)
Specify
Action for this Transition . |
T |
actionFunction(java.util.function.Function<StateContext<S,E>,reactor.core.publisher.Mono<java.lang.Void>> action)
Specify
Function for this Transition . |
T |
event(E event)
Specify event
E for this Transition which will be triggered
by a event trigger. |
T |
guard(Guard<S,E> guard)
Specify a
Guard for this Transition . |
T |
guardExpression(java.lang.String expression)
Specify a
Guard backed by a SpEL expression for this Transition . |
T |
name(java.lang.String name)
Specify a name for this
Transition . |
T |
secured(java.lang.String expression)
Specify a security expression for this
Transition . |
T |
secured(java.lang.String attributes,
SecurityRule.ComparisonType match)
Specify a security attributes for this
Transition . |
T |
source(S source)
Specify a source state
S for this Transition . |
T |
state(S state)
Specify a state this transition should belong to.
|
T |
timer(long period)
Specify that this transition is triggered by a time.
|
T |
timerOnce(long period)
Specify that this transition is triggered once by a time after a delay.
|
and
T source(S source)
S
for this Transition
.source
- the source state S
T state(S state)
state
- the state S
T event(E event)
E
for this Transition
which will be triggered
by a event trigger.event
- the event for transitionT timer(long period)
period
- timer period in millisT timerOnce(long period)
period
- timer period in millisT action(Action<S,E> action)
Action
for this Transition
.action
- the actionT action(Action<S,E> action, Action<S,E> error)
Action
for this Transition
.action
- the actionerror
- action that will be called if any unexpected exception is thrown by the action.T actionFunction(java.util.function.Function<StateContext<S,E>,reactor.core.publisher.Mono<java.lang.Void>> action)
Function
for this Transition
.action
- the function actionT guard(Guard<S,E> guard)
Guard
for this Transition
.guard
- the guardT guardExpression(java.lang.String expression)
Guard
backed by a SpEL expression for this Transition
.expression
- the SpEL expressionT secured(java.lang.String attributes, SecurityRule.ComparisonType match)
Transition
.attributes
- the security attributesmatch
- the match typeT secured(java.lang.String expression)
Transition
.expression
- the security expressionT name(java.lang.String name)
Transition
.name
- the namename
-