I have two business logic steps:
- download xml from external resource parse and transform it into objects
dispatch the output(object list) to external queue
@Bean public Job job() throws Exception { return this.jobs.get("job").start(getXmlViaHttpStep()).next(pushMessageToQueue()).build(); }
So my first Step is Tasklet which downloads (via http) the file and converts it into Objects.
My second task is another Tasklet that suppose to dispatch the output from the previous step.
Now how do I pass the output list from step1 into step2 (as its input)?
I could save that on temp file, but isn't there another best practice scenario for this?