blob: 750a32d43c7cce524158f79a0241d49a38e73acd [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
See the NOTICE file distributed with this work for additional information
regarding copyright ownership. Licensed under the Apache License,
Version 2.0 (the "License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<job id="diagram" xmlns="http://xmlns.jcp.org/xml/ns/javaee" version="1.0">
<step id="sd1" next="sd2">
<batchlet ref="org.apache.batchee.tools.maven.batchlet.SimpleBatchlet">
<properties>
<property name="sleep" value="#{jobParameters['sleep']}?:1;" />
<property name="fail" value="#{jobParameters['fail']}?:false;" />
</properties>
</batchlet>
</step>
<step id="sd2">
<batchlet ref="org.apache.batchee.tools.maven.batchlet.SimpleBatchlet">
<properties>
<property name="sleep" value="1" />
<property name="fail" value="false" />
</properties>
</batchlet>
<next on="fine" to="sd-chunk" />
<end on="*" exit-status="STOP-ON-2" />
</step>
<step id="sd-chunk">
<chunk>
<reader ref="jdbcReader">
<properties>
<property name="mapper" value="org.apache.batchee.extras.JdbcReaderTest$SimpleMapper" />
<property name="query" value="select * from FOO where name like 't%'" />
<property name="driver" value="org.apache.derby.jdbc.EmbeddedDriver" />
<property name="url" value="jdbc:derby:memory:jdbcreader;create=true" />
<property name="user" value="app" />
<property name="password" value="app" />
</properties>
</reader>
<processor ref="org.apache.batchee.extras.JdbcReaderTest$StoreItems" />
<writer ref="org.apache.batchee.extras.noop.NoopItemWriter" />
</chunk>
<next on="restart" to="sd1" />
<stop on="error" exit-status="ERROR"/>
<stop on="restart2" exit-status="RESTART" restart="sd-chunk"/>
<end on="finish" exit-status="DONE" />
<fail on="failed" exit-status="FAILED" />
</step>
</job>