BATCH-1084: renamed "status" attribute to "exit-code"

This commit is contained in:
dhgarrette
2009-02-18 16:23:27 +00:00
parent 7a8598e244
commit fd67b7f381
8 changed files with 16 additions and 16 deletions

View File

@@ -221,9 +221,9 @@ public class FlowParser extends AbstractSingleBeanDefinitionParser {
if (stateId != null && StringUtils.hasText(restartAttribute) && !restartAttribute.equals(stateId)) {
abandon = true;
}
String statusAttribute = transitionElement.getAttribute("status");
String exitCodeAttribute = transitionElement.getAttribute("exit-code");
return createTransition(batchStatus, onAttribute, nextAttribute, statusAttribute, stateDef, parserContext,
return createTransition(batchStatus, onAttribute, nextAttribute, exitCodeAttribute, stateDef, parserContext,
abandon);
}

View File

@@ -619,9 +619,9 @@
When a step finishes the most specific match will be chosen to select the next step.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="status" use="optional" type="xsd:string" default="COMPLETED">
<xsd:attribute name="exit-code" use="optional" type="xsd:string" default="COMPLETED">
<xsd:annotation>
<xsd:documentation>The ExitStatus value to end on, defaults to COMPLETED.</xsd:documentation>
<xsd:documentation>The exit code value to end on, defaults to COMPLETED.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:complexType>
@@ -639,9 +639,9 @@
When a step finishes the most specific match will be chosen to select the next step.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="status" use="optional" type="xsd:string" default="FAILED">
<xsd:attribute name="exit-code" use="optional" type="xsd:string" default="FAILED">
<xsd:annotation>
<xsd:documentation>The ExitStatus value to end on, defaults to FAILED.</xsd:documentation>
<xsd:documentation>The exit code value to end on, defaults to FAILED.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:complexType>

View File

@@ -11,7 +11,7 @@
<job id="job">
<step id="s1" ref="step1" next="fail"/>
<step id="fail" ref="failingStep">
<end on="*" status="COMPLETED EARLY TERMINATION"/>
<end on="*" exit-code="COMPLETED EARLY TERMINATION"/>
</step>
</job>

View File

@@ -11,7 +11,7 @@
<job id="job">
<step id="s1" ref="step1" next="fail"/>
<step id="fail" ref="failingStep">
<fail on="FAILED" status="FAILED EARLY TERMINATION"/>
<fail on="FAILED" exit-code="FAILED EARLY TERMINATION"/>
</step>
</job>

View File

@@ -14,7 +14,7 @@
</step>
<decision id="decision" decider="decider">
<next on="FOO" to="s2"/>
<end on="*" status="FAILED"/>
<end on="*" exit-code="FAILED"/>
</decision>
<step id="s2" ref="step2"/>
</job>