Chris
Chris

Reputation: 1349

Spring Batch Create SubJob

I have a working spring job that contains multiple steps. However when I launch this job I want to actually launch a dynamic number of them with a different parameter. I can do that but these N jobs are really tied together and I want to know when they all complete.

Is there any way for a job to launch sub jobs?

Upvotes: 2

Views: 719

Answers (1)

Mahmoud Ben Hassine
Mahmoud Ben Hassine

Reputation: 31745

Is there any way for a job to launch sub jobs?

You can create a job with one or more steps of type JobStep to delegate step processing to (sub) jobs.

Upvotes: 4

Related Questions