Results 1 to 3 of 3

Thread: Flow of step executions

  1. #1
    Join Date
    Jul 2008
    Posts
    25

    Default Flow of step executions

    Hello,

    I have next case in a Job:
    Step A is executed and store a value in executioncontext
    Step B need to be executed if value in executionContext = 1
    Step C need to be executed if value in executionContext = 2

    Is it possible to implenent this with a StepExecutionListener?

    Can someone help me with this? Or does there exists someting out-of-the-box in Spring Batch?

  2. #2
    Join Date
    Dec 2006
    Posts
    1,061

    Default

    This is a feature that's currently planned for 2.0, but would require a bit of a workaround for 1.x. You can either split the two steps into separate jobs that a scheduler calls, or you can simply inspect the EC in Step B and no-op so that it moves on to Step C.

  3. #3
    Join Date
    Jul 2008
    Posts
    25

    Default

    Thanks. This works fine, but I keep in mind there is another solution in 2.0.

Posting Permissions

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