类 FlowJobBuilder


  • public class FlowJobBuilder
    extends JobBuilderHelper<FlowJobBuilder>
    A job builder for FlowJob instances. A flow job delegates processing to a nested flow composed of steps and conditional transitions between steps.
    从以下版本开始:
    2.2
    作者:
    Dave Syer
    • 构造器详细资料

      • FlowJobBuilder

        public FlowJobBuilder​(JobBuilderHelper<?> parent)
        Create a new builder initialized with any properties in the parent. The parent is copied, so it can be re-used.
        参数:
        parent - a parent helper containing common job properties
    • 方法详细资料

      • start

        public JobFlowBuilder start​(Flow flow)
        Start a job with this flow, but expect to transition from there to other flows or steps.
        参数:
        flow - the flow to start with
        返回:
        a builder to enable fluent chaining
      • start

        public JobFlowBuilder start​(Step step)
        Start a job with this step, but expect to transition from there to other flows or steps.
        参数:
        step - the step to start with
        返回:
        a builder to enable fluent chaining
      • flow

        protected FlowJobBuilder flow​(Flow flow)
        Provide a single flow to execute as the job.
        参数:
        flow - the flow to execute
        返回:
        this for fluent chaining
      • build

        public Job build()
        Build a job that executes the flow provided, normally composed of other steps.
        返回:
        a flow job