Announcement Announcement Module
Collapse
No announcement yet.
Newbie - Complex step dependency Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #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).

    Comment

    Working...
    X