Step Settings

This chapter explains how to define the attributes of a unit step of a batch job.

1. Basic Component Settings of a Step

A step of a batch job basically consists of ItemReader, ItemProcessor, and ItemWriter. Depending on the characteristics of these components, configure them as follows.

(1) When a business developer has directly implemented the step components as a bean, specify the bean name in "reader", "processor", and "writer" of "chunk" as shown below. As the standard composes ItemReader, ItemProcessor, and ItemWriter in a single bean, the names of reader, processor, and writer are the same.

<step id="BMdpLoadCustData100" parent="parentStep">
    <tasklet>
        <chunk reader="MMdpCustMng01" processor="MMdpCustMng01" writer="MMdpCustMng01"/>
    </tasklet>
</step>

2. DataSource Settings

You can configure the DataSource to be managed as a transaction in the step by using the "tm-datasource" attribute. If it is not specified separately, the default is "MainDS". For steps that execute some steps simultaneously (for example: split), this attribute must be defined.

<step id="BMdpLoadCustData100" parent="parentStep">
    <tasklet tm-datasource="MainDS">
        ...
    </tasklet>
</step>

When a batch job is restarted and its lower steps are executed, the unit steps that were completed in the previous execution are skipped because their processing has already been completed. If a step must always be executed upon batch job restart regardless of completion status (for example, a task to check whether the next step should proceed), specify the "allow-start-if-complete" attribute as "true" as shown below so that it is executed every time. (Default: false)

※ Note: If the parameter duplicate execution setting in Web Admin batch job management is set to "Y", the job is re-executed from the beginning and this option is not applied.

<step id="BMdpLoadCustData100" parent="parentStep">
    <tasklet allow-start-if-complete="true">
        <chunk reader="MMdpCustMng01" processor="MMdpCustMng01" writer="MMdpCustMng01"/>
    </tasklet>
</step>
SWLab Bankware Global
  • 전체
  • BXM
  • BXCM
  • BXCP
  • BXI
제품 선택 시 더 정확한 매뉴얼 가이드를 제공해드립니다.

Copyright© Bankwareglobal All Rights Reserved.