Results 1 to 3 of 3

Thread: Executing selective steps of a job dynamically

  1. #1

    Default Executing selective steps of a job dynamically

    Hi,

    Consider a job configured with some 10 steps. If we want to execute selected steps of a job, that are decided at runtime, does spring batch supports this?

    Thanks,
    Sreenivas.
    Last edited by sreenivas.svs; Oct 1st, 2010 at 05:44 AM.

  2. #2
    Join Date
    Apr 2008
    Location
    Philadelphia, US
    Posts
    198

    Arrow

    @sreenivas.svs,

    Take a look at "Controlling Step Flow" http://static.springsource.org/sprin...ollingStepFlow chapter.

    But in practice, I would recommend to have multiple jobs for multiple use cases ( that does not mean they can not have multiple steps, but it means they would encapsulate a single business use case ) rather than having a single job represent multiple use cases.

    /Anatoly
    Humans are stateful and mutable beings that have no problems processing many things concurrently and share state with others + they are usually "coupled"

  3. #3

    Default

    Hi litius,

    Thanks for your response. Selective steps mean, user will be allowed to choose steps against the job name. so i need to skip the unselected steps dynamically. But following has answered my requirement.

    http://forum.springsource.org/showthread.php?t=70020

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •