Class TransitionData<S,E>

java.lang.Object
org.springframework.statemachine.config.model.TransitionData<S,E>
Type Parameters:
S - the type of state
E - the type of event

public class TransitionData<S,E> extends Object
A simple data object keeping transition related configs in a same place.
  • Constructor Details

    • TransitionData

      public TransitionData(S source, S target, E event)
      Instantiates a new transition data.
      Parameters:
      source - the source
      target - the target
      event - the event
    • TransitionData

      public TransitionData(S source, S target, E event, Collection<Function<StateContext<S,E>,reactor.core.publisher.Mono<Void>>> actions, Function<StateContext<S,E>,reactor.core.publisher.Mono<Boolean>> guard, TransitionKind kind)
      Instantiates a new transition data.
      Parameters:
      source - the source
      target - the target
      event - the event
      actions - the actions
      guard - the guard
      kind - the kind
    • TransitionData

      public TransitionData(S source, S target, E event, Collection<Function<StateContext<S,E>,reactor.core.publisher.Mono<Void>>> actions, Function<StateContext<S,E>,reactor.core.publisher.Mono<Boolean>> guard, TransitionKind kind, String name)
      Instantiates a new transition data.
      Parameters:
      source - the source
      target - the target
      event - the event
      actions - the actions
      guard - the guard
      kind - the kind
      name - the name
    • TransitionData

      public TransitionData(S source, S target, Long period, Integer count, Collection<Function<StateContext<S,E>,reactor.core.publisher.Mono<Void>>> actions, Function<StateContext<S,E>,reactor.core.publisher.Mono<Boolean>> guard, TransitionKind kind)
      Instantiates a new transition data.
      Parameters:
      source - the source
      target - the target
      period - the period
      count - the count
      actions - the actions
      guard - the guard
      kind - the kind
    • TransitionData

      public TransitionData(S source, S target, Long period, Integer count, Collection<Function<StateContext<S,E>,reactor.core.publisher.Mono<Void>>> actions, Function<StateContext<S,E>,reactor.core.publisher.Mono<Boolean>> guard, TransitionKind kind, String name)
      Instantiates a new transition data.
      Parameters:
      source - the source
      target - the target
      period - the period
      count - the count
      actions - the actions
      guard - the guard
      kind - the kind
      name - the name
    • TransitionData

      public TransitionData(S source, S target, S state, E event, Long period, Integer count, Collection<Function<StateContext<S,E>,reactor.core.publisher.Mono<Void>>> actions, Function<StateContext<S,E>,reactor.core.publisher.Mono<Boolean>> guard, TransitionKind kind, SecurityRule securityRule, String name)
      Instantiates a new transition data.
      Parameters:
      source - the source
      target - the target
      state - the state
      event - the event
      period - the period
      count - the count
      actions - the actions
      guard - the guard
      kind - the kind
      securityRule - the security rule
      name - the name
  • Method Details

    • getSource

      public S getSource()
      Gets the source.
      Returns:
      the source
    • getTarget

      public S getTarget()
      Gets the target.
      Returns:
      the target
    • getState

      public S getState()
      Gets the state.
      Returns:
      the state
    • getEvent

      public E getEvent()
      Gets the event.
      Returns:
      the event
    • getPeriod

      public Long getPeriod()
      Gets the period.
      Returns:
      the period
    • getCount

      public Integer getCount()
      Gets the count.
      Returns:
      the count
    • getActions

      public Collection<Function<StateContext<S,E>,reactor.core.publisher.Mono<Void>>> getActions()
      Gets the actions.
      Returns:
      the actions
    • getGuard

      public Function<StateContext<S,E>,reactor.core.publisher.Mono<Boolean>> getGuard()
      Gets the guard.
      Returns:
      the guard
    • getKind

      public TransitionKind getKind()
      Gets the kind.
      Returns:
      the kind
    • getSecurityRule

      public SecurityRule getSecurityRule()
      Gets the security rule.
      Returns:
      the security rule
    • getName

      public String getName()
      Gets the name,
      Returns:
      the name