Announcement Announcement Module
Collapse
No announcement yet.
Creating job/flow dynamically Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Creating job/flow dynamically

    New to Spring Batch. One of my requirement is to be able to dynamically create Job based on user choice or workflow definitions. So basically I don't know the batch XML ahead of time, just have a toolbox full of tasks that the user can arrange as needed (in sequence or potentially more complex flows). What would be the recommended way to approach this? Can I create a batch XML in memory and have it parsed as a string? Should I look into using SimpleJob or FlowJob and add TaskletStep programmatically?
    Any example available?
    many thanks
    *K

  • #2
    Thanks for sharing...
    Yes, U can create a batch XML in memory and parsed as a string, u can using simple job or flow job and add Tasklet Step programmatically..

    Comment


    • #3
      Thanks for the feedback. Would you happen to have an example of in memory XML bean parsing to create a Job? Or any hint as to which class/method to use.
      best
      *K

      Originally posted by shalini23 View Post
      Thanks for sharing...
      Yes, U can create a batch XML in memory and parsed as a string, u can using simple job or flow job and add Tasklet Step programmatically..

      Comment

      Working...
      X