spring-batch icon indicating copy to clipboard operation
spring-batch copied to clipboard

Multiple flows nested - error when parsing the second flow. [BATCH-1872]

Open spring-projects-issues opened this issue 13 years ago • 1 comments
trafficstars

Histace Pierre opened BATCH-1872 and commented

We receive an error message when the application context is loading (parsing error on a table with the flow).

We have a configuration like : Main application context is like :

<import resource="classpath*:/be/speos/cads/init/FlowCadsOutputContext.xml"/>
<batch:job id="parallelJob">
   <batch:split id="readWrite" task-executor="taskExecutor">
   <batch:flow parent="flowCadsInput"/>		   	
   <batch:flow parent="flowCadsOutput"/>
   <batch:flow parent="flowCadsProcess"/>
   </batch:split>						
</batch:job>

In my custom context :

<batch:flow id="flowCadsOutput">
    <!-- I can create with the same syntax as in applicationContext flow parent... -->
    <batch:split id="splitOutput" task-executor="taskExecutor">
            <batch:flow parent="flowCadsOutput.outputStepFtp"/>
        </batch:split>
</batch:flow>

<batch:step id="flowCadsOutput.outputStepFtp">
   <batch:tasklet transaction-manager="transactionManager" start-limit="1">
      <batch:chunk reader="outputQueueFtpItemReader" writer="outputFileFtpItemWriter" commit-interval="10" />
   </batch:tasklet>
</batch:step>

Affects: 2.1.8

Attachments:

spring-projects-issues avatar Jun 25 '12 03:06 spring-projects-issues

Thank you for opening the issue. Can you retry with the latest release of Spring Batch and report back the results?

cppwfs avatar Jul 17 '23 13:07 cppwfs