S
- the type of stateE
- the type of eventpublic interface ChoiceTransitionConfigurer<S,E> extends AnnotationConfigurerBuilder<StateMachineTransitionConfigurer<S,E>>
TransitionConfigurer
interface for configuring Transition
from a choice pseudo state.Modifier and Type | Method and Description |
---|---|
ChoiceTransitionConfigurer<S,E> |
first(S target,
Guard<S,E> guard)
Specify a target state
S as a first choice. |
ChoiceTransitionConfigurer<S,E> |
last(S target)
Specify a target state
S as a last choice. |
ChoiceTransitionConfigurer<S,E> |
source(S source)
Specify a source state
S for this Transition . |
ChoiceTransitionConfigurer<S,E> |
then(S target,
Guard<S,E> guard)
Specify a target state
S as a then choice. |
and
ChoiceTransitionConfigurer<S,E> source(S source)
S
for this Transition
.source
- the source state S
ChoiceTransitionConfigurer<S,E> first(S target, Guard<S,E> guard)
S
as a first choice.
This must be set.
In normal if/else if/else this would represent if.
target
- the target stateguard
- the guard for this choiceChoiceTransitionConfigurer<S,E> then(S target, Guard<S,E> guard)
S
as a then choice.
This is optional. Multiple thens will preserve order.
In normal if/else if/else this would represent else if.
target
- the target stateguard
- the guard for this choiceChoiceTransitionConfigurer<S,E> last(S target)
S
as a last choice.
This must be set.
In normal if/else if/else this would represent else.
target
- the target state