In the Spring Batch step-scope documentation, there are three unexplained spring-batch context maps: jobParameters
, jobExecutionContext
, and
See the documentation
JobParameters are parameters passed in when starting the job
The execution contexts are for your use to store whatever you want. Typically, the step execution context will contain information to allow the step to restart (for restartable jobs).
Elements in the step execution context can be promoted to the job execution context if you want to communicate information between steps.