Announcement Announcement Module
No announcement yet.
Generating Parallel flows dynamically in spring batch. Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Generating Parallel flows dynamically in spring batch.

    In my project, i have a requirement like this.
    I am retrieving a certain no of records from database and partitioning into that many no of steps. and keeping each step within a flow.
    Now my job is to check some condition like is that record(which i am retrieving from database and partitioning) is enabled for processing , if it is enabled then execute it within a flow.The same thing i need to repeat for all the records.
    How to create these many flows dynamically depending on the input for processing is enabled or disabled???
    Please help me!!!!!!!!!!!

  • #2
    From what you are describing, you don't need to create flows dynamically, you just need to have the ItemReader only read the records that are "enabled for processing". Am I missing something?


    • #3
      Thanks for your Reply.
      Could please tell me, is there any way to create flows dynamically in spring batch?


      • #4
        In Spring Batch 2.2.0.M1, we enabled java configuration via the @Configuration and the @EnableBatchProcessing attribute. You may be able to do something with that.