|
|
|
|
@@ -1,48 +1,49 @@
|
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
|
|
|
xmlns:batch="http://www.springframework.org/schema/batch"
|
|
|
|
|
xmlns:aop="http://www.springframework.org/schema/aop"
|
|
|
|
|
xmlns:tx="http://www.springframework.org/schema/tx"
|
|
|
|
|
xmlns:p="http://www.springframework.org/schema/p"
|
|
|
|
|
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.0.xsd
|
|
|
|
|
http://www.springframework.org/schema/beans
|
|
|
|
|
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
|
|
|
|
|
|
|
|
|
|
<import resource="nonSequentialJob-base.xml" />
|
|
|
|
|
|
|
|
|
|
<bean id="skipCheckingDecider" class="org.springframework.batch.sample.domain.nonSequential.internal.SkipCheckingDecider"/>
|
|
|
|
|
|
|
|
|
|
<batch:job id="nonSequentialDecisionJob">
|
|
|
|
|
<batch:step name="playerload">
|
|
|
|
|
<batch:next on="*" to="skipCheckingDecision" />
|
|
|
|
|
</batch:step>
|
|
|
|
|
<batch:decision id="skipCheckingDecision" decider="skipCheckingDecider">
|
|
|
|
|
<batch:end on="FAILED" status="FAILED"/>
|
|
|
|
|
<batch:next on="COMPLETED WITH SKIPS" to="errorPrint" />
|
|
|
|
|
<batch:next on="*" to="gameLoad" />
|
|
|
|
|
</batch:decision>
|
|
|
|
|
<batch:step name="errorPrint">
|
|
|
|
|
<batch:next on="*" to="gameLoad" />
|
|
|
|
|
</batch:step>
|
|
|
|
|
<batch:step name="gameLoad">
|
|
|
|
|
<batch:next on="*" to="playerSummarization" />
|
|
|
|
|
</batch:step>
|
|
|
|
|
<batch:step name="playerSummarization"/>
|
|
|
|
|
</batch:job>
|
|
|
|
|
|
|
|
|
|
<bean id="footballProperties" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
|
|
|
|
|
<property name="properties">
|
|
|
|
|
<value>
|
|
|
|
|
games.file.name=games-small.csv
|
|
|
|
|
<!-- player.file.name=player-small.csv-->
|
|
|
|
|
player.file.name=player-containsBadRecords.csv
|
|
|
|
|
job.commit.interval=2
|
|
|
|
|
</value>
|
|
|
|
|
</property>
|
|
|
|
|
<property name="systemPropertiesModeName" value="SYSTEM_PROPERTIES_MODE_OVERRIDE" />
|
|
|
|
|
<property name="ignoreUnresolvablePlaceholders" value="true" />
|
|
|
|
|
<property name="order" value="1" />
|
|
|
|
|
</bean>
|
|
|
|
|
</beans>
|
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
|
|
|
xmlns:batch="http://www.springframework.org/schema/batch"
|
|
|
|
|
xmlns:aop="http://www.springframework.org/schema/aop"
|
|
|
|
|
xmlns:tx="http://www.springframework.org/schema/tx"
|
|
|
|
|
xmlns:p="http://www.springframework.org/schema/p"
|
|
|
|
|
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.0.xsd
|
|
|
|
|
http://www.springframework.org/schema/beans
|
|
|
|
|
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
|
|
|
|
|
|
|
|
|
|
<import resource="nonSequentialJob-base.xml" />
|
|
|
|
|
|
|
|
|
|
<bean id="skipCheckingDecider" class="org.springframework.batch.sample.domain.football.internal.SkipCheckingDecider"/>
|
|
|
|
|
|
|
|
|
|
<batch:job id="nonSequentialDecisionJob">
|
|
|
|
|
<batch:step name="playerload">
|
|
|
|
|
<batch:next on="*" to="skipCheckingDecision" />
|
|
|
|
|
</batch:step>
|
|
|
|
|
<batch:decision id="skipCheckingDecision" decider="skipCheckingDecider">
|
|
|
|
|
<batch:end on="FAILED" status="FAILED"/>
|
|
|
|
|
<batch:next on="COMPLETED WITH SKIPS" to="errorPrint" />
|
|
|
|
|
<batch:next on="*" to="gameLoad" />
|
|
|
|
|
</batch:decision>
|
|
|
|
|
<batch:step name="errorPrint">
|
|
|
|
|
<batch:next on="*" to="gameLoad" />
|
|
|
|
|
</batch:step>
|
|
|
|
|
<batch:step name="gameLoad">
|
|
|
|
|
<batch:next on="*" to="playerSummarization" />
|
|
|
|
|
</batch:step>
|
|
|
|
|
<batch:step name="playerSummarization"/>
|
|
|
|
|
</batch:job>
|
|
|
|
|
|
|
|
|
|
<bean id="footballProperties" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
|
|
|
|
|
<property name="properties">
|
|
|
|
|
<value>
|
|
|
|
|
games.file.name=games-small.csv
|
|
|
|
|
<!-- player.file.name=player-small.csv-->
|
|
|
|
|
player.file.name=player-containsBadRecords.csv
|
|
|
|
|
job.commit.interval=2
|
|
|
|
|
</value>
|
|
|
|
|
</property>
|
|
|
|
|
<property name="systemPropertiesModeName" value="SYSTEM_PROPERTIES_MODE_OVERRIDE" />
|
|
|
|
|
<property name="ignoreUnresolvablePlaceholders" value="true" />
|
|
|
|
|
<property name="order" value="1" />
|
|
|
|
|
</bean>
|
|
|
|
|
|
|
|
|
|
</beans>
|
|
|
|
|
|