-
Feb 16th, 2013, 12:18 PM
#1
Converting old job
Hi, I'm trying to convert some old jobs to use Spring Batch. Unfortunately the old jobs are somewhat monolithic and are quite tightly coupled, so pulling the pieces out to fit into the read-write pattern has been tricky.
The job flow is like this:
1)Update Header record status to in process
2)Read detail records
3)Process/Write detail records
4)Update Header and send email noting results (this requires using counters accumulated in the previous phase)
The issue is with line 1 and 4. Where does that logic belong? Reader? Writer? BeforeStep/AfterStep? Somewhere else? It's not really after or before the step, it's part of the step, it's just after the reads/writes are done.
Thanks for any help/advice.
Tags for this Thread
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