Parallel Flow - Spring Batch Part 10
There will be cases when you will need to have parallel flows. For instance, in our case, Once the order is placed, we want to start the packaging but also we want to update our Gift Repository. Lets see how it is done. With this understanding, lets create three new steps. checkGiftRepositoryStep - To check if the repository is short of gifts orderNewGiftsStep - Order new gifts giftRepositoryUpdatedStep - Update repository with new gifts