Uploaded image for project: 'Spring XD'
  1. Spring XD
  2. XD-1972

Add ability to define nested jobs


    • Type: Improvement
    • Status: Done
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: M7
    • Fix Version/s: 1.1 M1
    • Component/s: Batch
    • Labels:



      As a developer, I need to be able to create a Spring XD job module that consists of a job orchestrating the execution of other Spring Batch jobs using the Spring Batch Job Step (see section 5.3.6 here: http://docs.spring.io/spring-batch/reference/html/configureStep.html) within the same module definition.

      Acceptance Criteria

      1. Define the "contract" for a job module
        1. Currently the contract consists of a single job definition within the assembled ApplicationContext (context.getBean(Job.class)).
        2. The new version will need to document what job definition within the assembled ApplicationContext should be run as the entry point. I'm assuming it would be by id (context.getBean("job") for example) of the job but am open to other options.
      2. A custom job module that orchestrates multiple Spring Batch jobs via Job steps should be able to be deployed and executed as a single Spring XD module.
        1. Spring XD launches the job that conforms to the previously defined "contract".
        2. Spring Batch manages the execution of the child jobs.
      3. The existing OOTB jobs should work under the new "contract".


      1. The UI should "just work" in that child jobs update the job repository independently so no updates should be needed for an MVP of this functionality.
      2. This will be a breaking change for users that have developed custom job modules.

      Out of Scope

      1. Execution of child jobs that are remote (deployed on another node / ApplicationContext).
      2. Dynamically assembling jobs via the shell's DSL or the UI.




            • Assignee:
              liujiong liujiong
              mminella Michael Minella
            • Votes:
              0 Vote for this issue
              4 Start watching this issue


              • Created: