Hello,

I want to repeat jobSteps on basis of the result of a partitioner. But I don't now how to update (on basis of the partitioner-results) the jobParameters of the jobStep.

Does anyone know a example of a partitioner launchng JobSteps.

My POC as described below throws the exception "JobInstanceAlreadyCompleteException" when launching the second "MyJob" instance:

<job id="ParallelJob" >
<step id="parallelstep" >
<partition step="myJobStep" partitioner="partitioner">
</partition>
</step>
</job>

<job id="myJob" >
<step id="step1" next="step2">
<tasklet ref="testTasklet1" />
</step>
<step id="step2" >
<tasklet ref="testTasklet2" />
</step>
</job>

<bean id="testTasklet1" scope = "step" class="sandbox.TestTasklet">
</bean>
<bean id="testTasklet1" scope = "step" class="sandbox.TestTasklet2">
</bean>

<bean id="partitioner" class="sandbox.TestPartitioner">
<property name="dataSource" ref="configDataSource" />
<property name="table" value="RTISL_CLIENT" />
<property name="column" value="CLIENT_ID" />
</bean>

<bean id="myJobStep" >
<property name="job" ref="myJob" />
<property name="jobLauncher" ref="jobLauncher" />
<property name="jobRepository" ref="jobRepository" />
</bean>
regards,
Martin