<?xml version="1.0" encoding="UTF-8"?>
<job id="partitionedJob" xmlns="http://xmlns.jcp.org/xml/ns/javaee" version="1.0">
  <step id="partitionWorkerStep">
    <chunk item-count="5">
      <reader ref="jsr.TestPartitionedItemReader">
        <properties>
          <property name="start" value="#{partitionPlan['start']}"/>
          <property name="end" value="#{partitionPlan['end']}"/>
        </properties>
      </reader>
      <processor ref="jsr.TestItemProcessor"/>
      <writer ref="jsr.TestItemWriter"/>
    </chunk>
    <partition>
      <plan partitions="2" threads="2">
        <properties partition="0">
          <property name="start" value="0"/>
          <property name="end" value="8"/>
        </properties>
        <properties partition="1">
          <property name="start" value="8"/>
          <property name="end" value="13"/>
        </properties>
      </plan>
    </partition>
  </step>
</job>
