OPEN - BATCH-880: Suspend after step and wait for user input
added suspend element to batch xsd
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsd:schema xmlns="http://www.springframework.org/schema/batch" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:beans="http://www.springframework.org/schema/beans" xmlns:tool="http://www.springframework.org/schema/tool"
|
||||
targetNamespace="http://www.springframework.org/schema/batch" elementFormDefault="qualified" attributeFormDefault="unqualified"
|
||||
<xsd:schema xmlns="http://www.springframework.org/schema/batch"
|
||||
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:beans="http://www.springframework.org/schema/beans"
|
||||
xmlns:tool="http://www.springframework.org/schema/tool"
|
||||
targetNamespace="http://www.springframework.org/schema/batch"
|
||||
elementFormDefault="qualified" attributeFormDefault="unqualified"
|
||||
version="2.0">
|
||||
|
||||
<xsd:import namespace="http://www.springframework.org/schema/beans" />
|
||||
@@ -16,13 +18,18 @@
|
||||
<xsd:element name="job">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
Defines a job composed of a set of steps and transitions between steps. The job will be exposed
|
||||
in the enclosing bean factory as a component of type Job that can be launched using a JobLauncher.
|
||||
Defines a job composed of a set of steps and
|
||||
transitions between steps. The job will be exposed
|
||||
in the enclosing bean factory as a component of type Job that can be
|
||||
launched using a JobLauncher.
|
||||
</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element ref="step" minOccurs="1" maxOccurs="unbounded" />
|
||||
<xsd:choice minOccurs="1" maxOccurs="unbounded" >
|
||||
<xsd:element ref="step" />
|
||||
<xsd:element ref="suspend" />
|
||||
</xsd:choice>
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="id" type="xsd:ID" use="required" />
|
||||
<xsd:attribute name="repository" type="xsd:string" use="optional">
|
||||
@@ -39,8 +46,10 @@
|
||||
<xsd:element name="step">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
Defines a stage in job processing. The name attribute has to match the id of a bean definition for
|
||||
a Step. The next attribute is a synonym for <next on="*" .../>
|
||||
Defines a stage in job processing. The name
|
||||
attribute has to match the id of a bean definition for
|
||||
a Step. The
|
||||
next attribute is a synonym for <next on="*" .../>
|
||||
</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
<xsd:complexType>
|
||||
@@ -79,5 +88,16 @@ specific match will be chosen to select the next step. Hint: always include a de
|
||||
</xsd:annotation></xsd:attribute>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
|
||||
<xsd:element name="suspend">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
Declares job should be paused at this point and provides pointer where execution should continue.
|
||||
</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="next" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
|
||||
</xsd:schema>
|
||||
Reference in New Issue
Block a user