I have this FileWriter
where I\'m trying to append the current Job Id to the filename that is generated.
The supported names for late-bindig are:
#{jobParameters}
#{jobExecutionContext}
#{stepExecutionContext}
If jobId
is not directly accessible, look this question.
Also, resource
can be injected directly as
<property name="resource">
<value>file://${csv.file}_#{jobExecutionContext['jobId']}</value>
</property>
because the right resource type is created using a converter.
#{stepExecution.jobExecution.id}
or #{stepExecution.jobExecutionId}
should work though.
The StepContext does provide access to the StepExecution for late binding via SpEL expressions.