2020 <xsd : documentation >
2121 Defines a job composed of a set of steps and
2222 transitions between steps. The job will be exposed
23- in
24- the enclosing
25- bean factory as a component of type Job
26- that can be
27- launched using a
28- JobLauncher.
23+ in the enclosing bean factory as a component of type Job
24+ that can be launched using a JobLauncher.
2925 </xsd : documentation >
3026 </xsd : annotation >
3127 <xsd : complexType >
7066 </xsd : appinfo >
7167 </xsd : annotation >
7268 </xsd : attribute >
73- <xsd : attribute name =" transaction-manager" type =" xsd:string"
74- default=" transactionManager" >
75- <xsd : annotation >
76- <xsd : documentation
77- source=" java:org.springframework.transaction.PlatformTransactionManager" ><![CDATA[
78- The bean name of the TransactionManager that is to be used. This attribute
79- is not required, and only needs to be specified explicitly
80- if the bean name of the desired TransactionManager is not 'transactionManager'.
81- ]]> </xsd : documentation >
82- <xsd : appinfo >
83- <tool : annotation kind =" ref" >
84- <tool : expected-type
85- type=" org.springframework.transaction.PlatformTransactionManager" />
86- </tool : annotation >
87- </xsd : appinfo >
88- </xsd : annotation >
89- </xsd : attribute >
69+ <xsd : attributeGroup ref =" transactionManager" />
9070 <xsd : attribute name =" isolation-level-for-create"
9171 type=" xsd:string" >
9272 <xsd : annotation >
11797 <xsd : element name =" step" >
11898 <xsd : annotation >
11999 <xsd : documentation >
120- Defines a stage in job processing backed by a
121- Step. The name
122- attribute has to match the id of a
123- bean definition
124- for
125- a Step. The
126- next attribute is a synonym for < next on="*" .../>
100+ Defines a stage in job processing backed by a Step. The name
101+ attribute has to match the id of a bean definition for a Step.
102+ The next attribute is a synonym for < next on="*" .../>
127103 </xsd : documentation >
128104 </xsd : annotation >
129105 <xsd : complexType >
191167 <xsd : complexContent >
192168 <xsd : extension base =" nextType" >
193169 <xsd : sequence >
194- <xsd : element name =" task" minOccurs =" 0" maxOccurs =" 1" >
195- <xsd : complexType >
196- <xsd : complexContent >
197- <xsd : extension base =" beans:identifiedType" >
198- <xsd : attribute name =" tasklet" type =" xsd:string" use =" required" >
199- <xsd : annotation >
200- <xsd : documentation ><![CDATA[
201- The bean name of the tasklet that is to be used for the task.
202- ]]> </xsd : documentation >
203- </xsd : annotation >
204- </xsd : attribute >
205- <xsd : attribute name =" job-repository" type =" xsd:string"
206- default=" jobRepository" >
207- <xsd : annotation >
208- <xsd : documentation
209- source=" java:org.springframework.batch.core.repository.JobRepository" ><![CDATA[
210- The bean name of the JobRepository that is to be used. This attribute
211- is not required, and only needs to be specified explicitly
212- if the bean name of the desired JobRepository is not 'jobRepository'.
213- ]]> </xsd : documentation >
214- <xsd : appinfo >
215- <tool : annotation kind =" ref" >
216- <tool : expected-type
217- type=" org.springframework.batch.core.repository.JobRepository" />
218- </tool : annotation >
219- </xsd : appinfo >
220- </xsd : annotation >
221- </xsd : attribute >
222- <xsd : attribute name =" transaction-manager" type =" xsd:string"
223- default=" transactionManager" >
224- <xsd : annotation >
225- <xsd : documentation
226- source=" java:org.springframework.transaction.PlatformTransactionManager" ><![CDATA[
227- The bean name of the TransactionManager that is to be used. This attribute
228- is not required, and only needs to be specified explicitly
229- if the bean name of the desired TransactionManager is not 'transactionManager'.
230- ]]> </xsd : documentation >
231- <xsd : appinfo >
232- <tool : annotation kind =" ref" >
233- <tool : expected-type
234- type=" org.springframework.transaction.PlatformTransactionManager" />
235- </tool : annotation >
236- </xsd : appinfo >
237- </xsd : annotation >
238- </xsd : attribute >
239- </xsd : extension >
240- </xsd : complexContent >
241- </xsd : complexType >
242- </xsd : element >
170+ <xsd : choice >
171+ <xsd : element name =" chunk-oriented" minOccurs =" 0" maxOccurs =" 1" >
172+ <xsd : complexType >
173+ <xsd : complexContent >
174+ <xsd : extension base =" processType" />
175+ </xsd : complexContent >
176+ </xsd : complexType >
177+ </xsd : element >
178+ <xsd : element name =" task" minOccurs =" 0" maxOccurs =" 1" >
179+ <xsd : complexType >
180+ <xsd : complexContent >
181+ <xsd : extension base =" taskType" />
182+ </xsd : complexContent >
183+ </xsd : complexType >
184+ </xsd : element >
185+ </xsd : choice >
243186 <xsd : group ref =" transitions" />
244187 </xsd : sequence >
245188 </xsd : extension >
246189 </xsd : complexContent >
247190 </xsd : complexType >
248191
249- <xsd : complexType name =" transitionWithNextType " >
192+ <xsd : complexType name =" stepDefType " >
250193 <xsd : complexContent >
251- <xsd : extension base =" nextType" >
252- <xsd : group ref =" transitions" />
194+ <xsd : extension base =" beans:identifiedType" >
195+ <xsd : attributeGroup ref =" jobRepository" />
196+ <xsd : attributeGroup ref =" transactionManager" />
197+ </xsd : extension >
198+ </xsd : complexContent >
199+ </xsd : complexType >
200+
201+ <xsd : complexType name =" taskType" >
202+ <xsd : complexContent >
203+ <xsd : extension base =" stepDefType" >
204+ <xsd : attribute name =" tasklet" type =" xsd:string" use =" required" >
205+ <xsd : annotation >
206+ <xsd : documentation ><![CDATA[
207+ The bean name of the tasklet that is to be used for the task.
208+ ]]> </xsd : documentation >
209+ </xsd : annotation >
210+ </xsd : attribute >
211+ </xsd : extension >
212+ </xsd : complexContent >
213+ </xsd : complexType >
214+
215+ <xsd : complexType name =" processType" >
216+ <xsd : complexContent >
217+ <xsd : extension base =" stepDefType" >
218+ <xsd : attribute name =" reader" type =" xsd:string" use =" required" >
219+ <xsd : annotation >
220+ <xsd : documentation ><![CDATA[
221+ The bean name of the item reader that is to be used for the process.
222+ ]]> </xsd : documentation >
223+ </xsd : annotation >
224+ </xsd : attribute >
225+ <xsd : attribute name =" processor" type =" xsd:string" use =" optional" >
226+ <xsd : annotation >
227+ <xsd : documentation ><![CDATA[
228+ The bean name of the item processor that is to be used for the process.
229+ ]]> </xsd : documentation >
230+ </xsd : annotation >
231+ </xsd : attribute >
232+ <xsd : attribute name =" writer" type =" xsd:string" use =" required" >
233+ <xsd : annotation >
234+ <xsd : documentation ><![CDATA[
235+ The bean name of the item writer that is to be used for the process.
236+ ]]> </xsd : documentation >
237+ </xsd : annotation >
238+ </xsd : attribute >
253239 </xsd : extension >
254240 </xsd : complexContent >
255241 </xsd : complexType >
269255 <xsd : group ref =" transitions" />
270256 </xsd : complexType >
271257
258+ <xsd : complexType name =" transitionWithNextType" >
259+ <xsd : complexContent >
260+ <xsd : extension base =" nextType" >
261+ <xsd : group ref =" transitions" />
262+ </xsd : extension >
263+ </xsd : complexContent >
264+ </xsd : complexType >
265+
272266 <xsd : group name =" transitions" >
273267 <xsd : sequence >
274268 <xsd : choice minOccurs =" 0" maxOccurs =" unbounded" >
350344 </xsd : choice >
351345 </xsd : sequence >
352346 </xsd : group >
347+
348+ <xsd : attributeGroup name =" jobRepository" >
349+ <xsd : attribute name =" job-repository" type =" xsd:string"
350+ default=" jobRepository" >
351+ <xsd : annotation >
352+ <xsd : documentation
353+ source=" java:org.springframework.batch.core.repository.JobRepository" ><![CDATA[
354+ The bean name of the JobRepository that is to be used. This attribute
355+ is not required, and only needs to be specified explicitly
356+ if the bean name of the desired JobRepository is not 'jobRepository'.
357+ ]]> </xsd : documentation >
358+ <xsd : appinfo >
359+ <tool : annotation kind =" ref" >
360+ <tool : expected-type
361+ type=" org.springframework.batch.core.repository.JobRepository" />
362+ </tool : annotation >
363+ </xsd : appinfo >
364+ </xsd : annotation >
365+ </xsd : attribute >
366+ </xsd : attributeGroup >
367+
368+ <xsd : attributeGroup name =" transactionManager" >
369+ <xsd : attribute name =" transaction-manager" type =" xsd:string"
370+ default=" transactionManager" >
371+ <xsd : annotation >
372+ <xsd : documentation
373+ source=" java:org.springframework.transaction.PlatformTransactionManager" ><![CDATA[
374+ The bean name of the TransactionManager that is to be used. This attribute
375+ is not required, and only needs to be specified explicitly
376+ if the bean name of the desired TransactionManager is not 'transactionManager'.
377+ ]]> </xsd : documentation >
378+ <xsd : appinfo >
379+ `<tool : annotation kind =" ref" >
380+ <tool : expected-type
381+ type=" org.springframework.transaction.PlatformTransactionManager" />
382+ </tool : annotation >
383+ </xsd : appinfo >
384+ </xsd : annotation >
385+ </xsd : attribute >
386+ </xsd : attributeGroup >
353387
354388</xsd : schema >
0 commit comments