leisurelyj (2) [Avatar] Offline
#1
Has any one worked on batching file sets that have differnt formats? For example, I want to have a tasklet that requests files for batching from a remote server. The files returned each has their own format (in my case 2 formats which I can determine by the file name). How would I go about sending the files of format 1 from the tasklet to the appropriate reader/writer and format 2 to it's corresponding reader/writer?
arnaud.cogoluegnes (73) [Avatar] Offline
#2
Re: File sets with different formats
You could have 1 step for each format and use a StepExecutionListener after the tasklet. The listener would redirect to the appropriate step. This is covered in chapter 10.
leisurelyj (2) [Avatar] Offline
#3
Re: File sets with different formats
Your StepExecutionListener suggestion helped with my problem. Thanks.