Results 1 to 2 of 2

Thread: Newbie - Complex step dependency

  1. #1
    Join Date
    Oct 2010
    Posts
    1

    Default 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. #2
    Join Date
    Jun 2005
    Posts
    4,232

    Default

    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
  •