Announcement Announcement Module
Collapse
No announcement yet.
Abstract Parent Job with Steps? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Abstract Parent Job with Steps?

    I have a couple of jobs that share a similar set of steps. I want to make an abstract parent job containing those steps that I can use. But when I set

    Code:
    <job id="myJob" abstract="true" xmlns="http://www.springframework.org/schema/batch">
    I get

    Code:
    Configuration problem: The <step/> element may not appear on a <job/> with abstract="true"
    Is there any way to make this happen? We used to do this in Batch 1.1 with the old "bean" way of configuring jobs.

  • #2
    Using the namespace, steps (or any flow elements) are not inherited from a parent job. The easiest way to do it is to have all of your steps defined externally and to simply copy the flow into each job.

    Comment

    Working...
    X