简体   繁体   中英

Spring Batch - Parallel Processing - Flow config

I wonder is this possible to create a flow like this?

STEP1_> (FLOW_1 | split | FLOW_2) _> STEP_2 _> (FLOW_3 | split | FLOW_4) _> STEP_3 ... ... Each flow has same identical steps that work with a different data source.

Please kindly advise if this kind of job configuration can be achieved.

Thanks!

You should encapsulate FLOW_1 | split | FLOW_2 FLOW_1 | split | FLOW_2 FLOW_1 | split | FLOW_2 in a flow (named parallel_flow for example) and create a sequential flow like step1 -> parallel_flow -> step2 -> parallel_flow ... Encapsulation FTW!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM