Center-Cut Data Extraction Related API (Batch)
Introduces APIs for data extraction in batch programs.
1. Creating CcutContext for Data Extraction
-
BXMCcutWorkUtils.startSelection(String ccId, String pcsnDt, Integer acptNo, Integer tnNo)
Creates a CcutContext to be used for Center-Cut data extraction and validates the required data. Since it must be called only once, it is recommended to call it in the @BeforeStep method.
| Type | Name | Description |
|---|---|---|
String |
ccId |
Center-Cut job ID |
String |
pcsnDt |
Acceptance date |
Integer |
acptNo |
Acceptance Number |
Integer |
tnNo |
Round Number |
| Type | Description |
|---|---|
CcutContext |
Information of the created CcutContext |
-
BXMCcutWorkUtils.startSelection(String domainId, String ccId, String pcsnDt, Integer acptNo, Integer tnNo)
In a multi-domain environment, creates a CcutContext to be used for Center-Cut data extraction and validates the required data. Since it must be called only once, it is recommended to call it in the @BeforeStep method.
| Type | Name | Description |
|---|---|---|
String |
domainId |
Domain ID |
String |
ccId |
Center-Cut job ID |
String |
pcsnDt |
Acceptance date |
Integer |
acptNo |
Acceptance Number |
Integer |
tnNo |
Round Number |
| Type | Description |
|---|---|
CcutContext |
Information of the created CcutContext |
2. Data Input API
-
BXMCcutWorkUtils.processSelection(CcutContext context, String keyValue, BigDecimal amt, IOmmObject object)
Based on the information in the created CcutContext, inserts the target data to be processed into the Center-Cut input table. It is called repeatedly for the number of target data records. keyValue is a key value for sequential processing; if processing is “Parallel”, enter null. amt is a value indicating the target amount to be processed; if there is no target amount, enter 0 (BigDecimal.ZERO).
| Type | Name | Description |
|---|---|---|
CcutContext |
context |
Context information for data extraction |
String |
keyValue |
Key value of input data (e.g., customer ID, etc.) |
BigDecimal |
amt |
Processing amount |
IOmmObject |
object |
Input data OMM object |
| Type | Description |
|---|---|
boolean |
true when processed normally |
3. Center-Cut Aggregation API
-
BXMCcutWorkUtils.endSelection(CcutContext context)
Aggregates the total number of processed records, total processed amount, etc., and registers the Center-Cut job. If this API is not called, the job is not registered and thus cannot be executed. Since it must be called only once, it is recommended to call it in @AfterStep.
| Type | Name | Description |
|---|---|---|
CcutContext |
context |
Context information for data extraction |
| Type | Description |
|---|---|
boolean |
true when processed normally |