Job Launching Gateway
This Outbound Gateway is used to launch batch Jobs. The payload of messages to be processed MUST be an instance of JobLaunchRequest
.
Note that you can create a JobLaunchRequest
using a standard transformer with a SPEL expression like the one below
new org.springframework.batch.integration.launch.JobLaunchRequest(@'s1.msg1.onramp.support.job', new org.springframework.batch.core.JobParametersBuilder(). addString('input.file', payload.absolutePath).toJobParameters())