Hi to all,
i want to load the flow names from a database and populate <batch:split /> beans. The number of flows is not fixed, but configurable at startup (bean creation).
Now:
<batch:flow parent="flow-1">
<batch:flow parent="flow-2">
<batch:flow parent="flow-3">
Is fixed (see code below)! I would like them to become dynamic.
Which beans should i define?Code:<batch:flow id="flow-1"> <batch:step id="step-1"><batch:tasklet ref="feedsProcessorTasklet" /></batch:step> </batch:flow> <batch:flow id="flow-2"> <batch:step id="step-2"><batch:tasklet ref="feedsProcessorTasklet" /></batch:step> </batch:flow> <batch:flow id="flow-2"> <batch:step id="step-2"><batch:tasklet ref="feedsProcessorTasklet" /></batch:step> </batch:flow> <batch:job id="splittable"> <batch:split id="source-1" task-executor="taskExecutor"> <!-- tags below (not flow definitions!) must be loaded from database --> <batch:flow parent="flow-1"> <batch:flow parent="flow-2"> <batch:flow parent="flow-3"> </batch:split> <batch:step id="stepJoin"> <batch:tasklet ref="feedsProcessorTasklet" /> </batch:step> </batch:job>
Thanks.


Reply With Quote