BATCH-1072: Updated docs to use id for step, rather than name.
This commit is contained in:
@@ -115,9 +115,9 @@
|
||||
|
||||
<programlisting>
|
||||
<job id="footballJob">
|
||||
<step name="playerload" next="gameLoad"/>
|
||||
<step name="gameLoad" next="playerSummarization"/>
|
||||
<step name="playerSummarization"/>
|
||||
<step id="playerload" next="gameLoad"/>
|
||||
<step id="gameLoad" next="playerSummarization"/>
|
||||
<step id="playerSummarization"/>
|
||||
</job>
|
||||
|
||||
</programlisting>
|
||||
|
||||
@@ -37,9 +37,9 @@
|
||||
|
||||
<programlisting>
|
||||
<job id="footballJob">
|
||||
<step name="playerload" next="gameLoad"/>
|
||||
<step name="gameLoad" next="playerSummarization"/>
|
||||
<step name="playerSummarization"/>
|
||||
<step id="playerload" next="gameLoad"/>
|
||||
<step id="gameLoad" next="playerSummarization"/>
|
||||
<step id="playerSummarization"/>
|
||||
</job>
|
||||
|
||||
</programlisting>
|
||||
@@ -50,9 +50,9 @@
|
||||
|
||||
<programlisting>
|
||||
<job id="footballJob" <emphasis role="bold">job-repository="specialRepository"</emphasis>>
|
||||
<step name="playerload" next="gameLoad"/>
|
||||
<step name="gameLoad" next="playerSummarization"/>
|
||||
<step name="playerSummarization"/>
|
||||
<step id="playerload" next="gameLoad"/>
|
||||
<step id="gameLoad" next="playerSummarization"/>
|
||||
<step id="playerSummarization"/>
|
||||
</job>
|
||||
|
||||
</programlisting>
|
||||
@@ -74,9 +74,9 @@
|
||||
|
||||
<programlisting>
|
||||
<job id="footballJob" <emphasis role="bold">restartable="false"</emphasis>>
|
||||
<step name="playerload" next="gameLoad"/>
|
||||
<step name="gameLoad" next="playerSummarization"/>
|
||||
<step name="playerSummarization"/>
|
||||
<step id="playerload" next="gameLoad"/>
|
||||
<step id="gameLoad" next="playerSummarization"/>
|
||||
<step id="playerSummarization"/>
|
||||
</job>
|
||||
|
||||
</programlisting>
|
||||
@@ -136,9 +136,9 @@
|
||||
|
||||
<programlisting>
|
||||
<job id="footballJob">
|
||||
<step name="playerload" next="gameLoad"/>
|
||||
<step name="gameLoad" next="playerSummarization"/>
|
||||
<step name="playerSummarization"/>
|
||||
<step id="playerload" next="gameLoad"/>
|
||||
<step id="gameLoad" next="playerSummarization"/>
|
||||
<step id="playerSummarization"/>
|
||||
<listeners>
|
||||
<listener class="org.springframework.batch.sample.SampleListener"/>
|
||||
</listeners>
|
||||
|
||||
@@ -77,7 +77,7 @@
|
||||
|
||||
<programlisting>
|
||||
<job id="sampleJob">
|
||||
<step name="step1" job-repository="jobRepository" transaction-manager="transactionManager">
|
||||
<step id="step1" job-repository="jobRepository" transaction-manager="transactionManager">
|
||||
<tasklet reader="itemReader" writer="itemWriter" commit-interval="10"/>
|
||||
</step>
|
||||
</job>
|
||||
@@ -139,7 +139,7 @@
|
||||
|
||||
<programlisting>
|
||||
<job id="sampleJob">
|
||||
<step name="step1" job-repository="jobRepository" transaction-manager="transactionManager">
|
||||
<step id="step1" job-repository="jobRepository" transaction-manager="transactionManager">
|
||||
<tasklet reader="itemReader" writer="itemWriter" <emphasis
|
||||
role="bold">commit-interval="10"</emphasis>/>
|
||||
</step>
|
||||
@@ -177,7 +177,7 @@
|
||||
run infinitely. Below is an example start limit configuration:</para>
|
||||
|
||||
<programlisting>
|
||||
<step name="step1">
|
||||
<step id="step1">
|
||||
<tasklet reader="itemReader" writer="itemWriter" commit-interval="10" <emphasis
|
||||
role="bold">start-limit="1"</emphasis>/>
|
||||
</step>
|
||||
@@ -203,7 +203,7 @@
|
||||
"true" overrides this so that the step will always run:</para>
|
||||
|
||||
<programlisting>
|
||||
<step name="step1">
|
||||
<step id="step1">
|
||||
<tasklet reader="itemReader" writer="itemWriter" commit-interval="10"
|
||||
<emphasis role="bold">allow-start-if-complete="true"</emphasis>/>
|
||||
</step>
|
||||
@@ -216,15 +216,15 @@
|
||||
|
||||
<programlisting>
|
||||
<job id="footballJob" restartable="true">
|
||||
<step name="playerload" next="gameLoad">
|
||||
<step id="playerload" next="gameLoad">
|
||||
<tasklet reader="playerFileItemReader" writer="playerWriter"
|
||||
commit-interval="10" />
|
||||
</step>
|
||||
<step name="gameLoad" next="playerSummarization">
|
||||
<step id="gameLoad" next="playerSummarization">
|
||||
<tasklet reader="gameFileItemReader" writer="gameWriter"
|
||||
commit-interval="10" allow-start-if-complete="true"/>
|
||||
</step>
|
||||
<step name="playerSummarization">
|
||||
<step id="playerSummarization">
|
||||
<tasklet reader="playerSummarizationSource" writer="summaryWriter"
|
||||
commit-interval="10" start-limit="3"/>
|
||||
</step>
|
||||
@@ -344,7 +344,7 @@
|
||||
information, then there probably won't be issues. Usually these bad
|
||||
records are logged as well, which will be covered later when discussing
|
||||
listeners.<programlisting>
|
||||
<step name="step1">
|
||||
<step id="step1">
|
||||
<tasklet reader="flatFileItemReader" writer="itemWriter" commit-interval="10" <emphasis
|
||||
role="bold">skip-limit="10"</emphasis>>
|
||||
<emphasis role="bold"><skippable-exception-classes>
|
||||
@@ -371,7 +371,7 @@
|
||||
correct behaviour, however, in certain scenarios it may be easier to
|
||||
identify which exceptions should cause failure and skip everything
|
||||
else:<programlisting>
|
||||
<step name="step1">
|
||||
<step id="step1">
|
||||
<tasklet reader="flatFileItemReader" writer="itemWriter" commit-interval="10" <emphasis
|
||||
role="bold">skip-limit="10"</emphasis>>
|
||||
<emphasis role="bold"> <skippable-exception-classes>
|
||||
@@ -406,7 +406,7 @@
|
||||
success. In this case, retry should be configured:</para>
|
||||
|
||||
<programlisting>
|
||||
<step name="step1">
|
||||
<step id="step1">
|
||||
<tasklet reader="itemReader" writer="itemWriter" commit-interval="2" <emphasis
|
||||
role="bold">retry-limit="3"</emphasis>>
|
||||
<emphasis role="bold"><retryable-exception-classes>
|
||||
@@ -440,7 +440,7 @@
|
||||
symbol will indicate that exception should not cause rollback.</para>
|
||||
|
||||
<programlisting>
|
||||
<step name="step1">
|
||||
<step id="step1">
|
||||
<tasklet reader="itemReader" writer="itemWriter" commit-interval="2" skip-limit="1"
|
||||
<emphasis role="bold">transaction-attribute="+org.springframework.batch.item.validator.ValidationException"</emphasis>>
|
||||
</tasklet>
|
||||
@@ -467,7 +467,7 @@
|
||||
</para>
|
||||
|
||||
<programlisting>
|
||||
<step name="step1">
|
||||
<step id="step1">
|
||||
<tasklet reader="itemReader" writer="itemWriter" commit-interval="2" skip-limit="1"
|
||||
<emphasis role="bold">is-reader-transactional-queue="true"</emphasis>>
|
||||
</tasklet>
|
||||
@@ -499,7 +499,7 @@
|
||||
through the 'streams' element, as illustrated below:</para>
|
||||
|
||||
<programlisting>
|
||||
<step name="step1">
|
||||
<step id="step1">
|
||||
<tasklet reader="itemReader" writer="compositeWriter" commit-interval="2">
|
||||
<emphasis role="bold"><streams>
|
||||
<stream ref="fileItemWriter1"/>
|
||||
@@ -549,7 +549,7 @@
|
||||
listeners element:</para>
|
||||
|
||||
<programlisting>
|
||||
<step name="step1">
|
||||
<step id="step1">
|
||||
<tasklet reader="reader" writer="writer" commit-interval="10"/>
|
||||
<listeners>
|
||||
<listener ref="stepListener"/>
|
||||
@@ -857,7 +857,7 @@
|
||||
within the 'step':</para>
|
||||
|
||||
<programlisting>
|
||||
<step name="step1" <emphasis role="bold">tasklet="myTasklet"</emphasis> />
|
||||
<step id="step1" <emphasis role="bold">tasklet="myTasklet"</emphasis> />
|
||||
|
||||
</programlisting>
|
||||
|
||||
@@ -1011,9 +1011,9 @@
|
||||
|
||||
<para><programlisting>
|
||||
<job id="job">
|
||||
<step name="stepA" next="stepB" />
|
||||
<step name="stepB" next="stepC"/>
|
||||
<step name="stepC" />
|
||||
<step id="stepA" next="stepB" />
|
||||
<step id="stepB" next="stepC"/>
|
||||
<step id="stepC" />
|
||||
</job>
|
||||
|
||||
</programlisting>In the scenario above, 'step A' will execute first. If 'step
|
||||
@@ -1081,12 +1081,12 @@
|
||||
|
||||
<para><programlisting>
|
||||
<job id="job">
|
||||
<step name="stepA">
|
||||
<step id="stepA">
|
||||
<next on="FAILED" to="stepB" />
|
||||
<next on="*" to="stepC" />
|
||||
</step>
|
||||
<step name="stepB" next="stepC" />
|
||||
<step name="stepC" />
|
||||
<step id="stepB" next="stepC" />
|
||||
<step id="stepC" />
|
||||
</job>
|
||||
|
||||
</programlisting></para>
|
||||
@@ -1130,7 +1130,7 @@
|
||||
job, within the samples project:</para>
|
||||
|
||||
<programlisting>
|
||||
<step name="step1">
|
||||
<step id="step1">
|
||||
<end on="FAILED" />
|
||||
<next on="COMPLETED WITH SKIPS" to="errorPrint1" />
|
||||
<next on="*" to="step2" />
|
||||
@@ -1202,14 +1202,14 @@
|
||||
"COMPLETED".</para>
|
||||
|
||||
<para><programlisting>
|
||||
<step name="step1">
|
||||
<step id="step1">
|
||||
<stop on="COMPLETED" to="step2"/>
|
||||
</step>
|
||||
<step name="step2">
|
||||
<step id="step2">
|
||||
<next on="FOO" to="step3"/>
|
||||
<end on="*" status="FAILED"/>
|
||||
</step>
|
||||
<step name="step3" />
|
||||
<step id="step3" />
|
||||
|
||||
</programlisting></para>
|
||||
</section>
|
||||
@@ -1243,15 +1243,15 @@
|
||||
|
||||
<para><programlisting>
|
||||
<job id="job">
|
||||
<step name="step1" next="decision" />
|
||||
<step id="step1" next="decision" />
|
||||
|
||||
<decision id="skipCheckingDecision" decider="decider">
|
||||
<next on="FAILED" to="step2" />
|
||||
<next on="COMPLETED" to="step3" />
|
||||
</step>
|
||||
|
||||
<step name="step2" next="step3"/>
|
||||
<step name="step3" />
|
||||
<step id="step2" next="step3"/>
|
||||
<step id="step3" />
|
||||
</job>
|
||||
|
||||
<bean id="decider" class="com.MyDecider"/>
|
||||
|
||||
Reference in New Issue
Block a user