Business View: Assuming a train that has been successfully processed for arrival during the '6:Train Arrival Log Generation' routine, when log generation is initiated, the system executes logic to ensure that an arrival log should be created with train id, 'train arrived' message, action code 'zzz', and current transaction details.
Given
A train that has been successfully processed for arrival
When
Log generation is initiated
Then
An arrival log should be created with train ID, 'TRAIN ARRIVED' message, action code 'ZZZ', and current transaction details
R-GCCTRARR-cbl-00020Calculate Time Difference Between Current Date and Train EDA
Action Rules
Business View: Assuming current system date/time and train's estimated arrival date/time are available in working storage during the 'Calculate Time Difference Between Current Date and Train EDA' routine, when the system needs to determine how many days have passed since the train's estimated arrival, the system executes logic to ensure that the timediff program is called with machine date/time, train date/time parameters to calculate the difference in days.
Given
Current system date/time and train's estimated arrival date/time are available in working storage
When
The system needs to determine how many days have passed since the train's estimated arrival
Then
The TIMEDIFF program is called with machine date/time, train date/time parameters to calculate the difference in days
R-GCCTRARR-cbl-00033Clear Log Input Structure
Process Rules
Business View: Assuming a train arrival logging process is initiated during the 'Clear Log Input Structure' routine, when the system begins preparing the log message, the system executes logic to ensure that the log input structure is cleared to spaces to ensure clean data entry.
Given
A train arrival logging process is initiated
When
The system begins preparing the log message
Then
The log input structure is cleared to spaces to ensure clean data entry
R-GCCTRARR-cbl-00034Set Security Information
Authorization Rules
Business View: Assuming a log message structure is being prepared for train arrival during the 'Set Security Information' routine, when security information needs to be set, the system executes logic to ensure that the security byte is set to high values to indicate maximum security level.
Given
A log message structure is being prepared for train arrival
When
Security information needs to be set
Then
The security byte is set to high values to indicate maximum security level
R-GCCTRARR-cbl-00035Capture Transaction Details
Process Rules
Business View: Assuming a train arrival log message is being created during the 'Capture Transaction Details' routine, when transaction details need to be captured, the system executes logic to ensure that the sending transaction code and acf2 user id are recorded from the current session.
Given
A train arrival log message is being created
When
Transaction details need to be captured
Then
The sending transaction code and ACF2 user ID are recorded from the current session
R-GCCTRARR-cbl-00036Record Current Date and Time
Process Rules
Business View: Assuming a train arrival log message requires timestamping during the 'Record Current Date and Time' routine, when date and time information needs to be recorded, the system executes logic to ensure that the current machine date (century + date) and time are captured and formatted into the log message.
Given
A train arrival log message requires timestamping
When
Date and time information needs to be recorded
Then
The current machine date (century + date) and time are captured and formatted into the log message
R-GCCTRARR-cbl-00037Set Train ID and Message Text
Definitional Rules
Business View: Assuming a train has successfully arrived and needs to be logged during the 'Set Train ID and Message Text' routine, when train identification and message content are being set, the system executes logic to ensure that 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.
Given
A train has successfully arrived and needs to be logged
When
Train identification and message content are being set
Then
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
R-GCCTRARR-cbl-00038Set Action Code to 'ZZZ'
Definitional Rules
Business View: Assuming a train arrival log message is being prepared during the 'Set Action Code to 'ZZZ'' routine, when the action code needs to be assigned, the system executes logic to ensure that the action code is set to 'zzz' to indicate a train arrival event.
Given
A train arrival log message is being prepared
When
The action code needs to be assigned
Then
The action code is set to 'ZZZ' to indicate a train arrival event
R-GCCTRARR-cbl-00039Send Log Message via IMS
Action Rules
Business View: Assuming a complete train arrival log message has been prepared during the 'Send Log Message via IMS' routine, when the message needs to be transmitted, the system executes logic to ensure that the log message is sent via the gct1051e messaging service through ims.
Given
A complete train arrival log message has been prepared
When
The message needs to be transmitted
Then
The log message is sent via the GCT1051E messaging service through IMS
R-GCCTRARR-cbl-00046Send Transaction Message via GCT1481E
Action Rules
Business View: Assuming all capacity transaction data has been prepared with train identification, security, type, action code, station, and timing information during the 'Send Transaction Message via GCT1481E' routine, when the capacity transaction is ready to be processed, the system executes logic to ensure that the transaction message must be sent via the gct1481e processing module.
Given
All capacity transaction data has been prepared with train identification, security, type, action code, station, and timing information
When
The capacity transaction is ready to be processed
Then
The transaction message must be sent via the GCT1481E processing module