Aug 13th, 2008, 10:51 AM
Flow of step executions
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?
Aug 13th, 2008, 12:47 PM
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.
Aug 14th, 2008, 03:22 AM
Thanks. This works fine, but I keep in mind there is another solution in 2.0.