Oct 19th, 2007, 03:30 AM
Passing arguments to Tasklet/ItemProvider/ItemProcessor?
I've spent the last days reading up on the batch framework, trying to figure out how to refactor our code to fit in it.
I would like to share some arguments within the batch job, input filename or criterias used to filter data.
From what I can find the JobExecutionContext or StepExecutionContext seems to be the place to handle this, but how can I get a handle to the JobExecutionContext in a ItemProvider or a ItemProcessor?
The samples all have configured filenames which are injected to the ItemProvider. Feels like I've missed something in how to create a ItemProvider/Processor?