How to get job id using spring expression language?

后端 未结 4 1886
梦如初夏
梦如初夏 2021-01-13 10:42

I want to get job id using spring expression language. I tried #{jobExecutionContext[jobId]} but it does not work.

4条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-13 10:53

    Use scope="step" and then an expression in your query (or its parameters): #{stepExecution.jobExecution.id} (the root of the expression is a StepContext).

提交回复
热议问题