From aae3e2ecce95a9c4be17dc1a56b7dfb509a38f43 Mon Sep 17 00:00:00 2001 From: robokaso Date: Tue, 4 Nov 2008 13:28:07 +0000 Subject: [PATCH] RESOLVED - BATCH-895: Fix XML schema so that only top-level elements are allowed at top level (i.e. job). inlined definitions of child-only elements --- .../configuration/xml/spring-batch-2.0.xsd | 328 +++++++++--------- 1 file changed, 170 insertions(+), 158 deletions(-) diff --git a/spring-batch-core/src/main/resources/org/springframework/batch/core/configuration/xml/spring-batch-2.0.xsd b/spring-batch-core/src/main/resources/org/springframework/batch/core/configuration/xml/spring-batch-2.0.xsd index 3c1e88ef7..038912e5f 100644 --- a/spring-batch-core/src/main/resources/org/springframework/batch/core/configuration/xml/spring-batch-2.0.xsd +++ b/spring-batch-core/src/main/resources/org/springframework/batch/core/configuration/xml/spring-batch-2.0.xsd @@ -1,7 +1,9 @@ - @@ -19,16 +21,19 @@ 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 + the enclosing + bean factory as a component of type Job that can be - launched using a JobLauncher. + launched using a + JobLauncher. - + - - - - Defines a stage in job processing backed by a Step. The name - attribute has to match the id of a - bean definition for - a Step. The - next attribute is a synonym for <next on="*" .../> - - - - - - - - The step name is a reference to another bean definition where business logic is specified. - - - - - - - - - - - Defines a step transition from this step to the next one depending on the value of the exit status. - - - - - - A pattern to match against the exit status code. Use * and ? as wildcard characters. When a step finishes the most -specific match will be chosen to select the next step. Hint: always include a default transition with on="*". - - - - The name of the step to go to next. Must resolve to one of the other steps in this job. - - - - - - - - - Declares job should be stop at this point and provides pointer where execution should continue. - - - - - - A pattern to match against the exit status code. Use * and ? as wildcard characters. When a step finishes the most -specific match will be chosen to select the next step. Hint: always include a default transition with on="*". - - - - The name of the step to go to next. - Must resolve to one of the other steps in this job. - - - - - - - - - Declares job should be stop at this point and provides optional pointer where execution should continue. - - - - - - A pattern to match against the exit status code. Use * and ? as wildcard characters. When a step finishes the most -specific match will be chosen to select the next step. Hint: always include a default transition with on="*". - - - - - The BatchStatus value to end on, defaults to COMPLETED. - - - - - - - - - - - - - - - - Declares job should query a decider to determine where execution should go next. - - - - - - - - - -The decider is a reference to a JobExecutionDecider that can produce a status to base the next transition on. - - - - - - - - - - - - Declares job should split here into two or more subflows. - - - - - - - - - A subflow within a job, having the same format as a job, but without a separate identity. - - - - - - - - - - + - + - + - + - - + - + - - - - + + + + + Defines a stage in job processing backed by a + Step. The name + attribute has to match the id of a + bean definition + for + a Step. The + next attribute is a synonym for <next on="*" .../> + + + + + + + + + The step name is a reference to another bean definition where business logic is specified. + + + + + + + + + + + Declares job should split here into two or more subflows. + + + + + + + + + A subflow within a job, having the same format as a job, but without a separate identity. + + + + + + + + + + + + Declares job should query a decider to determine where execution should go next. + + + + + + + + + + The decider is a reference to a JobExecutionDecider that can produce a status to base + the next transition on. + + + + + + + @@ -253,8 +193,8 @@ The decider is a reference to a JobExecutionDecider that can produce a status to + A shortcut for specifying the next step to execute after this one, if there is only one choice. + If this attribute is specified, then there should be no other transition with a nested <next on="*" .../>]]> @@ -265,9 +205,81 @@ The decider is a reference to a JobExecutionDecider that can produce a status to - - - + + + + Defines a step transition from this step to the + next one depending on the value of the exit status. + + + + + + A pattern to match against the exit status + code. Use * and ? as wildcard characters. When a step finishes the + most + specific match will be chosen to select the next step. Hint: + always + include a default transition with on="*". + + + + + The name of the step to go to next. Must resolve to one of the other steps in this job. + + + + + + + + + Declares job should be stop at this point and provides pointer where execution should continue. + + + + + + A pattern to match against the exit status code. Use * and ? as wildcard characters. + When a step finishes the most specific match will be chosen to select the next step. + Hint: always include a default transition with on="*". + + + + The name of the step to go to next. + Must resolve to one of the other steps in this job. + + + + + + + + Declares job should be stop at this point and provides optional pointer where execution should continue. + + + + + + A pattern to match against the exit status code. Use * and ? as wildcard characters. + When a step finishes the most specific match will be chosen to select the next step. + Hint: always include a default transition with on="*". + + + + + The BatchStatus value to end on, defaults to COMPLETED. + + + + + + + + + + +