Interface TransitionConfigurer<T,S,E>

Type Parameters:
T - the type of a transition configurer
S - the type of state
E - 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.
  • Method Details

    • source

      T source(S source)
      Specify a source state S for this Transition.
      Parameters:
      source - the source state S
      Returns:
      configurer for chaining
    • state

      T state(S state)
      Specify a state this transition should belong to.
      Parameters:
      state - the state S
      Returns:
      configurer for chaining
    • event

      T event(E event)
      Specify event E for this Transition which will be triggered by a event trigger.
      Parameters:
      event - the event for transition
      Returns:
      configurer for chaining
    • timer

      T timer(long period)
      Specify that this transition is triggered by a time.
      Parameters:
      period - timer period in millis
      Returns:
      configurer for chaining
    • timerOnce

      T timerOnce(long period)
      Specify that this transition is triggered once by a time after a delay.
      Parameters:
      period - timer period in millis
      Returns:
      configurer for chaining
    • action

      T action(Action<S,E> action)
      Specify Action for this Transition.
      Parameters:
      action - the action
      Returns:
      configurer for chaining
    • action

      T action(Action<S,E> action, Action<S,E> error)
      Specify Action for this Transition.
      Parameters:
      action - the action
      error - action that will be called if any unexpected exception is thrown by the action.
      Returns:
      configurer for chaining
    • actionFunction

      T actionFunction(Function<StateContext<S,E>,reactor.core.publisher.Mono<Void>> action)
      Specify Function for this Transition.
      Parameters:
      action - the function action
      Returns:
      configurer for chaining
    • guard

      T guard(Guard<S,E> guard)
      Specify a Guard for this Transition.
      Parameters:
      guard - the guard
      Returns:
      configurer for chaining
    • guardExpression

      T guardExpression(String expression)
      Specify a Guard backed by a SpEL expression for this Transition.
      Parameters:
      expression - the SpEL expression
      Returns:
      configurer for chaining
    • secured

      T secured(String attributes, SecurityRule.ComparisonType match)
      Specify a security attributes for this Transition.
      Parameters:
      attributes - the security attributes
      match - the match type
      Returns:
      configurer for chaining
    • secured

      T secured(String expression)
      Specify a security expression for this Transition.
      Parameters:
      expression - the security expression
      Returns:
      configurer for chaining
    • name

      T name(String name)
      Specify a name for this Transition.
      Parameters:
      name - the name
      name -
      Returns:
      configurer for chaining