Interface LoopControllerFlowNodeConfiguration.Builder

  • Method Details

    • continueCondition

      LoopControllerFlowNodeConfiguration.Builder continueCondition(FlowCondition continueCondition)

      Specifies the condition that determines when the flow exits the DoWhile loop. The loop executes until this condition evaluates to true.

      Parameters:
      continueCondition - Specifies the condition that determines when the flow exits the DoWhile loop. The loop executes until this condition evaluates to true.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • continueCondition

      default LoopControllerFlowNodeConfiguration.Builder continueCondition(Consumer<FlowCondition.Builder> continueCondition)

      Specifies the condition that determines when the flow exits the DoWhile loop. The loop executes until this condition evaluates to true.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to continueCondition(FlowCondition).

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

      Specifies the maximum number of times the DoWhile loop can iterate before the flow exits the loop.

      Parameters:
      maxIterations - Specifies the maximum number of times the DoWhile loop can iterate before the flow exits the loop.
      Returns:
      Returns a reference to this object so that method calls can be chained together.