[ad_1]
I have the below configuration for a Spring batch job :
First Flow :
return new FlowBuilder<SimpleFlow>("flowB")
.start(stepA)
.next(stepB)
.next(stepC)
.end();
Second Flow:
return new FlowBuilder<SimpleFlow>("flowNotify")
.start(stepNotify)
.end();
ANd my Job configuration is as follows:
Job job = jobBuilderFactory.get("job1")
.listener(customJobListener)
.start(stepOne)
.next(customDecider).on("STATUS_STOP").to(flowNotify)
.from(customDecider).on("STATUS_PROCEED").to(flowB)
.end()
.build();
return job;
The job runs fine in both the flows based on FlowExitStatus being returned from the Decider, however after the last step the job doesn’t terminate, I need to manually terminate the job.
Can someone please guide me on how to terminate the job after the completion of the last step
[ad_2]