test of XML from spring batch
Xml
code posted
by
megatux
created at 16 Nov 23:15
Edit
|
Back
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
<job id="edsBatchJob" > <batch:step id="countLinesStep"> <batch:tasklet ref="fileLineCounterTasklet" /> <batch:next on="FAILED" to="mailErrorCounterStep"/> <batch:next on="*" to="readHeaderAndTrailerStep"/> </batch:step> <batch:step id="readHeaderAndTrailerStep"> <batch:tasklet ref="readHeaderAndTrailerTasklet"/> <batch:next on="FAILED" to="mailErrorReadHTStep"/> <batch:next on="*" to="validateStep"/> </batch:step> <batch:step id="validateStep"> <batch:tasklet ref="edsFileValidateTasklet" /> <batch:next on="FAILED" to="mailErrorValidFileStep"/> <batch:next on="*" to="readScreeningRule"/> </batch:step> <step id="readScreeningRule" > <tasklet ref="getScreeningRuleTasklet" /> <batch:next on="FAILED" to="mailErrorReadScreeningRuleStep"/> <batch:next on="*" to="decisionOfWriter"/> </step> <decision id="decisionOfWriter" decider="decider"> <next on="FAILED" to="mailErrorDeciderStep" /> <next on="INCREMENTAL_UPDATE" to="IncrementalUpdateOfItemsTask" /> <next on="TOTAL_REPLACEMENT" to="TotalReplacementOfItemsTask" /> </decision> <step id="IncrementalUpdateOfItemsTask"> <tasklet > <batch:chunk reader="personItemReader" writer="edsItemDetailIncWriter" commit-interval="1"/> </tasklet> <next on="*" to="mailEndOkStep"/> </step> <step id="TotalReplacementOfItemsTask"> <tasklet > <batch:chunk reader="personItemReader" writer="edsItemDetailRepWriter" commit-interval="1"/> </tasklet> <next on="*" to="mailEndOkStep"/> </step> <!-- MAIL STEPS --> <batch:step id="mailErrorCounterStep" > <batch:tasklet ref="mailErrorCounterTasklet"/> <end on="*" /> </batch:step> <batch:step id="mailErrorReadHTStep" > <batch:tasklet ref="mailErrorReadHTTasklet"/> <end on="*" /> </batch:step> <batch:step id="mailErrorReadScreeningRuleStep" > <batch:tasklet ref="mailErrorReadScreeningRuleTasklet"/> <end on="*" /> </batch:step> <batch:step id="mailErrorValidFileStep" > <batch:tasklet ref="mailErrorValidFileTasklet"/> <end on="*" /> </batch:step> <batch:step id="mailErrorDeciderStep" > <batch:tasklet ref="mailErrorDeciderTasklet"/> <end on="*" /> </batch:step> <batch:step id="mailEndOkStep" > <batch:tasklet ref="mailEndItemsWriterTasklet"/> <end on="*" /> </batch:step> </job> |
2.87 KB in 5 ms with coderay