Jan 14th, 2010, 04:05 AM
Create dinamic steps (on the fly)
In my use case, I want to dinamically create a set of steps which is supposed to sequentially execute the same pre-defined flow (same itemReader, itemProcessor and itemWriter).
The total of steps is defined dinamically based on the entries in the database. Does Spring batch framework provide any out-of-box way to achieve this?
Thanks & Regards,
Clelio De Souza
Jan 15th, 2010, 01:40 AM
I have seen this done. You can use the existing Job and Step implementations (and factory beans) to create work at runtime. If you have a more concrete use case, and it is generic, maybe we could consider some new features in a future release.