
Originally Posted by
Nitty
Thanks.
How do I get a handle (inject) stepExection inside the processor - one of the previous post mentioned <quote> You can also inject the step execution into a step-scoped component with a late binding expression #{stepExecution}.
</quote>
Not sure how to do this - can you throw some light?
you could try the following
Code:
private StepExecution stepExecution;
@BeforeStep
public void saveStepExecution(StepExecution stepExecution) {
this.stepExecution = stepExecution;
}
and put scope step into your app context for that reader
hope that helps