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 Transitions.| Modifier and Type | Method and Description |
|---|---|
T |
action(Action<S,E> action)
Specify
Action 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 |
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.
|
andT source(S source)
S for this Transition.source - the source state ST state(S state)
state - the state ST 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 action(Action<S,E> action)
Action for this Transition.action - the 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 expression