Class AbstractTransitionConfigurer<S,E>

Type Parameters:
S - the type of state
E - the type of event
All Implemented Interfaces:
AnnotationConfigurer<TransitionsData<S,E>,StateMachineTransitionBuilder<S,E>>
Direct Known Subclasses:
DefaultExternalTransitionConfigurer, DefaultInternalTransitionConfigurer, DefaultLocalTransitionConfigurer

public abstract class AbstractTransitionConfigurer<S,E> extends AnnotationConfigurerAdapter<TransitionsData<S,E>,StateMachineTransitionConfigurer<S,E>,StateMachineTransitionBuilder<S,E>>
Base class for transition configurers.
  • Constructor Details

    • AbstractTransitionConfigurer

      public AbstractTransitionConfigurer()
  • Method Details

    • getSource

      protected S getSource()
    • getTarget

      protected S getTarget()
    • getState

      protected S getState()
    • getEvent

      protected E getEvent()
    • getPeriod

      protected Long getPeriod()
    • getCount

      public Integer getCount()
      Returns:
      trigger count
    • getActions

      protected Collection<Function<StateContext<S,E>,reactor.core.publisher.Mono<Void>>> getActions()
    • getGuard

      protected Function<StateContext<S,E>,reactor.core.publisher.Mono<Boolean>> getGuard()
    • getSecurityRule

      protected SecurityRule getSecurityRule()
    • getName

      protected String getName()
    • setSource

      protected void setSource(S source)
    • setTarget

      protected void setTarget(S target)
    • setState

      protected void setState(S state)
    • setEvent

      protected void setEvent(E event)
    • setPeriod

      protected void setPeriod(long period)
    • setCount

      public void setCount(Integer count)
      Parameters:
      count - to set how many time the trigger will be called.
    • addAction

      protected void addAction(Action<S,E> action)
    • addAction

      protected void addAction(Action<S,E> action, Action<S,E> error)
    • addActionFunction

      protected void addActionFunction(Function<StateContext<S,E>,reactor.core.publisher.Mono<Void>> action)
    • setGuard

      protected void setGuard(Guard<S,E> guard)
    • setGuardFunction

      protected void setGuardFunction(Function<StateContext<S,E>,reactor.core.publisher.Mono<Boolean>> guard)
    • setSecurityRule

      protected void setSecurityRule(String attributes, SecurityRule.ComparisonType match)
    • setSecurityRule

      protected void setSecurityRule(String expression)
    • setName

      protected void setName(String name)