-
Aug 13th, 2008, 10:51 AM
#1
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?
-
Aug 13th, 2008, 12:47 PM
#2
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
#3
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
-
Forum Rules