Results 1 to 3 of 3

Thread: Creating job/flow dynamically

  1. #1
    Join Date
    Mar 2010
    Posts
    10

    Default 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. #2

    Default

    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..

  3. #3
    Join Date
    Mar 2010
    Posts
    10

    Default

    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

    Quote 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..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •