In the Spring Batch step-scope documentation, there are three unexplained spring-batch context maps: jobParameters
, jobExecutionContext
, and
There aren't any default values. Think of jobParameters
, jobExecutionContext
, and stepExecutionContext
as glorified Map
s with helper methods for different primitive data types, e.g. getInt()
. They're typically accessed from the StepExecution
and JobExecution
objects passed to *ExecutionListener
s, or injecting using value injection, e.g. @Value("#{jobParameters['foo']}")
.
In this case, input.file.name
is just a name chosen by the developer, e.g. maybe corresponding to a command line job parameter specified to the CommandLineJobRunner
.