Class FlowStepBuilder


  • public class FlowStepBuilder
    extends StepBuilderHelper<FlowStepBuilder>
    A step builder for FlowStep instances. A flow step delegates processing to a nested flow composed of other steps.
    Since:
    2.2
    Author:
    Dave Syer
    • Constructor Detail

      • FlowStepBuilder

        public FlowStepBuilder​(StepBuilderHelper<?> parent)
        Create a new builder initialized with any properties in the parent. The parent is copied, so it can be re-used.
        Parameters:
        parent - a parent helper containing common step properties
    • Method Detail

      • flow

        public FlowStepBuilder flow​(Flow flow)
        Provide a flow to execute during the step.
        Parameters:
        flow - the flow to execute
        Returns:
        this for fluent chaining
      • build

        public Step build()
        Build a step that executes the flow provided, normally composed of other steps. The flow is not executed in a transaction because the individual steps are supposed to manage their own transaction state.
        Returns:
        a flow step