BATCH-1387: fix some errors and check the effect of new bundle in STS
This commit is contained in:
@@ -155,7 +155,7 @@ public abstract class AbstractFlowParser extends AbstractSingleBeanDefinitionPar
|
||||
|
||||
String flowName = (String) builder.getRawBeanDefinition().getAttribute("flowName");
|
||||
if (!stepExists && !StringUtils.hasText(element.getAttribute("parent"))) {
|
||||
parserContext.getReaderContext().error("The flow [" + flowName + "] must contain at least one step",
|
||||
parserContext.getReaderContext().error("The flow [" + flowName + "] must contain at least one step, flow or split",
|
||||
element);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<beans:beans
|
||||
xmlns="http://www.springframework.org/schema/batch"
|
||||
xmlns:beans="http://www.springframework.org/schema/beans"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/batch http://www.springframework.org/schema/batch/spring-batch-2.1.xsd
|
||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
|
||||
|
||||
<beans:import resource="common-context.xml" />
|
||||
|
||||
<job id="job">
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<beans:beans
|
||||
xmlns="http://www.springframework.org/schema/batch"
|
||||
xmlns:beans="http://www.springframework.org/schema/beans"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/batch http://www.springframework.org/schema/batch/spring-batch-2.1.xsd
|
||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
|
||||
|
||||
<beans:import resource="common-context.xml" />
|
||||
|
||||
<job id="job">
|
||||
<step id="s1" parent="step1">
|
||||
<end on="COMPLETED"/>
|
||||
<fail on="COMPLETED"/>
|
||||
</step>
|
||||
</job>
|
||||
|
||||
</step>
|
||||
</job>
|
||||
|
||||
</beans:beans>
|
||||
@@ -1,32 +1,32 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<beans:beans xmlns="http://www.springframework.org/schema/batch"
|
||||
xmlns:beans="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/batch http://www.springframework.org/schema/batch/spring-batch-2.1.xsd
|
||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
|
||||
|
||||
<beans:import resource="common-context.xml" />
|
||||
|
||||
<job id="job1">
|
||||
<step id="s1" parent="step1" next="job1.flow" />
|
||||
<step id="job1.flow" next="s4">
|
||||
<flow parent="flow" />
|
||||
</step>
|
||||
<step id="s4" parent="step4" />
|
||||
</job>
|
||||
|
||||
<job id="job2">
|
||||
<step id="job2.s1" parent="step1" next="job2.flow" />
|
||||
<step id="job2.flow" parent="flow.step" next="job2.s4" />
|
||||
<step id="job2.s4" parent="step4" />
|
||||
</job>
|
||||
|
||||
<flow id="flow" abstract="true">
|
||||
<step id="s2" parent="step2" next="s3" />
|
||||
<step id="s3" parent="step3" />
|
||||
</flow>
|
||||
|
||||
<step id="flow.step" abstract="true">
|
||||
<flow parent="flow" />
|
||||
</step>
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<beans:beans xmlns="http://www.springframework.org/schema/batch"
|
||||
xmlns:beans="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/batch http://www.springframework.org/schema/batch/spring-batch-2.1.xsd
|
||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
|
||||
|
||||
<beans:import resource="common-context.xml" />
|
||||
|
||||
<job id="job1">
|
||||
<step id="s1" parent="step1" next="job1.flow" />
|
||||
<step id="job1.flow" next="s4">
|
||||
<flow parent="flow" />
|
||||
</step>
|
||||
<step id="s4" parent="step4" />
|
||||
</job>
|
||||
|
||||
<job id="job2">
|
||||
<step id="job2.s1" parent="step1" next="job2.flow" />
|
||||
<step id="job2.flow" parent="flow.step" next="job2.s4" />
|
||||
<step id="job2.s4" parent="step4" />
|
||||
</job>
|
||||
|
||||
<flow id="flow" abstract="true">
|
||||
<step id="s2" parent="step2" next="s3" />
|
||||
<step id="s3" parent="step3" />
|
||||
</flow>
|
||||
|
||||
<step id="flow.step" abstract="true">
|
||||
<flow parent="flow" />
|
||||
</step>
|
||||
|
||||
</beans:beans>
|
||||
@@ -92,8 +92,8 @@
|
||||
</job-listener>
|
||||
</beans:list>
|
||||
</beans:property>
|
||||
</beans:bean>
|
||||
<beans:bean id="dummyJobRepository"
|
||||
</beans:bean>
|
||||
<beans:bean id="dummyJobRepository"
|
||||
class="org.springframework.batch.core.configuration.xml.DummyJobRepository" />
|
||||
|
||||
<job id="listenerClearingJob" parent="baseJob">
|
||||
|
||||
@@ -1,38 +1,38 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<beans:beans xmlns="http://www.springframework.org/schema/batch"
|
||||
xmlns:beans="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/batch http://www.springframework.org/schema/batch/spring-batch-2.1.xsd
|
||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
|
||||
|
||||
<beans:import resource="common-context.xml" />
|
||||
|
||||
<job id="job1">
|
||||
<step id="s1" parent="step1" next="job1.flow" />
|
||||
<step id="job1.flow" next="s4">
|
||||
<job ref="flow" />
|
||||
</step>
|
||||
<step id="s4" parent="step4" />
|
||||
</job>
|
||||
|
||||
<job id="job2">
|
||||
<step id="job2.s1" parent="step1" next="job2.flow" />
|
||||
<step id="job2.flow" parent="flow.step" next="job2.s4" />
|
||||
<step id="job2.s4" parent="step4" />
|
||||
</job>
|
||||
|
||||
<job id="flow">
|
||||
<step id="s2" parent="step2" next="s3" />
|
||||
<step id="s3" parent="step3" />
|
||||
</job>
|
||||
|
||||
<step id="flow.step" abstract="true">
|
||||
<job ref="flow" job-launcher="jobLauncher" job-parameters-extractor="jobParametersExtractor"/>
|
||||
</step>
|
||||
|
||||
<beans:bean id="jobParametersExtractor" class="org.springframework.batch.core.step.job.DefaultJobParametersExtractor"/>
|
||||
|
||||
<beans:bean id="jobLauncher" class="org.springframework.batch.core.launch.support.SimpleJobLauncher">
|
||||
<beans:property name="jobRepository" ref="jobRepository"/>
|
||||
</beans:bean>
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<beans:beans xmlns="http://www.springframework.org/schema/batch"
|
||||
xmlns:beans="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/batch http://www.springframework.org/schema/batch/spring-batch-2.1.xsd
|
||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
|
||||
|
||||
<beans:import resource="common-context.xml" />
|
||||
|
||||
<job id="job1">
|
||||
<step id="s1" parent="step1" next="job1.flow" />
|
||||
<step id="job1.flow" next="s4">
|
||||
<job ref="flow" />
|
||||
</step>
|
||||
<step id="s4" parent="step4" />
|
||||
</job>
|
||||
|
||||
<job id="job2">
|
||||
<step id="job2.s1" parent="step1" next="job2.flow" />
|
||||
<step id="job2.flow" parent="flow.step" next="job2.s4" />
|
||||
<step id="job2.s4" parent="step4" />
|
||||
</job>
|
||||
|
||||
<job id="flow">
|
||||
<step id="s2" parent="step2" next="s3" />
|
||||
<step id="s3" parent="step3" />
|
||||
</job>
|
||||
|
||||
<step id="flow.step" abstract="true">
|
||||
<job ref="flow" job-launcher="jobLauncher" job-parameters-extractor="jobParametersExtractor"/>
|
||||
</step>
|
||||
|
||||
<beans:bean id="jobParametersExtractor" class="org.springframework.batch.core.step.job.DefaultJobParametersExtractor"/>
|
||||
|
||||
<beans:bean id="jobLauncher" class="org.springframework.batch.core.launch.support.SimpleJobLauncher">
|
||||
<beans:property name="jobRepository" ref="jobRepository"/>
|
||||
</beans:bean>
|
||||
|
||||
</beans:beans>
|
||||
@@ -1,17 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<beans:beans xmlns="http://www.springframework.org/schema/batch" xmlns:beans="http://www.springframework.org/schema/beans"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/batch http://www.springframework.org/schema/batch/spring-batch-2.1.xsd
|
||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
|
||||
|
||||
<beans:import resource="common-context.xml" />
|
||||
|
||||
<job id="job">
|
||||
<step id="s1" parent="step1" next="s3">
|
||||
<next on="COMPLETED WITH SKIPS" to="s2" />
|
||||
</step>
|
||||
<step id="s2" parent="step2"/>
|
||||
<step id="s3" parent="step3"/>
|
||||
</job>
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<beans:beans xmlns="http://www.springframework.org/schema/batch" xmlns:beans="http://www.springframework.org/schema/beans"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/batch http://www.springframework.org/schema/batch/spring-batch-2.1.xsd
|
||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
|
||||
|
||||
<beans:import resource="common-context.xml" />
|
||||
|
||||
<job id="job">
|
||||
<step id="s1" parent="step1" next="s3">
|
||||
<next on="COMPLETED WITH SKIPS" to="s2" />
|
||||
</step>
|
||||
<step id="s2" parent="step2"/>
|
||||
<step id="s3" parent="step3"/>
|
||||
</job>
|
||||
|
||||
</beans:beans>
|
||||
@@ -1,36 +1,36 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<beans:beans xmlns="http://www.springframework.org/schema/batch"
|
||||
xmlns:beans="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/batch http://www.springframework.org/schema/batch/spring-batch-2.1.xsd
|
||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
|
||||
|
||||
<beans:import resource="common-context.xml" />
|
||||
|
||||
<job id="job1">
|
||||
<step id="s1">
|
||||
<partition step="step1" partitioner="partitioner">
|
||||
<handler task-executor="taskExecutor" grid-size="2" />
|
||||
</partition>
|
||||
</step>
|
||||
</job>
|
||||
|
||||
<job id="job2">
|
||||
<step id="s2" next="s3">
|
||||
<partition step="step1" handler="handler" partitioner="partitioner"/>
|
||||
</step>
|
||||
<step id="s3" parent="step2"/>
|
||||
</job>
|
||||
|
||||
<bean id="handler"
|
||||
class="org.springframework.batch.core.partition.support.TaskExecutorPartitionHandler"
|
||||
xmlns="http://www.springframework.org/schema/beans">
|
||||
<property name="step" ref="step1"/>
|
||||
</bean>
|
||||
|
||||
<beans:bean id="taskExecutor"
|
||||
class="org.springframework.core.task.SimpleAsyncTaskExecutor" />
|
||||
|
||||
<beans:bean id="partitioner"
|
||||
class="org.springframework.batch.core.partition.support.SimplePartitioner" />
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<beans:beans xmlns="http://www.springframework.org/schema/batch"
|
||||
xmlns:beans="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/batch http://www.springframework.org/schema/batch/spring-batch-2.1.xsd
|
||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
|
||||
|
||||
<beans:import resource="common-context.xml" />
|
||||
|
||||
<job id="job1">
|
||||
<step id="s1">
|
||||
<partition step="step1" partitioner="partitioner">
|
||||
<handler task-executor="taskExecutor" grid-size="2" />
|
||||
</partition>
|
||||
</step>
|
||||
</job>
|
||||
|
||||
<job id="job2">
|
||||
<step id="s2" next="s3">
|
||||
<partition step="step1" handler="handler" partitioner="partitioner"/>
|
||||
</step>
|
||||
<step id="s3" parent="step2"/>
|
||||
</job>
|
||||
|
||||
<bean id="handler"
|
||||
class="org.springframework.batch.core.partition.support.TaskExecutorPartitionHandler"
|
||||
xmlns="http://www.springframework.org/schema/beans">
|
||||
<property name="step" ref="step1"/>
|
||||
</bean>
|
||||
|
||||
<beans:bean id="taskExecutor"
|
||||
class="org.springframework.core.task.SimpleAsyncTaskExecutor" />
|
||||
|
||||
<beans:bean id="partitioner"
|
||||
class="org.springframework.batch.core.partition.support.SimplePartitioner" />
|
||||
|
||||
</beans:beans>
|
||||
Reference in New Issue
Block a user