diff --git a/src/site/docbook/reference/common-patterns.xml b/src/site/docbook/reference/common-patterns.xml index 8cfcbc4ca..1ae483038 100644 --- a/src/site/docbook/reference/common-patterns.xml +++ b/src/site/docbook/reference/common-patterns.xml @@ -466,7 +466,7 @@ Tasklet implementation for calling system commands: - <bean class="org.springframework.batch.sample.tasklet.SystemCommandTasklet"> + <bean class="org.springframework.batch.core.step.tasklet.SystemCommandTasklet"> <property name="command" value="echo hello" /> <!-- 5 second timeout for the command to complete --> <property name="timeout" value="5000" /> @@ -526,7 +526,7 @@ Step ExecutionContext is updated every time the Step commits a chunk while the Job ExecutionContext is - updated only at the end of each Step. + updated only at the end of each Step. The consequence of this separation is that all data must be placed in the Step ExecutionContext @@ -535,7 +535,7 @@ on-going. If data is stored to the Job ExecutionContext, then it will not be persisted during Step execution and if the - Step fails, that data will be lost. + Step fails, that data will be lost. public void MyItemWriter implements ItemWriter<Object> { private StepExecution stepExecution;