I want to get job id using spring expression language. I tried #{jobExecutionContext[jobId]} but it does not work.
#{jobExecutionContext[jobId]}
Use scope="step" and then an expression in your query (or its parameters): #{stepExecution.jobExecution.id} (the root of the expression is a StepContext).