java.lang.Object
org.springframework.statemachine.action.Actions

public final class Actions extends Object
Action Utilities.
  • Method Details

    • emptyAction

      public static <S, E> Action<S,E> emptyAction()
      Builds a noop Action.
      Type Parameters:
      S - the type of state
      E - the type of event
      Returns:
      an empty (Noop) Action.
    • errorCallingAction

      public static <S, E> Action<S,E> errorCallingAction(Action<S,E> action, Action<S,E> errorAction)
      Builds an error calling action Action.
      Type Parameters:
      S - the type of state
      E - the type of event
      Parameters:
      action - the action
      errorAction - the error action
      Returns:
      the error calling action
    • from

      public static <S, E> Function<StateContext<S,E>,reactor.core.publisher.Mono<Void>> from(Action<S,E> action)
      Builds a Function from an Action.
      Type Parameters:
      S - the type of state
      E - the type of event
      Parameters:
      action - the action
      Returns:
      the function
    • from

      public static <S, E> Collection<Function<StateContext<S,E>,reactor.core.publisher.Mono<Void>>> from(Collection<Action<S,E>> actions)
      Builds a Collection of Functions from a Collection of an Actions.
      Type Parameters:
      S - the type of state
      E - the type of event
      Parameters:
      actions - the actions
      Returns:
      the function