As an EDI Gateway Service,
I want to orchestrate and execute all GCCTRARR EDI data mapping and validation logic,
So that I can ensure strict compliance with US Customs (P140) automated payload constraints in a single consolidated service.
I want to orchestrate and execute all GCCTRARR EDI data mapping and validation logic,
So that I can ensure strict compliance with US Customs (P140) automated payload constraints in a single consolidated service.
Prerequisites & Setup
- None explicitly identified in logic extraction.
Core Acceptance Criteria
- [6:Train Arrival Log Generation]
Log generation is initiated → An arrival log should be created with train ID, 'TRAIN ARRIVED' message, action code 'ZZZ', and current transaction details - [Calculate Time Difference Between Current Date and Train EDA]
The system needs to determine how many days have passed since the train's estimated arrival → The TIMEDIFF program is called with machine date/time, train date/time parameters to calculate the difference in days - [Clear Log Input Structure]
The system begins preparing the log message → The log input structure is cleared to spaces to ensure clean data entry - [Set Security Information]
Security information needs to be set → The security byte is set to high values to indicate maximum security level - [Capture Transaction Details]
Transaction details need to be captured → The sending transaction code and ACF2 user ID are recorded from the current session - [Record Current Date and Time]
Date and time information needs to be recorded → The current machine date (century + date) and time are captured and formatted into the log message - [Set Train ID and Message Text]
Train identification and message content are being set → The Canadian customer train ID is recorded and the message text is set to 'TRAIN ARRIVED ' and the train type is marked as new CA train - [Set Action Code to 'ZZZ']
The action code needs to be assigned → The action code is set to 'ZZZ' to indicate a train arrival event - [Send Log Message via IMS]
The message needs to be transmitted → The log message is sent via the GCT1051E messaging service through IMS - [Send Transaction Message via GCT1481E]
The capacity transaction is ready to be processed → The transaction message must be sent via the GCT1481E processing module
Structural Validations
- None explicitly identified in logic extraction.