-
Oct 14th, 2010, 01:51 AM
#1
Newbie - Complex step dependency
Hi,
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.
Cheers,
ken
-
Oct 16th, 2010, 10:06 AM
#2
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).
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules