# Business Logic — JBSbatKKRsvTokiHakTgCst.outputTokiStart() [122 LOC]

| Field | Value |
|-------|-------|
| Fully Qualified Name | `eo.business.service.JBSbatKKRsvTokiHakTgCst` |
| Layer | Service (Batch) |
| Module | `service` (Package: `eo.business.service`) |

## 1. Role

### JBSbatKKRsvTokiHakTgCst.outputTokiStart()

This method outputs anticipated token (トーキ) issuance data to an intermediate file for the batch job that generates **SOD (Service Order Data)** - the electronic order data exchanged between telecom providers during service migration (移転) scenarios. Specifically, it determines which tokens (トーキ) need to be started or cancelled based on the service contract status and various token registration codes, then writes the corresponding intermediate map records via `addOutMapList`.

The method handles three distinct token start scenarios: (a) **token start due to destination-side registration** when a migrated service's destination side has activated (i.e., the customer has successfully completed service transfer); (b) **token start due to source-side contract cancellation** when the original service provider's contract has been terminated (under conditions such as "contract cancelled" or "service terminated with reason other than forced cancellation"); and (c) **token start due to suspension** when the service contract is in a "suspended (SOD issued)" state.

It implements a **routing/dispatch pattern** - extracting fields from the input `inMap`, evaluating a series of mutually-exclusive (or overlapping) conditions based on token registration codes and service status constants, and dispatching to `createRsvTokiHakFile` to generate intermediate output records for each applicable scenario. It also supports **token cancellation** - when a source-side cancellation token has already been started, this method marks it as cancelled by flagging `isEndItenmDslToki = true`.

The method is called by `JBSbatKKRsvTokiHakTgCst.execute()`, making it a sub-routine within the batch processing chain for handling reservation token start operations during contract migration (移転) workflows.

## 2. Processing Pattern (Detailed Business Logic)

```mermaid
flowchart TD
    START(["outputTokiStart inMap outputBean"])
    READ["Read fields from inMap trim getString"]
    INIT["isEndItenmDslToki = false"]
    COND_A{"ItensOpafTokiAddCd == ITNTOKI_ADD_CD_ITENS"}
    COND_A_STAT{"SvcKeiUcwkStat == SVC_KEI_STAT_DSL_ZM AND SvcDlreCd != SVC_DLRE_CD_KSI_SLRE OR SvcKeiUcwkStat == SVC_KEI_STAT_CNCL_ZM"}
    COND_A_NODATE1{"IsNullDate ItensOpafTokiStaYmd"}
    COND_A_NODATE2{"IsNullDate ItensOpafTokiEndYmd"}
    COND_A_SAKI{"SakiSvcKeiUcwkStat == SVC_KEI_STAT_SVCTKCHU"}
    GET_SOD1["GetSodHkSbtCd ItensOpafTokiEndRsymd"]
    COND_SOD{"SodHkSbtCd != SOD_HAK_SBT_CD_NONE"}
    COND_ITENM{"DslPauseTokiAddCd == ITNTOKI_ADD_CD_ITENM AND IsNullDate DslPauseTokiEndYmd"}
    COND_ITENM_STA{"IsNullDate DslPauseTokiStaYmd"}
    CREATE_END1["CreateRsvTokiHakFile SOD_HAK_SBT_CD_NONE ITNTOKI_ADD_CD_ITENM"]
    CREATE_END2["CreateRsvTokiHakFile SOD_HAK_SBT_CD_END ITNTOKI_ADD_CD_ITENM"]
    FLAG_TRUE["isEndItenmDslToki = true"]
    CHECK_CHECK_END{"OutmapItenmEnd != null"}
    ADD_END["OutputBean addOutMapList OutmapItenmEnd"]
    CREATE_A["CreateRsvTokiHakFile SodHkSbtCd ITNTOKI_ADD_CD_ITENS"]
    ADD_A["OutputBean addOutMapList Outmap"]
    CHECK_NOT_END{"isEndItenmDslToki == false"}
    COND_B{"DslPauseTokiAddCd == ITNTOKI_ADD_CD_ITENM AND SvcKeiUcwkStat == SVC_KEI_STAT_DSL_ZM AND SvcDlreCd != SVC_DLRE_CD_KSI_SLRE OR SvcKeiUcwkStat == SVC_KEI_STAT_CNCL_ZM AND IsNullDate DslPauseTokiStaYmd AND IsNullDate DslPauseTokiEndYmd"}
    CREATE_B["CreateRsvTokiHakFile GetSodHkSbtCd DslPauseTokiEndRsymd ITNTOKI_ADD_CD_ITENM"]
    ADD_B["OutputBean addOutMapList Outmap"]
    COND_C{"DslPauseTokiAddCd == ITNTOKI_ADD_CD_PAUSE AND SvcKeiUcwkStat == SVC_KEI_STAT_PAUSE_STP AND PauseStpCd == PAUSE_STP_CD_PAUSECHU_SODHAKZM AND IsNullDate DslPauseTokiStaYmd AND IsNullDate DslPauseTokiEndYmd"}
    CREATE_C["CreateRsvTokiHakFile GetSodHkSbtCd DslPauseTokiEndRsymd ITNTOKI_ADD_CD_PAUSE"]
    ADD_C["OutputBean addOutMapList Outmap"]
    RETURN["Return isEndItenmDslToki"]
    END(["End"])

    START --> READ
    READ --> INIT
    INIT --> COND_A
    COND_A --> |true| COND_A_STAT
    COND_A --> |false| CHECK_NOT_END
    COND_A_STAT --> |true| COND_A_NODATE1
    COND_A_STAT --> |false| CHECK_NOT_END
    COND_A_NODATE1 --> |true| COND_A_NODATE2
    COND_A_NODATE1 --> |false| CHECK_NOT_END
    COND_A_NODATE2 --> |true| COND_A_SAKI
    COND_A_NODATE2 --> |false| CHECK_NOT_END
    COND_A_SAKI --> |true| GET_SOD1
    COND_A_SAKI --> |false| CHECK_NOT_END
    GET_SOD1 --> COND_SOD
    COND_SOD --> |true| COND_ITENM
    COND_SOD --> |false| CREATE_A
    COND_ITENM --> |true| COND_ITENM_STA
    COND_ITENM --> |false| CHECK_CHECK_END
    COND_ITENM_STA --> |true| CREATE_END1
    COND_ITENM_STA --> |false| CREATE_END2
    CREATE_END1 --> FLAG_TRUE
    CREATE_END2 --> FLAG_TRUE
    FLAG_TRUE --> CHECK_CHECK_END
    CHECK_CHECK_END --> |true| ADD_END
    CHECK_CHECK_END --> |false| CREATE_A
    ADD_END --> CREATE_A
    CREATE_A --> ADD_A
    ADD_A --> END
    CHECK_NOT_END --> |true| COND_B
    CHECK_NOT_END --> |false| RETURN
    COND_B --> |true| CREATE_B
    COND_B --> |false| COND_C
    CREATE_B --> ADD_B
    ADD_B --> COND_C
    COND_C --> |true| CREATE_C
    COND_C --> |false| RETURN
    CREATE_C --> ADD_C
    ADD_C --> RETURN
```

**Constant Resolution Reference:**

| Constant | Value | Business Meaning |
|----------|-------|-----------------|
| `ITNTOKI_ADD_CD_ITENS` | `"1"` | Token registration code - Token due to destination-side registration (移転先登録によるトーキ) |
| `ITNTOKI_ADD_CD_ITENM` | `"2"` | Token registration code - Token due to source-side cancellation (移転元解約によるトーキ) |
| `ITNTOKI_ADD_CD_PAUSE` | `"3"` | Token registration code - Token due to suspension (休止によるトーキ) |
| `SVC_KEI_STAT_SVCTKCHU` | `"100"` | Service contract status - Service in progress (サービス提供中) |
| `SVC_KEI_STAT_PAUSE_STP` | `"210"` | Service contract status - Suspended (休止・中断中) |
| `SVC_KEI_STAT_DSL_ZM` | `"910"` | Service contract status - Terminated (解約済) |
| `SVC_KEI_STAT_CNCL_ZM` | `"920"` | Service contract status - Cancelled (キャンセル済) |
| `SVC_DLRE_CD_KSI_SLRE` | `"02"` | Service cancellation reason code - Forced cancellation (強制解約) |
| `PAUSE_STP_CD_PAUSECHU_SODHAKZM` | `"01"` | Suspension interruption code - Suspended (SOD issued) (休止中(SOD発行済)) |
| `SOD_HAK_SBT_CD_NONE` | `"0"` | SOD issuance type code - No SOD issuance (SOD発行無し) |
| `SOD_HAK_SBT_CD_STA` | `"1"` | SOD issuance type code - Start SOD issuance (開始SOD発行) |
| `SOD_HAK_SBT_CD_END` | `"2"` | SOD issuance type code - End SOD issuance (終了SOD発行) |
| `SAKI_SVC_KEI_UCWK_STAT` | `"SAKI_SVC_KEI_UCWK_STAT"` | Destination service contract status field key |

## 3. Parameter Analysis

| No | Parameter Name | Type | Business Description |
|----|---------------|------|---------------------|
| 1 | `inMap` | `JBSbatServiceInterfaceMap` | Input message map containing service migration token data. It carries fields such as DSL pause token addition code, token start/end dates, token expected end date, service contract status, pause stop code, service cancellation reason code, and the destination-side service contract status. These fields collectively determine whether and what type of token start SOD should be issued during the batch processing cycle. |
| 2 | `outputBean` | `JBSbatOutputItem` | Output message container. This method writes intermediate maps for each applicable token start scenario by calling `addOutMapList` on this object. The intermediate maps are later processed to generate SOD (Service Order Data) files for telecom provider exchange. |

**Instance fields / external state read:**
| Field | Type | Business Description |
|-------|------|---------------------|
| `SAKI_SVC_KEI_UCWK_STAT` | `String` | Constant key for destination-side service contract status field (移転先開通後トーキ転送先サービス契約内線番号) |
| `SOD_HAK_SBT_CD_NONE` | `String` | Constant: "0" - SOD issuance type: no SOD issuance (SOD発行無し) |
| `SOD_HAK_SBT_CD_END` | `String` | Constant: "2" - SOD issuance type: end SOD issuance (終了SOD発行) |

## 4. CRUD Operations / Called Services

| CRUD | SC / CBS | SC Code | Entity / DB | Operation Description |
|------|----------|---------|-------------|----------------------|
| - | `JBSbatInterface.trim` | JBSbatInterface | - | Trims whitespace from extracted string fields |
| R | `JBSbatFUCaseFileRnkData.getString` | JBSbatFUCaseFileRnkData | - | Reads string field from inMap (alias - method called on inMap) |
| C | `JBSbatKKGetCTITelno.addOutMapList` | JBSbatKKGetCTITelno | - | Adds intermediate map to output list |
| C | `JBSbatKKRsvTokiHakTgCst.createRsvTokiHakFile` | JBSbatKKRsvTokiHakTgCst | - | Creates reservation token start intermediate file data (generates SOD output map for the given SOD type and token registration code) |
| R | `JBSbatKKRsvTokiHakTgCst.getSodHkSbtCd` | JBSbatKKRsvTokiHakTgCst | - | Determines SOD issuance type code based on token expected end date |
| R | `JBSbatKKRsvTokiHakTgCst.isNullDate` | JBSbatKKRsvTokiHakTgCst | - | Checks if a date string is null or empty (used for start/end date validation) |
| R | `JBSbatKKBmpKaihkPrdChokNoDel.trim` | JBSbatKKBmpKaihkPrdChokNoDel | - | Trims whitespace from extracted string fields |
| - | `JBSbatKKSodSendReqBase.trim` | JBSbatKKSodSendReqBase | - | Trims whitespace from extracted string fields |
| - | `JBSbatKKTchishoDelete.trim` | JBSbatKKTchishoDelete | - | Trims whitespace from extracted string fields |
| R | `JBSbatZMAdDataSet.getString` | JBSbatZMAdDataSet | - | Reads string field from inMap (alias - method called on inMap) |
| R | `JESC0101B010TPMA.getString` | JESC0101B010TPMA | - | Reads string field from inMap (alias - method called on inMap) |
| R | `JESC0101B020TPMA.getString` | JESC0101B020TPMA | JESC0101B020TPMA | Reads string field from inMap (alias - method called on inMap) |

**Key called methods analysis:**

- **`createRsvTokiHakFile(inMap, sodHkSbtCd, itokiAddCd)`** (lines 197, 213, 217, 246, 267): Creates an intermediate `JBSbatServiceInterfaceMap` containing data for anticipated token issuance. Takes the input map, an SOD issuance type code (`SOD_HAK_SBT_CD_NONE`="0", `SOD_HAK_SBT_CD_END`="2", or `SOD_HAK_SBT_CD_STA`="1"), and a token registration code (`ITNTOKI_ADD_CD_ITENS`="1", `ITNTOKI_ADD_CD_ITENM`="2", or `ITNTOKI_ADD_CD_PAUSE`="3"). This is a Create (C) operation that generates SOD output data.

- **`getSodHkSbtCd(dateString)`** (lines 184, 245, 266): Returns the SOD issuance type code based on the token expected end date. Returns `SOD_HAK_SBT_CD_NONE`="0" if no SOD should be issued. This is a Read (R) operation.

- **`isNullDate(dateString)`** (lines 174, 175, 194, 239, 260): Utility method that checks whether a date string is null or empty. Used throughout to validate that token start/end dates have not been set (indicating pending/anticipated tokens).

- **`outputBean.addOutMapList(map)`** (lines 214, 218, 247, 268): Adds the created intermediate map to the output list. Each call represents a token start record that will be processed downstream. These are Create (C) operations.

## 5. Dependency Trace

| # | Caller (Screen/Batch) | Call Chain (Full Path to this Method) | Terminal (SC / CRUD / Entity) |
|---|----------------------|--------------------------------------|-------------------------------|
| 1 | Batch: JBSbatKKRsvTokiHakTgCst.execute() | `JBSbatKKRsvTokiHakTgCst.execute()` → `outputTokiStart(inMap, outputBean)` | `createRsvTokiHakFile [C]`, `getSodHkSbtCd [R]`, `addOutMapList [C]` |

**Call chain detail:**
- The `execute()` method (same class) orchestrates the overall batch processing flow for reservation token start operations. It invokes `outputTokiStart()` as one of its core processing steps, passing an input map and output bean. The method processes the token start conditions and writes intermediate SOD output records to the bean.

## 6. Per-Branch Detail Blocks

**Block 1** — FIELD_EXTRACTION (L152-L164)

Extract all required fields from the input message map. Each field is trimmed and retrieved via `inMap.getString()`.

| # | Type | Code | Business Description |
|---|------|------|---------------------|
| 1 | SET | `dslPauseTokiAddCd = trim(inMap.getString(DSL_PAUSE_TOKI_ADD_CD))` | DSL pause token addition code (移転トーキ登録コード) |
| 2 | SET | `dslPauseTokiStaYmd = trim(inMap.getString(DSL_PAUSE_TOKI_STA_YMD))` | DSL pause token start year/month/day (休止トーキ開始年月日) |
| 3 | SET | `dslPauseTokiEndRsymd = trim(inMap.getString(DSL_PAUSE_TOKI_END_RSYMD))` | DSL pause token expected end year/month/day (休止トーキ予定終了年月日) |
| 4 | SET | `dslPauseTokiEndYmd = trim(inMap.getString(DSL_PAUSE_TOKI_END_YMD))` | DSL pause token end year/month/day (休止トーキ終了年月日) |
| 5 | SET | `itensOpafTokiAddCd = trim(inMap.getString(ITENS_OPAF_TOKI_ADD_CD))` | Destination-side token addition code (移転先トーキ登録コード) |
| 6 | SET | `itensOpafTokiStaYmd = trim(inMap.getString(ITENS_OPAF_TOKI_STA_YMD))` | Destination-side token start year/month/day (移転先開通後トーキ開始年月日) |
| 7 | SET | `itensOpafTokiEndRsymd = trim(inMap.getString(ITENS_OPAF_TOKI_END_RSYMD))` | Destination-side token expected end year/month/day (移転先開通後トーキ予定終了年月日) |
| 8 | SET | `itensOpafTokiEndYmd = trim(inMap.getString(ITENS_OPAF_TOKI_END_YMD))` | Destination-side token end year/month/day (移転先開通後トーキ終了年月日) |
| 9 | SET | `svcKeiUcwkStat = trim(inMap.getString(SVC_KEI_UCWK_STAT))` | Service contract status (サービス契約内線ステータス) |
| 10 | SET | `pauseStpCd = trim(inMap.getString(PAUSE_STP_CD))` | Pause stop code (休止停止コード) |
| 11 | SET | `svcDlreCd = trim(inMap.getString(SVC_DLRE_CD))` | Service cancellation reason code (サービス解約理由コード) |
| 12 | SET | `sakiSvcKeiUcwkStat = trim(inMap.getString(SAKI_SVC_KEI_UCWK_STAT))` | Destination-side service contract status (移転先開通後サービス契約内線番号のステータス) |

**Block 2** — INITIALIZATION (L167)

| # | Type | Code | Business Description |
|---|------|------|---------------------|
| 1 | SET | `isEndItenmDslToki = false` | Initialize cancellation flag - set to true if source cancellation token was cancelled or ended (移転元解約によるトーキ取消終了フラグ) |

**Block 3** — BRANCH (a) [IF] — Destination-side registration token start condition (L169-L219)

Condition: Token is for destination-side registration (`ITNTOKI_ADD_CD_ITENS = "1"`) AND (service status is "terminated" with reason other than "forced cancellation" OR service status is "cancelled") AND destination token start date is unset AND destination token end date is unset AND destination-side service status is "service in progress" (`SVC_KEI_STAT_SVCTKCHU = "100"`).

This branch handles: When the customer has completed service transfer and the destination side has activated, determine whether to start a token for the destination-side registration.

| # | Type | Code | Business Description |
|---|------|------|---------------------|
| 1 | SET | `sodHkSbtCd = getSodHkSbtCd(itensOpafTokiEndRsymd)` | Determine SOD issuance type from destination token expected end date |
| 2 | IF | `!SOD_HAK_SBT_CD_NONE.equals(sodHkSbtCd)` `[SOD_HAK_SBT_CD_NONE="0"]` | If SOD should be issued (not "no SOD") |
| 2.1 | IF | `JKKBatConst.ITNTOKI_ADD_CD_ITENM.equals(dslPauseTokiAddCd)` `[ITNTOKI_ADD_CD_ITENM="2"]` AND `isNullDate(dslPauseTokiEndYmd)` | Source cancellation token exists and end date is unset |
| 2.1.1 | IF | `isNullDate(dslPauseTokiStaYmd)` | Source cancellation token start date is unset (not yet started) |
| 2.1.1.1 | CALL | `createRsvTokiHakFile(inMap, SOD_HAK_SBT_CD_NONE, ITNTOKI_ADD_CD_ITENM)` `[SOD_HAK_SBT_CD_NONE="0"]` | Create intermediate with "no SOD issuance" - cancellation token before it started |
| 2.1.2 | ELSE | (start date IS set) | Source cancellation token has started |
| 2.1.2.1 | CALL | `createRsvTokiHakFile(inMap, SOD_HAK_SBT_CD_END, ITNTOKI_ADD_CD_ITENM)` `[SOD_HAK_SBT_CD_END="2"]` | Create intermediate with "end SOD issuance" - cancellation token already in progress |
| 2.1.3 | SET | `isEndItenmDslToki = true` | Flag that source cancellation token was cancelled/ended (移転元解約によるトーキ取消終了) |
| 2.2 | IF | `null != outmapItenmEnd` | If intermediate was created for source cancellation cancellation |
| 2.2.1 | CALL | `outputBean.addOutMapList(outmapItenmEnd)` | Output the source cancellation token cancellation intermediate BEFORE the destination-side token (出力を先に) |
| 3 | CALL | `createRsvTokiHakFile(inMap, sodHkSbtCd, ITNTOKI_ADD_CD_ITENS)` | Create destination-side registration token intermediate |
| 4 | CALL | `outputBean.addOutMapList(outmap)` | Output the destination-side registration token intermediate |

**Block 4** — BRANCH (b) [IF] — Source-side cancellation token start condition (L222-L248)

Condition: NOT `isEndItenmDslToki` (source cancellation token was NOT already handled) AND DSL pause token addition code is `ITNTOKI_ADD_CD_ITENM = "2"` (token due to source-side cancellation) AND (service status is "terminated" with reason other than "forced cancellation" OR service status is "cancelled") AND DSL pause token start date is unset AND DSL pause token end date is unset.

This branch handles: When the source-side (original provider) contract has been cancelled and no destination-side processing has already handled the token, start a token for the source-side cancellation.

| # | Type | Code | Business Description |
|---|------|------|---------------------|
| 1 | IF | `!isEndItenmDslToki` | Source cancellation token was NOT cancelled/ended by branch (a) |
| 1.1 | IF | `JKKBatConst.ITNTOKI_ADD_CD_ITENM.equals(dslPauseTokiAddCd)` `[ITNTOKI_ADD_CD_ITENM="2"]` AND (service status condition same as Block 3) AND `isNullDate(dslPauseTokiStaYmd)` AND `isNullDate(dslPauseTokiEndYmd)` | Source cancellation token conditions met |
| 1.1.1 | CALL | `createRsvTokiHakFile(inMap, getSodHkSbtCd(dslPauseTokiEndRsymd), ITNTOKI_ADD_CD_ITENM)` | Create source-side cancellation token intermediate |
| 1.1.2 | CALL | `outputBean.addOutMapList(outmap)` | Output the source-side cancellation token intermediate |

**Block 5** — BRANCH (c) [IF] — Suspension token start condition (L250-L269)

Condition: NOT `isEndItenmDslToki` AND DSL pause token addition code is `ITNTOKI_ADD_CD_PAUSE = "3"` (token due to suspension) AND service status is "suspended" (`SVC_KEI_STAT_PAUSE_STP = "210"`) AND pause stop code is "suspended (SOD issued)" (`PAUSE_STP_CD_PAUSECHU_SODHAKZM = "01"`) AND DSL pause token start date is unset AND DSL pause token end date is unset.

This branch handles: When the service contract is in a "suspended (SOD issued)" state and no prior token processing has occurred, start a token for the suspension.

| # | Type | Code | Business Description |
|---|------|------|---------------------|
| 1 | IF | `!isEndItenmDslToki` | Source cancellation token was NOT cancelled/ended |
| 1.1 | IF | `JKKBatConst.ITNTOKI_ADD_CD_PAUSE.equals(dslPauseTokiAddCd)` `[ITNTOKI_ADD_CD_PAUSE="3"]` AND `JKKBatConst.SVC_KEI_STAT_PAUSE_STP.equals(svcKeiUcwkStat)` `[SVC_KEI_STAT_PAUSE_STP="210"]` AND `JKKBatConst.PAUSE_STP_CD_PAUSECHU_SODHAKZM.equals(pauseStpCd)` `[PAUSE_STP_CD_PAUSECHU_SODHAKZM="01"]` AND `isNullDate(dslPauseTokiStaYmd)` AND `isNullDate(dslPauseTokiEndYmd)` | Suspension token conditions met |
| 1.1.1 | CALL | `createRsvTokiHakFile(inMap, getSodHkSbtCd(dslPauseTokiEndRsymd), ITNTOKI_ADD_CD_PAUSE)` | Create suspension token intermediate |
| 1.1.2 | CALL | `outputBean.addOutMapList(outmap)` | Output the suspension token intermediate |

**Block 6** — RETURN (L270)

| # | Type | Code | Business Description |
|---|------|------|---------------------|
| 1 | RETURN | `return isEndItenmDslToki` | Returns true if source-side cancellation token was cancelled/ended by this method; false otherwise |

## 7. Glossary

| Term | Type | Business Meaning |
|------|------|------------------|
| `dslPauseTokiAddCd` | Field | DSL pause token addition code - identifies the type of token registration (source cancellation, destination registration, or suspension) |
| `dslPauseTokiStaYmd` | Field | DSL pause token start date (年月日) - when a pause/cancellation token was started |
| `dslPauseTokiEndRsymd` | Field | DSL pause token expected end date (年月日) - anticipated end date for a suspension/cancellation token, used to determine SOD issuance type |
| `dslPauseTokiEndYmd` | Field | DSL pause token end date (年月日) - actual end date of a pause/cancellation token |
| `itensOpafTokiAddCd` | Field | Destination-side (post-migration) token addition code - token registration code for the destination side of a service migration |
| `itensOpafTokiStaYmd` | Field | Destination-side token start date - when the destination-side token was started |
| `itensOpafTokiEndRsymd` | Field | Destination-side token expected end date - anticipated end date for the destination-side token |
| `itensOpafTokiEndYmd` | Field | Destination-side token end date - actual end date of the destination-side token |
| `svcKeiUcwkStat` | Field | Service contract status (サービス契約内線ステータス) - current status of the service contract (terminated, cancelled, in progress, suspended) |
| `pauseStpCd` | Field | Pause stop code (休止停止コード) - specific code indicating the interruption state within a suspended service |
| `svcDlreCd` | Field | Service cancellation reason code (サービス解約理由コード) - reason code for service cancellation (normal, forced, etc.) |
| `sakiSvcKeiUcwkStat` | Field | Destination-side service contract status (移転先開通後サービス契約内線番号のステータス) - status of the service contract on the destination side after service transfer completion |
| `isEndItenmDslToki` | Field | Source cancellation token cancellation/ending flag - indicates whether this method cancelled or ended a source-side cancellation token |
| `SOD_HAK_SBT_CD_NONE` | Constant | SOD issuance type: No SOD issuance - used when the source cancellation token has not yet started |
| `SOD_HAK_SBT_CD_STA` | Constant | SOD issuance type: Start SOD issuance - used when the destination-side token should be started |
| `SOD_HAK_SBT_CD_END` | Constant | SOD issuance type: End SOD issuance - used when the source cancellation token is already in progress |
| `ITNTOKI_ADD_CD_ITENS` | Constant | Token registration code "1" - Token due to destination-side registration (移転先登録によるトーキ) |
| `ITNTOKI_ADD_CD_ITENM` | Constant | Token registration code "2" - Token due to source-side cancellation (移転元解約によるトーキ) |
| `ITNTOKI_ADD_CD_PAUSE` | Constant | Token registration code "3" - Token due to suspension (休止によるトーキ) |
| `SVC_KEI_STAT_SVCTKCHU` | Constant | Service contract status "100" - Service in progress (サービス提供中) |
| `SVC_KEI_STAT_PAUSE_STP` | Constant | Service contract status "210" - Suspended (休止・中断中) |
| `SVC_KEI_STAT_DSL_ZM` | Constant | Service contract status "910" - Terminated (解約済) |
| `SVC_KEI_STAT_CNCL_ZM` | Constant | Service contract status "920" - Cancelled (キャンセル済) |
| `SVC_DLRE_CD_KSI_SLRE` | Constant | Service cancellation reason "02" - Forced cancellation (強制解約) |
| `PAUSE_STP_CD_PAUSECHU_SODHAKZM` | Constant | Suspension interruption code "01" - Suspended (SOD issued) (休止中(SOD発行済)) |
| SOD | Acronym | Service Order Data - electronic order data exchanged between telecom service providers during portability/migration transactions |
| Tōki (トーキ) | Domain term | Token - in this context, a service activation token or authorization code used in telecom service migration (portability) to coordinate service start/cancel timing between providers |
| 移転 (Iten) | Domain term | Service migration/porting - the process of transferring a customer's service from one telecom provider to another |
| 移転元 (Itenmoto) | Domain term | Source provider - the original telecom provider whose service is being transferred away |
| 移転先 (Itenasaki) | Domain term | Destination provider - the receiving telecom provider taking on the migrated service |
| 移転元解約 (Itenmoto Kaiyaku) | Domain term | Source-side contract cancellation - the process of cancelling the service contract with the source provider as part of migration |
| トーキ開始 (Tōki Kaishi) | Domain term | Token start - initiating a token for service migration processing |
| トーキ予定 (Tōki Yotei) | Domain term | Anticipated/expected token - a token that has been registered but not yet activated |
| 中間ファイル (Chūkan File) | Domain term | Intermediate file - temporary output data (map records) written by this method for downstream SOD file generation |
| JBSbat | Acronym | JSS Batch - internal batch processing framework component (JSS = NTT East's internal system) |
| KK | Acronym | Kinki region code prefix - NTT East Kinki business area indicator |
| RSV | Abbreviation | Reservation - as in reservation token (予約トーキ) |
| HAK | Abbreviation | Hakko (発行) - issuance |
| TgCst | Abbreviation | Transfer Contract - the specific migration contract handling category |
