Announcement Announcement Module
Collapse
No announcement yet.
How to Skip more than one Step Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #2
    JobExecutionDecider might help here
    http://static.springsource.org/sprin...cFlowDecisions

    Comment


    • #3
      you can also use the conditional flow elements (next, etc) to control the flow of your steps:

      http://static.springsource.org/sprin...onditionalFlow

      Comment


      • #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)?

        Comment

        Working...
        X