Interface TransitionEvent.Builder

  • Method Details

    • eventName

      TransitionEvent.Builder eventName(String eventName)

      The name of the transition event.

      Parameters:
      eventName - The name of the transition event.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • condition

      TransitionEvent.Builder condition(String condition)

      Required. A Boolean expression that when TRUE causes the actions to be performed and the nextState to be entered.

      Parameters:
      condition - Required. A Boolean expression that when TRUE causes the actions to be performed and the nextState to be entered.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • actions

      The actions to be performed.

      Parameters:
      actions - The actions to be performed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • actions

      TransitionEvent.Builder actions(Action... actions)

      The actions to be performed.

      Parameters:
      actions - The actions to be performed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • actions

      The actions to be performed.

      This is a convenience method that creates an instance of the Action.Builder avoiding the need to create one manually via Action.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to actions(List<Action>).

      Parameters:
      actions - a consumer that will call methods on Action.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • nextState

      TransitionEvent.Builder nextState(String nextState)

      The next state to enter.

      Parameters:
      nextState - The next state to enter.
      Returns:
      Returns a reference to this object so that method calls can be chained together.