Oct 14th, 2010, 01:51 AM
Newbie - Complex step dependency
I'm new to Spring Batch and encountered a difficulty in setting up some steps.
I need a job that spawns 3 flows (let say A,B,C) as the first step. Then, once flow A and B completes, another flow D will be spawned; when flow B and C completes, flow E will be spawned. I'm not quite sure how it should be expressed in the job definition. Please enlighten me.
Any help would be greatly appreciated.
Oct 16th, 2010, 10:06 AM
The easiest way would be to wait until C,D is finished before executing E.
Otherwise I guess you could implement a decision and a loop waiting for a signal from B before executing E. The state machine wasnt really designed to handle this use case elegantly (but there are some new features requested for 3.0 that might help).