-
Mar 2nd, 2010, 07:33 AM
#1
How to Skip more than one Step
Hi All,
I need to skip more than one step in a job.
The step name to be skipped is passed through the job parameters.
My XML Code look like this
************************** XML **********************
<batch:job id="Amex_Job" >
<batch:step id="Clear_Report_tables" next="Generate_Amex">
<batch:tasklet ref="stepExecutionTasklet" >
</batch:tasklet>
</batch:step>
<batch:step id="Generate_Amex" next="AMEX_due_paid_from_Suspense">
<batch:tasklet ref="stepExecutionTasklet">
</batch:tasklet>
</batch:step>
<batch:step id="AMEX_due_paid_from_Suspense" next="AMEX_due_Suspended_Mandates">
<batch:tasklet ref="stepExecutionTasklet">
</batch:tasklet>
</batch:step>
<batch:step id="AMEX_due_Suspended_Mandates" next="AMEX_Payments_Raised">
<batch:tasklet ref="stepExecutionTasklet">
</batch:tasklet>
</batch:step>
<batch:step id="AMEX_Payments_Raised" next="Create_Amex_Export_Table">
<batch:tasklet ref="stepExecutionTasklet">
</batch:tasklet>
</batch:step>
<batch:step id="Create_Amex_Export_Table" next="Export_Amex">
<batch:tasklet ref="stepExecutionTasklet">
</batch:tasklet>
</batch:step>
<batch:step id="Export_Amex">
<batch:tasklet ref="stepExecutionTasklet"></batch:tasklet>
</batch:step>
<batch:listeners>
<batch:listener ref="jobExecutionListener" />
</batch:listeners>
</batch:job>
**************************** XML *********************
How to use "Decider" to skip more than one step?.
How to Skip the Steps without using "Decider" ?
thanks for ur reply in advance
-
Mar 2nd, 2010, 08:34 AM
#2
-
Mar 2nd, 2010, 08:44 AM
#3
you can also use the conditional flow elements (next, etc) to control the flow of your steps:
http://static.springsource.org/sprin...onditionalFlow
--
Chris
-
Mar 2nd, 2010, 10:38 PM
#4
Hi All,
Thanks for ur reply..
Number of step to be skipped is passed through job Parameters.
If my job contain 10 steps then do we need to write 10 Decider? or can we use single decider to skip the required steps(number of steps to be skipped might vary from 0 - 10)?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules