Skip to content

Commit 79468bf

Browse files
committed
Add step type in execution context of ChunkOrientedStep
1 parent c65635b commit 79468bf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spring-batch-core/src/main/java/org/springframework/batch/core/step/item/ChunkOrientedStep.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ protected void close(ExecutionContext executionContext) throws Exception {
309309

310310
@Override
311311
protected void doExecute(StepExecution stepExecution) throws Exception {
312+
stepExecution.getExecutionContext().put(STEP_TYPE_KEY, this.getClass().getName());
312313
while (this.chunkTracker.moreItems()) {
313314
// check interruption policy before processing next chunk
314315
try {

0 commit comments

Comments
 (0)