This report presents the exact business rules dynamically extracted from the legacy system. Rules are formatted in an Agile/BDD Given/When/Then structure, offering a bridge between business requirements and technical implementation constraints. Component rules have been logically grouped into feature sets.
Business Justification: Ensures correct system behavior and process compliance when message queue connection is established.
Trigger Criteria:
Context: A message queue connection is established
Applied to: IMS Queue Reading
Action: The system checks for message availability AND the completion code is not OK AND the reason code equals 2033
Logic Flow:
IF A message queue connection is established
AND The system checks for message availability AND the completion code is not OK AND the reason code equals 2033
THEN:
• The system sets message not available status
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when message is retrieved from the queue.
Trigger Criteria:
Context: A message is retrieved from the queue
Applied to: IMS Queue Reading
Action: The completion code is OK AND the message backout count is not equal to zero
Logic Flow:
IF A message is retrieved from the queue
AND The completion code is OK AND the message backout count is not equal to zero
THEN:
• The system sets skip message found status and does not process the message
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when message is retrieved from the queue.
Trigger Criteria:
Context: A message is retrieved from the queue
Applied to: IMS Queue Reading
Action: The completion code is OK AND the message backout count equals zero
Logic Flow:
IF A message is retrieved from the queue
AND The completion code is OK AND the message backout count equals zero
THEN:
• The system sets good message found status and proceeds with processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when edi message segment is received.
Trigger Criteria:
Context: An EDI message segment is received
Applied to: EDI Transaction Set Processing
Action: The segment type is evaluated
Logic Flow:
IF An EDI message segment is received
AND The segment type is evaluated
THEN:
• The system routes ST segments to header processing, M10 to manifest processing, P4 to port processing, V9 to event processing, K1 to remarks processing, X4 to customs release processing, N7 to equipment processing, and SE to trailer processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when manifest information segment is processed.
Trigger Criteria:
Context: A manifest information segment is processed
Applied to: Manifest Information Processing
Action: The vessel name does not start with 'TRAIN'
Logic Flow:
IF A manifest information segment is processed
AND The vessel name does not start with 'TRAIN'
THEN:
• The system fetches train list and validates train existence in the system
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when train validation is performed.
Trigger Criteria:
Context: Train validation is performed
Applied to: Manifest Information Processing
Action: The train is not found in the system
Logic Flow:
IF Train validation is performed
AND The train is not found in the system
THEN:
• The system generates an error report and sets train not found status
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when event detail segment with event code is received.
Trigger Criteria:
Context: An event detail segment with event code is received
Applied to: Event Detail Processing
Action: The event code is evaluated
Logic Flow:
IF An event detail segment with event code is received
AND The event code is evaluated
THEN:
• The system executes HMI for hold train, HRE for release hold, POD/AAD for train arrival, RC for review completed, OCA for train not arrived, COC for cancel arrival, LCK for lock train, ULC for unlock train, SEI for seize train, or SER for release seizure
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when customs release information segment is received.
Trigger Criteria:
Context: A customs release information segment is received
Applied to: Customs Release Information Processing
Action: The processing method is determined
Logic Flow:
IF A customs release information segment is received
AND The processing method is determined
THEN:
• The system processes cargo by bond number for grouped processing, by car and waybill for transportation unit processing, or individually for single cargo items
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo processing by bond is selected.
Trigger Criteria:
Context: Cargo processing by bond is selected
Applied to: Bond-based Cargo Processing
Action: Multiple cargo records share the same bond number
Logic Flow:
IF Cargo processing by bond is selected
AND Multiple cargo records share the same bond number
THEN:
• The system processes all cargo records with the same bond number as a group
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo processing by car and waybill is selected.
Trigger Criteria:
Context: Cargo processing by car and waybill is selected
Applied to: Car/Waybill Cargo Processing
Action: Multiple cargo records share the same car ID and waybill number
Logic Flow:
IF Cargo processing by car and waybill is selected
AND Multiple cargo records share the same car ID and waybill number
THEN:
• The system processes all cargo records with the same car ID and waybill combination as a transportation unit
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record retrieval is required.
Trigger Criteria:
Context: Cargo record retrieval is required
Applied to: Cargo Record Retrieval by Car Index
Action: Exact match search using car ID and US CCN key fails
Logic Flow:
IF Cargo record retrieval is required
AND Exact match search using car ID and US CCN key fails
THEN:
• The system performs broader search criteria and sets cargo found or not found flags based on search results
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo search has been performed.
Trigger Criteria:
Context: Cargo search has been performed
Applied to: New Cargo Record Creation
Action: No existing cargo record is found
Logic Flow:
IF Cargo search has been performed
AND No existing cargo record is found
THEN:
• The system creates a new cargo record with appropriate initial status
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when new cargo record is being created.
Trigger Criteria:
Context: A new cargo record is being created
Applied to: New Cargo Record Creation
Action: The cargo is identified as CPRS type
Logic Flow:
IF A new cargo record is being created
AND The cargo is identified as CPRS type
THEN:
• The system sets the cargo status to ERROR with ERROR description
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when new cargo record is being created.
Trigger Criteria:
Context: A new cargo record is being created
Applied to: New Cargo Record Creation
Action: The cargo is not CPRS type
Logic Flow:
IF A new cargo record is being created
AND The cargo is not CPRS type
THEN:
• The system sets the cargo status to SENT with SENT description
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when new cargo record is being created.
Trigger Criteria:
Context: A new cargo record is being created
Applied to: New Cargo Record Creation
Action: The disposition code is 1J, 69, or 55
Logic Flow:
IF A new cargo record is being created
AND The disposition code is 1J, 69, or 55
THEN:
• The system sets master in-bond flag and processes entry type codes for different bond types
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when in-bond processing is triggered.
Trigger Criteria:
Context: In-bond processing is triggered
Applied to: New Cargo Record Creation
Action: Entry type code is evaluated
Logic Flow:
IF In-bond processing is triggered
AND Entry type code is evaluated
THEN:
• The system processes 61 as immediate transport, 62 as transport export, 63 as immediate export, 69 as US-Canada-US movement, and 00 as default border processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when new cargo record with entry number is being created.
Trigger Criteria:
Context: A new cargo record with entry number is being created
Applied to: New Cargo Record Creation
Action: The entry number starts with V prefix
Logic Flow:
IF A new cargo record with entry number is being created
AND The entry number starts with V prefix
THEN:
• The system places it in the entry number field, otherwise places it in the in-bond control number field
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when disposition code is received for processing.
Trigger Criteria:
Context: A disposition code is received for processing
Applied to: Disposition Code Table Lookup
Action: The system performs table lookup
Logic Flow:
IF A disposition code is received for processing
AND The system performs table lookup
THEN:
• The system retrieves disposition code details and sets found or not found flags with corresponding Merlin messages
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code is processed.
Trigger Criteria:
Context: A disposition code is processed
Applied to: Disposition Code Table Lookup
Action: The disposition type is ARL (Auto Release)
Logic Flow:
IF A disposition code is processed
AND The disposition type is ARL (Auto Release)
THEN:
• The system generates auto release message and processes the release automatically
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code is processed.
Trigger Criteria:
Context: A disposition code is processed
Applied to: Disposition Code Table Lookup
Action: The disposition type is MRL (Manual Release)
Logic Flow:
IF A disposition code is processed
AND The disposition type is MRL (Manual Release)
THEN:
• The system processes manual release request and clears destination index
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code is processed.
Trigger Criteria:
Context: A disposition code is processed
Applied to: Disposition Code Table Lookup
Action: The disposition code is A1 or A3
Logic Flow:
IF A disposition code is processed
AND The disposition code is A1 or A3
THEN:
• The system triggers FDA notification processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code with removal action is processed.
Trigger Criteria:
Context: A disposition code with removal action is processed
Applied to: Disposition Code Table Lookup
Action: The disposition type is DC Removal
Logic Flow:
IF A disposition code with removal action is processed
AND The disposition type is DC Removal
THEN:
• The system removes existing disposition codes from the status array
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code for hold or release is processed.
Trigger Criteria:
Context: A disposition code for hold or release is processed
Applied to: Disposition Code Table Lookup
Action: The disposition type is DC Hold/Release
Logic Flow:
IF A disposition code for hold or release is processed
AND The disposition type is DC Hold/Release
THEN:
• The system adds hold or release status with location and quantity information to the cargo status
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when new hold or release disposition code is being added.
Trigger Criteria:
Context: A new hold or release disposition code is being added
Applied to: Disposition Code Table Lookup
Action: Counterpart disposition codes exist in the status array
Logic Flow:
IF A new hold or release disposition code is being added
AND Counterpart disposition codes exist in the status array
THEN:
• The system removes counterpart codes before adding the new disposition code
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo status analysis is performed.
Trigger Criteria:
Context: Cargo status analysis is performed
Applied to: Cargo Status Transition Management
Action: Multiple status conditions exist
Logic Flow:
IF Cargo status analysis is performed
AND Multiple status conditions exist
THEN:
• The system applies priority logic with Manual Release as highest priority, followed by FDA Hold, PTT status, Acknowledge status, Proceed status, Hold statuses, Release status, and Export/Arrival statuses
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo has ptt status.
Trigger Criteria:
Context: Cargo has PTT status
Applied to: Cargo Status Transition Management
Action: Status transition is evaluated based on quantity thresholds
Logic Flow:
IF Cargo has PTT status
AND Status transition is evaluated based on quantity thresholds
THEN:
• The system preserves PTT status when quantity thresholds are met and logs changes for Canadian manifest processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo release processing is performed.
Trigger Criteria:
Context: Cargo release processing is performed
Applied to: Cargo Status Transition Management
Action: Release quantities are compared to total quantities
Logic Flow:
IF Cargo release processing is performed
AND Release quantities are compared to total quantities
THEN:
• The system sets partial release status when released quantity is less than total quantity, and full release status when released quantity equals or exceeds total quantity
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code with add_quantity action is processed.
Trigger Criteria:
Context: A disposition code with ADD_QUANTITY action is processed
Applied to: Cargo Status Transition Management
Action: The system updates release quantities
Logic Flow:
IF A disposition code with ADD_QUANTITY action is processed
AND The system updates release quantities
THEN:
• The system adds the specified quantity to the existing release quantity
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code with subtract_quantity action is processed.
Trigger Criteria:
Context: A disposition code with SUBTRACT_QUANTITY action is processed
Applied to: Cargo Status Transition Management
Action: The system updates release quantities
Logic Flow:
IF A disposition code with SUBTRACT_QUANTITY action is processed
AND The system updates release quantities
THEN:
• The system subtracts the specified quantity from existing release quantity with minimum value of zero
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo release processing is completed.
Trigger Criteria:
Context: Cargo release processing is completed
Applied to: Multi-cargo Release Verification
Action: All cargo records on the same car and waybill combination are evaluated
Logic Flow:
IF Cargo release processing is completed
AND All cargo records on the same car and waybill combination are evaluated
THEN:
• The system triggers container/trailer processing if the entire waybill is released
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo release processing is completed.
Trigger Criteria:
Context: Cargo release processing is completed
Applied to: Merlin Release Message Generation
Action: Release message generation is required
Logic Flow:
IF Cargo release processing is completed
AND Release message generation is required
THEN:
• The system creates release message with car information, date, time, and quantity details
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when waybill release verification is performed.
Trigger Criteria:
Context: Waybill release verification is performed
Applied to: Multi-cargo Release Verification
Action: Individual cargo records are evaluated
Logic Flow:
IF Waybill release verification is performed
AND Individual cargo records are evaluated
THEN:
• The system checks for deleted cargo, manually released cargo, held cargo, partial releases, and fully released cargo to determine overall waybill status
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when export status change occurs.
Trigger Criteria:
Context: Export status change occurs
Applied to: Merlin Release Message Generation
Action: Export or cancel export processing is required
Logic Flow:
IF Export status change occurs
AND Export or cancel export processing is required
THEN:
• The system generates appropriate Merlin messages for export status changes
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when arrival status change occurs.
Trigger Criteria:
Context: Arrival status change occurs
Applied to: Merlin Release Message Generation
Action: Arrival or cancel arrival processing is required
Logic Flow:
IF Arrival status change occurs
AND Arrival or cancel arrival processing is required
THEN:
• The system generates appropriate Merlin messages for arrival status changes
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo processing is completed.
Trigger Criteria:
Context: Cargo processing is completed
Applied to: Integration Service Calls
Action: IIS integration is evaluated AND cargo is held (not PTT status) AND equipment type is container or trailer
Logic Flow:
IF Cargo processing is completed
AND IIS integration is evaluated AND cargo is held (not PTT status) AND equipment type is container or trailer
THEN:
• The system calls IIS integration services with appropriate status descriptions
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo processing is completed.
Trigger Criteria:
Context: Cargo processing is completed
Applied to: Cargo Information Logging
Action: Logging is performed AND disposition code is not 54 or 55
Logic Flow:
IF Cargo processing is completed
AND Logging is performed AND disposition code is not 54 or 55
THEN:
• The system logs cargo processing information via GCT1051E transaction
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when iis integration processing is performed.
Trigger Criteria:
Context: IIS integration processing is performed
Applied to: Integration Service Calls
Action: Disposition code is 4E AND cargo has full release quantities
Logic Flow:
IF IIS integration processing is performed
AND Disposition code is 4E AND cargo has full release quantities
THEN:
• The system performs special 4E processing logic for release handling
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo processing requires payer information.
Trigger Criteria:
Context: Cargo processing requires payer information
Applied to: Payer of Freight Identification
Action: Payer of freight search is performed in cargo sections
Logic Flow:
IF Cargo processing requires payer information
AND Payer of freight search is performed in cargo sections
THEN:
• The system retrieves payer of freight information and gets broker short name if payer is found
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when broker information lookup is required.
Trigger Criteria:
Context: Broker information lookup is required
Applied to: Broker Information Lookup
Action: Payer of freight broker is found
Logic Flow:
IF Broker information lookup is required
AND Payer of freight broker is found
THEN:
• The system uses payer of freight broker, otherwise uses cargo broker
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when broker notification is required.
Trigger Criteria:
Context: Broker notification is required
Applied to: Email vs Merlin Routing
Action: Broker configuration is evaluated
Logic Flow:
IF Broker notification is required
AND Broker configuration is evaluated
THEN:
• The system uses internet notification if broker is configured for internet, otherwise uses standard Merlin messaging
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when quantity processing results in mismatch.
Trigger Criteria:
Context: Quantity processing results in mismatch
Applied to: Email vs Merlin Routing
Action: Broker notification is generated
Logic Flow:
IF Quantity processing results in mismatch
AND Broker notification is generated
THEN:
• The system sends quantity mismatch notifications to brokers with disposition code descriptions
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when disposition code processing is completed.
Trigger Criteria:
Context: Disposition code processing is completed
Applied to: KCSM Disposition Code Processing
Action: KCSM integration requirements are evaluated
Logic Flow:
IF Disposition code processing is completed
AND KCSM integration requirements are evaluated
THEN:
• The system determines if KCSM disposition code processing and EDI message copying is required
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when kcsm integration is required.
Trigger Criteria:
Context: KCSM integration is required
Applied to: EDI 350 Message Copying for KCSM
Action: EDI message copying is performed
Logic Flow:
IF KCSM integration is required
AND EDI message copying is performed
THEN:
• The system copies the EDI 350 message structure for KCSM transaction processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when kcsm message copying is completed.
Trigger Criteria:
Context: KCSM message copying is completed
Applied to: KCSM Transaction Spawning
Action: Transaction spawning is required
Logic Flow:
IF KCSM message copying is completed
AND Transaction spawning is required
THEN:
• The system spawns KCSM transaction with copied message data
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when message routing is required.
Trigger Criteria:
Context: Message routing is required
Applied to: Merlin Release Message Generation
Action: Message type is evaluated
Logic Flow:
IF Message routing is required
AND Message type is evaluated
THEN:
• The system routes ERROR/ARRCANL to IN and USERR destinations, INFO to IN and station-specific Merlin IDs, UNRLSE to default and cancel-specific Merlin IDs, RLSE to station-specific Merlin IDs only, and EXPORT with equipment type validation
R-GCX016-cbl-00046 (+11)File: GCX016.cblBusiness Rule: Program Initialization
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when program gcx016 has started.
Trigger Criteria:
Context: The program GCX016 has started
Applied to: Initialize Working Storage Fields
Action: The system begins initialization process
Logic Flow:
IF The program GCX016 has started
AND The system begins initialization process
THEN:
• All working storage fields are set to their initial default values including counters, flags, and data areas
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when working storage fields have been initialized.
Trigger Criteria:
Context: Working storage fields have been initialized
Applied to: Initialize MQ Message Arrays
Action: The system prepares for MQ message processing
Logic Flow:
IF Working storage fields have been initialized
AND The system prepares for MQ message processing
THEN:
• MQ message arrays are initialized with proper structure and capacity for message handling
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when mq message arrays have been initialized.
Trigger Criteria:
Context: MQ message arrays have been initialized
Applied to: Set Processing Parameters
Action: The system determines the message source type
Logic Flow:
IF MQ message arrays have been initialized
AND The system determines the message source type
THEN:
• Processing parameters are configured appropriately for the specific input method
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when processing parameters have been set.
Trigger Criteria:
Context: Processing parameters have been set
Applied to: Message Source Type?
Action: The system checks the message source indicator
Logic Flow:
IF Processing parameters have been set
AND The system checks the message source indicator
THEN:
• The system routes to either MQ queue processing or direct GCW016 input processing based on the message source type
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when message source type is determined as mq queue.
Trigger Criteria:
Context: Message source type is determined as MQ Queue
Applied to: Initialize for MQ Queue Processing
Action: The system initializes MQ queue processing
Logic Flow:
IF Message source type is determined as MQ Queue
AND The system initializes MQ queue processing
THEN:
• MQ-specific configuration parameters are set including queue names, connection settings, and message handling options
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when message source type is determined as direct input.
Trigger Criteria:
Context: Message source type is determined as Direct Input
Applied to: Initialize for Direct GCW016 Input
Action: The system initializes direct GCW016 input processing
Logic Flow:
IF Message source type is determined as Direct Input
AND The system initializes direct GCW016 input processing
THEN:
• Direct input configuration parameters are set for handling GCW016 message format
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when message source initialization is complete.
Trigger Criteria:
Context: Message source initialization is complete
Applied to: Load System Tables
Action: The system loads system tables
Logic Flow:
IF Message source initialization is complete
AND The system loads system tables
THEN:
• All required reference tables including disposition codes, broker information, and validation tables are loaded into memory
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when system tables have been loaded.
Trigger Criteria:
Context: System tables have been loaded
Applied to: Establish Database Connections
Action: The system establishes database connections
Logic Flow:
IF System tables have been loaded
AND The system establishes database connections
THEN:
• Connections to cargo database, train database, and reference data sources are established and verified
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when database connections have been established.
Trigger Criteria:
Context: Database connections have been established
Applied to: Initialize Error Handling
Action: The system initializes error handling
Logic Flow:
IF Database connections have been established
AND The system initializes error handling
THEN:
• Error handling framework is configured including error logging, Merlin messaging, and error recovery procedures
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when error handling has been initialized.
Trigger Criteria:
Context: Error handling has been initialized
Applied to: Set Transaction Counters
Action: The system sets transaction counters
Logic Flow:
IF Error handling has been initialized
AND The system sets transaction counters
THEN:
• All counters for processed messages, errors, warnings, and cargo records are set to zero
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when transaction counters have been set.
Trigger Criteria:
Context: Transaction counters have been set
Applied to: Initialize Status Flags
Action: The system initializes status flags
Logic Flow:
IF Transaction counters have been set
AND The system initializes status flags
THEN:
• All processing control flags including end-of-file, error conditions, and processing states are set to their initial values
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when all status flags have been initialized.
Trigger Criteria:
Context: All status flags have been initialized
Applied to: Ready for Message Processing
Action: The system completes initialization sequence
Logic Flow:
IF All status flags have been initialized
AND The system completes initialization sequence
THEN:
• The system is ready to begin processing messages with all components properly initialized and configured
R-GCX016-cbl-00058 (+5)File: GCX016.cblBusiness Rule: EDI Transaction Set Processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when st segment is received from the message queue.
Trigger Criteria:
Context: An ST segment is received from the message queue
Applied to: ST Segment Received
Action: The system processes the ST segment header
Logic Flow:
IF An ST segment is received from the message queue
AND The system processes the ST segment header
THEN:
• The system should set the header found flag and initialize transaction set processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when st segment with transaction set control number is being processed.
Trigger Criteria:
Context: An ST segment with transaction set control number is being processed
Applied to: Extract Transaction Set Control Number
Action: The system extracts the control number from the segment
Logic Flow:
IF An ST segment with transaction set control number is being processed
AND The system extracts the control number from the segment
THEN:
• The control number should be stored for transaction boundary validation
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when transaction set identifier code is extracted from the st segment.
Trigger Criteria:
Context: A transaction set identifier code is extracted from the ST segment
Applied to: Valid Transaction Set ID?
Action: The system validates the transaction set identifier
Logic Flow:
IF A transaction set identifier code is extracted from the ST segment
AND The system validates the transaction set identifier
THEN:
• The system should accept valid EDI 350 transaction types and reject invalid identifier codes
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when valid transaction set identifier has been validated.
Trigger Criteria:
Context: A valid transaction set identifier has been validated
Applied to: Initialize Transaction Set Processing
Action: The system initializes transaction set processing
Logic Flow:
IF A valid transaction set identifier has been validated
AND The system initializes transaction set processing
THEN:
• The system should set up the transaction boundary and enable segment validation
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when transaction set processing has been successfully initialized.
Trigger Criteria:
Context: Transaction set processing has been successfully initialized
Applied to: Set Transaction Set Active Flag
Action: The system sets the transaction set active flag
Logic Flow:
IF Transaction set processing has been successfully initialized
AND The system sets the transaction set active flag
THEN:
• The active flag should be set to enable subsequent segment processing within the transaction boundary
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when invalid transaction set identifier code is detected.
Trigger Criteria:
Context: An invalid transaction set identifier code is detected
Applied to: Generate Error Message
Action: The system processes the invalid identifier
Logic Flow:
IF An invalid transaction set identifier code is detected
AND The system processes the invalid identifier
THEN:
• The system should generate an error message and skip the transaction set processing
R-GCX016-cbl-00064 (+10)File: GCX016.cblBusiness Rule: Manifest Information Processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when m10 manifest segment is received with train information.
Trigger Criteria:
Context: An M10 manifest segment is received with train information
Applied to: Extract Train Information from M10
Action: The system processes the M10 segment
Logic Flow:
IF An M10 manifest segment is received with train information
AND The system processes the M10 segment
THEN:
• The system extracts SCAC code from M10-02, equipment initial from M10-03, and equipment number from M10-04 to build the train identification key
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when train identification key has been built from m10 segment data.
Trigger Criteria:
Context: A train identification key has been built from M10 segment data
Applied to: Search Train List Database
Action: The system searches the train list database
Logic Flow:
IF A train identification key has been built from M10 segment data
AND The system searches the train list database
THEN:
• The system determines if the train exists in the GCWTL-TRAIN-LIST database and sets appropriate found/not found flags
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when train database search has been completed.
Trigger Criteria:
Context: The train database search has been completed
Applied to: Train Found in System?
Action: The system evaluates the search results
Logic Flow:
IF The train database search has been completed
AND The system evaluates the search results
THEN:
• If the train is found, the system proceeds to validate train status; if not found, the system generates a train not found error
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when train has been found in the train list database.
Trigger Criteria:
Context: A train has been found in the train list database
Applied to: Validate Train Status
Action: The system validates the train status
Logic Flow:
IF A train has been found in the train list database
AND The system validates the train status
THEN:
• The system verifies the train is in an acceptable operational state for processing manifest information
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when train has been successfully validated.
Trigger Criteria:
Context: A train has been successfully validated
Applied to: Set Train Processing Flag
Action: The system completes train validation
Logic Flow:
IF A train has been successfully validated
AND The system completes train validation
THEN:
• The system sets the train processing flag to indicate the train is ready for manifest processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when train search has been completed and the train was not found.
Trigger Criteria:
Context: A train search has been completed and the train was not found
Applied to: Generate Train Not Found Error
Action: The system processes the not found condition
Logic Flow:
IF A train search has been completed and the train was not found
AND The system processes the not found condition
THEN:
• The system generates a train not found error and initiates error notification procedures
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when train not found error has been generated.
Trigger Criteria:
Context: A train not found error has been generated
Applied to: Format Error Message with Train Details
Action: The system formats the error message
Logic Flow:
IF A train not found error has been generated
AND The system formats the error message
THEN:
• The system includes the SCAC code, equipment initial, equipment number, and other relevant train details in the error message using data from GCSTBRT error tables
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when error message has been formatted with train details.
Trigger Criteria:
Context: An error message has been formatted with train details
Applied to: Send Error Notification to Operations
Action: The system sends the error notification
Logic Flow:
IF An error message has been formatted with train details
AND The system sends the error notification
THEN:
• The system delivers the error notification to operations personnel through the designated notification channels
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when error notification has been sent to operations.
Trigger Criteria:
Context: An error notification has been sent to operations
Applied to: Log Train Validation Failure
Action: The system logs the validation failure
Logic Flow:
IF An error notification has been sent to operations
AND The system logs the validation failure
THEN:
• The system records the train validation failure details in the system audit log for future reference and analysis
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when train validation and status checks have been completed successfully.
Trigger Criteria:
Context: Train validation and status checks have been completed successfully
Applied to: Process Train Information Successfully
Action: The system processes the successful validation
Logic Flow:
IF Train validation and status checks have been completed successfully
AND The system processes the successful validation
THEN:
• The system marks the train processing as successful and prepares to continue processing other manifest segments
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when train processing has been completed (either successfully or with errors logged).
Trigger Criteria:
Context: Train processing has been completed (either successfully or with errors logged)
Applied to: Continue Processing Other Segments
Action: The system continues manifest processing
Logic Flow:
IF Train processing has been completed (either successfully or with errors logged)
AND The system continues manifest processing
THEN:
• The system proceeds to process other segments in the manifest message to ensure complete message handling
R-GCX016-cbl-00075File: GCX016.cblBusiness Rule: Port Information Processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when message contains a p4 segment type.
Trigger Criteria:
Context: A message contains a P4 segment type
Applied to: P4 Segment Received
Action: The system processes message segments
Logic Flow:
IF A message contains a P4 segment type
AND The system processes message segments
THEN:
• The system calls B200-PROCESS-P4-SEGMENT to handle port information processing
Business Justification: Establishes the required business protocol to be followed when v9 event detail segment is received with disposition code hmi.
Trigger Criteria:
Context: A V9 event detail segment is received with disposition code HMI
Applied to: HMI - Train Hold Operations
Action: The system processes the HMI disposition code
Logic Flow:
IF A V9 event detail segment is received with disposition code HMI
AND The system processes the HMI disposition code
THEN:
• The train status is updated to HELD and VID segments are processed for equipment holds
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when v9 event detail segment is received with disposition code hre.
Trigger Criteria:
Context: A V9 event detail segment is received with disposition code HRE
Applied to: HRE - Train Release Operations
Action: The system processes the HRE disposition code
Logic Flow:
IF A V9 event detail segment is received with disposition code HRE
AND The system processes the HRE disposition code
THEN:
• The train status is updated to RELEASED and VID segments are processed for equipment releases
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when v9 event detail segment is received with disposition code pod.
Trigger Criteria:
Context: A V9 event detail segment is received with disposition code POD
Applied to: POD - Train Arrival at Port of Discharge
Action: The system processes the POD disposition code
Logic Flow:
IF A V9 event detail segment is received with disposition code POD
AND The system processes the POD disposition code
THEN:
• The train status is set to ARRIVED and arrival date and location are updated
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when v9 event detail segment is received with disposition code aad.
Trigger Criteria:
Context: A V9 event detail segment is received with disposition code AAD
Applied to: AAD - Train Arrival at Destination
Action: The system processes the AAD disposition code
Logic Flow:
IF A V9 event detail segment is received with disposition code AAD
AND The system processes the AAD disposition code
THEN:
• The train status is set to ARRIVED and arrival date and location are updated
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when v9 event detail segment is received with disposition code rc.
Trigger Criteria:
Context: A V9 event detail segment is received with disposition code RC
Applied to: RC - Export Manifest Review Complete
Action: The system processes the RC disposition code
Logic Flow:
IF A V9 event detail segment is received with disposition code RC
AND The system processes the RC disposition code
THEN:
• The export manifest is marked as reviewed and the train record is updated
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when v9 event detail segment is received with disposition code oca.
Trigger Criteria:
Context: A V9 event detail segment is received with disposition code OCA
Applied to: OCA - Train Not Arrived Notification
Action: The system processes the OCA disposition code
Logic Flow:
IF A V9 event detail segment is received with disposition code OCA
AND The system processes the OCA disposition code
THEN:
• A train not arrived warning is generated with instructions to re-arrive the train or contact USCS
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when v9 event detail segment is received with disposition code coc.
Trigger Criteria:
Context: A V9 event detail segment is received with disposition code COC
Applied to: COC - Train Arrival Cancellation
Action: The system processes the COC disposition code
Logic Flow:
IF A V9 event detail segment is received with disposition code COC
AND The system processes the COC disposition code
THEN:
• The previous arrival status is cancelled and the train record is updated with cancellation details
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when v9 event detail segment is received with disposition code lck.
Trigger Criteria:
Context: A V9 event detail segment is received with disposition code LCK
Applied to: LCK - Train Lock Operations
Action: The system processes the LCK disposition code
Logic Flow:
IF A V9 event detail segment is received with disposition code LCK
AND The system processes the LCK disposition code
THEN:
• The train lock status is set and the train record is updated to prevent modifications
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when v9 event detail segment is received with disposition code ulc.
Trigger Criteria:
Context: A V9 event detail segment is received with disposition code ULC
Applied to: ULC - Train Unlock Operations
Action: The system processes the ULC disposition code
Logic Flow:
IF A V9 event detail segment is received with disposition code ULC
AND The system processes the ULC disposition code
THEN:
• The train lock status is removed and the train record is updated to allow modifications
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when v9 event detail segment is received with disposition code sei.
Trigger Criteria:
Context: A V9 event detail segment is received with disposition code SEI
Applied to: SEI - Train Seizure by Customs
Action: The system processes the SEI disposition code
Logic Flow:
IF A V9 event detail segment is received with disposition code SEI
AND The system processes the SEI disposition code
THEN:
• The train seizure status is set by customs, VID segments are processed for equipment seizure, and the train record is updated
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when v9 event detail segment is received with disposition code ser.
Trigger Criteria:
Context: A V9 event detail segment is received with disposition code SER
Applied to: SER - Train Seizure Release
Action: The system processes the SER disposition code
Logic Flow:
IF A V9 event detail segment is received with disposition code SER
AND The system processes the SER disposition code
THEN:
• The train seizure status is removed, VID segments are processed for equipment release from seizure, and the train record is updated
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when v9 event detail segment is received.
Trigger Criteria:
Context: A V9 event detail segment is received
Applied to: Extract Disposition Code from V9-02
Action: The system extracts the disposition code from V9-02 field
Logic Flow:
IF A V9 event detail segment is received
AND The system extracts the disposition code from V9-02 field
THEN:
• The disposition code is evaluated to determine which train operation to perform (HMI, HRE, POD, AAD, RC, OCA, COC, LCK, ULC, SEI, or SER)
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when v9 segments are being processed and status notification messages have been generated.
Trigger Criteria:
Context: V9 segments are being processed and status notification messages have been generated
Applied to: More V9 Segments?
Action: The system checks if more V9 segments exist in the message
Logic Flow:
IF V9 segments are being processed and status notification messages have been generated
AND The system checks if more V9 segments exist in the message
THEN:
• If more V9 segments exist, processing continues with the next segment, otherwise V9 processing is completed
R-GCX016-cbl-00089 (+12)File: GCX016.cblBusiness Rule: Train Hold Operations
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when v9 segment with hmi disposition code is received containing train identification information.
Trigger Criteria:
Context: A V9 segment with HMI disposition code is received containing train identification information
Applied to: Validate Train Exists in System
Action: The system processes the train hold request
Logic Flow:
IF A V9 segment with HMI disposition code is received containing train identification information
AND The system processes the train hold request
THEN:
• The system validates the train exists in GCWTL-TRAIN-LISTand sets appropriate processing flags
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when train hold operation is being processed and train validation has been performed.
Trigger Criteria:
Context: A train hold operation is being processed and train validation has been performed
Applied to: Generate Train Not Found Error Message
Action: The train is not found in the train list system
Logic Flow:
IF A train hold operation is being processed and train validation has been performed
AND The train is not found in the train list system
THEN:
• The system generates a train not found error message and stops further hold processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when valid train exists in the system and hmi disposition code is received.
Trigger Criteria:
Context: A valid train exists in the system and HMI disposition code is received
Applied to: Set Train Hold Status Flag
Action: The train validation is successful
Logic Flow:
IF A valid train exists in the system and HMI disposition code is received
AND The train validation is successful
THEN:
• The system sets the train hold status flag to indicate the train is being held
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when train hold status has been set successfully.
Trigger Criteria:
Context: Train hold status has been set successfully
Applied to: Initialize Equipment Hold Counter
Action: The system prepares to process equipment holds
Logic Flow:
IF Train hold status has been set successfully
AND The system prepares to process equipment holds
THEN:
• The system initializes the equipment hold counter to zero
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when train hold processing is in progress and equipment hold counter is initialized.
Trigger Criteria:
Context: Train hold processing is in progress and equipment hold counter is initialized
Applied to: VID Segments Follow?
Action: The system checks for additional message segments
Logic Flow:
IF Train hold processing is in progress and equipment hold counter is initialized
AND The system checks for additional message segments
THEN:
• The system determines if VID segments are present for equipment-specific hold processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when vid segments are available and train hold is in progress.
Trigger Criteria:
Context: VID segments are available and train hold is in progress
Applied to: Process VID Segment for Equipment Hold
Action: Each VID segment is processed
Logic Flow:
IF VID segments are available and train hold is in progress
AND Each VID segment is processed
THEN:
• The system applies hold status to the specific equipment identified in the VID segment
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when vid segment has been successfully processed for equipment hold.
Trigger Criteria:
Context: A VID segment has been successfully processed for equipment hold
Applied to: Increment Equipment Hold Counter
Action: The equipment hold is applied
Logic Flow:
IF A VID segment has been successfully processed for equipment hold
AND The equipment hold is applied
THEN:
• The system increments the equipment hold counter by one
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when one vid segment has been processed and equipment hold counter updated.
Trigger Criteria:
Context: One VID segment has been processed and equipment hold counter updated
Applied to: More VID Segments?
Action: The system checks for more VID segments in the message
Logic Flow:
IF One VID segment has been processed and equipment hold counter updated
AND The system checks for more VID segments in the message
THEN:
• The system determines if additional VID segments exist and continues processing or proceeds to train record update
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when all vid segments have been processed or no vid segments exist.
Trigger Criteria:
Context: All VID segments have been processed or no VID segments exist
Applied to: Update Train Record with Hold Status
Action: Train hold processing is ready for database update
Logic Flow:
IF All VID segments have been processed or no VID segments exist
AND Train hold processing is ready for database update
THEN:
• The system updates the train record with hold status in the GCSTBRT table
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when train record has been updated with hold status and equipment hold counter contains final count.
Trigger Criteria:
Context: Train record has been updated with hold status and equipment hold counter contains final count
Applied to: Update Equipment Hold Count
Action: The system finalizes the hold operation
Logic Flow:
IF Train record has been updated with hold status and equipment hold counter contains final count
AND The system finalizes the hold operation
THEN:
• The system updates the train record with the total number of equipment units held
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when train record and equipment hold count have been updated successfully.
Trigger Criteria:
Context: Train record and equipment hold count have been updated successfully
Applied to: Log Train Hold Operation
Action: The hold operation is complete
Logic Flow:
IF Train record and equipment hold count have been updated successfully
AND The hold operation is complete
THEN:
• The system logs the train hold operation with train identification, hold status, and equipment count
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when train hold operation has been logged successfully.
Trigger Criteria:
Context: Train hold operation has been logged successfully
Applied to: Generate Hold Notification Message
Action: The system prepares notifications
Logic Flow:
IF Train hold operation has been logged successfully
AND The system prepares notifications
THEN:
• The system generates a hold notification message containing train and equipment hold details
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when hold notification message has been generated.
Trigger Criteria:
Context: Hold notification message has been generated
Applied to: Send Message to Customs/Brokers
Action: The system sends notifications
Logic Flow:
IF Hold notification message has been generated
AND The system sends notifications
THEN:
• The system transmits the hold notification to customs authorities and affected brokers
Business Justification: Dictates the expected operational logic and validation steps when hre disposition code is received for train hold release.
Trigger Criteria:
Context: An HRE disposition code is received for train hold release
Applied to: Validate Train Exists in System
Action: The system processes the M10 manifest segment to validate train existence
Logic Flow:
IF An HRE disposition code is received for train hold release
AND The system processes the M10 manifest segment to validate train existence
THEN:
• The system checks if the vessel name exists in GCWTL-TRAIN-LISTand sets appropriate found/not found flags
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when hre disposition code is being processed for train hold release.
Trigger Criteria:
Context: An HRE disposition code is being processed for train hold release
Applied to: Send Train Not Found Error Message
Action: The train is not found in GCWTL-TRAIN-LIST
Logic Flow:
IF An HRE disposition code is being processed for train hold release
AND The train is not found in GCWTL-TRAIN-LIST
THEN:
• The system generates a train not found error message and terminates HRE processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when valid train exists in the system for hre processing.
Trigger Criteria:
Context: A valid train exists in the system for HRE processing
Applied to: Check Current Train Hold Status
Action: The system checks the train's current status
Logic Flow:
IF A valid train exists in the system for HRE processing
AND The system checks the train's current status
THEN:
• The system determines if the train is currently held and requires release processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when valid train exists in the system for hre processing.
Trigger Criteria:
Context: A valid train exists in the system for HRE processing
Applied to: No Action Required - Train Not Held
Action: The train is not currently held
Logic Flow:
IF A valid train exists in the system for HRE processing
AND The train is not currently held
THEN:
• The system bypasses release processing and completes without action
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when train is currently held and hre disposition code is being processed.
Trigger Criteria:
Context: A train is currently held and HRE disposition code is being processed
Applied to: Process VID Segments for Equipment Release
Action: VID segments are present in the message
Logic Flow:
IF A train is currently held and HRE disposition code is being processed
AND VID segments are present in the message
THEN:
• The system processes each VID segment to release individual equipment holds
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when vid segments are present for equipment release processing.
Trigger Criteria:
Context: VID segments are present for equipment release processing
Applied to: Release Individual Equipment/Cars
Action: The system processes each equipment item in the VID segments
Logic Flow:
IF VID segments are present for equipment release processing
AND The system processes each equipment item in the VID segments
THEN:
• The system removes hold status from each specified equipment or car
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when individual equipment items are being released from hold.
Trigger Criteria:
Context: Individual equipment items are being released from hold
Applied to: Update Equipment Hold Count
Action: Each equipment hold is processed and released
Logic Flow:
IF Individual equipment items are being released from hold
AND Each equipment hold is processed and released
THEN:
• The system updates the count of remaining equipment holds for the train
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when equipment hold counts have been updated after individual releases.
Trigger Criteria:
Context: Equipment hold counts have been updated after individual releases
Applied to: All Equipment Released?
Action: The system evaluates the remaining hold count
Logic Flow:
IF Equipment hold counts have been updated after individual releases
AND The system evaluates the remaining hold count
THEN:
• The system determines if all equipment has been released (hold count equals zero)
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when all equipment on the train has been released from hold or no vid segments were present.
Trigger Criteria:
Context: All equipment on the train has been released from hold OR no VID segments were present
Applied to: Remove Train-Level Hold Status
Action: The system processes train-level hold removal
Logic Flow:
IF All equipment on the train has been released from hold OR no VID segments were present
AND The system processes train-level hold removal
THEN:
• The system removes the train-level hold status
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when train-level hold status has been removed.
Trigger Criteria:
Context: Train-level hold status has been removed
Applied to: Update Train Status to Released
Action: The system updates train operational status
Logic Flow:
IF Train-level hold status has been removed
AND The system updates train operational status
THEN:
• The system sets the train status to released
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when train status has been updated to released.
Trigger Criteria:
Context: Train status has been updated to released
Applied to: Log Train Release Operation
Action: The system completes the release operation
Logic Flow:
IF Train status has been updated to released
AND The system completes the release operation
THEN:
• The system logs the train release operation with relevant details
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when train release operation has been logged.
Trigger Criteria:
Context: Train release operation has been logged
Applied to: Generate Train Release Notification
Action: The system generates notifications
Logic Flow:
IF Train release operation has been logged
AND The system generates notifications
THEN:
• The system creates a train release notification message
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when train release notification has been generated.
Trigger Criteria:
Context: Train release notification has been generated
Applied to: Send Success Message to Requestor
Action: The system sends response messages
Logic Flow:
IF Train release notification has been generated
AND The system sends response messages
THEN:
• The system transmits success message to the original requestor
Business Justification: Establishes the required business protocol to be followed when v9 event segment is received with disposition code.
Trigger Criteria:
Context: A V9 event segment is received with disposition code
Applied to: Disposition Code Type?
Action: The disposition code is either POD or AAD
Logic Flow:
IF A V9 event segment is received with disposition code
AND The disposition code is either POD or AAD
THEN:
• The system routes to appropriate train arrival processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when train arrival event is being processed.
Trigger Criteria:
Context: A train arrival event is being processed
Applied to: Train Found?
Action: The system checks if the train exists in the database
Logic Flow:
IF A train arrival event is being processed
AND The system checks if the train exists in the database
THEN:
• If train is not found, generate train not found error and stop processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when train arrival is being processed at a specific port.
Trigger Criteria:
Context: A train arrival is being processed at a specific port
Applied to: Export Manifest Port?
Action: The port is configured for export manifest processing
Logic Flow:
IF A train arrival is being processed at a specific port
AND The port is configured for export manifest processing
THEN:
• Set pre-arrival status for export processing instead of standard arrival status
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when valid train arrival event is being processed.
Trigger Criteria:
Context: A valid train arrival event is being processed
Applied to: Update Train Arrival Date
Action: The train exists and port configuration is validated
Logic Flow:
IF A valid train arrival event is being processed
AND The train exists and port configuration is validated
THEN:
• Update the train record with the current arrival date and time
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when train arrival event has been validated and processed.
Trigger Criteria:
Context: A train arrival event has been validated and processed
Applied to: Set Train Status to Arrived
Action: All arrival validations pass successfully
Logic Flow:
IF A train arrival event has been validated and processed
AND All arrival validations pass successfully
THEN:
• Update the train status to 'Arrived' in the system
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when train is arriving and has been previously locked.
Trigger Criteria:
Context: A train is arriving and has been previously locked
Applied to: Automatically Unlock Train on Arrival
Action: The train status is being updated to arrived
Logic Flow:
IF A train is arriving and has been previously locked
AND The train status is being updated to arrived
THEN:
• Automatically unlock the train to allow normal processing operations
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when equipment on an arriving train has hold or seizure status.
Trigger Criteria:
Context: Equipment on an arriving train has hold or seizure status
Applied to: Maintain Equipment Status
Action: The train arrival processing is updating equipment status
Logic Flow:
IF Equipment on an arriving train has hold or seizure status
AND The train arrival processing is updating equipment status
THEN:
• Maintain the existing hold or seizure status and do not change to normal arrival status
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when train has successfully arrived and equipment has been processed.
Trigger Criteria:
Context: A train has successfully arrived and equipment has been processed
Applied to: Generate AEI Arrival Notification
Action: Equipment status updates are complete
Logic Flow:
IF A train has successfully arrived and equipment has been processed
AND Equipment status updates are complete
THEN:
• Generate and send AEI arrival notifications to relevant systems
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when train with associated manifests has arrived.
Trigger Criteria:
Context: A train with associated manifests has arrived
Applied to: Update Manifest Status
Action: Train arrival processing is complete
Logic Flow:
IF A train with associated manifests has arrived
AND Train arrival processing is complete
THEN:
• Update all associated manifest records to reflect train arrival status
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when train arrival has been processed and manifest status updated.
Trigger Criteria:
Context: A train arrival has been processed and manifest status updated
Applied to: Send Arrival Notifications to Customs
Action: All internal processing is complete
Logic Flow:
IF A train arrival has been processed and manifest status updated
AND All internal processing is complete
THEN:
• Send arrival notifications to customs authorities for regulatory compliance
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when train arrival event has been completely processed.
Trigger Criteria:
Context: A train arrival event has been completely processed
Applied to: Log Train Arrival Event
Action: All notifications have been sent to customs
Logic Flow:
IF A train arrival event has been completely processed
AND All notifications have been sent to customs
THEN:
• Log the complete train arrival event with timestamp and details for audit trail
Business Justification: Governs the functional prerequisites and system routing when v9 segment with rc disposition code is received for export manifest review.
Trigger Criteria:
Context: A V9 segment with RC disposition code is received for export manifest review
Applied to: Validate Train Exists in System
Action: The system processes the train validation
Logic Flow:
IF A V9 segment with RC disposition code is received for export manifest review
AND The system processes the train validation
THEN:
• The system checks if the train exists in the system and sets appropriate flags
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when v9 segment with rc disposition code is received and the train validation has been performed.
Trigger Criteria:
Context: A V9 segment with RC disposition code is received AND the train validation has been performed
Applied to: Generate Train Not Found Error Message
Action: The train is not found in the system
Logic Flow:
IF A V9 segment with RC disposition code is received AND the train validation has been performed
AND The train is not found in the system
THEN:
• The system generates a train not found error message and routes it to the Merlin error system
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when v9 segment with rc disposition code is received and the train exists in the system.
Trigger Criteria:
Context: A V9 segment with RC disposition code is received AND the train exists in the system
Applied to: Process RC - Export Manifest Review Complete
Action: The system processes the RC disposition code
Logic Flow:
IF A V9 segment with RC disposition code is received AND the train exists in the system
AND The system processes the RC disposition code
THEN:
• The system initiates export manifest review complete processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when export manifest review complete processing has been initiated and the train exists in the system.
Trigger Criteria:
Context: Export manifest review complete processing has been initiated AND the train exists in the system
Applied to: Update Train Status to Export Review Complete
Action: The system updates the train status
Logic Flow:
IF Export manifest review complete processing has been initiated AND the train exists in the system
AND The system updates the train status
THEN:
• The train status is set to export review complete
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when train status has been updated to export review complete.
Trigger Criteria:
Context: The train status has been updated to export review complete
Applied to: Check if Train is at Export Port
Action: The system validates the train location
Logic Flow:
IF The train status has been updated to export review complete
AND The system validates the train location
THEN:
• The system checks if the train is at a valid export port location
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when train location has been validated and the train is at a valid export port.
Trigger Criteria:
Context: The train location has been validated AND the train is at a valid export port
Applied to: Set Export Manifest Review Flag
Action: The system processes the export port validation result
Logic Flow:
IF The train location has been validated AND the train is at a valid export port
AND The system processes the export port validation result
THEN:
• The export manifest review flag is set to indicate completion
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when export manifest review flag has been set.
Trigger Criteria:
Context: The export manifest review flag has been set
Applied to: Update Train Export Status
Action: The system updates the train export status
Logic Flow:
IF The export manifest review flag has been set
AND The system updates the train export status
THEN:
• The train export status is updated to reflect the completed review
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when train export status has been updated.
Trigger Criteria:
Context: The train export status has been updated
Applied to: Generate Export Review Complete Notification
Action: The system generates notifications
Logic Flow:
IF The train export status has been updated
AND The system generates notifications
THEN:
• An export review complete notification is generated and sent to appropriate recipients
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when export review complete notification has been generated.
Trigger Criteria:
Context: The export review complete notification has been generated
Applied to: Log Export Manifest Review Transaction
Action: The system logs the transaction
Logic Flow:
IF The export review complete notification has been generated
AND The system logs the transaction
THEN:
• The export manifest review transaction is logged with appropriate details
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when export manifest review transaction has been logged.
Trigger Criteria:
Context: The export manifest review transaction has been logged
Applied to: Check for Additional V9 Segments
Action: The system checks for additional segments
Logic Flow:
IF The export manifest review transaction has been logged
AND The system checks for additional segments
THEN:
• The system determines if more V9 segments exist for processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when additional v9 segments have been found.
Trigger Criteria:
Context: Additional V9 segments have been found
Applied to: Process Next V9 Segment
Action: The system processes the next segment
Logic Flow:
IF Additional V9 segments have been found
AND The system processes the next segment
THEN:
• The next V9 segment is processed following the same validation and processing rules
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when all v9 segments have been processed or an error has occurred.
Trigger Criteria:
Context: All V9 segments have been processed OR an error has occurred
Applied to: Complete Export Manifest Review Processing
Action: The system finalizes the processing
Logic Flow:
IF All V9 segments have been processed OR an error has occurred
AND The system finalizes the processing
THEN:
• The export manifest review processing is marked as complete
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when validation error has occurred or the train is not at a valid export port.
Trigger Criteria:
Context: A validation error has occurred OR the train is not at a valid export port
Applied to: Send Error to Merlin System
Action: The system handles the error condition
Logic Flow:
IF A validation error has occurred OR the train is not at a valid export port
AND The system handles the error condition
THEN:
• The error message is sent to the Merlin system for appropriate handling
R-GCX016-cbl-00139 (+9)File: GCX016.cblBusiness Rule: Train Not Arrived Notification
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when v9 segment with oca disposition code is received for a specific train.
Trigger Criteria:
Context: A V9 segment with OCA disposition code is received for a specific train
Applied to: Validate Train Exists in System
Action: The system validates the train existence in the GCWTL-TRAIN-LIST
Logic Flow:
IF A V9 segment with OCA disposition code is received for a specific train
AND The system validates the train existence in the GCWTL-TRAIN-LIST
THEN:
• The system determines if the train is found or not found and sets appropriate processing flags
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when train exists in the system and oca disposition code is being processed.
Trigger Criteria:
Context: A train exists in the system and OCA disposition code is being processed
Applied to: Generate Train Not Arrived Error Message
Action: The system processes the train not arrived condition
Logic Flow:
IF A train exists in the system and OCA disposition code is being processed
AND The system processes the train not arrived condition
THEN:
• The system creates an error message indicating the train has not arrived and requires re-arrival or USCS contact
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when train existence validation has been completed for oca disposition code processing.
Trigger Criteria:
Context: Train existence validation has been completed for OCA disposition code processing
Applied to: Train Found?
Action: The system evaluates the train found status
Logic Flow:
IF Train existence validation has been completed for OCA disposition code processing
AND The system evaluates the train found status
THEN:
• If train is found, proceed with not arrived notification processing, otherwise skip processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when train not arrived condition has been identified for oca processing.
Trigger Criteria:
Context: A train not arrived condition has been identified for OCA processing
Applied to: Format Error Message with Train Details
Action: The system formats the warning message
Logic Flow:
IF A train not arrived condition has been identified for OCA processing
AND The system formats the warning message
THEN:
• The message includes instructions to re-arrive the train or contact USCS with train identification details
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when train not arrived error message is being formatted for oca processing.
Trigger Criteria:
Context: A train not arrived error message is being formatted for OCA processing
Applied to: Include Manifest Information in Message
Action: The system includes manifest information in the message
Logic Flow:
IF A train not arrived error message is being formatted for OCA processing
AND The system includes manifest information in the message
THEN:
• The message contains manifest details associated with the train that has not arrived
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when train not arrived error message has been formatted for oca processing.
Trigger Criteria:
Context: A train not arrived error message has been formatted for OCA processing
Applied to: Route Error Message to Multiple Destinations
Action: The system routes the message to destinations
Logic Flow:
IF A train not arrived error message has been formatted for OCA processing
AND The system routes the message to destinations
THEN:
• The message is sent to both 'IN' and 'USERR' destinations as configured in the message routing tables
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when train not arrived error message is being prepared for routing.
Trigger Criteria:
Context: A train not arrived error message is being prepared for routing
Applied to: Set Message Keywords for Categorization
Action: The system sets message keywords
Logic Flow:
IF A train not arrived error message is being prepared for routing
AND The system sets message keywords
THEN:
• The message is tagged with appropriate keywords for OCA train not arrived categorization
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when train not arrived message has been routed with proper keywords.
Trigger Criteria:
Context: A train not arrived message has been routed with proper keywords
Applied to: Send Notification to Configured Users
Action: The system sends notifications to configured users
Logic Flow:
IF A train not arrived message has been routed with proper keywords
AND The system sends notifications to configured users
THEN:
• All users configured to receive OCA train not arrived notifications receive the message
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when train not arrived notification has been sent to configured users.
Trigger Criteria:
Context: A train not arrived notification has been sent to configured users
Applied to: Log Train Not Arrived Event
Action: The system logs the event
Logic Flow:
IF A train not arrived notification has been sent to configured users
AND The system logs the event
THEN:
• The train not arrived event is recorded in the system logs with timestamp and train details
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when train not arrived event has been logged.
Trigger Criteria:
Context: A train not arrived event has been logged
Applied to: Update Train Status as Not Arrived
Action: The system updates the train status
Logic Flow:
IF A train not arrived event has been logged
AND The system updates the train status
THEN:
• The train status is updated to indicate not arrived condition requiring re-arrival processing
Business Justification: Dictates the expected operational logic and validation steps when v9 segment with coc disposition code is received for a specific train.
Trigger Criteria:
Context: A V9 segment with COC disposition code is received for a specific train
Applied to: Train Exists in System?
Action: The system checks if the train exists in GCWTL-TRAIN-LIST
Logic Flow:
IF A V9 segment with COC disposition code is received for a specific train
AND The system checks if the train exists in GCWTL-TRAIN-LIST
THEN:
• If train does not exist, generate train not found error and stop processing, otherwise continue with COC validation
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when train exists in the system and coc disposition code is provided.
Trigger Criteria:
Context: A train exists in the system and COC disposition code is provided
Applied to: Validate COC Disposition Code
Action: The system looks up the COC code in GCSTBRT disposition codes table
Logic Flow:
IF A train exists in the system and COC disposition code is provided
AND The system looks up the COC code in GCSTBRT disposition codes table
THEN:
• If COC code is valid, proceed to check train arrival status, otherwise generate invalid disposition code error
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when valid coc disposition code is received for an existing train.
Trigger Criteria:
Context: A valid COC disposition code is received for an existing train
Applied to: Train Previously Arrived?
Action: The system checks the train's current arrival status
Logic Flow:
IF A valid COC disposition code is received for an existing train
AND The system checks the train's current arrival status
THEN:
• If train has not previously arrived, generate train arrival cancellation warning and stop processing, otherwise proceed with cancellation
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when coc disposition code is received for a train that has not previously arrived.
Trigger Criteria:
Context: A COC disposition code is received for a train that has not previously arrived
Applied to: Generate Train Arrival Cancellation Warning
Action: The system detects the train arrival status is not 'arrived'
Logic Flow:
IF A COC disposition code is received for a train that has not previously arrived
AND The system detects the train arrival status is not 'arrived'
THEN:
• Generate warning message 'Train arrival being cancelled by CBP. Contact CBP and re-arrive bonds if needed' and terminate processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when train has previously arrived and coc disposition code is valid.
Trigger Criteria:
Context: A train has previously arrived and COC disposition code is valid
Applied to: Update Train Status to Cancel Arrival
Action: The system processes the arrival cancellation
Logic Flow:
IF A train has previously arrived and COC disposition code is valid
AND The system processes the arrival cancellation
THEN:
• Update train status to 'arrival cancelled' in the train records
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when train status is being updated to cancel arrival.
Trigger Criteria:
Context: Train status is being updated to cancel arrival
Applied to: Clear Train Arrival Date
Action: The system processes the arrival cancellation
Logic Flow:
IF Train status is being updated to cancel arrival
AND The system processes the arrival cancellation
THEN:
• Clear the train arrival date field and set it to null or empty
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when train arrival date has been cleared due to cancellation.
Trigger Criteria:
Context: Train arrival date has been cleared due to cancellation
Applied to: Restore Previous Bond Dates
Action: The system needs to restore bond processing dates
Logic Flow:
IF Train arrival date has been cleared due to cancellation
AND The system needs to restore bond processing dates
THEN:
• Restore all bond dates to their state prior to the cancelled arrival event
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when train status, arrival date, and bond dates have been updated for cancellation.
Trigger Criteria:
Context: Train status, arrival date, and bond dates have been updated for cancellation
Applied to: Update Train Records in Database
Action: All train data changes are ready to be persisted
Logic Flow:
IF Train status, arrival date, and bond dates have been updated for cancellation
AND All train data changes are ready to be persisted
THEN:
• Update train records in the database with all cancellation-related changes
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when train records have been updated for arrival cancellation.
Trigger Criteria:
Context: Train records have been updated for arrival cancellation
Applied to: Equipment Records Exist?
Action: The system checks for associated equipment records
Logic Flow:
IF Train records have been updated for arrival cancellation
AND The system checks for associated equipment records
THEN:
• If equipment records exist, process equipment status changes, otherwise proceed to generate cancellation notifications
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when equipment records exist for the train with cancelled arrival.
Trigger Criteria:
Context: Equipment records exist for the train with cancelled arrival
Applied to: Process Equipment Status Changes
Action: The system processes equipment status updates
Logic Flow:
IF Equipment records exist for the train with cancelled arrival
AND The system processes equipment status updates
THEN:
• Update equipment status to reflect the train arrival cancellation
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when equipment status changes are being processed for cancelled train arrival.
Trigger Criteria:
Context: Equipment status changes are being processed for cancelled train arrival
Applied to: Update Equipment Arrival Status
Action: The system updates individual equipment records
Logic Flow:
IF Equipment status changes are being processed for cancelled train arrival
AND The system updates individual equipment records
THEN:
• Set equipment arrival status to cancelled or clear arrival status based on cancellation
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when train and equipment records have been updated for arrival cancellation.
Trigger Criteria:
Context: Train and equipment records have been updated for arrival cancellation
Applied to: Generate Cancellation Notifications
Action: The system prepares stakeholder notifications
Logic Flow:
IF Train and equipment records have been updated for arrival cancellation
AND The system prepares stakeholder notifications
THEN:
• Generate cancellation notifications containing train details and cancellation information
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cancellation notifications have been generated. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: Cancellation notifications have been generated
Applied to: KCSM Integration Required?
Action: The system checks KCSM integration requirements
Logic Flow:
IF Cancellation notifications have been generated
AND The system checks KCSM integration requirements
THEN:
• If KCSM integration is required, copy EDI message for KCSM transmission, otherwise proceed to log cancellation
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when kcsm integration is required for the train arrival cancellation. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: KCSM integration is required for the train arrival cancellation
Applied to: Copy EDI Message for KCSM
Action: The system prepares KCSM transmission
Logic Flow:
IF KCSM integration is required for the train arrival cancellation
AND The system prepares KCSM transmission
THEN:
• Copy the EDI message to A9RT/A9DP KCSM transmission tables
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when edi message has been copied for kcsm transmission.
Trigger Criteria:
Context: EDI message has been copied for KCSM transmission
Applied to: Create KCSM Transmission
Action: The system creates the KCSM transmission record
Logic Flow:
IF EDI message has been copied for KCSM transmission
AND The system creates the KCSM transmission record
THEN:
• Create KCSM transmission record in A9RT/A9DP tables with appropriate transmission parameters
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when train arrival cancellation processing is complete and kcsm transmission is handled if required.
Trigger Criteria:
Context: Train arrival cancellation processing is complete and KCSM transmission is handled if required
Applied to: Log Train Arrival Cancellation
Action: The system logs the cancellation event
Logic Flow:
IF Train arrival cancellation processing is complete and KCSM transmission is handled if required
AND The system logs the cancellation event
THEN:
• Create log entry with train details, cancellation timestamp, and processing results
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when train arrival cancellation has been logged.
Trigger Criteria:
Context: Train arrival cancellation has been logged
Applied to: Send Notifications to Stakeholders
Action: The system sends stakeholder notifications
Logic Flow:
IF Train arrival cancellation has been logged
AND The system sends stakeholder notifications
THEN:
• Send notifications to brokers, customs, and other stakeholders with cancellation details and required actions
Business Justification: Governs the functional prerequisites and system routing when v9 segment is received with disposition code 'lck'.
Trigger Criteria:
Context: A V9 segment is received with disposition code 'LCK'
Applied to: V9 Segment with LCK Disposition Code Received
Action: The system processes the V9 segment
Logic Flow:
IF A V9 segment is received with disposition code 'LCK'
AND The system processes the V9 segment
THEN:
• The system initiates train lock processing workflow
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when train lock request is being processed.
Trigger Criteria:
Context: A train lock request is being processed
Applied to: Validate Train Exists in System
Action: The system validates the train information from M10 segment
Logic Flow:
IF A train lock request is being processed
AND The system validates the train information from M10 segment
THEN:
• The system checks if the train exists in GCWTL-TRAIN-LIST table
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when train lock operation is requested and the train does not exist in the system.
Trigger Criteria:
Context: A train lock operation is requested AND the train does not exist in the system
Applied to: Generate Train Not Found Error Message
Action: The train validation fails
Logic Flow:
IF A train lock operation is requested AND the train does not exist in the system
AND The train validation fails
THEN:
• The system generates a train not found error message AND terminates the lock processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when valid train exists in the system and m10 segment is available.
Trigger Criteria:
Context: A valid train exists in the system AND M10 segment is available
Applied to: Extract Train Information from M10 Segment
Action: The system processes the train lock request
Logic Flow:
IF A valid train exists in the system AND M10 segment is available
AND The system processes the train lock request
THEN:
• The system extracts train identification and operational details from M10 segment
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when train information has been extracted and lck disposition code is present.
Trigger Criteria:
Context: Train information has been extracted AND LCK disposition code is present
Applied to: Process LCK Disposition Code
Action: The system processes the disposition code
Logic Flow:
IF Train information has been extracted AND LCK disposition code is present
AND The system processes the disposition code
THEN:
• The system interprets LCK code as a train lock operation AND prepares lock parameters
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when lck disposition code has been processed successfully.
Trigger Criteria:
Context: LCK disposition code has been processed successfully
Applied to: Set Train Lock Status
Action: The system applies the lock operation
Logic Flow:
IF LCK disposition code has been processed successfully
AND The system applies the lock operation
THEN:
• The system sets the train status to locked AND prevents unauthorized modifications
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when train lock status has been set.
Trigger Criteria:
Context: Train lock status has been set
Applied to: Update Train Record in GCWTL-TRAIN-LIST
Action: The system updates the train record
Logic Flow:
IF Train lock status has been set
AND The system updates the train record
THEN:
• The system updates GCWTL-TRAIN-LIST table with lock status AND timestamp information
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when train record has been updated with lock status.
Trigger Criteria:
Context: Train record has been updated with lock status
Applied to: Log Train Lock Operation
Action: The system completes the lock operation
Logic Flow:
IF Train record has been updated with lock status
AND The system completes the lock operation
THEN:
• The system creates an audit log entry with train ID, lock timestamp, AND operation details
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when train lock operation has been logged.
Trigger Criteria:
Context: Train lock operation has been logged
Applied to: K1 Remarks Present?
Action: The system checks for additional information
Logic Flow:
IF Train lock operation has been logged
AND The system checks for additional information
THEN:
• The system determines if K1 remarks segment is present in the message
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when k1 remarks segment is present in the message.
Trigger Criteria:
Context: K1 remarks segment is present in the message
Applied to: Process K1 Remarks for Train Lock
Action: The system processes the remarks
Logic Flow:
IF K1 remarks segment is present in the message
AND The system processes the remarks
THEN:
• The system extracts lock reason, duration, AND additional operational notes from K1 segment
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when train lock operation is completed and k1 remarks have been processed (if present).
Trigger Criteria:
Context: Train lock operation is completed AND K1 remarks have been processed (if present)
Applied to: Generate Train Lock Confirmation Message
Action: The system generates confirmation
Logic Flow:
IF Train lock operation is completed AND K1 remarks have been processed (if present)
AND The system generates confirmation
THEN:
• The system creates a train lock confirmation message with train ID, lock timestamp, AND operation status
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when train lock confirmation message has been generated.
Trigger Criteria:
Context: Train lock confirmation message has been generated
Applied to: Send Notification to Operations
Action: The system sends notifications
Logic Flow:
IF Train lock confirmation message has been generated
AND The system sends notifications
THEN:
• The system sends lock notification to operations team AND updates operational dashboards
Business Justification: Dictates the expected operational logic and validation steps when v9 segment with ulc disposition code is received containing train identification information.
Trigger Criteria:
Context: A V9 segment with ULC disposition code is received containing train identification information
Applied to: Validate Train Exists in System
Action: The system processes the ULC request and checks the train list for the specified train
Logic Flow:
IF A V9 segment with ULC disposition code is received containing train identification information
AND The system processes the ULC request and checks the train list for the specified train
THEN:
• The system verifies train existence in GCWTL-TRAIN-LISTand sets appropriate validation flags
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when ulc disposition code is being processed for a specific train.
Trigger Criteria:
Context: A ULC disposition code is being processed for a specific train
Applied to: Generate Train Not Found Error Message
Action: The train lookup validation fails and the train is not found in the system
Logic Flow:
IF A ULC disposition code is being processed for a specific train
AND The train lookup validation fails and the train is not found in the system
THEN:
• The system generates a train not found error message and stops ULC processing without updating any train status
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when valid ulc disposition code is being processed and the train exists in the system.
Trigger Criteria:
Context: A valid ULC disposition code is being processed and the train exists in the system
Applied to: Update Train Status to Unlocked
Action: The unlock operation is executed
Logic Flow:
IF A valid ULC disposition code is being processed and the train exists in the system
AND The unlock operation is executed
THEN:
• The system updates the train status records to reflect unlocked state
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when train unlock operation has been successfully processed.
Trigger Criteria:
Context: A train unlock operation has been successfully processed
Applied to: Log Train Unlock Activity
Action: The train status is updated to unlocked
Logic Flow:
IF A train unlock operation has been successfully processed
AND The train status is updated to unlocked
THEN:
• The system creates a log entry recording the train unlock activity with timestamp and relevant details
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when train unlock operation is being processed.
Trigger Criteria:
Context: A train unlock operation is being processed
Applied to: Check for VID Equipment Segments
Action: The system examines the message segments for VID equipment information
Logic Flow:
IF A train unlock operation is being processed
AND The system examines the message segments for VID equipment information
THEN:
• The system identifies whether VID segments are present and sets appropriate processing flags
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when vid equipment segments are present in the ulc message.
Trigger Criteria:
Context: VID equipment segments are present in the ULC message
Applied to: Process Individual Equipment Unlock
Action: The system processes individual equipment unlock operations
Logic Flow:
IF VID equipment segments are present in the ULC message
AND The system processes individual equipment unlock operations
THEN:
• The system iterates through each VID segment and processes unlock operations for the specified equipment
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when individual equipment unlock processing is being performed for vid segments.
Trigger Criteria:
Context: Individual equipment unlock processing is being performed for VID segments
Applied to: Update Equipment Status to Unlocked
Action: Each equipment item is processed for unlock
Logic Flow:
IF Individual equipment unlock processing is being performed for VID segments
AND Each equipment item is processed for unlock
THEN:
• The system updates the equipment records to reflect unlocked status for each specified equipment item
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when train unlock operations have been successfully completed including any individual equipment processing.
Trigger Criteria:
Context: Train unlock operations have been successfully completed including any individual equipment processing
Applied to: Generate Train Unlock Confirmation
Action: All unlock processing is finished
Logic Flow:
IF Train unlock operations have been successfully completed including any individual equipment processing
AND All unlock processing is finished
THEN:
• The system generates a confirmation message indicating successful train unlock completion
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when train unlock confirmation has been generated.
Trigger Criteria:
Context: Train unlock confirmation has been generated
Applied to: Send Notification Messages
Action: The system processes notification distribution
Logic Flow:
IF Train unlock confirmation has been generated
AND The system processes notification distribution
THEN:
• The system sends unlock notification messages to relevant parties and connected systems
Business Justification: Dictates the expected operational logic and validation steps when v9 segment with sei disposition code is received for train seizure.
Trigger Criteria:
Context: A V9 segment with SEI disposition code is received for train seizure
Applied to: Validate Train Exists in System
Action: The system validates the train against the train list using vessel name
Logic Flow:
IF A V9 segment with SEI disposition code is received for train seizure
AND The system validates the train against the train list using vessel name
THEN:
• The system determines if the train exists and sets appropriate processing flags
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when train seizure request is being processed.
Trigger Criteria:
Context: A train seizure request is being processed
Applied to: Generate Train Not Found Error Message
Action: The train is not found in the system train list
Logic Flow:
IF A train seizure request is being processed
AND The train is not found in the system train list
THEN:
• The system generates a train not found error message and terminates seizure processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when valid train exists in the system.
Trigger Criteria:
Context: A valid train exists in the system
Applied to: Process SEI Train Seizure Code
Action: The V9 segment contains SEI disposition code
Logic Flow:
IF A valid train exists in the system
AND The V9 segment contains SEI disposition code
THEN:
• The system initiates train seizure processing and prepares for equipment seizure operations
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when train seizure processing has been initiated.
Trigger Criteria:
Context: Train seizure processing has been initiated
Applied to: Initialize Equipment Seizure Counter
Action: The system begins processing equipment seizure operations
Logic Flow:
IF Train seizure processing has been initiated
AND The system begins processing equipment seizure operations
THEN:
• The system initializes equipment seizure counter to zero
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when train seizure processing is active.
Trigger Criteria:
Context: Train seizure processing is active
Applied to: VID Segments Follow?
Action: The system checks for following VID segments in the message
Logic Flow:
IF Train seizure processing is active
AND The system checks for following VID segments in the message
THEN:
• The system determines whether to process individual equipment seizure or proceed with train-level seizure
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when vid segments are present following the sei disposition code.
Trigger Criteria:
Context: VID segments are present following the SEI disposition code
Applied to: Process VID Segment for Equipment Seizure
Action: The system processes each VID segment
Logic Flow:
IF VID segments are present following the SEI disposition code
AND The system processes each VID segment
THEN:
• The system marks the specific equipment identified in the VID segment as seized
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when vid segment identifies specific equipment for seizure.
Trigger Criteria:
Context: A VID segment identifies specific equipment for seizure
Applied to: Mark Specific Equipment as Seized
Action: The system processes the equipment seizure request
Logic Flow:
IF A VID segment identifies specific equipment for seizure
AND The system processes the equipment seizure request
THEN:
• The system updates the equipment status to seized in the equipment records
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when equipment item has been marked as seized.
Trigger Criteria:
Context: An equipment item has been marked as seized
Applied to: Increment Equipment Seizure Count
Action: The seizure operation is completed for the equipment
Logic Flow:
IF An equipment item has been marked as seized
AND The seizure operation is completed for the equipment
THEN:
• The system increments the equipment seizure counter by one
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when one vid segment has been processed for equipment seizure.
Trigger Criteria:
Context: One VID segment has been processed for equipment seizure
Applied to: More VID Segments?
Action: The system checks for additional VID segments in the message
Logic Flow:
IF One VID segment has been processed for equipment seizure
AND The system checks for additional VID segments in the message
THEN:
• The system either continues processing more VID segments or proceeds to train status update
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when equipment seizure operations have been completed.
Trigger Criteria:
Context: Equipment seizure operations have been completed
Applied to: All Equipment Seized?
Action: The system evaluates the seizure status of all equipment on the train
Logic Flow:
IF Equipment seizure operations have been completed
AND The system evaluates the seizure status of all equipment on the train
THEN:
• The system determines whether the train is fully seized or partially seized
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when all equipment on the train has been seized.
Trigger Criteria:
Context: All equipment on the train has been seized
Applied to: Set Train Status to Fully Seized
Action: The system updates the train seizure status
Logic Flow:
IF All equipment on the train has been seized
AND The system updates the train seizure status
THEN:
• The system sets the train status to fully seized
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when only some equipment on the train has been seized.
Trigger Criteria:
Context: Only some equipment on the train has been seized
Applied to: Set Train Status to Partially Seized
Action: The system updates the train seizure status
Logic Flow:
IF Only some equipment on the train has been seized
AND The system updates the train seizure status
THEN:
• The system sets the train status to partially seized
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when train seizure status has been updated.
Trigger Criteria:
Context: Train seizure status has been updated
Applied to: Log Train Seizure Operation
Action: The system completes the seizure operation
Logic Flow:
IF Train seizure status has been updated
AND The system completes the seizure operation
THEN:
• The system logs the train seizure operation with seizure details and timestamp
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when train seizure operation has been logged.
Trigger Criteria:
Context: Train seizure operation has been logged
Applied to: Generate Seizure Notification Message
Action: The system prepares stakeholder notifications
Logic Flow:
IF Train seizure operation has been logged
AND The system prepares stakeholder notifications
THEN:
• The system generates seizure notification message with train and equipment details
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when seizure notification message has been generated.
Trigger Criteria:
Context: Seizure notification message has been generated
Applied to: Update Train Record in Database
Action: The system persists the seizure operation results
Logic Flow:
IF Seizure notification message has been generated
AND The system persists the seizure operation results
THEN:
• The system updates the train record in the database with the new seizure status and related information
Business Justification: Governs the functional prerequisites and system routing when v9 segment with ser disposition code is received for a train.
Trigger Criteria:
Context: A V9 segment with SER disposition code is received for a train
Applied to: Validate Train Exists in System
Action: The system attempts to validate the train exists in the train list
Logic Flow:
IF A V9 segment with SER disposition code is received for a train
AND The system attempts to validate the train exists in the train list
THEN:
• The system checks the train list database and sets train found or not found status
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when train seizure release is being processed.
Trigger Criteria:
Context: A train seizure release is being processed
Applied to: Generate Train Not Found Error Message
Action: The train is not found in the system
Logic Flow:
IF A train seizure release is being processed
AND The train is not found in the system
THEN:
• The system generates a train not found error message and stops processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when train seizure release is being processed.
Trigger Criteria:
Context: A train seizure release is being processed
Applied to: Check for Following VID Segments
Action: The system checks for VID segments following the V9 segment
Logic Flow:
IF A train seizure release is being processed
AND The system checks for VID segments following the V9 segment
THEN:
• The system identifies whether VID segments are present for individual equipment processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when v9 segment contains ser disposition code and train exists in system.
Trigger Criteria:
Context: A V9 segment contains SER disposition code and train exists in system
Applied to: Process SER - Train Seizure Release
Action: The system processes the SER disposition code
Logic Flow:
IF A V9 segment contains SER disposition code and train exists in system
AND The system processes the SER disposition code
THEN:
• The system initiates train seizure release processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when vid segments are present following a ser disposition code.
Trigger Criteria:
Context: VID segments are present following a SER disposition code
Applied to: Process Each VID Segment for Equipment Release
Action: The system processes each VID segment
Logic Flow:
IF VID segments are present following a SER disposition code
AND The system processes each VID segment
THEN:
• The system releases the specified equipment from seizure and decrements the seized equipment count
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when individual equipment has been processed for seizure release.
Trigger Criteria:
Context: Individual equipment has been processed for seizure release
Applied to: Update Train Seizure Status
Action: The system evaluates if any equipment is still seized on the train
Logic Flow:
IF Individual equipment has been processed for seizure release
AND The system evaluates if any equipment is still seized on the train
THEN:
• If equipment remains seized, the train stays in seized status; otherwise, the entire train is released from seizure
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when train seizure status has been determined.
Trigger Criteria:
Context: Train seizure status has been determined
Applied to: Update Train Status in Database
Action: The system updates the train status
Logic Flow:
IF Train seizure status has been determined
AND The system updates the train status
THEN:
• The train status is updated in the database to reflect the current seizure state
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when train status has been updated in the database.
Trigger Criteria:
Context: Train status has been updated in the database
Applied to: Generate Train Seizure Release Notification
Action: The system completes seizure release processing
Logic Flow:
IF Train status has been updated in the database
AND The system completes seizure release processing
THEN:
• The system generates a train seizure release notification message
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when train seizure release notification has been generated.
Trigger Criteria:
Context: Train seizure release notification has been generated
Applied to: Log Train Seizure Release Activity
Action: The system completes the seizure release process
Logic Flow:
IF Train seizure release notification has been generated
AND The system completes the seizure release process
THEN:
• The system logs the train seizure release activity with relevant details
Business Justification: Dictates the expected operational logic and validation steps when k1 segment is received for processing.
Trigger Criteria:
Context: A K1 segment is received for processing
Applied to: Processing Context?
Action: The system evaluates the current processing context
Logic Flow:
IF A K1 segment is received for processing
AND The system evaluates the current processing context
THEN:
• The system routes K1 remarks to either train-level processing or cargo-level processing based on the active context
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when k1 segment contains remarks and the processing context is train-level.
Trigger Criteria:
Context: A K1 segment contains remarks AND the processing context is train-level
Applied to: K1 Remarks Processing for Train Operations
Action: The system processes the K1 segment for train operations
Logic Flow:
IF A K1 segment contains remarks AND the processing context is train-level
AND The system processes the K1 segment for train operations
THEN:
• The system extracts the remarks from K1 segment AND associates them with the current train record AND logs the comments with train identification information
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when k1 segment contains remarks and the processing context is cargo-level.
Trigger Criteria:
Context: A K1 segment contains remarks AND the processing context is cargo-level
Applied to: K1 Remarks Processing for Cargo Operations
Action: The system processes the K1 segment for cargo operations
Logic Flow:
IF A K1 segment contains remarks AND the processing context is cargo-level
AND The system processes the K1 segment for cargo operations
THEN:
• The system extracts the remarks from K1 segment AND stores the remarks in the associated cargo record AND makes the remarks available for cargo-related messaging
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when k1 comments are being added to the comment array.
Trigger Criteria:
Context: K1 comments are being added to the comment array
Applied to: Maximum 4 Comments Reached?
Action: The system checks if the maximum limit of 4 comments has been reached
Logic Flow:
IF K1 comments are being added to the comment array
AND The system checks if the maximum limit of 4 comments has been reached
THEN:
• IF the comment array has fewer than 4 comments THEN the system adds the new K1 comment to the array ELSE the system skips additional comments beyond the 4-comment limit
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when k1 comment needs to be stored and the comment array has not reached the maximum limit of 4 comments.
Trigger Criteria:
Context: A K1 comment needs to be stored AND the comment array has not reached the maximum limit of 4 comments
Applied to: Add K1 Comment to Array
Action: The system processes the K1 comment for storage
Logic Flow:
IF A K1 comment needs to be stored AND the comment array has not reached the maximum limit of 4 comments
AND The system processes the K1 comment for storage
THEN:
• The system adds the K1 comment to the next available position in the comment array AND increments the comment counter
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when k1 comment needs to be stored and the comment array has already reached the maximum limit of 4 comments.
Trigger Criteria:
Context: A K1 comment needs to be stored AND the comment array has already reached the maximum limit of 4 comments
Applied to: Skip Additional Comments
Action: The system attempts to process additional K1 comments
Logic Flow:
IF A K1 comment needs to be stored AND the comment array has already reached the maximum limit of 4 comments
AND The system attempts to process additional K1 comments
THEN:
• The system skips the additional K1 comments without adding them to the array AND continues processing without error
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when k1 comments have been processed and stored in the comment array.
Trigger Criteria:
Context: K1 comments have been processed and stored in the comment array
Applied to: K1 Comment Integration
Action: The system prepares messages for external communication
Logic Flow:
IF K1 comments have been processed and stored in the comment array
AND The system prepares messages for external communication
THEN:
• The system retrieves all stored K1 comments from the array AND integrates them into the appropriate message formats AND makes them available for inclusion in Merlin messages, release messages, and broker notifications
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when k1 comments are available in the comment array and a merlin message is being prepared.
Trigger Criteria:
Context: K1 comments are available in the comment array AND a Merlin message is being prepared
Applied to: Include Comments in Merlin Messages
Action: The system formats the Merlin message
Logic Flow:
IF K1 comments are available in the comment array AND a Merlin message is being prepared
AND The system formats the Merlin message
THEN:
• The system includes all available K1 comments in the Merlin message AND formats them appropriately for Merlin message standards
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when k1 comments are available in the comment array and a release message is being prepared.
Trigger Criteria:
Context: K1 comments are available in the comment array AND a release message is being prepared
Applied to: Include Comments in Release Messages
Action: The system formats the release message
Logic Flow:
IF K1 comments are available in the comment array AND a release message is being prepared
AND The system formats the release message
THEN:
• The system includes all available K1 comments in the release message AND ensures comments are properly formatted for release message recipients
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when k1 comments are available in the comment array and a broker notification is being prepared.
Trigger Criteria:
Context: K1 comments are available in the comment array AND a broker notification is being prepared
Applied to: Include Comments in Broker Notifications
Action: The system formats the broker notification
Logic Flow:
IF K1 comments are available in the comment array AND a broker notification is being prepared
AND The system formats the broker notification
THEN:
• The system includes all available K1 comments in the broker notification AND ensures comments are formatted appropriately for broker communication standards
R-GCX016-cbl-00278 (+18)File: GCX016.cblBusiness Rule: Customs Release Information Processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when x4 segment is received for processing.
Trigger Criteria:
Context: An X4 segment is received for processing
Applied to: X4 Segment Valid?
Action: The system validates the X4 segment structure and required fields
Logic Flow:
IF An X4 segment is received for processing
AND The system validates the X4 segment structure and required fields
THEN:
• The segment is accepted for processing if valid, otherwise an error is generated
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when valid x4 segment is available for processing.
Trigger Criteria:
Context: A valid X4 segment is available for processing
Applied to: Extract Customs Release Information
Action: The system processes the X4 segment
Logic Flow:
IF A valid X4 segment is available for processing
AND The system processes the X4 segment
THEN:
• All customs release information including disposition code, entry number, release quantity, bond number, car ID, and waybill are extracted and stored
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when x4 segment with extracted customs release information.
Trigger Criteria:
Context: An X4 segment with extracted customs release information
Applied to: Bond Number Present?
Action: The system checks for the presence of a bond number
Logic Flow:
IF An X4 segment with extracted customs release information
AND The system checks for the presence of a bond number
THEN:
• If bond number is present, process all cargo with the same bond number; otherwise check for car ID and waybill combination
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when x4 segment without a bond number.
Trigger Criteria:
Context: An X4 segment without a bond number
Applied to: Car ID and Waybill Present?
Action: The system checks for car ID and waybill information
Logic Flow:
IF An X4 segment without a bond number
AND The system checks for car ID and waybill information
THEN:
• If both car ID and waybill are present, process cargo by car/waybill combination; otherwise process using US-CCN directly
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when processing method determined (bond, car/waybill, or us-ccn).
Trigger Criteria:
Context: Processing method determined (bond, car/waybill, or US-CCN)
Applied to: Cargo Found?
Action: The system searches for existing cargo records using the appropriate key
Logic Flow:
IF Processing method determined (bond, car/waybill, or US-CCN)
AND The system searches for existing cargo records using the appropriate key
THEN:
• If cargo is found, proceed with disposition processing; if not found, create new foreign bill record or generate error
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when no existing cargo record found for the processing key.
Trigger Criteria:
Context: No existing cargo record found for the processing key
Applied to: Create New Foreign Bill Record
Action: The system determines a new record is needed
Logic Flow:
IF No existing cargo record found for the processing key
AND The system determines a new record is needed
THEN:
• A new foreign bill record is created with information from the X4 segment and default status values
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code extracted from the x4 segment.
Trigger Criteria:
Context: A disposition code extracted from the X4 segment
Applied to: Valid Disposition Code?
Action: The system validates the disposition code against the DC table
Logic Flow:
IF A disposition code extracted from the X4 segment
AND The system validates the disposition code against the DC table
THEN:
• If the disposition code is valid and authorized, proceed with processing; otherwise generate an error
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when valid disposition code and existing or new cargo record.
Trigger Criteria:
Context: A valid disposition code and existing or new cargo record
Applied to: Update Status Array with Disposition
Action: The system processes the disposition code
Logic Flow:
IF A valid disposition code and existing or new cargo record
AND The system processes the disposition code
THEN:
• The status array is updated with the disposition code, location information, quantities, and processing flags
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code that requires fda processing (a1 or a3).
Trigger Criteria:
Context: A disposition code that requires FDA processing (A1 or A3)
Applied to: Process FDA Requirements
Action: The system identifies FDA requirements
Logic Flow:
IF A disposition code that requires FDA processing (A1 or A3)
AND The system identifies FDA requirements
THEN:
• FDA notifications are generated and special FDA hold status is applied to the cargo
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code requiring in-bond processing.
Trigger Criteria:
Context: A disposition code requiring in-bond processing
Applied to: Process In-Bond Entry Types
Action: The system processes entry types (61-Immediate Transport, 62-Transport Export, 63-Immediate Export, 69-US-Canada-US, 00-Border Processing)
Logic Flow:
IF A disposition code requiring in-bond processing
AND The system processes entry types (61-Immediate Transport, 62-Transport Export, 63-Immediate Export, 69-US-Canada-US, 00-Border Processing)
THEN:
• Appropriate in-bond processing is applied based on the entry type with correct bond dates and destination handling
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code that creates master in-bond entries (1j, 69, 55).
Trigger Criteria:
Context: A disposition code that creates master in-bond entries (1J, 69, 55)
Applied to: Process Master In-Bond Entries
Action: The system processes the master in-bond requirement
Logic Flow:
IF A disposition code that creates master in-bond entries (1J, 69, 55)
AND The system processes the master in-bond requirement
THEN:
• Master in-bond flag is set, appropriate entry type processing is applied, and broker information is processed from K1 segments
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code 95 (proceed) is being processed.
Trigger Criteria:
Context: A disposition code 95 (Proceed) is being processed
Applied to: Clear Bond Information for DC 95
Action: The system applies DC 95 processing
Logic Flow:
IF A disposition code 95 (Proceed) is being processed
AND The system applies DC 95 processing
THEN:
• Existing bond information is cleared and proceed status is set with appropriate border arrival date
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when processed disposition code with quantity information.
Trigger Criteria:
Context: A processed disposition code with quantity information
Applied to: Update Cargo Release Quantities
Action: The system updates release quantities
Logic Flow:
IF A processed disposition code with quantity information
AND The system updates release quantities
THEN:
• Release quantities are added or subtracted based on disposition action, with validation to prevent negative values
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when updated cargo with disposition processing completed.
Trigger Criteria:
Context: Updated cargo with disposition processing completed
Applied to: Release Conditions Met?
Action: The system evaluates release conditions
Logic Flow:
IF Updated cargo with disposition processing completed
AND The system evaluates release conditions
THEN:
• If release quantity equals or exceeds total quantity and no holds exist, release conditions are met; otherwise hold processing is required
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo that meets release conditions.
Trigger Criteria:
Context: Cargo that meets release conditions
Applied to: Generate Release Notification
Action: The system processes the release
Logic Flow:
IF Cargo that meets release conditions
AND The system processes the release
THEN:
• Release notifications are sent to brokers and Merlin system with cargo details, quantities, and release information
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo that does not meet release conditions.
Trigger Criteria:
Context: Cargo that does not meet release conditions
Applied to: Hold Required?
Action: The system evaluates hold requirements
Logic Flow:
IF Cargo that does not meet release conditions
AND The system evaluates hold requirements
THEN:
• If disposition code or cargo conditions require hold, hold processing is initiated; otherwise cargo status is updated without hold
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo that requires hold status.
Trigger Criteria:
Context: Cargo that requires hold status
Applied to: Generate Hold Notification
Action: The system applies hold processing
Logic Flow:
IF Cargo that requires hold status
AND The system applies hold processing
THEN:
• Hold notifications are sent to brokers and Merlin system with hold reason, location, and cargo details
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when completed disposition processing with all notifications sent.
Trigger Criteria:
Context: Completed disposition processing with all notifications sent
Applied to: Update Cargo Status
Action: The system finalizes cargo status
Logic Flow:
IF Completed disposition processing with all notifications sent
AND The system finalizes cargo status
THEN:
• Cargo status is updated to reflect current condition (released, held, proceed, etc.) and database records are updated
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when completed x4 segment processing.
Trigger Criteria:
Context: Completed X4 segment processing
Applied to: Log Processing Information
Action: The system logs processing information
Logic Flow:
IF Completed X4 segment processing
AND The system logs processing information
THEN:
• All status changes, notifications sent, and processing actions are logged to GCX105 system for audit trail
Business Justification: Establishes the required business protocol to be followed when n7 equipment details segment is received.
Trigger Criteria:
Context: An N7 equipment details segment is received
Applied to: Extract Equipment ID from N7 Segment
Action: The system processes the N7 segment
Logic Flow:
IF An N7 equipment details segment is received
AND The system processes the N7 segment
THEN:
• Equipment ID information is extracted and stored for cargo record updates
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when raw equipment id data is extracted from n7 segment.
Trigger Criteria:
Context: Raw equipment ID data is extracted from N7 segment
Applied to: Format Equipment ID using GCCCARFM Utility
Action: The system applies GCCCARFM formatting utility
Logic Flow:
IF Raw equipment ID data is extracted from N7 segment
AND The system applies GCCCARFM formatting utility
THEN:
• Equipment ID is formatted according to standard format rules and validated for correctness
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when equipment id has been formatted using gcccarfm utility.
Trigger Criteria:
Context: Equipment ID has been formatted using GCCCARFM utility
Applied to: Equipment ID Valid?
Action: The system validates the equipment ID
Logic Flow:
IF Equipment ID has been formatted using GCCCARFM utility
AND The system validates the equipment ID
THEN:
• Equipment ID is accepted if valid or rejected if invalid with appropriate error handling
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when valid equipment id is available.
Trigger Criteria:
Context: A valid equipment ID is available
Applied to: Locate Cargo Records by Car ID
Action: The system searches for cargo records using the car ID
Logic Flow:
IF A valid equipment ID is available
AND The system searches for cargo records using the car ID
THEN:
• All cargo records associated with the car ID are located and retrieved
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when system has searched for cargo records by car id.
Trigger Criteria:
Context: System has searched for cargo records by car ID
Applied to: Cargo Records Found?
Action: The search results are evaluated
Logic Flow:
IF System has searched for cargo records by car ID
AND The search results are evaluated
THEN:
• System determines if cargo records exist and proceeds with appropriate processing path
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo records are found for the car id and n7 segment contains valid equipment data.
Trigger Criteria:
Context: Cargo records are found for the car ID and N7 segment contains valid equipment data
Applied to: Update Car ID Information in Cargo Records
Action: The system processes the car ID update
Logic Flow:
IF Cargo records are found for the car ID and N7 segment contains valid equipment data
AND The system processes the car ID update
THEN:
• Car ID information is updated in all associated cargo records with equipment details from N7 segment
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when car id information has been updated in cargo records.
Trigger Criteria:
Context: Car ID information has been updated in cargo records
Applied to: Validate Equipment Type for Integration
Action: The system validates the equipment type
Logic Flow:
IF Car ID information has been updated in cargo records
AND The system validates the equipment type
THEN:
• Equipment type is verified against integration requirements and appropriate processing path is determined
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when equipment type has been validated.
Trigger Criteria:
Context: Equipment type has been validated
Applied to: KCSM Integration Required?
Action: The system evaluates KCSM integration requirements
Logic Flow:
IF Equipment type has been validated
AND The system evaluates KCSM integration requirements
THEN:
• System determines if KCSM integration is required and routes processing accordingly
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when kcsm integration is required.
Trigger Criteria:
Context: KCSM integration is required
Applied to: Extract Equipment Details for KCSM
Action: The system extracts equipment details
Logic Flow:
IF KCSM integration is required
AND The system extracts equipment details
THEN:
• Relevant equipment information is extracted and prepared for KCSM integration
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when equipment details have been processed and validated.
Trigger Criteria:
Context: Equipment details have been processed and validated
Applied to: Update Equipment Information in Cargo Database
Action: The system updates the cargo database
Logic Flow:
IF Equipment details have been processed and validated
AND The system updates the cargo database
THEN:
• Equipment information is permanently stored in the cargo database with all relevant details
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when equipment information has been updated in the database.
Trigger Criteria:
Context: Equipment information has been updated in the database
Applied to: Log Equipment Processing Activity
Action: The system completes equipment processing
Logic Flow:
IF Equipment information has been updated in the database
AND The system completes equipment processing
THEN:
• All equipment processing activities are logged with appropriate details for audit trail
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when equipment id validation has failed.
Trigger Criteria:
Context: Equipment ID validation has failed
Applied to: Generate Equipment Validation Error
Action: The system processes the validation failure
Logic Flow:
IF Equipment ID validation has failed
AND The system processes the validation failure
THEN:
• An equipment validation error is generated with appropriate error details and processing continues
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when no cargo records are found for the car id.
Trigger Criteria:
Context: No cargo records are found for the car ID
Applied to: Log Cargo Not Found Warning
Action: The system processes the cargo search failure
Logic Flow:
IF No cargo records are found for the car ID
AND The system processes the cargo search failure
THEN:
• A cargo not found warning is logged and processing continues to next segment
R-GCX016-cbl-00310 (+12)File: GCX016.cblBusiness Rule: Transaction Set Trailer Processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when message segment is being processed.
Trigger Criteria:
Context: A message segment is being processed
Applied to: SE Segment Detected
Action: The segment type is identified as 'SE'
Logic Flow:
IF A message segment is being processed
AND The segment type is identified as 'SE'
THEN:
• The system initiates SE segment processing for transaction set completion
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when se segment has been detected.
Trigger Criteria:
Context: An SE segment has been detected
Applied to: Validate SE Segment Structure
Action: The system validates the segment structure
Logic Flow:
IF An SE segment has been detected
AND The system validates the segment structure
THEN:
• The segment must contain transaction set control number and segment count in valid format
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when se segment structure has been validated.
Trigger Criteria:
Context: SE segment structure has been validated
Applied to: Valid SE Segment?
Action: The validation results are evaluated
Logic Flow:
IF SE segment structure has been validated
AND The validation results are evaluated
THEN:
• If segment is valid, proceed to extract control data, otherwise generate validation error
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when valid se segment is being processed.
Trigger Criteria:
Context: A valid SE segment is being processed
Applied to: Extract Transaction Set Control Number
Action: The system extracts the transaction set control number
Logic Flow:
IF A valid SE segment is being processed
AND The system extracts the transaction set control number
THEN:
• The control number is captured for comparison with the corresponding ST segment
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when transaction set control number has been extracted.
Trigger Criteria:
Context: Transaction set control number has been extracted
Applied to: Extract Number of Included Segments
Action: The system extracts the segment count from SE segment
Logic Flow:
IF Transaction set control number has been extracted
AND The system extracts the segment count from SE segment
THEN:
• The segment count is captured for validation against actual processed segments
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when se segment control number has been extracted.
Trigger Criteria:
Context: SE segment control number has been extracted
Applied to: Control Number Matches ST Segment?
Action: The control number is compared with the ST segment control number
Logic Flow:
IF SE segment control number has been extracted
AND The control number is compared with the ST segment control number
THEN:
• If numbers match, proceed to segment count validation, otherwise log control number mismatch error
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when control numbers match between st and se segments.
Trigger Criteria:
Context: Control numbers match between ST and SE segments
Applied to: Segment Count Matches Actual?
Action: The declared segment count is compared with actual processed segments
Logic Flow:
IF Control numbers match between ST and SE segments
AND The declared segment count is compared with actual processed segments
THEN:
• If counts match, mark transaction set complete, otherwise log segment count mismatch error
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when all se segment validations have passed.
Trigger Criteria:
Context: All SE segment validations have passed
Applied to: Mark Transaction Set as Complete
Action: The system marks the transaction set as complete
Logic Flow:
IF All SE segment validations have passed
AND The system marks the transaction set as complete
THEN:
• The transaction set status is updated to indicate successful completion
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when transaction set has been marked as complete.
Trigger Criteria:
Context: Transaction set has been marked as complete
Applied to: Update Transaction Set Status
Action: The system updates the transaction set status
Logic Flow:
IF Transaction set has been marked as complete
AND The system updates the transaction set status
THEN:
• The status reflects successful processing and completion of the transaction set
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when current transaction set status has been updated.
Trigger Criteria:
Context: Current transaction set status has been updated
Applied to: Prepare for Next Transaction Set
Action: The system prepares for next transaction set
Logic Flow:
IF Current transaction set status has been updated
AND The system prepares for next transaction set
THEN:
• Processing flags and counters are reset for the next transaction set
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when se segment fails structural validation.
Trigger Criteria:
Context: SE segment fails structural validation
Applied to: Generate SE Validation Error
Action: The system generates a validation error
Logic Flow:
IF SE segment fails structural validation
AND The system generates a validation error
THEN:
• An error message is created indicating SE segment validation failure
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when se control number does not match st control number.
Trigger Criteria:
Context: SE control number does not match ST control number
Applied to: Log Control Number Mismatch
Action: The system logs the control number mismatch
Logic Flow:
IF SE control number does not match ST control number
AND The system logs the control number mismatch
THEN:
• An error is recorded indicating control number inconsistency between ST and SE segments
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when declared segment count does not match actual processed segments.
Trigger Criteria:
Context: Declared segment count does not match actual processed segments
Applied to: Log Segment Count Mismatch
Action: The system logs the segment count mismatch
Logic Flow:
IF Declared segment count does not match actual processed segments
AND The system logs the segment count mismatch
THEN:
• An error is recorded indicating inconsistency between declared and actual segment counts
Business Justification: Governs the functional prerequisites and system routing when disposition code is received from x4 segment. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: A disposition code is received from X4 segment
Applied to: Call B561-GET-DC-TABLE-INFO
Action: The system needs to validate the disposition code
Logic Flow:
IF A disposition code is received from X4 segment
AND The system needs to validate the disposition code
THEN:
• The system calls B561-GET-DC-TABLE-INFO to retrieve disposition code details from GCSTBRT IMS segment
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code lookup has been performed against the dc table.
Trigger Criteria:
Context: A disposition code lookup has been performed against the DC table
Applied to: Disposition Code Found?
Action: The system checks if the disposition code was found in the table
Logic Flow:
IF A disposition code lookup has been performed against the DC table
AND The system checks if the disposition code was found in the table
THEN:
• If disposition code is found, system proceeds to extract code details; if not found, system sets invalid disposition code flag and generates error
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code has been found in the dc table.
Trigger Criteria:
Context: A disposition code has been found in the DC table
Applied to: Retrieve Disposition Code Details
Action: The system processes the valid disposition code
Logic Flow:
IF A disposition code has been found in the DC table
AND The system processes the valid disposition code
THEN:
• The system extracts code description, counterpart code information, quantity action flag, processing instructions, and sets valid disposition code flag
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code lookup has failed to find the code in the dc table.
Trigger Criteria:
Context: A disposition code lookup has failed to find the code in the DC table
Applied to: Set Invalid Disposition Code Flag
Action: The system determines the disposition code is invalid
Logic Flow:
IF A disposition code lookup has failed to find the code in the DC table
AND The system determines the disposition code is invalid
THEN:
• The system sets invalid disposition code flag, generates error message, logs disposition code error, and continues processing with error status
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when valid disposition code record has been retrieved from the dc table.
Trigger Criteria:
Context: A valid disposition code record has been retrieved from the DC table
Applied to: Extract Code Description
Action: The system processes the disposition code details
Logic Flow:
IF A valid disposition code record has been retrieved from the DC table
AND The system processes the disposition code details
THEN:
• The system extracts code description, counterpart code information, quantity action flag, and processing instructions for subsequent cargo processing
R-GCX016-cbl-00366 (+18)File: GCX016.cblBusiness Rule: Cargo Status Updates
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record exists without any s09 status segment.
Trigger Criteria:
Context: A cargo record exists without any S09 status segment
Applied to: Create New Status Array
Action: The system processes cargo status updates
Logic Flow:
IF A cargo record exists without any S09 status segment
AND The system processes cargo status updates
THEN:
• A new S09 segment is created with cargo CCN key and sequence '0001'
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record has existing s09 status segments.
Trigger Criteria:
Context: A cargo record has existing S09 status segments
Applied to: Load Existing Status Array
Action: The system processes cargo status updates
Logic Flow:
IF A cargo record has existing S09 status segments
AND The system processes cargo status updates
THEN:
• All S09 sequences and occurrences are loaded into the status array for modification
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when status array contains existing disposition codes.
Trigger Criteria:
Context: Status array contains existing disposition codes
Applied to: Analyze Current Status Codes
Action: The system analyzes current status
Logic Flow:
IF Status array contains existing disposition codes
AND The system analyzes current status
THEN:
• Flags are set for empty, held, released, PTT, export, and arrival conditions based on status codes
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when hold disposition code is received for cargo.
Trigger Criteria:
Context: A hold disposition code is received for cargo
Applied to: Process Hold Code
Action: The disposition code type is identified as hold
Logic Flow:
IF A hold disposition code is received for cargo
AND The disposition code type is identified as hold
THEN:
• The hold code is added to status array and any existing counterpart release codes are removed
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when release disposition code is received for cargo.
Trigger Criteria:
Context: A release disposition code is received for cargo
Applied to: Process Release Code
Action: The disposition code type is identified as release
Logic Flow:
IF A release disposition code is received for cargo
AND The disposition code type is identified as release
THEN:
• The release code is added to status array, counterpart hold codes are removed, and release quantities are updated
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when arrival disposition code is received for cargo.
Trigger Criteria:
Context: An arrival disposition code is received for cargo
Applied to: Process Arrival Code
Action: The disposition code type is identified as arrival
Logic Flow:
IF An arrival disposition code is received for cargo
AND The disposition code type is identified as arrival
THEN:
• Arrival status is set and arrival date is updated in the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when export disposition code is received for cargo.
Trigger Criteria:
Context: An export disposition code is received for cargo
Applied to: Process Export Code
Action: The disposition code type is identified as export
Logic Flow:
IF An export disposition code is received for cargo
AND The disposition code type is identified as export
THEN:
• Export status is set and destination index is cleared from the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cancellation disposition code is received for cargo.
Trigger Criteria:
Context: A cancellation disposition code is received for cargo
Applied to: Process Cancellation Code
Action: The disposition code type is identified as cancellation
Logic Flow:
IF A cancellation disposition code is received for cargo
AND The disposition code type is identified as cancellation
THEN:
• Previous status changes are reversed and previous bond dates are restored
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when hold disposition code specifies border location.
Trigger Criteria:
Context: A hold disposition code specifies border location
Applied to: Set Border Hold Status
Action: Location determination identifies border as hold location
Logic Flow:
IF A hold disposition code specifies border location
AND Location determination identifies border as hold location
THEN:
• Border hold status is set in cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when hold disposition code specifies destination location.
Trigger Criteria:
Context: A hold disposition code specifies destination location
Applied to: Set Destination Hold Status
Action: Location determination identifies destination as hold location
Logic Flow:
IF A hold disposition code specifies destination location
AND Location determination identifies destination as hold location
THEN:
• Destination hold status is set in cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when hold disposition code affects both border and destination locations.
Trigger Criteria:
Context: A hold disposition code affects both border and destination locations
Applied to: Set Both Locations Hold
Action: Location determination identifies both locations for hold
Logic Flow:
IF A hold disposition code affects both border and destination locations
AND Location determination identifies both locations for hold
THEN:
• Hold status is set for both border and destination in cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when release disposition code contains quantity information.
Trigger Criteria:
Context: A release disposition code contains quantity information
Applied to: Calculate Release Quantities
Action: Release quantities need to be updated
Logic Flow:
IF A release disposition code contains quantity information
AND Release quantities need to be updated
THEN:
• Quantities are added or subtracted from existing release quantity with minimum value of zero
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo has updated release quantities.
Trigger Criteria:
Context: Cargo has updated release quantities
Applied to: Clear All Holds
Action: Release quantity is greater than or equal to total quantity
Logic Flow:
IF Cargo has updated release quantities
AND Release quantity is greater than or equal to total quantity
THEN:
• All hold statuses are cleared and cargo is marked as fully released
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo has updated release quantities.
Trigger Criteria:
Context: Cargo has updated release quantities
Applied to: Set Partial Release Status
Action: Release quantity is less than total quantity
Logic Flow:
IF Cargo has updated release quantities
AND Release quantity is less than total quantity
THEN:
• Partial release status (HOLDPCS) is set in cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo arrival status is being updated.
Trigger Criteria:
Context: Cargo arrival status is being updated
Applied to: Set Arrival Date
Action: Arrival disposition code is processed
Logic Flow:
IF Cargo arrival status is being updated
AND Arrival disposition code is processed
THEN:
• Current date and time are set as arrival date in cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo is being exported or fully released.
Trigger Criteria:
Context: Cargo is being exported or fully released
Applied to: Clear Destination Index
Action: Export status is set or full release is achieved
Logic Flow:
IF Cargo is being exported or fully released
AND Export status is set or full release is achieved
THEN:
• Destination index information is cleared from cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cancellation disposition code is processed.
Trigger Criteria:
Context: A cancellation disposition code is processed
Applied to: Restore Previous Bond Date
Action: Previous status changes need to be reversed
Logic Flow:
IF A cancellation disposition code is processed
AND Previous status changes need to be reversed
THEN:
• Previous bond date is restored in cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when status array has been updated with new disposition codes.
Trigger Criteria:
Context: Status array has been updated with new disposition codes
Applied to: Update Cargo Record Status
Action: All disposition code processing is complete
Logic Flow:
IF Status array has been updated with new disposition codes
AND All disposition code processing is complete
THEN:
• Cargo record status fields are updated with new status information
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when status array contains updated disposition codes.
Trigger Criteria:
Context: Status array contains updated disposition codes
Applied to: Save Status Array to Database
Action: All status processing is complete
Logic Flow:
IF Status array contains updated disposition codes
AND All status processing is complete
THEN:
• Updated status array is saved back to S09 segments in database
Business Justification: Establishes the required business protocol to be followed when disposition code is being processed for cargo.
Trigger Criteria:
Context: A disposition code is being processed for cargo
Applied to: Disposition Code Has Quantity Action?
Action: The system checks if the disposition code has quantity action requirements
Logic Flow:
IF A disposition code is being processed for cargo
AND The system checks if the disposition code has quantity action requirements
THEN:
• The system should proceed to quantity management if action is required, otherwise skip quantity processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record requires quantity processing.
Trigger Criteria:
Context: A cargo record requires quantity processing
Applied to: Get Current Cargo Quantities
Action: The system needs to access current quantity information
Logic Flow:
IF A cargo record requires quantity processing
AND The system needs to access current quantity information
THEN:
• The system should retrieve both total cargo quantity and current released quantity from the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code contains quantity information.
Trigger Criteria:
Context: A disposition code contains quantity information
Applied to: Get Disposition Code Quantity
Action: The system processes the disposition code
Logic Flow:
IF A disposition code contains quantity information
AND The system processes the disposition code
THEN:
• The system should extract and validate the quantity value from the disposition code
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code has been validated to contain quantity action.
Trigger Criteria:
Context: A disposition code has been validated to contain quantity action
Applied to: Quantity Action Type?
Action: The system evaluates the disposition code action type
Logic Flow:
IF A disposition code has been validated to contain quantity action
AND The system evaluates the disposition code action type
THEN:
• The system should determine if the action is ADD_QUANTITY or SUBTRACT_QUANTITY based on the disposition code type
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when disposition code action type is add_quantity and current released quantity exists.
Trigger Criteria:
Context: The disposition code action type is ADD_QUANTITY and current released quantity exists
Applied to: Add Quantity to Released Amount
Action: The system processes the quantity addition
Logic Flow:
IF The disposition code action type is ADD_QUANTITY and current released quantity exists
AND The system processes the quantity addition
THEN:
• The system should add the disposition code quantity to the current released quantity
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when disposition code action type is subtract_quantity and current released quantity exists.
Trigger Criteria:
Context: The disposition code action type is SUBTRACT_QUANTITY and current released quantity exists
Applied to: Subtract Quantity from Released Amount
Action: The system processes the quantity subtraction
Logic Flow:
IF The disposition code action type is SUBTRACT_QUANTITY and current released quantity exists
AND The system processes the quantity subtraction
THEN:
• The system should subtract the disposition code quantity from the current released quantity
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when quantity operation has been performed on released quantity.
Trigger Criteria:
Context: A quantity operation has been performed on released quantity
Applied to: Released Quantity Valid?
Action: The system validates the resulting released quantity
Logic Flow:
IF A quantity operation has been performed on released quantity
AND The system validates the resulting released quantity
THEN:
• The system should check if the released quantity is negative and flag invalid results
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when calculated released quantity is negative.
Trigger Criteria:
Context: The calculated released quantity is negative
Applied to: Set Released Quantity to Zero
Action: The system applies quantity correction rules
Logic Flow:
IF The calculated released quantity is negative
AND The system applies quantity correction rules
THEN:
• The system should set the released quantity to zero to prevent negative values
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when valid released quantity has been calculated.
Trigger Criteria:
Context: A valid released quantity has been calculated
Applied to: Update Cargo Released Quantity
Action: The system updates the cargo record
Logic Flow:
IF A valid released quantity has been calculated
AND The system updates the cargo record
THEN:
• The system should store the new released quantity in the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo has updated released quantity and known total quantity.
Trigger Criteria:
Context: Cargo has updated released quantity and known total quantity
Applied to: Released = Total Quantity?
Action: The system evaluates release completion status
Logic Flow:
IF Cargo has updated released quantity and known total quantity
AND The system evaluates release completion status
THEN:
• The system should determine if released quantity equals or exceeds total quantity for full release status
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo released quantity equals or exceeds total quantity.
Trigger Criteria:
Context: Cargo released quantity equals or exceeds total quantity
Applied to: Mark Cargo as Fully Released
Action: The system assigns release status
Logic Flow:
IF Cargo released quantity equals or exceeds total quantity
AND The system assigns release status
THEN:
• The system should mark the cargo as fully released and update appropriate status flags
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo released quantity is less than total quantity.
Trigger Criteria:
Context: Cargo released quantity is less than total quantity
Applied to: Mark Cargo as Partially Released
Action: The system assigns release status
Logic Flow:
IF Cargo released quantity is less than total quantity
AND The system assigns release status
THEN:
• The system should mark the cargo as partially released and maintain hold status for remaining quantity
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo has total quantity and released quantity values.
Trigger Criteria:
Context: Cargo has total quantity and released quantity values
Applied to: Calculate Remaining Held Quantity
Action: The system calculates remaining held quantity
Logic Flow:
IF Cargo has total quantity and released quantity values
AND The system calculates remaining held quantity
THEN:
• The system should compute held quantity as total quantity minus released quantity
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo has calculated total, released, and held quantities.
Trigger Criteria:
Context: Cargo has calculated total, released, and held quantities
Applied to: Update Cargo Status Based on Quantities
Action: The system updates cargo status
Logic Flow:
IF Cargo has calculated total, released, and held quantities
AND The system updates cargo status
THEN:
• The system should set appropriate cargo status codes based on quantity relationships and release completion
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo has processed quantities and broker entry contains quantity information.
Trigger Criteria:
Context: Cargo has processed quantities and broker entry contains quantity information
Applied to: Quantity Mismatch with Broker Entry?
Action: The system compares cargo quantities with broker entry quantities
Logic Flow:
IF Cargo has processed quantities and broker entry contains quantity information
AND The system compares cargo quantities with broker entry quantities
THEN:
• The system should identify mismatches between cargo quantities and broker declared quantities
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when quantity mismatch has been detected between cargo and broker entry.
Trigger Criteria:
Context: A quantity mismatch has been detected between cargo and broker entry
Applied to: Generate Broker Notification for Mismatch
Action: The system processes broker notifications
Logic Flow:
IF A quantity mismatch has been detected between cargo and broker entry
AND The system processes broker notifications
THEN:
• The system should generate and send a quantity mismatch notification to the appropriate broker
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when quantity changes have been processed for cargo.
Trigger Criteria:
Context: Quantity changes have been processed for cargo
Applied to: Log Quantity Changes
Action: The system completes quantity management operations
Logic Flow:
IF Quantity changes have been processed for cargo
AND The system completes quantity management operations
THEN:
• The system should log all quantity changes, status updates, and related transaction details for audit purposes
R-GCX016-cbl-00402 (+13)File: GCX016.cblBusiness Rule: Broker Notification for Quantity Mismatch
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo processing is complete and broker entry quantities exist.
Trigger Criteria:
Context: Cargo processing is complete and broker entry quantities exist
Applied to: Compare Broker Entry Quantity vs Manifest Quantity
Action: System compares broker entry quantity against manifest quantity
Logic Flow:
IF Cargo processing is complete and broker entry quantities exist
AND System compares broker entry quantity against manifest quantity
THEN:
• System identifies quantity mismatch and flags for broker notification
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when quantity mismatch has been detected for cargo.
Trigger Criteria:
Context: A quantity mismatch has been detected for cargo
Applied to: Retrieve Broker Information from BK/B1 Tables
Action: System needs to send broker notification
Logic Flow:
IF A quantity mismatch has been detected for cargo
AND System needs to send broker notification
THEN:
• System retrieves broker information from GCSTBRT broker tables including contact details and notification configuration
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when broker information has been retrieved from broker tables.
Trigger Criteria:
Context: Broker information has been retrieved from broker tables
Applied to: Broker Configured for Notifications?
Action: System checks broker notification configuration settings
Logic Flow:
IF Broker information has been retrieved from broker tables
AND System checks broker notification configuration settings
THEN:
• System proceeds with notification only if broker is configured for notifications, otherwise skips notification process
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when broker is configured for notifications and quantity mismatch exists.
Trigger Criteria:
Context: Broker is configured for notifications and quantity mismatch exists
Applied to: Validate Disposition Code for Broker Notifications
Action: System validates the disposition code against notification criteria
Logic Flow:
IF Broker is configured for notifications and quantity mismatch exists
AND System validates the disposition code against notification criteria
THEN:
• System proceeds with notification preparation only if disposition code is valid for broker notifications
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code is valid for broker notifications.
Trigger Criteria:
Context: Disposition code is valid for broker notifications
Applied to: Prepare Quantity Mismatch Email Message
Action: System prepares the notification message
Logic Flow:
IF Disposition code is valid for broker notifications
AND System prepares the notification message
THEN:
• System creates formatted email message with quantity mismatch details, broker entry numbers, and relevant cargo information
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when email message preparation is in progress.
Trigger Criteria:
Context: Email message preparation is in progress
Applied to: Include Broker Entry Numbers and Quantities
Action: System formats the message content
Logic Flow:
IF Email message preparation is in progress
AND System formats the message content
THEN:
• System includes broker entry numbers, expected quantities, actual quantities, and variance details in the notification
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when broker entry numbers and quantities have been included in message.
Trigger Criteria:
Context: Broker entry numbers and quantities have been included in message
Applied to: Format Mismatch Details for Report
Action: System formats the mismatch details
Logic Flow:
IF Broker entry numbers and quantities have been included in message
AND System formats the mismatch details
THEN:
• System creates structured report format showing discrepancies, affected cargo, and recommended actions for broker review
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when mismatch details have been formatted for report.
Trigger Criteria:
Context: Mismatch details have been formatted for report
Applied to: Email or Merlin Routing?
Action: System determines routing method
Logic Flow:
IF Mismatch details have been formatted for report
AND System determines routing method
THEN:
• System routes via internet email if broker is configured for email notifications, otherwise routes via traditional Merlin messaging system
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when broker is configured for email notifications.
Trigger Criteria:
Context: Broker is configured for email notifications
Applied to: Route via Internet Email
Action: System routes the notification
Logic Flow:
IF Broker is configured for email notifications
AND System routes the notification
THEN:
• System sends notification through internet email system using broker's registered email address
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when broker is not configured for email notifications or email routing fails.
Trigger Criteria:
Context: Broker is not configured for email notifications or email routing fails
Applied to: Route via Traditional Merlin
Action: System routes the notification
Logic Flow:
IF Broker is not configured for email notifications or email routing fails
AND System routes the notification
THEN:
• System sends notification through traditional Merlin messaging system using broker's Merlin ID
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when notification routing method has been determined.
Trigger Criteria:
Context: Notification routing method has been determined
Applied to: Set Email Keywords for Categorization
Action: System sets email keywords
Logic Flow:
IF Notification routing method has been determined
AND System sets email keywords
THEN:
• System assigns relevant keywords such as 'QUANTITY_MISMATCH', 'BROKER_NOTIFICATION', and cargo-specific identifiers for proper categorization
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when email keywords have been set for categorization.
Trigger Criteria:
Context: Email keywords have been set for categorization
Applied to: Send Notification to Broker
Action: System sends the notification
Logic Flow:
IF Email keywords have been set for categorization
AND System sends the notification
THEN:
• System delivers notification to broker through selected method and confirms successful transmission
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when notification has been sent to broker.
Trigger Criteria:
Context: Notification has been sent to broker
Applied to: Log Notification Activity
Action: System logs the activity
Logic Flow:
IF Notification has been sent to broker
AND System logs the activity
THEN:
• System records notification details including timestamp, broker ID, notification method, message content summary, and delivery status in audit logs
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when broker is not configured for notifications or no quantity mismatch detected or disposition code is invalid for notifications.
Trigger Criteria:
Context: Broker is not configured for notifications OR no quantity mismatch detected OR disposition code is invalid for notifications
Applied to: No Notification Required
Action: System evaluates notification requirements
Logic Flow:
IF Broker is not configured for notifications OR no quantity mismatch detected OR disposition code is invalid for notifications
AND System evaluates notification requirements
THEN:
• System skips notification process and continues with normal cargo processing workflow
R-GCX016-cbl-00416 (+12)File: GCX016.cblBusiness Rule: Broker Notification for CIH Holds
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cih hold code has been detected for cargo processing.
Trigger Criteria:
Context: A CIH hold code has been detected for cargo processing
Applied to: Broker Disposition Code Validation
Action: The system checks the disposition code configuration in the broker notification table
Logic Flow:
IF A CIH hold code has been detected for cargo processing
AND The system checks the disposition code configuration in the broker notification table
THEN:
• The system determines if the disposition code is configured for broker notification and sets appropriate processing flags
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cih hold code has been detected for cargo processing.
Trigger Criteria:
Context: A CIH hold code has been detected for cargo processing
Applied to: Skip Notification - Not Configured
Action: The disposition code is not configured for broker notification in the system tables
Logic Flow:
IF A CIH hold code has been detected for cargo processing
AND The disposition code is not configured for broker notification in the system tables
THEN:
• The system skips broker notification processing and continues with standard cargo processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code is configured for broker notification.
Trigger Criteria:
Context: The disposition code is configured for broker notification
Applied to: Broker Information Lookup
Action: The system performs broker lookup using broker identification keys
Logic Flow:
IF The disposition code is configured for broker notification
AND The system performs broker lookup using broker identification keys
THEN:
• The system retrieves broker contact information and sets broker found status flags
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code is configured for broker notification.
Trigger Criteria:
Context: The disposition code is configured for broker notification
Applied to: Skip Notification - Broker Not Found
Action: The broker information cannot be found in the broker tables
Logic Flow:
IF The disposition code is configured for broker notification
AND The broker information cannot be found in the broker tables
THEN:
• The system skips notification processing and logs the missing broker condition
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when broker record has been found in the broker tables.
Trigger Criteria:
Context: A broker record has been found in the broker tables
Applied to: Retrieve Broker Contact Information
Action: The system accesses the broker contact information fields
Logic Flow:
IF A broker record has been found in the broker tables
AND The system accesses the broker contact information fields
THEN:
• The system retrieves email addresses, Merlin IDs, and notification preferences for the broker
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when broker contact information has been retrieved successfully.
Trigger Criteria:
Context: Broker contact information has been retrieved successfully
Applied to: Email vs Merlin Routing
Action: The system evaluates broker notification preferences and available contact methods
Logic Flow:
IF Broker contact information has been retrieved successfully
AND The system evaluates broker notification preferences and available contact methods
THEN:
• The system selects either email or Merlin messaging as the notification delivery method
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when email has been selected as the notification method for the broker.
Trigger Criteria:
Context: Email has been selected as the notification method for the broker
Applied to: Prepare CIH Hold Email Message
Action: The system prepares the CIH hold notification email content
Logic Flow:
IF Email has been selected as the notification method for the broker
AND The system prepares the CIH hold notification email content
THEN:
• The system formats cargo information, hold details, and disposition code information into the email message body
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cih hold email message content has been prepared.
Trigger Criteria:
Context: The CIH hold email message content has been prepared
Applied to: Set Email Keywords for CIH Hold
Action: The system configures email routing and keyword parameters
Logic Flow:
IF The CIH hold email message content has been prepared
AND The system configures email routing and keyword parameters
THEN:
• The system sets appropriate email keywords, routing codes, and delivery parameters specific to CIH hold notifications
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when email keywords and routing parameters have been configured for cih hold notification.
Trigger Criteria:
Context: Email keywords and routing parameters have been configured for CIH hold notification
Applied to: Subject Line Formatting
Action: The system formats the email subject line
Logic Flow:
IF Email keywords and routing parameters have been configured for CIH hold notification
AND The system formats the email subject line
THEN:
• The system creates a subject line containing cargo identification, hold type, and relevant disposition code information
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cih hold email message and subject line have been formatted completely.
Trigger Criteria:
Context: The CIH hold email message and subject line have been formatted completely
Applied to: Send Email to Broker
Action: The system initiates email transmission to the broker
Logic Flow:
IF The CIH hold email message and subject line have been formatted completely
AND The system initiates email transmission to the broker
THEN:
• The system sends the email notification and logs the transmission status
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when merlin messaging has been selected as the notification method for the broker.
Trigger Criteria:
Context: Merlin messaging has been selected as the notification method for the broker
Applied to: Prepare Merlin Message for CIH Hold
Action: The system prepares the CIH hold notification for Merlin transmission
Logic Flow:
IF Merlin messaging has been selected as the notification method for the broker
AND The system prepares the CIH hold notification for Merlin transmission
THEN:
• The system formats cargo details, hold information, and disposition codes into Merlin message format
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cih hold merlin message has been formatted and prepared.
Trigger Criteria:
Context: The CIH hold Merlin message has been formatted and prepared
Applied to: Route to Broker Merlin Basket
Action: The system routes the message to the broker's Merlin basket
Logic Flow:
IF The CIH hold Merlin message has been formatted and prepared
AND The system routes the message to the broker's Merlin basket
THEN:
• The system delivers the message to the correct broker Merlin ID and logs the routing status
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cih hold notification has been successfully sent via email or merlin.
Trigger Criteria:
Context: The CIH hold notification has been successfully sent via email or Merlin
Applied to: Cargo Information Logging
Action: The system performs audit logging for the notification transaction
Logic Flow:
IF The CIH hold notification has been successfully sent via email or Merlin
AND The system performs audit logging for the notification transaction
THEN:
• The system records cargo identification, broker information, notification method, and timestamp in the audit log
R-GCX016-cbl-00429 (+9)File: GCX016.cblBusiness Rule: Payer of Freight Notification
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cih hold code has been detected on cargo.
Trigger Criteria:
Context: A CIH hold code has been detected on cargo
Applied to: Payer of Freight Identification
Action: The system searches for payer of freight information in secondary cargo records
Logic Flow:
IF A CIH hold code has been detected on cargo
AND The system searches for payer of freight information in secondary cargo records
THEN:
• The system retrieves payer of freight details from GCSA2RT records if available
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when system has searched secondary cargo records for payer of freight.
Trigger Criteria:
Context: The system has searched secondary cargo records for payer of freight
Applied to: Payer of Freight Found?
Action: The search results are evaluated for valid payer entity
Logic Flow:
IF The system has searched secondary cargo records for payer of freight
AND The search results are evaluated for valid payer entity
THEN:
• The system proceeds with broker name resolution if payer found, otherwise skips notification processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when valid payer of freight entity has been identified.
Trigger Criteria:
Context: A valid payer of freight entity has been identified
Applied to: Broker Name Resolution
Action: The system performs broker name lookup using PF= prefix in GCSTBRT broker tables
Logic Flow:
IF A valid payer of freight entity has been identified
AND The system performs broker name lookup using PF= prefix in GCSTBRT broker tables
THEN:
• The system retrieves the corresponding broker short name for the payer entity
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when broker name resolution has been attempted for the payer of freight.
Trigger Criteria:
Context: Broker name resolution has been attempted for the payer of freight
Applied to: Valid Payer Entity?
Action: The system evaluates the validity of the resolved payer entity
Logic Flow:
IF Broker name resolution has been attempted for the payer of freight
AND The system evaluates the validity of the resolved payer entity
THEN:
• The system proceeds with CIH hold notification preparation if valid, otherwise skips notification
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when valid payer entity has been verified for cih hold notification.
Trigger Criteria:
Context: A valid payer entity has been verified for CIH hold notification
Applied to: Prepare CIH Hold Notification
Action: The system formats the notification message content including hold code details and cargo information
Logic Flow:
IF A valid payer entity has been verified for CIH hold notification
AND The system formats the notification message content including hold code details and cargo information
THEN:
• The system creates a complete notification message ready for routing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cih hold notification message has been prepared for the payer of freight.
Trigger Criteria:
Context: A CIH hold notification message has been prepared for the payer of freight
Applied to: Email vs Merlin Routing
Action: The system checks email routing preferences in routing tables
Logic Flow:
IF A CIH hold notification message has been prepared for the payer of freight
AND The system checks email routing preferences in routing tables
THEN:
• The system routes via internet email if preference available, otherwise uses traditional Merlin routing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when system needs to route a cih hold notification to payer of freight.
Trigger Criteria:
Context: The system needs to route a CIH hold notification to payer of freight
Applied to: Email Preference Available?
Action: The system checks email routing tables for configured preferences
Logic Flow:
IF The system needs to route a CIH hold notification to payer of freight
AND The system checks email routing tables for configured preferences
THEN:
• The system determines routing method based on preference availability
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when email preference is available for the payer of freight entity.
Trigger Criteria:
Context: Email preference is available for the payer of freight entity
Applied to: Route via Internet Email
Action: The system routes the CIH hold notification
Logic Flow:
IF Email preference is available for the payer of freight entity
AND The system routes the CIH hold notification
THEN:
• The system sends the notification via internet email to the configured address
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when email preference is not available for the payer of freight entity.
Trigger Criteria:
Context: Email preference is not available for the payer of freight entity
Applied to: Route via Traditional Merlin
Action: The system routes the CIH hold notification
Logic Flow:
IF Email preference is not available for the payer of freight entity
AND The system routes the CIH hold notification
THEN:
• The system sends the notification via traditional Merlin messaging system
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when routing method has been determined for the cih hold notification.
Trigger Criteria:
Context: A routing method has been determined for the CIH hold notification
Applied to: Send Notification to Payer
Action: The system sends the notification to the payer of freight
Logic Flow:
IF A routing method has been determined for the CIH hold notification
AND The system sends the notification to the payer of freight
THEN:
• The system delivers the notification and logs the successful transmission
Business Justification: Establishes the required business protocol to be followed when x4 segment is received with a 3w disposition code.
Trigger Criteria:
Context: An X4 segment is received with a 3W disposition code
Applied to: Validate 3W Disposition Code in DC Table
Action: The system validates the 3W disposition code against the DC table
Logic Flow:
IF An X4 segment is received with a 3W disposition code
AND The system validates the 3W disposition code against the DC table
THEN:
• The system confirms the code is valid and allows diversion processing to continue, or generates an error if the code is not found in the table
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when x4 segment is received with a 3w disposition code.
Trigger Criteria:
Context: An X4 segment is received with a 3W disposition code
Applied to: Generate Error Message - Invalid 3W Code
Action: The 3W disposition code is not found in the DC table
Logic Flow:
IF An X4 segment is received with a 3W disposition code
AND The 3W disposition code is not found in the DC table
THEN:
• The system generates an error message indicating invalid 3W disposition code and stops diversion processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when valid 3w disposition code has been confirmed in the dc table.
Trigger Criteria:
Context: A valid 3W disposition code has been confirmed in the DC table
Applied to: Extract New Bonded-To Station from X4 Segment
Action: The system processes the X4 segment data
Logic Flow:
IF A valid 3W disposition code has been confirmed in the DC table
AND The system processes the X4 segment data
THEN:
• The system extracts the new bonded-to station code from the appropriate field in the X4 segment
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when new bonded-to station code has been extracted from the x4 segment.
Trigger Criteria:
Context: A new bonded-to station code has been extracted from the X4 segment
Applied to: Validate New Station Code in DS Table
Action: The system validates the station code against the DS table
Logic Flow:
IF A new bonded-to station code has been extracted from the X4 segment
AND The system validates the station code against the DS table
THEN:
• The system confirms the station code is valid and allows the diversion to proceed, or generates an error if the station is not found
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when new bonded-to station code has been validated in the ds table.
Trigger Criteria:
Context: The new bonded-to station code has been validated in the DS table
Applied to: Update Cargo Record Bonded-To Station
Action: The system processes the diversion approval
Logic Flow:
IF The new bonded-to station code has been validated in the DS table
AND The system processes the diversion approval
THEN:
• The system updates the cargo record's bonded-to station field with the new validated station code
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record has been updated with the new bonded-to station.
Trigger Criteria:
Context: The cargo record has been updated with the new bonded-to station
Applied to: Update Cargo Status Array with 3W Code
Action: The system processes the status update
Logic Flow:
IF The cargo record has been updated with the new bonded-to station
AND The system processes the status update
THEN:
• The system adds the 3W disposition code to the cargo status array with appropriate sequence and occurrence numbers
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo status array has been updated with the 3w code.
Trigger Criteria:
Context: The cargo status array has been updated with the 3W code
Applied to: Log Diversion Approval Action
Action: The system completes the diversion processing
Logic Flow:
IF The cargo status array has been updated with the 3W code
AND The system completes the diversion processing
THEN:
• The system logs the diversion approval action with cargo details, old station, new station, and timestamp
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when diversion approval action has been logged.
Trigger Criteria:
Context: The diversion approval action has been logged
Applied to: Generate Diversion Approval Notification
Action: The system processes notifications
Logic Flow:
IF The diversion approval action has been logged
AND The system processes notifications
THEN:
• The system generates and sends diversion approval notifications to brokers, carriers, and other relevant parties
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when diversion approval notifications have been generated.
Trigger Criteria:
Context: Diversion approval notifications have been generated
Applied to: Update Destination Index if Required
Action: The system evaluates if destination index update is required
Logic Flow:
IF Diversion approval notifications have been generated
AND The system evaluates if destination index update is required
THEN:
• The system updates the destination index if the new bonded-to station requires it based on cargo status and routing rules
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when new bonded-to station code has been extracted from x4 segment.
Trigger Criteria:
Context: A new bonded-to station code has been extracted from X4 segment
Applied to: Generate Error Message - Invalid Station
Action: The station code is not found in the DS table
Logic Flow:
IF A new bonded-to station code has been extracted from X4 segment
AND The station code is not found in the DS table
THEN:
• The system generates an error message indicating invalid station code and stops diversion processing
R-GCX016-cbl-00449 (+16)File: GCX016.cblBusiness Rule: Standard Release Processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code 02 is received for processing.
Trigger Criteria:
Context: A disposition code 02 is received for processing
Applied to: Validate Disposition Code 02 in DC Table
Action: The system looks up the disposition code in the DC table
Logic Flow:
IF A disposition code 02 is received for processing
AND The system looks up the disposition code in the DC table
THEN:
• The system confirms the code exists and retrieves its properties, or generates an error if not found
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when valid disposition code 02 is found in the dc table.
Trigger Criteria:
Context: A valid disposition code 02 is found in the DC table
Applied to: Retrieve Code Properties and Counterpart Information
Action: The system retrieves the code properties
Logic Flow:
IF A valid disposition code 02 is found in the DC table
AND The system retrieves the code properties
THEN:
• The system loads counterpart disposition codes, release flags, and processing instructions for the code
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code 02 is being processed for a cargo record.
Trigger Criteria:
Context: A disposition code 02 is being processed for a cargo record
Applied to: Check if Code Already Exists in Status Array
Action: The system searches the current status array for the same disposition code
Logic Flow:
IF A disposition code 02 is being processed for a cargo record
AND The system searches the current status array for the same disposition code
THEN:
• If the code already exists, processing is skipped; if not found, processing continues
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when disposition code 02 has counterpart codes defined in the dc table.
Trigger Criteria:
Context: A disposition code 02 has counterpart codes defined in the DC table
Applied to: Remove Any Counterpart Disposition Codes
Action: The system processes the new disposition code
Logic Flow:
IF A disposition code 02 has counterpart codes defined in the DC table
AND The system processes the new disposition code
THEN:
• All counterpart disposition codes are removed from the cargo status array before adding the new code
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code 02 includes entry number and quantity information.
Trigger Criteria:
Context: A disposition code 02 includes entry number and quantity information
Applied to: Validate Entry Number and Quantity Information
Action: The system validates the entry data
Logic Flow:
IF A disposition code 02 includes entry number and quantity information
AND The system validates the entry data
THEN:
• Entry numbers must be properly formatted and quantities must be positive numeric values within cargo limits
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when valid disposition code 02 with quantity information.
Trigger Criteria:
Context: A valid disposition code 02 with quantity information
Applied to: Calculate Release Quantity Impact
Action: The system calculates the quantity impact
Logic Flow:
IF A valid disposition code 02 with quantity information
AND The system calculates the quantity impact
THEN:
• The system determines whether to add or subtract from existing release quantities based on the disposition code action
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when validated disposition code 02 with calculated quantity impact.
Trigger Criteria:
Context: A validated disposition code 02 with calculated quantity impact
Applied to: Add Release Code to Status Array with Released Flag
Action: The system adds the code to the status array
Logic Flow:
IF A validated disposition code 02 with calculated quantity impact
AND The system adds the code to the status array
THEN:
• The code is added with released flag set to true and quantity information included
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when status array has been updated with disposition code 02.
Trigger Criteria:
Context: The status array has been updated with disposition code 02
Applied to: Analyze Updated Status Array for Cargo State
Action: The system analyzes the cargo state
Logic Flow:
IF The status array has been updated with disposition code 02
AND The system analyzes the cargo state
THEN:
• If released quantity equals or exceeds total quantity and no hold codes exist, cargo qualifies for full release
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo meets all full release conditions.
Trigger Criteria:
Context: Cargo meets all full release conditions
Applied to: Set Full Release Status
Action: The system processes the full release
Logic Flow:
IF Cargo meets all full release conditions
AND The system processes the full release
THEN:
• Cargo status is set to fully released and destination index is cleared
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when released quantity is less than total cargo quantity.
Trigger Criteria:
Context: Released quantity is less than total cargo quantity
Applied to: Set Hold on Piece Counts Status
Action: The system processes the partial release
Logic Flow:
IF Released quantity is less than total cargo quantity
AND The system processes the partial release
THEN:
• Cargo status is set to hold on piece counts and destination index is maintained
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code 02 has been processed with quantity impact.
Trigger Criteria:
Context: A disposition code 02 has been processed with quantity impact
Applied to: Update Released Quantity in Cargo Record
Action: The system updates the cargo record
Logic Flow:
IF A disposition code 02 has been processed with quantity impact
AND The system updates the cargo record
THEN:
• The released quantity field is updated to reflect the new release amount
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record has been successfully processed for release.
Trigger Criteria:
Context: A cargo record has been successfully processed for release
Applied to: Generate Release Message with Quantity Details
Action: The system generates the release message
Logic Flow:
IF A cargo record has been successfully processed for release
AND The system generates the release message
THEN:
• The message includes cargo identification, release quantities, and disposition code details
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo release has been processed and message generated. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: A cargo release has been processed and message generated
Applied to: Call Integration Services for Release Notification
Action: The system calls integration services
Logic Flow:
IF A cargo release has been processed and message generated
AND The system calls integration services
THEN:
• External systems are notified of the cargo release status change
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when all release processing has been completed successfully.
Trigger Criteria:
Context: All release processing has been completed successfully
Applied to: Update Cargo Record in Database
Action: The system updates the database
Logic Flow:
IF All release processing has been completed successfully
AND The system updates the database
THEN:
• The cargo record is updated with new status, quantities, and disposition codes
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo release transaction has been completed.
Trigger Criteria:
Context: A cargo release transaction has been completed
Applied to: Log Release Transaction for Audit Trail
Action: The system logs the transaction
Logic Flow:
IF A cargo release transaction has been completed
AND The system logs the transaction
THEN:
• Audit trail includes cargo ID, disposition code, quantities, timestamps, and user information
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code 02 cannot be found in the dc table.
Trigger Criteria:
Context: A disposition code 02 cannot be found in the DC table
Applied to: Generate Error Message for Invalid Code
Action: The system processes the invalid code
Logic Flow:
IF A disposition code 02 cannot be found in the DC table
AND The system processes the invalid code
THEN:
• An error message is generated indicating the disposition code is not valid in the system
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when quantity information in disposition code 02 fails validation.
Trigger Criteria:
Context: Quantity information in disposition code 02 fails validation
Applied to: Generate Error Message for Quantity Mismatch
Action: The system detects the quantity mismatch
Logic Flow:
IF Quantity information in disposition code 02 fails validation
AND The system detects the quantity mismatch
THEN:
• An error message is generated indicating the quantity validation failure
R-GCX016-cbl-00466 (+10)File: GCX016.cblBusiness Rule: Various Release Code Processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when disposition code 50, 51, or 52 is received for cargo release processing.
Trigger Criteria:
Context: A disposition code 50, 51, or 52 is received for cargo release processing
Applied to: Validate Disposition Code
Action: The system looks up the disposition code in the DC table
Logic Flow:
IF A disposition code 50, 51, or 52 is received for cargo release processing
AND The system looks up the disposition code in the DC table
THEN:
• If the code is found, processing continues; if not found, an error message is generated and processing stops
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when valid disposition code has been received for cargo release.
Trigger Criteria:
Context: A valid disposition code has been received for cargo release
Applied to: Check Train Status
Action: The system checks if the associated train exists in the system
Logic Flow:
IF A valid disposition code has been received for cargo release
AND The system checks if the associated train exists in the system
THEN:
• If train is not found, a train not found error is generated and processing stops; if found, release processing continues
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when train exists and disposition code is valid.
Trigger Criteria:
Context: A train exists and disposition code is valid
Applied to: Check Release Conditions
Action: The system validates cargo quantities and checks current hold status
Logic Flow:
IF A train exists and disposition code is valid
AND The system validates cargo quantities and checks current hold status
THEN:
• If release conditions are not met, the release request is rejected; if conditions are met, release processing proceeds
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when disposition code 50 is received and release conditions are validated.
Trigger Criteria:
Context: Disposition code 50 is received and release conditions are validated
Applied to: Process Release Code 50
Action: The system processes the standard release request
Logic Flow:
IF Disposition code 50 is received and release conditions are validated
AND The system processes the standard release request
THEN:
• Standard release processing is performed, status array is updated, and release quantities are calculated
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when disposition code 51 is received and release conditions are validated.
Trigger Criteria:
Context: Disposition code 51 is received and release conditions are validated
Applied to: Process Release Code 51
Action: The system processes the conditional release request
Logic Flow:
IF Disposition code 51 is received and release conditions are validated
AND The system processes the conditional release request
THEN:
• Conditional release processing is performed with additional validation checks, status array is updated, and release quantities are calculated
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when disposition code 52 is received and release conditions are validated.
Trigger Criteria:
Context: Disposition code 52 is received and release conditions are validated
Applied to: Process Release Code 52
Action: The system processes the special release request
Logic Flow:
IF Disposition code 52 is received and release conditions are validated
AND The system processes the special release request
THEN:
• Special release processing is performed with enhanced validation and handling, status array is updated, and release quantities are calculated
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when release code has been processed and status array is updated.
Trigger Criteria:
Context: A release code has been processed and status array is updated
Applied to: Calculate Release Quantities
Action: The system calculates release quantities based on the disposition code action
Logic Flow:
IF A release code has been processed and status array is updated
AND The system calculates release quantities based on the disposition code action
THEN:
• Release quantities are calculated using ADD_QUANTITY or SUBTRACT_QUANTITY logic, ensuring quantities do not go below zero
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when release quantities have been calculated.
Trigger Criteria:
Context: Release quantities have been calculated
Applied to: Remove Counterpart Codes
Action: The system processes counterpart codes in the status array
Logic Flow:
IF Release quantities have been calculated
AND The system processes counterpart codes in the status array
THEN:
• Counterpart disposition codes are removed from the status array to prevent conflicts with the new release status
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when release processing is complete and release flag is set.
Trigger Criteria:
Context: Release processing is complete and release flag is set
Applied to: Update Train Status
Action: The system updates the train status
Logic Flow:
IF Release processing is complete and release flag is set
AND The system updates the train status
THEN:
• Train status is updated to reflect the cargo release, and train movement restrictions may be lifted if all cargo is released
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when release message has been generated. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: Release message has been generated
Applied to: Call Integration Services
Action: The system calls integration services (GCCIIS)
Logic Flow:
IF Release message has been generated
AND The system calls integration services (GCCIIS)
THEN:
• External systems are notified of the cargo release for container/trailer equipment processing and customs clearance
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when release processing is complete (successful or rejected).
Trigger Criteria:
Context: Release processing is complete (successful or rejected)
Applied to: Log Transaction
Action: The system logs the transaction
Logic Flow:
IF Release processing is complete (successful or rejected)
AND The system logs the transaction
THEN:
• Transaction details including disposition code, cargo information, and processing results are logged via GCT1051E for audit trail
Business Justification: Establishes the required business protocol to be followed when x4 segment is received with a disposition code.
Trigger Criteria:
Context: An X4 segment is received with a disposition code
Applied to: Disposition Code = 66, 67, or 68?
Action: The disposition code is evaluated for hold and examination processing
Logic Flow:
IF An X4 segment is received with a disposition code
AND The disposition code is evaluated for hold and examination processing
THEN:
• The system should only process codes 66 (Hold for Examination), 67 (Intensive Examination), or 68 (X-Ray Examination) and skip all other codes
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when valid disposition code (66, 67, or 68) has been identified.
Trigger Criteria:
Context: A valid disposition code (66, 67, or 68) has been identified
Applied to: Retrieve Disposition Code Details from DC Table
Action: The system needs to process the disposition code
Logic Flow:
IF A valid disposition code (66, 67, or 68) has been identified
AND The system needs to process the disposition code
THEN:
• The system should retrieve the disposition code details from the DC table including code description and processing instructions
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when disposition code needs to be applied to cargo.
Trigger Criteria:
Context: A disposition code needs to be applied to cargo
Applied to: Validate Cargo Record Exists
Action: The system searches for the cargo record using the CCN key from the X4 segment
Logic Flow:
IF A disposition code needs to be applied to cargo
AND The system searches for the cargo record using the CCN key from the X4 segment
THEN:
• The system should verify that a valid cargo record exists and is not marked as deleted
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code (66, 67, or 68) needs to be applied to cargo.
Trigger Criteria:
Context: A disposition code (66, 67, or 68) needs to be applied to cargo
Applied to: Generate Error Message - Cargo Not Found
Action: The cargo record cannot be found in the system
Logic Flow:
IF A disposition code (66, 67, or 68) needs to be applied to cargo
AND The cargo record cannot be found in the system
THEN:
• The system should generate an error message indicating cargo not found, increment the error counter, and continue processing the next segment
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record exists and a disposition code (66, 67, or 68) needs to be applied.
Trigger Criteria:
Context: A cargo record exists and a disposition code (66, 67, or 68) needs to be applied
Applied to: Code Already Exists?
Action: The system checks the cargo's status array for existing codes
Logic Flow:
IF A cargo record exists and a disposition code (66, 67, or 68) needs to be applied
AND The system checks the cargo's status array for existing codes
THEN:
• If the same disposition code already exists in the status array, the system should skip processing and continue to the next segment
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code already exists in the cargo's status array.
Trigger Criteria:
Context: A disposition code already exists in the cargo's status array
Applied to: Skip Duplicate Code Processing
Action: The same disposition code is received again for the same cargo
Logic Flow:
IF A disposition code already exists in the cargo's status array
AND The same disposition code is received again for the same cargo
THEN:
• The system should skip all processing for this code and continue to the next segment without making any changes
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when valid disposition code (66, 67, or 68) needs to be applied to existing cargo.
Trigger Criteria:
Context: A valid disposition code (66, 67, or 68) needs to be applied to existing cargo
Applied to: Determine Hold Location - Border or Destination
Action: The system evaluates the cargo's current location and status
Logic Flow:
IF A valid disposition code (66, 67, or 68) needs to be applied to existing cargo
AND The system evaluates the cargo's current location and status
THEN:
• The system should determine whether to apply the hold at the border location or destination location based on cargo movement status
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code 66 (hold for examination) is received for valid cargo.
Trigger Criteria:
Context: Disposition code 66 (Hold for Examination) is received for valid cargo
Applied to: Code 66 - Hold for Examination?
Action: The code is not a duplicate and cargo exists
Logic Flow:
IF Disposition code 66 (Hold for Examination) is received for valid cargo
AND The code is not a duplicate and cargo exists
THEN:
• The system should set border hold status for standard examination requirements
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code 67 (intensive examination) is received for valid cargo.
Trigger Criteria:
Context: Disposition code 67 (Intensive Examination) is received for valid cargo
Applied to: Code 67 - Intensive Examination?
Action: The code is not a duplicate and cargo exists
Logic Flow:
IF Disposition code 67 (Intensive Examination) is received for valid cargo
AND The code is not a duplicate and cargo exists
THEN:
• The system should set intensive examination hold status with enhanced security requirements
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when disposition code 68 (x-ray examination) is received for valid cargo.
Trigger Criteria:
Context: Disposition code 68 (X-Ray Examination) is received for valid cargo
Applied to: Code 68 - X-Ray Examination?
Action: The code is not a duplicate and cargo exists
Logic Flow:
IF Disposition code 68 (X-Ray Examination) is received for valid cargo
AND The code is not a duplicate and cargo exists
THEN:
• The system should set X-ray examination hold status requiring imaging inspection
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code 66 requires border examination.
Trigger Criteria:
Context: A disposition code 66 requires border examination
Applied to: Set Border Hold Status
Action: The hold location is determined to be at the border
Logic Flow:
IF A disposition code 66 requires border examination
AND The hold location is determined to be at the border
THEN:
• The system should set border hold status preventing cargo movement until examination is completed
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code requires examination at destination.
Trigger Criteria:
Context: A disposition code requires examination at destination
Applied to: Set Destination Hold Status
Action: The hold location is determined to be at the destination
Logic Flow:
IF A disposition code requires examination at destination
AND The hold location is determined to be at the destination
THEN:
• The system should set destination hold status allowing border movement but preventing final release until examination
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when disposition code 67 (intensive examination) is being processed.
Trigger Criteria:
Context: Disposition code 67 (Intensive Examination) is being processed
Applied to: Set Intensive Examination Hold
Action: The cargo requires intensive examination
Logic Flow:
IF Disposition code 67 (Intensive Examination) is being processed
AND The cargo requires intensive examination
THEN:
• The system should set intensive examination hold status with enhanced security flags and inspection requirements
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code 68 (x-ray examination) is being processed.
Trigger Criteria:
Context: Disposition code 68 (X-Ray Examination) is being processed
Applied to: Set X-Ray Examination Hold
Action: The cargo requires X-ray examination
Logic Flow:
IF Disposition code 68 (X-Ray Examination) is being processed
AND The cargo requires X-ray examination
THEN:
• The system should set X-ray examination hold status requiring imaging inspection before release
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when hold status has been determined for the cargo.
Trigger Criteria:
Context: A hold status has been determined for the cargo
Applied to: Add Hold Code to Status Array
Action: The disposition code needs to be recorded in the cargo status
Logic Flow:
IF A hold status has been determined for the cargo
AND The disposition code needs to be recorded in the cargo status
THEN:
• The system should add the hold code to the cargo's status array with appropriate sequence and occurrence numbers
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when hold code has been added to the status array.
Trigger Criteria:
Context: A hold code has been added to the status array
Applied to: Update Cargo Hold Flags
Action: The cargo record needs to reflect the current hold status
Logic Flow:
IF A hold code has been added to the status array
AND The cargo record needs to reflect the current hold status
THEN:
• The system should update the cargo hold flags to indicate border hold, destination hold, or examination hold status as appropriate
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when hold has been successfully applied to cargo.
Trigger Criteria:
Context: A hold has been successfully applied to cargo
Applied to: Generate Hold Notification Message
Action: Notification is required for the hold action
Logic Flow:
IF A hold has been successfully applied to cargo
AND Notification is required for the hold action
THEN:
• The system should generate a hold notification message including cargo details, hold type, and location information
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when hold notification message has been generated. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: A hold notification message has been generated
Applied to: Call Integration Services for Hold Notification
Action: External systems need to be notified of the hold status
Logic Flow:
IF A hold notification message has been generated
AND External systems need to be notified of the hold status
THEN:
• The system should call integration services (GCCIIS) to notify equipment and other systems of the hold status
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when hold processing has been completed for cargo.
Trigger Criteria:
Context: Hold processing has been completed for cargo
Applied to: Log Hold Processing Activity
Action: Activity logging is required for audit purposes
Logic Flow:
IF Hold processing has been completed for cargo
AND Activity logging is required for audit purposes
THEN:
• The system should log the hold processing activity including disposition code, cargo details, and processing timestamp
R-GCX016-cbl-00496 (+8)File: GCX016.cblBusiness Rule: New Disposition Code Processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when x4 segment contains disposition code 88, 89, or 90.
Trigger Criteria:
Context: An X4 segment contains disposition code 88, 89, or 90
Applied to: Disposition Code Table Lookup
Action: The system performs disposition code table lookup
Logic Flow:
IF An X4 segment contains disposition code 88, 89, or 90
AND The system performs disposition code table lookup
THEN:
• The system retrieves code properties and processing instructions from GCSTBRT table
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code 88, 89, or 90 is being processed.
Trigger Criteria:
Context: A disposition code 88, 89, or 90 is being processed
Applied to: Code Found in DC Table?
Action: The system checks the disposition code table
Logic Flow:
IF A disposition code 88, 89, or 90 is being processed
AND The system checks the disposition code table
THEN:
• If the code is found, processing continues with code properties; if not found, error handling is triggered
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code is validated as 88, 89, or 90.
Trigger Criteria:
Context: Disposition code is validated as 88, 89, or 90
Applied to: Apply Special Processing Rules for 88/89/90
Action: The system processes the code type determination
Logic Flow:
IF Disposition code is validated as 88, 89, or 90
AND The system processes the code type determination
THEN:
• Special processing rules are applied specific to new customs requirements including status updates and compliance checks
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when new customs requirement disposition code has been processed.
Trigger Criteria:
Context: New customs requirement disposition code has been processed
Applied to: Update Cargo Status Array
Action: The system updates cargo status information
Logic Flow:
IF New customs requirement disposition code has been processed
AND The system updates cargo status information
THEN:
• The GCSUSS09 status array is updated with the new customs requirement status and related information
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo status array has been updated with new customs requirements.
Trigger Criteria:
Context: Cargo status array has been updated with new customs requirements
Applied to: Status Array Analysis
Action: The system performs status array analysis
Logic Flow:
IF Cargo status array has been updated with new customs requirements
AND The system performs status array analysis
THEN:
• The system determines compliance status, required notifications, and subsequent processing steps
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when new customs requirements have been processed and status analyzed.
Trigger Criteria:
Context: New customs requirements have been processed and status analyzed
Applied to: Generate Customs Compliance Notifications
Action: The system determines notifications are required
Logic Flow:
IF New customs requirements have been processed and status analyzed
AND The system determines notifications are required
THEN:
• Customs compliance notifications are generated and routed to appropriate parties including brokers and customs authorities
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when new customs requirements need external system integration.
Trigger Criteria:
Context: New customs requirements need external system integration
Applied to: Integration Service Calls for New Requirements
Action: The system processes disposition codes 88, 89, or 90
Logic Flow:
IF New customs requirements need external system integration
AND The system processes disposition codes 88, 89, or 90
THEN:
• Integration service calls are made to external systems for customs compliance processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when new customs requirements have been processed.
Trigger Criteria:
Context: New customs requirements have been processed
Applied to: Cargo Information Logging
Action: The system completes processing of disposition codes 88, 89, or 90
Logic Flow:
IF New customs requirements have been processed
AND The system completes processing of disposition codes 88, 89, or 90
THEN:
• Cargo information and processing details are logged for audit trail and compliance tracking
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code 88, 89, or 90 cannot be found in the system or fails validation.
Trigger Criteria:
Context: A disposition code 88, 89, or 90 cannot be found in the system or fails validation
Applied to: Disposition Code Error Handling
Action: The system encounters an error during processing
Logic Flow:
IF A disposition code 88, 89, or 90 cannot be found in the system or fails validation
AND The system encounters an error during processing
THEN:
• Error handling procedures are invoked including error logging, notification generation, and appropriate error status setting
R-GCX016-cbl-00505 (+11)File: GCX016.cblBusiness Rule: Special Processing Code Handling
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code 95 is received for processing.
Trigger Criteria:
Context: A disposition code 95 is received for processing
Applied to: Validate DC 95 in System Tables
Action: The system looks up the disposition code in the GCSTBRT disposition code table
Logic Flow:
IF A disposition code 95 is received for processing
AND The system looks up the disposition code in the GCSTBRT disposition code table
THEN:
• The system confirms the code exists and is valid for special processing, or flags it as invalid if not found
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when valid disposition code 95 and cargo identifier.
Trigger Criteria:
Context: A valid disposition code 95 and cargo identifier
Applied to: Retrieve Cargo Record
Action: The system accesses the GCCC-CARGO-ROOT cargo records database
Logic Flow:
IF A valid disposition code 95 and cargo identifier
AND The system accesses the GCCC-CARGO-ROOT cargo records database
THEN:
• The system retrieves the complete cargo record for processing or returns cargo not found error
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record with an existing bond control number and disposition code 95.
Trigger Criteria:
Context: A cargo record with an existing bond control number and disposition code 95
Applied to: Clear Bond Control Number
Action: The system processes the special customs handling request
Logic Flow:
IF A cargo record with an existing bond control number and disposition code 95
AND The system processes the special customs handling request
THEN:
• The system removes the bond control number from the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record with an existing broker entry number and disposition code 95.
Trigger Criteria:
Context: A cargo record with an existing broker entry number and disposition code 95
Applied to: Clear Broker Entry Number
Action: The system processes the special customs handling request
Logic Flow:
IF A cargo record with an existing broker entry number and disposition code 95
AND The system processes the special customs handling request
THEN:
• The system removes the broker entry number from the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record with existing bond-related data fields and disposition code 95.
Trigger Criteria:
Context: A cargo record with existing bond-related data fields and disposition code 95
Applied to: Clear Related Bond Data
Action: The system processes the special customs handling request
Logic Flow:
IF A cargo record with existing bond-related data fields and disposition code 95
AND The system processes the special customs handling request
THEN:
• The system removes all bond-related data including bond numbers, dates, and references
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record with disposition code 95 and existing status array.
Trigger Criteria:
Context: A cargo record with disposition code 95 and existing status array
Applied to: Update Cargo Status Array
Action: The system processes the special customs handling
Logic Flow:
IF A cargo record with disposition code 95 and existing status array
AND The system processes the special customs handling
THEN:
• The system adds the disposition code 95 status to the cargo status array with appropriate sequence and occurrence numbers
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record being processed with disposition code 95.
Trigger Criteria:
Context: A cargo record being processed with disposition code 95
Applied to: Set Special Processing Flag
Action: The system completes the bond data clearing operations
Logic Flow:
IF A cargo record being processed with disposition code 95
AND The system completes the bond data clearing operations
THEN:
• The system sets a special processing flag to track the cargo's special handling status
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record that has undergone disposition code 95 processing.
Trigger Criteria:
Context: A cargo record that has undergone disposition code 95 processing
Applied to: Log Special Processing Action
Action: The system completes the special processing operations
Logic Flow:
IF A cargo record that has undergone disposition code 95 processing
AND The system completes the special processing operations
THEN:
• The system creates an audit log entry documenting the special processing action with timestamp and cargo details
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record with completed disposition code 95 processing changes.
Trigger Criteria:
Context: A cargo record with completed disposition code 95 processing changes
Applied to: Update Cargo Record in Database
Action: The system commits the changes to the GCCC-CARGO-ROOT database
Logic Flow:
IF A cargo record with completed disposition code 95 processing changes
AND The system commits the changes to the GCCC-CARGO-ROOT database
THEN:
• The system successfully updates the cargo record with cleared bond data and new status information
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record that has completed disposition code 95 processing.
Trigger Criteria:
Context: A cargo record that has completed disposition code 95 processing
Applied to: Generate Status Message
Action: The system finalizes the database updates
Logic Flow:
IF A cargo record that has completed disposition code 95 processing
AND The system finalizes the database updates
THEN:
• The system generates a status message containing cargo details and processing results for distribution
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when generated status message for disposition code 95 processing.
Trigger Criteria:
Context: A generated status message for disposition code 95 processing
Applied to: Route Message to Customs
Action: The system determines the appropriate customs routing destination
Logic Flow:
IF A generated status message for disposition code 95 processing
AND The system determines the appropriate customs routing destination
THEN:
• The system sends the message to the designated customs authority for their processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code 95 that fails validation in system tables.
Trigger Criteria:
Context: A disposition code 95 that fails validation in system tables
Applied to: Invalid DC 95
Action: The system attempts to process the invalid disposition code
Logic Flow:
IF A disposition code 95 that fails validation in system tables
AND The system attempts to process the invalid disposition code
THEN:
• The system generates an error message indicating invalid disposition code and stops processing
R-GCX016-cbl-00517 (+13)File: GCX016.cblBusiness Rule: FDA Processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code is received for cargo processing.
Trigger Criteria:
Context: A disposition code is received for cargo processing
Applied to: Validate Disposition Code A1/A3
Action: The disposition code is A1 or A3
Logic Flow:
IF A disposition code is received for cargo processing
AND The disposition code is A1 or A3
THEN:
• The system validates the code as a valid FDA disposition code and proceeds with FDA processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when valid fda disposition code a1 or a3 has been validated.
Trigger Criteria:
Context: A valid FDA disposition code A1 or A3 has been validated
Applied to: Retrieve N9 Reference Segments
Action: The system needs FDA reference information for compliance processing
Logic Flow:
IF A valid FDA disposition code A1 or A3 has been validated
AND The system needs FDA reference information for compliance processing
THEN:
• The system retrieves all available N9 reference segments associated with the cargo
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when system has attempted to retrieve n9 reference segments for fda processing.
Trigger Criteria:
Context: The system has attempted to retrieve N9 reference segments for FDA processing
Applied to: N9 Segments Available?
Action: N9 segments are found and available for processing
Logic Flow:
IF The system has attempted to retrieve N9 reference segments for FDA processing
AND N9 segments are found and available for processing
THEN:
• The system proceeds with FDA reference number processing, otherwise generates FDA compliance error
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when n9 segments are available and contain fda reference information.
Trigger Criteria:
Context: N9 segments are available and contain FDA reference information
Applied to: Process FDA Reference Numbers
Action: The system processes the N9 segments for FDA compliance
Logic Flow:
IF N9 segments are available and contain FDA reference information
AND The system processes the N9 segments for FDA compliance
THEN:
• The system extracts FDA reference numbers and prepares them for qualifier validation
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when fda reference numbers have been processed from n9 segments.
Trigger Criteria:
Context: FDA reference numbers have been processed from N9 segments
Applied to: Extract FDA Qualifier Information
Action: The system extracts qualifier information from the N9 segments
Logic Flow:
IF FDA reference numbers have been processed from N9 segments
AND The system extracts qualifier information from the N9 segments
THEN:
• The system obtains FDA qualifier codes and associated compliance data for validation
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when fda qualifier information and reference numbers have been extracted from n9 segments.
Trigger Criteria:
Context: FDA qualifier information and reference numbers have been extracted from N9 segments
Applied to: Validate FDA Compliance Requirements
Action: The system validates FDA compliance requirements
Logic Flow:
IF FDA qualifier information and reference numbers have been extracted from N9 segments
AND The system validates FDA compliance requirements
THEN:
• The system determines if all FDA requirements are met based on the qualifier codes and reference data
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when fda compliance requirements have been validated against cargo information.
Trigger Criteria:
Context: FDA compliance requirements have been validated against cargo information
Applied to: FDA Requirements Met?
Action: All FDA requirements are met
Logic Flow:
IF FDA compliance requirements have been validated against cargo information
AND All FDA requirements are met
THEN:
• The system sets FDA hold status at destination, otherwise generates FDA compliance error
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when fda compliance requirements have been validated and met.
Trigger Criteria:
Context: FDA compliance requirements have been validated and met
Applied to: Set FDA Hold Status at Destination
Action: Cargo requires FDA hold for inspection at destination
Logic Flow:
IF FDA compliance requirements have been validated and met
AND Cargo requires FDA hold for inspection at destination
THEN:
• The system sets FDA hold status specifically at the destination location
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when fda hold status has been set at destination.
Trigger Criteria:
Context: FDA hold status has been set at destination
Applied to: Update Cargo Status Array with FDA Code
Action: The cargo status array needs to be updated with FDA information
Logic Flow:
IF FDA hold status has been set at destination
AND The cargo status array needs to be updated with FDA information
THEN:
• The system adds FDA disposition codes and hold status to the cargo status array
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo status array has been updated with fda codes.
Trigger Criteria:
Context: Cargo status array has been updated with FDA codes
Applied to: Generate FDA Hold Message
Action: FDA hold message needs to be generated for stakeholder notification
Logic Flow:
IF Cargo status array has been updated with FDA codes
AND FDA hold message needs to be generated for stakeholder notification
THEN:
• The system creates FDA hold message with relevant compliance information and cargo details
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when fda hold message has been generated.
Trigger Criteria:
Context: FDA hold message has been generated
Applied to: Route FDA Notification to Appropriate Parties
Action: FDA notification needs to be distributed to stakeholders
Logic Flow:
IF FDA hold message has been generated
AND FDA notification needs to be distributed to stakeholders
THEN:
• The system routes the notification to FDA, brokers, and other appropriate parties based on cargo and compliance requirements
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when fda notifications have been routed to appropriate parties.
Trigger Criteria:
Context: FDA notifications have been routed to appropriate parties
Applied to: Log FDA Processing Activity
Action: FDA processing activity needs to be recorded for audit purposes
Logic Flow:
IF FDA notifications have been routed to appropriate parties
AND FDA processing activity needs to be recorded for audit purposes
THEN:
• The system logs all FDA processing steps, decisions, and notifications for compliance tracking
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when fda processing has encountered validation failures or missing required information.
Trigger Criteria:
Context: FDA processing has encountered validation failures or missing required information
Applied to: Generate FDA Compliance Error
Action: FDA compliance cannot be validated or N9 segments are unavailable
Logic Flow:
IF FDA processing has encountered validation failures or missing required information
AND FDA compliance cannot be validated or N9 segments are unavailable
THEN:
• The system generates FDA compliance error with specific details about the failure
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when fda compliance error has been generated.
Trigger Criteria:
Context: FDA compliance error has been generated
Applied to: Route Error to FDA Processing Team
Action: Error needs to be routed for resolution
Logic Flow:
IF FDA compliance error has been generated
AND Error needs to be routed for resolution
THEN:
• The system routes the FDA compliance error to the FDA processing team with all relevant cargo and error details
Business Justification: Dictates the expected operational logic and validation steps when edi 350 message with a disposition code is being processed.
Trigger Criteria:
Context: An EDI 350 message with a disposition code is being processed
Applied to: Is Disposition Code KCSM-eligible?
Action: The system evaluates the disposition code for KCSM eligibility
Logic Flow:
IF An EDI 350 message with a disposition code is being processed
AND The system evaluates the disposition code for KCSM eligibility
THEN:
• The system determines whether KCSM processing is required based on the disposition code value
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code has been identified as potentially kcsm-eligible.
Trigger Criteria:
Context: A disposition code has been identified as potentially KCSM-eligible
Applied to: Check AECWRKTB Table for KCSM Configuration
Action: The system queries the AECWRKTB table for KCSM configuration parameters
Logic Flow:
IF A disposition code has been identified as potentially KCSM-eligible
AND The system queries the AECWRKTB table for KCSM configuration parameters
THEN:
• The system retrieves the KCSM processing configuration and routing information for the disposition code
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when kcsm configuration has been retrieved from aecwrktb table.
Trigger Criteria:
Context: KCSM configuration has been retrieved from AECWRKTB table
Applied to: KCSM Processing Required?
Action: The system evaluates the configuration settings against current message context
Logic Flow:
IF KCSM configuration has been retrieved from AECWRKTB table
AND The system evaluates the configuration settings against current message context
THEN:
• The system decides to either proceed with KCSM processing or skip it entirely
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when kcsm processing has been determined as required. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: KCSM processing has been determined as required
Applied to: Copy Current EDI 350 Message
Action: The system initiates KCSM message preparation
Logic Flow:
IF KCSM processing has been determined as required
AND The system initiates KCSM message preparation
THEN:
• The system creates a complete copy of the original EDI 350 message preserving all segment data and structure
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when edi 350 message copy has been created for kcsm processing. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: An EDI 350 message copy has been created for KCSM processing
Applied to: Create Transmission Root Segment A9RT
Action: The system creates the transmission structure
Logic Flow:
IF An EDI 350 message copy has been created for KCSM processing
AND The system creates the transmission structure
THEN:
• The system generates an A9RT root segment with proper transmission identifiers and routing information
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when a9rt root segment has been created.
Trigger Criteria:
Context: An A9RT root segment has been created
Applied to: Set KCSM Transmission Parameters
Action: The system configures transmission parameters
Logic Flow:
IF An A9RT root segment has been created
AND The system configures transmission parameters
THEN:
• The system sets routing codes, transmission priorities, and KCSM-specific processing flags based on configuration data
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when kcsm transmission parameters have been configured.
Trigger Criteria:
Context: KCSM transmission parameters have been configured
Applied to: Create Dependent Segment A9DP
Action: The system creates dependent segments
Logic Flow:
IF KCSM transmission parameters have been configured
AND The system creates dependent segments
THEN:
• The system generates A9DP segments containing the EDI 350 message data with proper sequencing and linkage to the A9RT root
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when a9dp dependent segments have been created. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: A9DP dependent segments have been created
Applied to: Copy EDI Segment Data to Transmission File
Action: The system copies EDI segment data
Logic Flow:
IF A9DP dependent segments have been created
AND The system copies EDI segment data
THEN:
• The system transfers all segment data from the original EDI 350 message to the transmission file maintaining data integrity and segment relationships
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when edi segment data has been copied to the transmission file.
Trigger Criteria:
Context: EDI segment data has been copied to the transmission file
Applied to: Set Transmission Status and Routing
Action: The system finalizes transmission preparation
Logic Flow:
IF EDI segment data has been copied to the transmission file
AND The system finalizes transmission preparation
THEN:
• The system sets transmission status to ready for processing and assigns appropriate routing codes for KCSM delivery
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when transmission status and routing have been configured.
Trigger Criteria:
Context: Transmission status and routing have been configured
Applied to: Spawn GCT1091E Transaction for KCSM
Action: The system initiates KCSM transaction processing
Logic Flow:
IF Transmission status and routing have been configured
AND The system initiates KCSM transaction processing
THEN:
• The system spawns GCT1091E transaction with proper parameters for KCSM message handling and transmission
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when gct1091e transaction has been spawned for kcsm processing.
Trigger Criteria:
Context: GCT1091E transaction has been spawned for KCSM processing
Applied to: Queue Message for KCSM Transmission
Action: The system queues the message for transmission
Logic Flow:
IF GCT1091E transaction has been spawned for KCSM processing
AND The system queues the message for transmission
THEN:
• The system places the KCSM message in the transmission queue with proper priority and delivery scheduling
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when kcsm message has been queued for transmission.
Trigger Criteria:
Context: A KCSM message has been queued for transmission
Applied to: Log KCSM Transmission Details
Action: The system logs transmission activity
Logic Flow:
IF A KCSM message has been queued for transmission
AND The system logs transmission activity
THEN:
• The system records transmission details including message identifiers, routing information, and processing timestamps for audit trail
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when disposition code has been evaluated for kcsm eligibility or kcsm configuration indicates no processing required.
Trigger Criteria:
Context: A disposition code has been evaluated for KCSM eligibility OR KCSM configuration indicates no processing required
Applied to: Skip KCSM Processing
Action: The system determines KCSM processing should be skipped
Logic Flow:
IF A disposition code has been evaluated for KCSM eligibility OR KCSM configuration indicates no processing required
AND The system determines KCSM processing should be skipped
THEN:
• The system bypasses all KCSM processing steps and continues with normal EDI 350 message processing
R-GCX016-cbl-00544 (+12)File: GCX016.cblBusiness Rule: Bond Information Clearing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record exists in the system and disposition code 95 is being processed.
Trigger Criteria:
Context: A cargo record exists in the system and disposition code 95 is being processed
Applied to: Disposition Code 95 Detected
Action: The system processes the disposition code 95 for bond clearing
Logic Flow:
IF A cargo record exists in the system and disposition code 95 is being processed
AND The system processes the disposition code 95 for bond clearing
THEN:
• The system should identify the cargo record and initiate bond information clearing process
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when request to clear bond information for a specific cargo.
Trigger Criteria:
Context: A request to clear bond information for a specific cargo
Applied to: Cargo Record Exists?
Action: The system attempts to access the cargo record
Logic Flow:
IF A request to clear bond information for a specific cargo
AND The system attempts to access the cargo record
THEN:
• The system should verify the cargo record exists and either proceed with clearing or generate an error if not found
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when request to clear bond information for a specific cargo.
Trigger Criteria:
Context: A request to clear bond information for a specific cargo
Applied to: Cargo Not Found
Action: The cargo record cannot be found in the database
Logic Flow:
IF A request to clear bond information for a specific cargo
AND The cargo record cannot be found in the database
THEN:
• The system should generate a cargo not found error and terminate the bond clearing process
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when valid cargo record is accessed for bond clearing.
Trigger Criteria:
Context: A valid cargo record is accessed for bond clearing
Applied to: Clear Bond Control Number
Action: The system processes bond control number clearing
Logic Flow:
IF A valid cargo record is accessed for bond clearing
AND The system processes bond control number clearing
THEN:
• The bond control number field should be set to spaces or null value
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record with bond information is being processed.
Trigger Criteria:
Context: A cargo record with bond information is being processed
Applied to: Clear Broker Entry Number
Action: The system clears broker entry number information
Logic Flow:
IF A cargo record with bond information is being processed
AND The system clears broker entry number information
THEN:
• The broker entry number field should be set to spaces or null value
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record contains various bond-related data fields.
Trigger Criteria:
Context: A cargo record contains various bond-related data fields
Applied to: Clear Related Bond Data
Action: The system processes related bond data clearing
Logic Flow:
IF A cargo record contains various bond-related data fields
AND The system processes related bond data clearing
THEN:
• All bond-related data fields should be cleared or reset to default values
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record contains bonded-to station information.
Trigger Criteria:
Context: A cargo record contains bonded-to station information
Applied to: Clear Bonded-To Station Information
Action: The system clears bonded-to station information
Logic Flow:
IF A cargo record contains bonded-to station information
AND The system clears bonded-to station information
THEN:
• The bonded-to station field should be set to spaces or null value
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record contains a bond start date.
Trigger Criteria:
Context: A cargo record contains a bond start date
Applied to: Clear Bond Start Date
Action: The system clears bond start date information
Logic Flow:
IF A cargo record contains a bond start date
AND The system clears bond start date information
THEN:
• The bond start date field should be set to zeros or null value
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record contains bond type information.
Trigger Criteria:
Context: A cargo record contains bond type information
Applied to: Clear Bond Type Information
Action: The system clears bond type information
Logic Flow:
IF A cargo record contains bond type information
AND The system clears bond type information
THEN:
• The bond type field should be set to spaces or null value
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when all bond information has been cleared from the cargo record.
Trigger Criteria:
Context: All bond information has been cleared from the cargo record
Applied to: Update Cargo Status
Action: The system updates the cargo status
Logic Flow:
IF All bond information has been cleared from the cargo record
AND The system updates the cargo status
THEN:
• The cargo status should be updated to reflect the removal of bonding requirements
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when bond information has been cleared from a cargo record.
Trigger Criteria:
Context: Bond information has been cleared from a cargo record
Applied to: Log Bond Clearing Action
Action: The system logs the bond clearing action
Logic Flow:
IF Bond information has been cleared from a cargo record
AND The system logs the bond clearing action
THEN:
• An audit log entry should be created documenting the bond clearing action with relevant details
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record has been modified with cleared bond information.
Trigger Criteria:
Context: A cargo record has been modified with cleared bond information
Applied to: Replace Cargo Record in Database
Action: The system replaces the cargo record in the database
Logic Flow:
IF A cargo record has been modified with cleared bond information
AND The system replaces the cargo record in the database
THEN:
• The updated cargo record should be successfully saved to the database with all bond information cleared
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when all bond clearing operations have been completed successfully.
Trigger Criteria:
Context: All bond clearing operations have been completed successfully
Applied to: Bond Information Cleared Successfully
Action: The system completes the bond clearing process
Logic Flow:
IF All bond clearing operations have been completed successfully
AND The system completes the bond clearing process
THEN:
• The system should indicate successful completion of bond information clearing
R-GCX016-cbl-00557 (+8)File: GCX016.cblBusiness Rule: Entry Number Validation
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when x4 segment is being processed for customs release.
Trigger Criteria:
Context: An X4 segment is being processed for customs release
Applied to: Entry Number Present?
Action: The system checks the X4-04 entry number field
Logic Flow:
IF An X4 segment is being processed for customs release
AND The system checks the X4-04 entry number field
THEN:
• If entry number is not present, skip entry processing and continue to next segment
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when entry number is present in x4-04 field.
Trigger Criteria:
Context: An entry number is present in X4-04 field
Applied to: Entry Number Valid?
Action: The system validates the entry number format
Logic Flow:
IF An entry number is present in X4-04 field
AND The system validates the entry number format
THEN:
• If entry number format is invalid, generate entry validation error and skip processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when valid entry number is present and entry type is determined.
Trigger Criteria:
Context: A valid entry number is present and entry type is determined
Applied to: Entry Type = V37?
Action: The entry type is V37
Logic Flow:
IF A valid entry number is present and entry type is determined
AND The entry type is V37
THEN:
• Apply V37 special processing rules and set V37 entry flag
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when entry type has been identified as v37.
Trigger Criteria:
Context: Entry type has been identified as V37
Applied to: Set V37 Entry Flag
Action: V37 special processing rules are applied
Logic Flow:
IF Entry type has been identified as V37
AND V37 special processing rules are applied
THEN:
• Set V37 entry flag to indicate special handling required
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when entry number is valid format and entry type is not v37.
Trigger Criteria:
Context: Entry number is valid format and entry type is not V37
Applied to: Length Valid?
Action: The system validates entry number length
Logic Flow:
IF Entry number is valid format and entry type is not V37
AND The system validates entry number length
THEN:
• If length is invalid, generate entry validation error and skip processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when entry number has valid length.
Trigger Criteria:
Context: Entry number has valid length
Applied to: Characters Valid?
Action: The system validates entry number characters
Logic Flow:
IF Entry number has valid length
AND The system validates entry number characters
THEN:
• If characters are invalid, generate entry validation error and skip processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when entry number passes all validation checks.
Trigger Criteria:
Context: Entry number passes all validation checks
Applied to: Mark Entry as Valid
Action: All format, length, and character validations are successful
Logic Flow:
IF Entry number passes all validation checks
AND All format, length, and character validations are successful
THEN:
• Mark entry as valid and continue to disposition code processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when entry number fails any validation check.
Trigger Criteria:
Context: Entry number fails any validation check
Applied to: Generate Entry Validation Error
Action: Format, length, or character validation fails
Logic Flow:
IF Entry number fails any validation check
AND Format, length, or character validation fails
THEN:
• Generate entry validation error message and log the issue
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when entry validation error has been generated.
Trigger Criteria:
Context: An entry validation error has been generated
Applied to: Log Entry Number Issue
Action: The system processes the validation failure
Logic Flow:
IF An entry validation error has been generated
AND The system processes the validation failure
THEN:
• Log the entry number issue with details for audit trail
R-GCX016-cbl-00566 (+45)File: GCX016.cblBusiness Rule: In
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when x4 customs release segment is received for processing.
Trigger Criteria:
Context: An X4 customs release segment is received for processing
Applied to: Entry Number Present in X4-04?
Action: The system checks for entry number presence in field X4-04
Logic Flow:
IF An X4 customs release segment is received for processing
AND The system checks for entry number presence in field X4-04
THEN:
• If entry number is present, proceed to entry number validation, otherwise start in-bond broker processing directly
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when entry number validation has been completed.
Trigger Criteria:
Context: Entry number validation has been completed
Applied to: Entry Type Code Present?
Action: The system evaluates entry type code availability
Logic Flow:
IF Entry number validation has been completed
AND The system evaluates entry type code availability
THEN:
• If entry type code is present, proceed to in-bond broker processing, otherwise complete processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when in-bond broker processing has started with an entry number.
Trigger Criteria:
Context: In-bond broker processing has started with an entry number
Applied to: Entry Number Format Valid?
Action: The system validates the entry number format
Logic Flow:
IF In-bond broker processing has started with an entry number
AND The system validates the entry number format
THEN:
• If format is invalid, handle V37 entry specially, otherwise proceed to in-bond type code processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when entry number with invalid standard format is identified.
Trigger Criteria:
Context: An entry number with invalid standard format is identified
Applied to: Handle V37 Entry Specially
Action: The entry number requires V37 special handling
Logic Flow:
IF An entry number with invalid standard format is identified
AND The entry number requires V37 special handling
THEN:
• Apply V37-specific processing rules and continue to in-bond type code processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when entry number format validation is complete.
Trigger Criteria:
Context: Entry number format validation is complete
Applied to: In-Bond Type Code Processing?
Action: The system evaluates if in-bond type code processing is needed
Logic Flow:
IF Entry number format validation is complete
AND The system evaluates if in-bond type code processing is needed
THEN:
• If required, perform SNP processing to convert EDI to internal codes, otherwise check for border entry type 00
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when in-bond type code processing is required.
Trigger Criteria:
Context: In-bond type code processing is required
Applied to: SNP Processing - Convert EDI to Internal Codes
Action: SNP processing is initiated for code conversion
Logic Flow:
IF In-bond type code processing is required
AND SNP processing is initiated for code conversion
THEN:
• Convert EDI codes to internal system codes and proceed to border entry type evaluation
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when code conversion processing is complete or not required.
Trigger Criteria:
Context: Code conversion processing is complete or not required
Applied to: Border Entry Type 00?
Action: The system checks if entry type is border entry type 00
Logic Flow:
IF Code conversion processing is complete or not required
AND The system checks if entry type is border entry type 00
THEN:
• If entry type is 00, proceed to border entry handling, otherwise check for master in-bond entry
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when entry type is identified as border entry type 00.
Trigger Criteria:
Context: Entry type is identified as border entry type 00
Applied to: Border Entry Handling
Action: Border entry handling is initiated
Logic Flow:
IF Entry type is identified as border entry type 00
AND Border entry handling is initiated
THEN:
• Clear bond control numbers and clear broker entry numbers, then proceed to Canadian border processing check
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when entry is not border entry type 00.
Trigger Criteria:
Context: Entry is not border entry type 00
Applied to: Master In-Bond Entry?
Action: The system evaluates if entry is a master in-bond entry
Logic Flow:
IF Entry is not border entry type 00
AND The system evaluates if entry is a master in-bond entry
THEN:
• If master in-bond entry, proceed to master in-bond processing, otherwise check for Canadian border processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when entry is identified as master in-bond entry.
Trigger Criteria:
Context: Entry is identified as master in-bond entry
Applied to: Master In-Bond Processing
Action: Master in-bond processing is initiated
Logic Flow:
IF Entry is identified as master in-bond entry
AND Master in-bond processing is initiated
THEN:
• Process entry types 61, 62, 63, and 69 with their specific requirements and proceed to Canadian border processing check
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when master in-bond processing is active.
Trigger Criteria:
Context: Master in-bond processing is active
Applied to: Process Entry Types 61,62,63,69
Action: Entry types 61, 62, 63, or 69 are encountered
Logic Flow:
IF Master in-bond processing is active
AND Entry types 61, 62, 63, or 69 are encountered
THEN:
• Apply type-specific processing rules: 61 for immediate transport, 62 for transport export, 63 for immediate export, 69 for US-Canada-US movement
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when border entry type 00 is being processed.
Trigger Criteria:
Context: Border entry type 00 is being processed
Applied to: Clear Bond Control Numbers
Action: Bond control number clearing is required
Logic Flow:
IF Border entry type 00 is being processed
AND Bond control number clearing is required
THEN:
• Remove all existing bond control numbers from the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when border entry type 00 is being processed.
Trigger Criteria:
Context: Border entry type 00 is being processed
Applied to: Clear Broker Entry Numbers
Action: Broker entry number clearing is required
Logic Flow:
IF Border entry type 00 is being processed
AND Broker entry number clearing is required
THEN:
• Remove all existing broker entry numbers from the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when border entry handling or master in-bond processing is complete.
Trigger Criteria:
Context: Border entry handling or master in-bond processing is complete
Applied to: Canadian Border Processing?
Action: The system evaluates Canadian border processing requirements
Logic Flow:
IF Border entry handling or master in-bond processing is complete
AND The system evaluates Canadian border processing requirements
THEN:
• If Canadian border processing is required, proceed to Canadian border processing, otherwise proceed to broker vs QP bond processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when canadian border processing is required.
Trigger Criteria:
Context: Canadian border processing is required
Applied to: Canadian Border Processing
Action: Canadian border processing is initiated
Logic Flow:
IF Canadian border processing is required
AND Canadian border processing is initiated
THEN:
• Map US port codes to Canadian names and proceed to broker vs QP bond processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when canadian border processing is active.
Trigger Criteria:
Context: Canadian border processing is active
Applied to: Map US Port Codes to Canadian Names
Action: US port codes need to be mapped to Canadian equivalents
Logic Flow:
IF Canadian border processing is active
AND US port codes need to be mapped to Canadian equivalents
THEN:
• Apply port code mapping rules to convert US codes to Canadian port names
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when broker vs qp bond processing evaluation is initiated.
Trigger Criteria:
Context: Broker vs QP bond processing evaluation is initiated
Applied to: Broker Bond or QP Bond?
Action: The system determines bond type classification
Logic Flow:
IF Broker vs QP bond processing evaluation is initiated
AND The system determines bond type classification
THEN:
• If broker bond, process broker bond information; if QP bond, process QP bond information
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when bond is classified as broker bond.
Trigger Criteria:
Context: Bond is classified as broker bond
Applied to: Process Broker Bond Information
Action: Broker bond information processing is initiated
Logic Flow:
IF Bond is classified as broker bond
AND Broker bond information processing is initiated
THEN:
• Process broker-specific bond information, validate broker details, and update cargo with entry information
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when bond is classified as qp bond.
Trigger Criteria:
Context: Bond is classified as QP bond
Applied to: Process QP Bond Information
Action: QP bond information processing is initiated
Logic Flow:
IF Bond is classified as QP bond
AND QP bond information processing is initiated
THEN:
• Process QP-specific bond information, validate QP requirements, and update cargo with entry information
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when broker bond or qp bond processing is complete.
Trigger Criteria:
Context: Broker bond or QP bond processing is complete
Applied to: Update Cargo with Entry Information
Action: Cargo entry information update is required
Logic Flow:
IF Broker bond or QP bond processing is complete
AND Cargo entry information update is required
THEN:
• Update cargo record with all processed entry information and complete in-bond broker processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when in-bond type code is received from cprail system.
Trigger Criteria:
Context: An in-bond type code is received from CPRAIL system
Applied to: Validate In-bond Type Code Format
Action: The system validates the code format
Logic Flow:
IF An in-bond type code is received from CPRAIL system
AND The system validates the code format
THEN:
• The code is accepted if it meets format requirements, otherwise an invalid code error is triggered
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when valid cprail in-bond type code is provided.
Trigger Criteria:
Context: A valid CPRAIL in-bond type code is provided
Applied to: Lookup EDI 309 Mapping Table
Action: The system searches the EDI 309 mapping table
Logic Flow:
IF A valid CPRAIL in-bond type code is provided
AND The system searches the EDI 309 mapping table
THEN:
• If mapping is found, the EDI 309 value is retrieved, otherwise a default value is used
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when mapping exists between cprail code and edi 309 value.
Trigger Criteria:
Context: A mapping exists between CPRAIL code and EDI 309 value
Applied to: Convert CPRAIL Code to EDI 309 Value
Action: The conversion process is executed
Logic Flow:
IF A mapping exists between CPRAIL code and EDI 309 value
AND The conversion process is executed
THEN:
• The CPRAIL code is converted to the corresponding EDI 309 value
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when edi 309 code has been successfully converted from cprail format.
Trigger Criteria:
Context: An EDI 309 code has been successfully converted from CPRAIL format
Applied to: Update U1 Segment with EDI 309 Code
Action: The U1 segment update is performed
Logic Flow:
IF An EDI 309 code has been successfully converted from CPRAIL format
AND The U1 segment update is performed
THEN:
• The U1 segment contains the EDI 309 in-bond type code for further processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when no mapping exists for the provided cprail in-bond type code.
Trigger Criteria:
Context: No mapping exists for the provided CPRAIL in-bond type code
Applied to: Set Default EDI 309 Value
Action: The mapping lookup fails
Logic Flow:
IF No mapping exists for the provided CPRAIL in-bond type code
AND The mapping lookup fails
THEN:
• A default EDI 309 value is assigned and a mapping error is logged
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cprail code has been successfully converted to edi 309 format.
Trigger Criteria:
Context: CPRAIL code has been successfully converted to EDI 309 format
Applied to: Log Successful Conversion
Action: The conversion process completes successfully
Logic Flow:
IF CPRAIL code has been successfully converted to EDI 309 format
AND The conversion process completes successfully
THEN:
• A success log entry is created documenting the conversion
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when no mapping exists for the cprail in-bond type code.
Trigger Criteria:
Context: No mapping exists for the CPRAIL in-bond type code
Applied to: Log Mapping Error
Action: A default value is assigned due to mapping failure
Logic Flow:
IF No mapping exists for the CPRAIL in-bond type code
AND A default value is assigned due to mapping failure
THEN:
• An error log entry is created documenting the mapping failure
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when edi entry type code is received from x4 segment.
Trigger Criteria:
Context: An EDI entry type code is received from X4 segment
Applied to: Border Entry Processing Type Code '00'
Action: The entry type code value is '00'
Logic Flow:
IF An EDI entry type code is received from X4 segment
AND The entry type code value is '00'
THEN:
• The system should clear bond information and process as border entry
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when edi entry type code is received from x4 segment.
Trigger Criteria:
Context: An EDI entry type code is received from X4 segment
Applied to: Master In-Bond Entry Types 61, 62, 63, 69
Action: The entry type code value is '61', '62', '63', or '69'
Logic Flow:
IF An EDI entry type code is received from X4 segment
AND The entry type code value is '61', '62', '63', or '69'
THEN:
• The system should process as master in-bond entry and map to appropriate transport type
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when edi entry type code is received from x4 segment.
Trigger Criteria:
Context: An EDI entry type code is received from X4 segment
Applied to: Standard In-Bond Entry Other Type Codes
Action: The entry type code value is not '00', '61', '62', '63', or '69'
Logic Flow:
IF An EDI entry type code is received from X4 segment
AND The entry type code value is not '00', '61', '62', '63', or '69'
THEN:
• The system should process as standard in-bond entry
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when master in-bond entry type code ('61', '62', '63', or '69') is being processed.
Trigger Criteria:
Context: A master in-bond entry type code ('61', '62', '63', or '69') is being processed
Applied to: Map to Transport Type for Master In-Bond
Action: The system maps the EDI code to transport type
Logic Flow:
IF A master in-bond entry type code ('61', '62', '63', or '69') is being processed
AND The system maps the EDI code to transport type
THEN:
• Entry type '61' maps to immediate transport, '62' maps to transport for export, '63' maps to immediate export, '69' maps to US-Canada-US movement
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when edi entry type code has been received and categorized.
Trigger Criteria:
Context: An EDI entry type code has been received and categorized
Applied to: Convert EDI Code to Internal CPRAIL Value
Action: The system converts the EDI code to internal format
Logic Flow:
IF An EDI entry type code has been received and categorized
AND The system converts the EDI code to internal format
THEN:
• The EDI code should be mapped to the corresponding internal CPRAIL value
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when entry type code has been converted to internal cprail format.
Trigger Criteria:
Context: An entry type code has been converted to internal CPRAIL format
Applied to: Validate Entry Type Code Against System Tables
Action: The system validates the code against system tables
Logic Flow:
IF An entry type code has been converted to internal CPRAIL format
AND The system validates the code against system tables
THEN:
• The system should verify the code exists in the reference tables and is valid for processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when valid master in-bond entry type code has been processed.
Trigger Criteria:
Context: A valid master in-bond entry type code has been processed
Applied to: Set Transport Type in Cargo Record
Action: The system updates the cargo record
Logic Flow:
IF A valid master in-bond entry type code has been processed
AND The system updates the cargo record
THEN:
• The transport type should be set in the cargo record based on the entry type mapping
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when valid standard in-bond entry type code has been processed.
Trigger Criteria:
Context: A valid standard in-bond entry type code has been processed
Applied to: Update In-Bond Status in Cargo Record
Action: The system updates the cargo record
Logic Flow:
IF A valid standard in-bond entry type code has been processed
AND The system updates the cargo record
THEN:
• The in-bond status should be updated in the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when entry type code has been successfully processed and cargo record updated.
Trigger Criteria:
Context: An entry type code has been successfully processed and cargo record updated
Applied to: Log Entry Type Processing
Action: The system completes the entry type processing
Logic Flow:
IF An entry type code has been successfully processed and cargo record updated
AND The system completes the entry type processing
THEN:
• The system should log the entry type processing activity
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when entry type code has been validated against system tables.
Trigger Criteria:
Context: An entry type code has been validated against system tables
Applied to: Generate Error Message Invalid Entry Type
Action: The entry type code is not found or is invalid
Logic Flow:
IF An entry type code has been validated against system tables
AND The entry type code is not found or is invalid
THEN:
• The system should generate an error message indicating invalid entry type
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cprail in-bond type code is received for conversion.
Trigger Criteria:
Context: A CPRAIL in-bond type code is received for conversion
Applied to: Access In-Bond Type Code Lookup Table
Action: The system accesses the GCSTBRT IMS segment lookup table
Logic Flow:
IF A CPRAIL in-bond type code is received for conversion
AND The system accesses the GCSTBRT IMS segment lookup table
THEN:
• The lookup table is made available for code conversion processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cprail in-bond type code and access to the lookup table.
Trigger Criteria:
Context: A CPRAIL in-bond type code and access to the lookup table
Applied to: CPRAIL Code Found in Table?
Action: The system searches for the CPRAIL code in the lookup table
Logic Flow:
IF A CPRAIL in-bond type code and access to the lookup table
AND The system searches for the CPRAIL code in the lookup table
THEN:
• The system determines if the code exists and sets appropriate processing path
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cprail in-bond type code that exists in the lookup table.
Trigger Criteria:
Context: A CPRAIL in-bond type code that exists in the lookup table
Applied to: Retrieve Corresponding EDI 309 Standard Value
Action: The system finds a matching entry in the lookup table
Logic Flow:
IF A CPRAIL in-bond type code that exists in the lookup table
AND The system finds a matching entry in the lookup table
THEN:
• The corresponding EDI 309 standard value is retrieved for conversion
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cprail in-bond type code that does not exist in the lookup table.
Trigger Criteria:
Context: A CPRAIL in-bond type code that does not exist in the lookup table
Applied to: Apply Default EDI 309 Value
Action: The system cannot find a matching entry in the lookup table
Logic Flow:
IF A CPRAIL in-bond type code that does not exist in the lookup table
AND The system cannot find a matching entry in the lookup table
THEN:
• A default EDI 309 value is applied for the conversion process
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when either a retrieved edi 309 standard value or a default edi 309 value.
Trigger Criteria:
Context: Either a retrieved EDI 309 standard value or a default EDI 309 value
Applied to: Convert CPRAIL Code to EDI 309 Format
Action: The system performs the format conversion from CPRAIL to EDI 309
Logic Flow:
IF Either a retrieved EDI 309 standard value or a default EDI 309 value
AND The system performs the format conversion from CPRAIL to EDI 309
THEN:
• The CPRAIL code is converted to the appropriate EDI 309 format
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when converted edi 309 in-bond type code.
Trigger Criteria:
Context: A converted EDI 309 in-bond type code
Applied to: Validate Converted Code
Action: The system validates the converted code against EDI 309 standards
Logic Flow:
IF A converted EDI 309 in-bond type code
AND The system validates the converted code against EDI 309 standards
THEN:
• The system determines if the conversion is valid and sets appropriate processing path
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when successfully validated edi 309 in-bond type code.
Trigger Criteria:
Context: A successfully validated EDI 309 in-bond type code
Applied to: Update U1 Segment with EDI 309 Value
Action: The conversion validation passes
Logic Flow:
IF A successfully validated EDI 309 in-bond type code
AND The conversion validation passes
THEN:
• The U1 segment is updated with the converted EDI 309 value
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when edi 309 in-bond type code that fails validation.
Trigger Criteria:
Context: An EDI 309 in-bond type code that fails validation
Applied to: Log Conversion Error
Action: The conversion validation fails
Logic Flow:
IF An EDI 309 in-bond type code that fails validation
AND The conversion validation fails
THEN:
• The system logs the conversion error for audit and troubleshooting purposes
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when conversion error has been logged.
Trigger Criteria:
Context: A conversion error has been logged
Applied to: Use Original CPRAIL Value
Action: The EDI 309 conversion cannot be completed successfully
Logic Flow:
IF A conversion error has been logged
AND The EDI 309 conversion cannot be completed successfully
THEN:
• The system uses the original CPRAIL in-bond type code value
R-GCX016-cbl-00586 (+6)File: GCX016.cblBusiness Rule: SNP Processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when edi message contains an in-bond type code.
Trigger Criteria:
Context: An EDI message contains an in-bond type code
Applied to: Valid EDI Code?
Action: The system receives the EDI code for processing
Logic Flow:
IF An EDI message contains an in-bond type code
AND The system receives the EDI code for processing
THEN:
• The system validates if the EDI code exists in the recognized code list and sets validation status accordingly
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when valid edi in-bond type code has been received.
Trigger Criteria:
Context: A valid EDI in-bond type code has been received
Applied to: Lookup EDI to CPRAIL Conversion Table
Action: The system needs to convert the EDI code to internal CPRAIL format
Logic Flow:
IF A valid EDI in-bond type code has been received
AND The system needs to convert the EDI code to internal CPRAIL format
THEN:
• The system looks up the conversion table to find the matching CPRAIL code for the EDI code
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when edi 309 value exists in the conversion table.
Trigger Criteria:
Context: An EDI 309 value exists in the conversion table
Applied to: Convert EDI 309 Value to Internal CPRAIL Code
Action: The system processes the EDI code conversion
Logic Flow:
IF An EDI 309 value exists in the conversion table
AND The system processes the EDI code conversion
THEN:
• The system transforms the EDI 309 value into the corresponding internal CPRAIL code format
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when edi code has been successfully converted to cprail format.
Trigger Criteria:
Context: An EDI code has been successfully converted to CPRAIL format
Applied to: Create U1 Segment with Converted Code
Action: The system needs to store the converted code information
Logic Flow:
IF An EDI code has been successfully converted to CPRAIL format
AND The system needs to store the converted code information
THEN:
• The system creates a new U1 segment record and populates it with the converted CPRAIL code
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when u1 segment has been created with converted in-bond code information.
Trigger Criteria:
Context: A U1 segment has been created with converted in-bond code information
Applied to: Update Shipment Record with In-Bond Information
Action: The system processes the shipment record update
Logic Flow:
IF A U1 segment has been created with converted in-bond code information
AND The system processes the shipment record update
THEN:
• The system updates the shipment root record with the in-bond type information from the U1 segment
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when edi code conversion and shipment update have completed successfully.
Trigger Criteria:
Context: The EDI code conversion and shipment update have completed successfully
Applied to: Log Conversion Success
Action: The system finalizes the conversion process
Logic Flow:
IF The EDI code conversion and shipment update have completed successfully
AND The system finalizes the conversion process
THEN:
• The system creates a log entry recording the successful conversion of the EDI code to CPRAIL format
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when edi in-bond type code fails validation.
Trigger Criteria:
Context: An EDI in-bond type code fails validation
Applied to: Generate Error Message
Action: The system cannot find the EDI code in the recognized code list
Logic Flow:
IF An EDI in-bond type code fails validation
AND The system cannot find the EDI code in the recognized code list
THEN:
• The system generates an error message indicating the EDI code is invalid or unrecognized
Business Justification: Dictates the expected operational logic and validation steps when cargo record with entry type information is being processed.
Trigger Criteria:
Context: A cargo record with entry type information is being processed
Applied to: Check Entry Type Code
Action: The system evaluates the entry type code field
Logic Flow:
IF A cargo record with entry type information is being processed
AND The system evaluates the entry type code field
THEN:
• The system identifies if the entry type code equals '00' for border entry processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record is being evaluated for processing type.
Trigger Criteria:
Context: A cargo record is being evaluated for processing type
Applied to: Identify Type Code '00'
Action: The entry type code is '00'
Logic Flow:
IF A cargo record is being evaluated for processing type
AND The entry type code is '00'
THEN:
• The cargo is classified as a border entry requiring special processing rules
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record is classified as border entry with type code '00'.
Trigger Criteria:
Context: A cargo record is classified as border entry with type code '00'
Applied to: Validate Border Entry Requirements
Action: The system validates border entry processing requirements
Logic Flow:
IF A cargo record is classified as border entry with type code '00'
AND The system validates border entry processing requirements
THEN:
• The system confirms the cargo meets border entry criteria and can proceed with bond information clearing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record is validated as border entry type '00'.
Trigger Criteria:
Context: A cargo record is validated as border entry type '00'
Applied to: Clear Bond Information
Action: The system processes the border entry clearing requirements
Logic Flow:
IF A cargo record is validated as border entry type '00'
AND The system processes the border entry clearing requirements
THEN:
• All existing bond information fields are cleared from the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when border entry cargo record with existing bond control numbers.
Trigger Criteria:
Context: A border entry cargo record with existing bond control numbers
Applied to: Clear Bond Control Numbers
Action: The system processes bond information clearing
Logic Flow:
IF A border entry cargo record with existing bond control numbers
AND The system processes bond information clearing
THEN:
• All bond control number fields are set to blank or null values
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when border entry cargo record with existing broker entry numbers.
Trigger Criteria:
Context: A border entry cargo record with existing broker entry numbers
Applied to: Clear Broker Entry Numbers
Action: The system clears bond-related information
Logic Flow:
IF A border entry cargo record with existing broker entry numbers
AND The system clears bond-related information
THEN:
• All broker entry number fields are cleared from the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when border entry cargo record with various bond-related data fields populated.
Trigger Criteria:
Context: A border entry cargo record with various bond-related data fields populated
Applied to: Clear Related Bond Data
Action: The system performs comprehensive bond data clearing
Logic Flow:
IF A border entry cargo record with various bond-related data fields populated
AND The system performs comprehensive bond data clearing
THEN:
• All related bond data fields including dates, amounts, and references are cleared
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record has completed bond information clearing for border entry.
Trigger Criteria:
Context: A cargo record has completed bond information clearing for border entry
Applied to: Set Border Entry Status
Action: The system sets the processing status
Logic Flow:
IF A cargo record has completed bond information clearing for border entry
AND The system sets the processing status
THEN:
• The cargo status is set to indicate border entry processing with appropriate status code
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record has been processed as border entry type '00'.
Trigger Criteria:
Context: A cargo record has been processed as border entry type '00'
Applied to: Update Cargo Record with Border Entry Flag
Action: The system updates the cargo record
Logic Flow:
IF A cargo record has been processed as border entry type '00'
AND The system updates the cargo record
THEN:
• The border entry flag is set in the cargo record to indicate special processing status
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record is flagged as border entry.
Trigger Criteria:
Context: A cargo record is flagged as border entry
Applied to: Process Special Border Entry Rules
Action: The system applies border entry specific rules
Logic Flow:
IF A cargo record is flagged as border entry
AND The system applies border entry specific rules
THEN:
• Special border entry processing rules are applied including customs clearance and cross-border requirements
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when border entry cargo record with special processing rules applied.
Trigger Criteria:
Context: A border entry cargo record with special processing rules applied
Applied to: Validate Cross-Border Requirements
Action: The system validates cross-border movement requirements
Logic Flow:
IF A border entry cargo record with special processing rules applied
AND The system validates cross-border movement requirements
THEN:
• The cargo is confirmed to meet all cross-border regulatory and processing requirements
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when border entry cargo record that has passed cross-border validation.
Trigger Criteria:
Context: A border entry cargo record that has passed cross-border validation
Applied to: Set Default Processing Parameters
Action: The system sets processing parameters
Logic Flow:
IF A border entry cargo record that has passed cross-border validation
AND The system sets processing parameters
THEN:
• Default border entry processing parameters are assigned for customs clearance and movement tracking
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record has completed border entry processing with default parameters set.
Trigger Criteria:
Context: A cargo record has completed border entry processing with default parameters set
Applied to: Log Border Entry Processing
Action: The system performs logging activities
Logic Flow:
IF A cargo record has completed border entry processing with default parameters set
AND The system performs logging activities
THEN:
• All border entry processing steps and status changes are logged for audit trail and tracking
R-GCX016-cbl-00606 (+23)File: GCX016.cblBusiness Rule: Master In
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when master in-bond entry is received with disposition codes '1j', '69', or '55'.
Trigger Criteria:
Context: A master in-bond entry is received with disposition codes '1J', '69', or '55'
Applied to: IT/BL In-Transit
Action: The entry type code is '61'
Logic Flow:
IF A master in-bond entry is received with disposition codes '1J', '69', or '55'
AND The entry type code is '61'
THEN:
• Set transport type to immediate transport and process as IT/BL in-transit cargo
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when master in-bond entry is received with disposition codes '1j', '69', or '55'.
Trigger Criteria:
Context: A master in-bond entry is received with disposition codes '1J', '69', or '55'
Applied to: TE/WD Transportation & Exportation
Action: The entry type code is '62'
Logic Flow:
IF A master in-bond entry is received with disposition codes '1J', '69', or '55'
AND The entry type code is '62'
THEN:
• Set transport type to transportation for export and process as TE/WD cargo
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when master in-bond entry is received with disposition codes '1j', '69', or '55'.
Trigger Criteria:
Context: A master in-bond entry is received with disposition codes '1J', '69', or '55'
Applied to: IE Immediate Exportation
Action: The entry type code is '63'
Logic Flow:
IF A master in-bond entry is received with disposition codes '1J', '69', or '55'
AND The entry type code is '63'
THEN:
• Set transport type to immediate export and process as IE cargo
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when master in-bond entry is received with disposition codes '1j', '69', or '55'.
Trigger Criteria:
Context: A master in-bond entry is received with disposition codes '1J', '69', or '55'
Applied to: FTZ Foreign Trade Zone
Action: The entry type code is '69'
Logic Flow:
IF A master in-bond entry is received with disposition codes '1J', '69', or '55'
AND The entry type code is '69'
THEN:
• Set transport type to US-Canada-US movement and process as FTZ cargo
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record with disposition codes '1j', '69', or '55' indicating master in-bond processing.
Trigger Criteria:
Context: A cargo record with disposition codes '1J', '69', or '55' indicating master in-bond processing
Applied to: Check Entry Type Code
Action: The system evaluates the entry type code
Logic Flow:
IF A cargo record with disposition codes '1J', '69', or '55' indicating master in-bond processing
AND The system evaluates the entry type code
THEN:
• The entry type must be one of '61', '62', '63', or '69' for valid master in-bond processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when master in-bond entry is being processed.
Trigger Criteria:
Context: A master in-bond entry is being processed
Applied to: Clear Bond Information
Action: The entry type is '00' indicating border processing
Logic Flow:
IF A master in-bond entry is being processed
AND The entry type is '00' indicating border processing
THEN:
• Clear all bond information from the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when master in-bond entry is being processed.
Trigger Criteria:
Context: A master in-bond entry is being processed
Applied to: Retain Bond Information
Action: The entry type is not '00'
Logic Flow:
IF A master in-bond entry is being processed
AND The entry type is not '00'
THEN:
• Retain all existing bond information in the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record with disposition codes '1j', '69', or '55' has been processed.
Trigger Criteria:
Context: A cargo record with disposition codes '1J', '69', or '55' has been processed
Applied to: Set Master In-Bond Status
Action: The entry type mapping and bond information processing is complete
Logic Flow:
IF A cargo record with disposition codes '1J', '69', or '55' has been processed
AND The entry type mapping and bond information processing is complete
THEN:
• Set the M1109 master in-bond flag to true to indicate master in-bond processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record with disposition code requiring master in-bond processing.
Trigger Criteria:
Context: A cargo record with disposition code requiring master in-bond processing
Applied to: Entry Type 61 Master In-Bond
Action: The entry type code is 61
Logic Flow:
IF A cargo record with disposition code requiring master in-bond processing
AND The entry type code is 61
THEN:
• Set master in-bond flag M1109 and configure for immediate transport processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record with disposition code requiring master in-bond processing.
Trigger Criteria:
Context: A cargo record with disposition code requiring master in-bond processing
Applied to: Entry Type 62 Master In-Bond
Action: The entry type code is 62
Logic Flow:
IF A cargo record with disposition code requiring master in-bond processing
AND The entry type code is 62
THEN:
• Set master in-bond flag M1109 and configure for transport export processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record with disposition code requiring master in-bond processing.
Trigger Criteria:
Context: A cargo record with disposition code requiring master in-bond processing
Applied to: Entry Type 63 Master In-Bond
Action: The entry type code is 63
Logic Flow:
IF A cargo record with disposition code requiring master in-bond processing
AND The entry type code is 63
THEN:
• Set master in-bond flag M1109 and configure for immediate export processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record with disposition code requiring master in-bond processing.
Trigger Criteria:
Context: A cargo record with disposition code requiring master in-bond processing
Applied to: Entry Type 69 Master In-Bond
Action: The entry type code is 69
Logic Flow:
IF A cargo record with disposition code requiring master in-bond processing
AND The entry type code is 69
THEN:
• Set master in-bond flag M1109 and configure for US-Canada-US movement processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record with entry type code in (61, 62, 63, 69).
Trigger Criteria:
Context: A cargo record with entry type code in (61, 62, 63, 69)
Applied to: Set Master In-Bond Flag
Action: Processing disposition codes 1J, 69, or 55
Logic Flow:
IF A cargo record with entry type code in (61, 62, 63, 69)
AND Processing disposition codes 1J, 69, or 55
THEN:
• Set the M1109 master in-bond flag to indicate master in-bond processing is required
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record with a disposition code requiring evaluation.
Trigger Criteria:
Context: A cargo record with a disposition code requiring evaluation
Applied to: Check Entry Type Code
Action: The entry type code is evaluated
Logic Flow:
IF A cargo record with a disposition code requiring evaluation
AND The entry type code is evaluated
THEN:
• Route to appropriate master in-bond processing based on entry type (61, 62, 63, 69) or skip if not a master in-bond type
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record with an entry type code.
Trigger Criteria:
Context: A cargo record with an entry type code
Applied to: Skip - Not Master In-Bond Type
Action: The entry type code is not 61, 62, 63, or 69
Logic Flow:
IF A cargo record with an entry type code
AND The entry type code is not 61, 62, 63, or 69
THEN:
• Skip master in-bond processing and continue with standard cargo processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when validated entry type code for master in-bond processing.
Trigger Criteria:
Context: A validated entry type code for master in-bond processing
Applied to: Map Entry Type to Transport Type
Action: The entry type requires transport type determination
Logic Flow:
IF A validated entry type code for master in-bond processing
AND The entry type requires transport type determination
THEN:
• Map entry type 61 to immediate transport, 62 to transport export, 63 to immediate export, and 69 to US-Canada-US movement
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record with disposition code requiring master in-bond processing and entry type code is '61'.
Trigger Criteria:
Context: A cargo record with disposition code requiring master in-bond processing AND entry type code is '61'
Applied to: Entry Type 61 - Master In-Bond
Action: The system processes the X4 segment for master in-bond entry
Logic Flow:
IF A cargo record with disposition code requiring master in-bond processing AND entry type code is '61'
AND The system processes the X4 segment for master in-bond entry
THEN:
• The system sets the transport type to immediate transport AND sets the master in-bond flag AND processes the bond control number
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record with disposition code requiring master in-bond processing and entry type code is '62'.
Trigger Criteria:
Context: A cargo record with disposition code requiring master in-bond processing AND entry type code is '62'
Applied to: Entry Type 62 - Master In-Bond
Action: The system processes the X4 segment for master in-bond entry
Logic Flow:
IF A cargo record with disposition code requiring master in-bond processing AND entry type code is '62'
AND The system processes the X4 segment for master in-bond entry
THEN:
• The system sets the transport type to transport for export AND sets the master in-bond flag AND processes the bond control number
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record with disposition code requiring master in-bond processing and entry type code is '63'.
Trigger Criteria:
Context: A cargo record with disposition code requiring master in-bond processing AND entry type code is '63'
Applied to: Entry Type 63 - Master In-Bond
Action: The system processes the X4 segment for master in-bond entry
Logic Flow:
IF A cargo record with disposition code requiring master in-bond processing AND entry type code is '63'
AND The system processes the X4 segment for master in-bond entry
THEN:
• The system sets the transport type to immediate export AND sets the master in-bond flag AND processes the bond control number
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record with disposition code requiring master in-bond processing and entry type code is '69'.
Trigger Criteria:
Context: A cargo record with disposition code requiring master in-bond processing AND entry type code is '69'
Applied to: Entry Type 69 - Master In-Bond
Action: The system processes the X4 segment for master in-bond entry
Logic Flow:
IF A cargo record with disposition code requiring master in-bond processing AND entry type code is '69'
AND The system processes the X4 segment for master in-bond entry
THEN:
• The system sets the transport type to US-Canada-US movement AND sets the master in-bond flag AND processes the bond control number
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record with disposition code requiring master in-bond processing and entry type code is not '61', '62', '63', or '69'.
Trigger Criteria:
Context: A cargo record with disposition code requiring master in-bond processing AND entry type code is not '61', '62', '63', or '69'
Applied to: Other Entry Types
Action: The system processes the X4 segment for master in-bond entry
Logic Flow:
IF A cargo record with disposition code requiring master in-bond processing AND entry type code is not '61', '62', '63', or '69'
AND The system processes the X4 segment for master in-bond entry
THEN:
• The system sets the transport type to default border processing ('00') AND sets the master in-bond flag AND processes the bond control number
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record with disposition code in ('1j', '69', '55').
Trigger Criteria:
Context: A cargo record with disposition code in ('1J', '69', '55')
Applied to: Set Master In-Bond Flag
Action: The system processes the master in-bond entry
Logic Flow:
IF A cargo record with disposition code in ('1J', '69', '55')
AND The system processes the master in-bond entry
THEN:
• The system sets the M1109 master in-bond flag to indicate master in-bond processing is required
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record with an entry number from the x4 segment.
Trigger Criteria:
Context: A cargo record with an entry number from the X4 segment
Applied to: Process Bond Control Number
Action: The system processes the entry number format
Logic Flow:
IF A cargo record with an entry number from the X4 segment
AND The system processes the entry number format
THEN:
• If the entry number starts with 'V' then place it in the entry number field, otherwise place it in the in-bond control number field
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when entry type code from the x4 segment.
Trigger Criteria:
Context: An entry type code from the X4 segment
Applied to: Map Entry Type to Internal Transport Type
Action: The system maps the entry type to internal transport type
Logic Flow:
IF An entry type code from the X4 segment
AND The system maps the entry type to internal transport type
THEN:
• Entry type '61' maps to immediate transport, '62' maps to transport export, '63' maps to immediate export, '69' maps to US-Canada-US movement, and all others map to border processing ('00')
R-GCX016-cbl-00614 (+14)File: GCX016.cblBusiness Rule: FDA Reference Processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when n9 segment is received with reference qualifier and reference number.
Trigger Criteria:
Context: An N9 segment is received with reference qualifier and reference number
Applied to: FDA-Related Reference?
Action: The system evaluates the reference qualifier code
Logic Flow:
IF An N9 segment is received with reference qualifier and reference number
AND The system evaluates the reference qualifier code
THEN:
• The system determines if the reference is FDA-related based on predefined FDA qualifier codes
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when n9 segment contains fda-related reference qualifier.
Trigger Criteria:
Context: An N9 segment contains FDA-related reference qualifier
Applied to: Extract FDA Reference Number
Action: The system processes the N9 segment
Logic Flow:
IF An N9 segment contains FDA-related reference qualifier
AND The system processes the N9 segment
THEN:
• The FDA reference number is extracted from the reference identification field
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when n9 segment contains fda-related information.
Trigger Criteria:
Context: An N9 segment contains FDA-related information
Applied to: Extract FDA Qualifier Code
Action: The system processes the FDA reference
Logic Flow:
IF An N9 segment contains FDA-related information
AND The system processes the FDA reference
THEN:
• The FDA qualifier code is extracted and stored for reference type identification
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when fda reference number and qualifier code have been extracted.
Trigger Criteria:
Context: An FDA reference number and qualifier code have been extracted
Applied to: Validate FDA Reference Format
Action: The system validates the reference format
Logic Flow:
IF An FDA reference number and qualifier code have been extracted
AND The system validates the reference format
THEN:
• The reference is checked against FDA format requirements for length, character set, and structure
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when fda reference has been validated for format compliance.
Trigger Criteria:
Context: An FDA reference has been validated for format compliance
Applied to: Valid FDA Reference?
Action: The system evaluates validation results
Logic Flow:
IF An FDA reference has been validated for format compliance
AND The system evaluates validation results
THEN:
• The system determines if the FDA reference is valid and can be processed further
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when valid fda reference number and qualifier have been identified.
Trigger Criteria:
Context: A valid FDA reference number and qualifier have been identified
Applied to: Store FDA Reference in Cargo Record
Action: The system processes the FDA reference for storage
Logic Flow:
IF A valid FDA reference number and qualifier have been identified
AND The system processes the FDA reference for storage
THEN:
• The FDA reference number and qualifier are stored in the cargo record's FDA reference fields
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when fda reference has been stored in the primary cargo record.
Trigger Criteria:
Context: FDA reference has been stored in the primary cargo record
Applied to: Update Secondary Cargo Records
Action: Secondary cargo records exist for the same shipment
Logic Flow:
IF FDA reference has been stored in the primary cargo record
AND Secondary cargo records exist for the same shipment
THEN:
• All secondary cargo records are updated with the same FDA reference information
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when fda reference has been stored in cargo records.
Trigger Criteria:
Context: FDA reference has been stored in cargo records
Applied to: Link FDA Reference to Shipment
Action: The system processes shipment linkage
Logic Flow:
IF FDA reference has been stored in cargo records
AND The system processes shipment linkage
THEN:
• The FDA reference is linked to the shipment identifier for tracking and compliance purposes
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when fda reference has been linked to the shipment.
Trigger Criteria:
Context: FDA reference has been linked to the shipment
Applied to: A1/A3 Disposition Code Present?
Action: The system evaluates disposition codes for the cargo
Logic Flow:
IF FDA reference has been linked to the shipment
AND The system evaluates disposition codes for the cargo
THEN:
• The system determines if A1 or A3 disposition codes are present requiring FDA compliance actions
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when a1 or a3 disposition codes are present with fda reference.
Trigger Criteria:
Context: A1 or A3 disposition codes are present with FDA reference
Applied to: Process FDA Compliance Requirements
Action: The system processes FDA compliance requirements
Logic Flow:
IF A1 or A3 disposition codes are present with FDA reference
AND The system processes FDA compliance requirements
THEN:
• FDA-specific compliance checks and notifications are initiated based on the disposition code type
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when fda compliance requirements have been identified.
Trigger Criteria:
Context: FDA compliance requirements have been identified
Applied to: Set FDA Processing Flag
Action: The system processes FDA requirements
Logic Flow:
IF FDA compliance requirements have been identified
AND The system processes FDA requirements
THEN:
• An FDA processing flag is set to ensure proper handling throughout the cargo lifecycle
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when fda processing flag has been set and compliance evaluation completed.
Trigger Criteria:
Context: FDA processing flag has been set and compliance evaluation completed
Applied to: Generate FDA Hold if Required
Action: FDA compliance requirements mandate cargo hold
Logic Flow:
IF FDA processing flag has been set and compliance evaluation completed
AND FDA compliance requirements mandate cargo hold
THEN:
• An FDA hold status is generated and applied to the cargo preventing release until FDA clearance
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when fda reference processing has been completed.
Trigger Criteria:
Context: FDA reference processing has been completed
Applied to: Log FDA Reference Processing
Action: The system finalizes FDA processing
Logic Flow:
IF FDA reference processing has been completed
AND The system finalizes FDA processing
THEN:
• All FDA reference processing activities are logged with timestamps and processing details
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when fda reference has failed format validation.
Trigger Criteria:
Context: An FDA reference has failed format validation
Applied to: Reject Invalid FDA Reference
Action: The system processes the invalid reference
Logic Flow:
IF An FDA reference has failed format validation
AND The system processes the invalid reference
THEN:
• The FDA reference is rejected and not stored in cargo records
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when invalid fda reference has been rejected.
Trigger Criteria:
Context: An invalid FDA reference has been rejected
Applied to: Generate Error Message
Action: The system processes the rejection
Logic Flow:
IF An invalid FDA reference has been rejected
AND The system processes the rejection
THEN:
• An error message is generated indicating the FDA reference validation failure with specific details
Business Justification: Dictates the expected operational logic and validation steps when n7 equipment segment is available in the message.
Trigger Criteria:
Context: An N7 equipment segment is available in the message
Applied to: Extract Car ID from N7 Segment
Action: The system processes the N7 segment for car identification
Logic Flow:
IF An N7 equipment segment is available in the message
AND The system processes the N7 segment for car identification
THEN:
• The car initial and car number are extracted and combined to form the complete car ID
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when x4 customs release segment contains waybill information.
Trigger Criteria:
Context: An X4 customs release segment contains waybill information
Applied to: Extract Waybill Number from X4 Segment
Action: The system processes the X4 segment for waybill identification
Logic Flow:
IF An X4 customs release segment contains waybill information
AND The system processes the X4 segment for waybill identification
THEN:
• The waybill number is extracted from the X4 segment data
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when car initial and car number are available from n7 segment.
Trigger Criteria:
Context: Car initial and car number are available from N7 segment
Applied to: Format Equipment ID using GCCCARFM
Action: The system needs to format the equipment ID for database operations
Logic Flow:
IF Car initial and car number are available from N7 segment
AND The system needs to format the equipment ID for database operations
THEN:
• The GCCCARFM utility is called to format the car ID into standard equipment format
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when car id and waybill number have been extracted from message segments.
Trigger Criteria:
Context: Car ID and waybill number have been extracted from message segments
Applied to: Car ID and Waybill Valid?
Action: The system validates the extracted identification data
Logic Flow:
IF Car ID and waybill number have been extracted from message segments
AND The system validates the extracted identification data
THEN:
• Processing continues if both car ID and waybill are valid, otherwise error handling is initiated
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when valid car id and waybill number are available.
Trigger Criteria:
Context: Valid car ID and waybill number are available
Applied to: Build Cargo Key with Car ID + Waybill
Action: The system prepares to search for cargo records
Logic Flow:
IF Valid car ID and waybill number are available
AND The system prepares to search for cargo records
THEN:
• A composite key is built combining the car ID and waybill number for database search operations
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when composite search key with car id and waybill is constructed.
Trigger Criteria:
Context: A composite search key with car ID and waybill is constructed
Applied to: Search Cargo Database by Car/Waybill Index
Action: The system searches the cargo database
Logic Flow:
IF A composite search key with car ID and waybill is constructed
AND The system searches the cargo database
THEN:
• The database is queried using the car/waybill index to locate matching cargo records
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when database search has been performed using car id and waybill.
Trigger Criteria:
Context: A database search has been performed using car ID and waybill
Applied to: Cargo Found?
Action: The system evaluates the search results
Logic Flow:
IF A database search has been performed using car ID and waybill
AND The system evaluates the search results
THEN:
• The system determines if cargo records were found and sets appropriate processing flags
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo records have been found for the car id and waybill combination.
Trigger Criteria:
Context: Cargo records have been found for the car ID and waybill combination
Applied to: Retrieve Cargo Record
Action: The system processes the search results
Logic Flow:
IF Cargo records have been found for the car ID and waybill combination
AND The system processes the search results
THEN:
• The matching cargo record is retrieved from the database for further processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record has been retrieved from the database.
Trigger Criteria:
Context: A cargo record has been retrieved from the database
Applied to: Cargo Usable?
Action: The system validates the cargo record status
Logic Flow:
IF A cargo record has been retrieved from the database
AND The system validates the cargo record status
THEN:
• The cargo record is deemed usable if it is not deleted and meets processing criteria
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record has been validated as usable.
Trigger Criteria:
Context: A cargo record has been validated as usable
Applied to: Return Cargo Record for Processing
Action: The system completes cargo retrieval operations
Logic Flow:
IF A cargo record has been validated as usable
AND The system completes cargo retrieval operations
THEN:
• The cargo record is returned for customs release processing with success status
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when initial cargo search using standard car id format has failed.
Trigger Criteria:
Context: Initial cargo search using standard car ID format has failed
Applied to: Try Alternative Car ID Format
Action: The system attempts alternative search strategies
Logic Flow:
IF Initial cargo search using standard car ID format has failed
AND The system attempts alternative search strategies
THEN:
• Alternative car ID formats are tried to locate cargo records
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when standard car id format search has failed.
Trigger Criteria:
Context: Standard car ID format search has failed
Applied to: Alternative Format Available?
Action: The system evaluates alternative search options
Logic Flow:
IF Standard car ID format search has failed
AND The system evaluates alternative search options
THEN:
• The system determines if alternative car ID formats can be attempted
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when exact car id matching has failed and alternative formats are available.
Trigger Criteria:
Context: Exact car ID matching has failed and alternative formats are available
Applied to: Search with Partial Car ID Match
Action: The system performs partial matching search
Logic Flow:
IF Exact car ID matching has failed and alternative formats are available
AND The system performs partial matching search
THEN:
• The database is searched using partial car ID criteria to locate potential matches
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when partial car id matching search has been performed.
Trigger Criteria:
Context: Partial car ID matching search has been performed
Applied to: Partial Match Found?
Action: The system evaluates the partial match results
Logic Flow:
IF Partial car ID matching search has been performed
AND The system evaluates the partial match results
THEN:
• The system determines if acceptable cargo records were found through partial matching
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when all search attempts for cargo using car id and waybill have failed.
Trigger Criteria:
Context: All search attempts for cargo using car ID and waybill have failed
Applied to: Log Car/Waybill Not Found Error
Action: The system handles the cargo not found condition
Logic Flow:
IF All search attempts for cargo using car ID and waybill have failed
AND The system handles the cargo not found condition
THEN:
• An error is logged indicating that cargo could not be found for the specified car and waybill
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo cannot be found for the specified car id and waybill combination.
Trigger Criteria:
Context: Cargo cannot be found for the specified car ID and waybill combination
Applied to: Create Foreign Bill Entry
Action: The system handles missing cargo scenarios
Logic Flow:
IF Cargo cannot be found for the specified car ID and waybill combination
AND The system handles missing cargo scenarios
THEN:
• A foreign bill entry is created to handle the unmatched cargo information
Business Justification: Establishes the required business protocol to be followed when cprs cargo processing request is received with disposition code and ccn key.
Trigger Criteria:
Context: A CPRS cargo processing request is received with disposition code and CCN key
Applied to: Generate CPRS Cargo Not Found Error
Action: The CPRS cargo is not found in the system
Logic Flow:
IF A CPRS cargo processing request is received with disposition code and CCN key
AND The CPRS cargo is not found in the system
THEN:
• The system increments the error counter AND creates error message with format 'USCS *ERROR** DC:' + disposition code + CCN key + '*NotFound*' AND sets cargo not found flag AND generates error report
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cprs cargo is found in the system with a disposition code.
Trigger Criteria:
Context: A CPRS cargo is found in the system with a disposition code
Applied to: Process Manual Release for CPRS
Action: The disposition code is MRL (Manual Release)
Logic Flow:
IF A CPRS cargo is found in the system with a disposition code
AND The disposition code is MRL (Manual Release)
THEN:
• The system processes the manual release AND clears the destination index AND processes Canadian manifest coordination
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cprs cargo is being processed for manual release.
Trigger Criteria:
Context: A CPRS cargo is being processed for manual release
Applied to: Clear Destination Index
Action: The manual release processing is initiated
Logic Flow:
IF A CPRS cargo is being processed for manual release
AND The manual release processing is initiated
THEN:
• The system clears the destination index to remove destination routing requirements
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cprs cargo is being processed with tax number information available.
Trigger Criteria:
Context: A CPRS cargo is being processed with tax number information available
Applied to: Process CPRS Tax Number
Action: Canadian Pacific tax number is present in the cargo record
Logic Flow:
IF A CPRS cargo is being processed with tax number information available
AND Canadian Pacific tax number is present in the cargo record
THEN:
• The system processes the CPRS tax number AND updates tax information in the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cprs cargo is being processed with cross-border status coordination requirements.
Trigger Criteria:
Context: A CPRS cargo is being processed with cross-border status coordination requirements
Applied to: Find Matching Canadian Manifest
Action: Canadian manifest match is required for the cargo
Logic Flow:
IF A CPRS cargo is being processed with cross-border status coordination requirements
AND Canadian manifest match is required for the cargo
THEN:
• The system finds the matching Canadian manifest AND generates log message for Canadian CCN
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cprs cargo has been processed through disposition code handling and canadian manifest coordination.
Trigger Criteria:
Context: A CPRS cargo has been processed through disposition code handling and Canadian manifest coordination
Applied to: Update CPRS Cargo Status
Action: All CPRS processing steps are completed
Logic Flow:
IF A CPRS cargo has been processed through disposition code handling and Canadian manifest coordination
AND All CPRS processing steps are completed
THEN:
• The system updates the CPRS cargo status AND generates CPRS processing audit trail
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cprs cargo has completed all processing steps including status updates.
Trigger Criteria:
Context: A CPRS cargo has completed all processing steps including status updates
Applied to: Generate CPRS Processing Audit Trail
Action: CPRS cargo processing is finalized
Logic Flow:
IF A CPRS cargo has completed all processing steps including status updates
AND CPRS cargo processing is finalized
THEN:
• The system generates a comprehensive CPRS processing audit trail for compliance and tracking purposes
R-GCX016-cbl-00666 (+20)File: GCX016.cblBusiness Rule: Foreign Bill Processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when foreign bill is not found in the system and x4 segment data is available.
Trigger Criteria:
Context: A foreign bill is not found in the system and X4 segment data is available
Applied to: Create New Cargo Record
Action: The system creates a new cargo record
Logic Flow:
IF A foreign bill is not found in the system and X4 segment data is available
AND The system creates a new cargo record
THEN:
• The cargo record is initialized with default values including CCN key, waybill number, car information, and segment data from X4
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when new cargo record is being created and the cargo type is cprs.
Trigger Criteria:
Context: A new cargo record is being created and the cargo type is CPRS
Applied to: Set CPRS/USCS Status
Action: The system sets the cargo status
Logic Flow:
IF A new cargo record is being created and the cargo type is CPRS
AND The system sets the cargo status
THEN:
• The cargo status is set to 'ERROR' and the status description is set to 'ERROR'
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when new cargo record is being created and the cargo type is not cprs.
Trigger Criteria:
Context: A new cargo record is being created and the cargo type is not CPRS
Applied to: Set CPRS/USCS Status
Action: The system sets the cargo status
Logic Flow:
IF A new cargo record is being created and the cargo type is not CPRS
AND The system sets the cargo status
THEN:
• The cargo status is set to 'SENT' and the status description is set to 'SENT'
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when new cargo record is being created and the current acknowledgment status is blank or 'ack-r'.
Trigger Criteria:
Context: A new cargo record is being created and the current acknowledgment status is blank or 'ACK-R'
Applied to: Set Default Broker Information
Action: The system sets the acknowledgment status
Logic Flow:
IF A new cargo record is being created and the current acknowledgment status is blank or 'ACK-R'
AND The system sets the acknowledgment status
THEN:
• The acknowledgment status is set to 'ACK' or 'ACK-R' based on system defaults
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code is being processed for a new cargo record.
Trigger Criteria:
Context: A disposition code is being processed for a new cargo record
Applied to: Check Entry Type Code
Action: The disposition code is '1J', '69', or '55'
Logic Flow:
IF A disposition code is being processed for a new cargo record
AND The disposition code is '1J', '69', or '55'
THEN:
• The cargo is flagged as master in-bond and requires entry type code processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when master in-bond cargo has entry type code '61'.
Trigger Criteria:
Context: A master in-bond cargo has entry type code '61'
Applied to: Process Master In-Bond Entry Types 61, 62, 63, 69
Action: The system processes the entry type
Logic Flow:
IF A master in-bond cargo has entry type code '61'
AND The system processes the entry type
THEN:
• The cargo is classified as immediate transport and appropriate transport flags are set
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when master in-bond cargo has entry type code '62'.
Trigger Criteria:
Context: A master in-bond cargo has entry type code '62'
Applied to: Process Master In-Bond Entry Types 61, 62, 63, 69
Action: The system processes the entry type
Logic Flow:
IF A master in-bond cargo has entry type code '62'
AND The system processes the entry type
THEN:
• The cargo is classified as transport for export and appropriate export flags are set
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when master in-bond cargo has entry type code '63'.
Trigger Criteria:
Context: A master in-bond cargo has entry type code '63'
Applied to: Process Master In-Bond Entry Types 61, 62, 63, 69
Action: The system processes the entry type
Logic Flow:
IF A master in-bond cargo has entry type code '63'
AND The system processes the entry type
THEN:
• The cargo is classified as immediate export and appropriate export flags are set
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when master in-bond cargo has entry type code '69'.
Trigger Criteria:
Context: A master in-bond cargo has entry type code '69'
Applied to: Process Master In-Bond Entry Types 61, 62, 63, 69
Action: The system processes the entry type
Logic Flow:
IF A master in-bond cargo has entry type code '69'
AND The system processes the entry type
THEN:
• The cargo is classified as US-Canada-US movement and appropriate movement flags are set
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo has entry type code '00' or no specific entry type.
Trigger Criteria:
Context: A cargo has entry type code '00' or no specific entry type
Applied to: Process Border Entry Type Code 00
Action: The system processes the entry type
Logic Flow:
IF A cargo has entry type code '00' or no specific entry type
AND The system processes the entry type
THEN:
• The cargo is processed as standard border entry with default processing rules
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo is being processed as border entry type.
Trigger Criteria:
Context: A cargo is being processed as border entry type
Applied to: Clear Bond Information
Action: The system processes bond information
Logic Flow:
IF A cargo is being processed as border entry type
AND The system processes bond information
THEN:
• All bond-related fields are cleared and set to default values
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when entry number starts with the letter 'v'.
Trigger Criteria:
Context: An entry number starts with the letter 'V'
Applied to: Build M10 Manifest Information
Action: The system processes the entry number
Logic Flow:
IF An entry number starts with the letter 'V'
AND The system processes the entry number
THEN:
• The entry number is placed in the entry number field and not in the in-bond control number field
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when entry number does not start with the letter 'v'.
Trigger Criteria:
Context: An entry number does not start with the letter 'V'
Applied to: Build M10 Manifest Information
Action: The system processes the entry number
Logic Flow:
IF An entry number does not start with the letter 'V'
AND The system processes the entry number
THEN:
• The entry number is placed in the in-bond control number field and not in the entry number field
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when m10 segment data contains scac information.
Trigger Criteria:
Context: M10 segment data contains SCAC information
Applied to: Set SCAC Code
Action: The system builds manifest information
Logic Flow:
IF M10 segment data contains SCAC information
AND The system builds manifest information
THEN:
• The SCAC code is set from the M10 segment SCAC field
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when entry type code has been processed and mapped to a transport type.
Trigger Criteria:
Context: An entry type code has been processed and mapped to a transport type
Applied to: Set Transport Type
Action: The system sets transport information
Logic Flow:
IF An entry type code has been processed and mapped to a transport type
AND The system sets transport information
THEN:
• The transport type is set according to the entry type code mapping (immediate transport, export, etc.)
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when manifest data requires country code information.
Trigger Criteria:
Context: Manifest data requires country code information
Applied to: Set Country Code
Action: The system sets country information
Logic Flow:
IF Manifest data requires country code information
AND The system sets country information
THEN:
• The country code is set based on cargo routing and manifest requirements
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when m10 segment contains vessel and flight information.
Trigger Criteria:
Context: M10 segment contains vessel and flight information
Applied to: Set Vessel/Flight Information
Action: The system builds manifest data
Logic Flow:
IF M10 segment contains vessel and flight information
AND The system builds manifest data
THEN:
• The vessel name and flight information are set from the M10 segment data
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when x4 segment contains quantity information.
Trigger Criteria:
Context: X4 segment contains quantity information
Applied to: Set Quantity Information
Action: The system processes cargo quantities
Logic Flow:
IF X4 segment contains quantity information
AND The system processes cargo quantities
THEN:
• The cargo quantity fields are populated from the X4 segment quantity data
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo and transport information has been processed.
Trigger Criteria:
Context: Cargo and transport information has been processed
Applied to: Set Manifest Type Code
Action: The system determines manifest type
Logic Flow:
IF Cargo and transport information has been processed
AND The system determines manifest type
THEN:
• The manifest type code is set based on cargo characteristics and transport mode
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo processing has been completed with specific conditions.
Trigger Criteria:
Context: Cargo processing has been completed with specific conditions
Applied to: Set Condition Response Code
Action: The system sets response codes
Logic Flow:
IF Cargo processing has been completed with specific conditions
AND The system sets response codes
THEN:
• The condition response code is set to reflect the cargo processing outcome and status
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when new cargo record has been created and all required fields populated.
Trigger Criteria:
Context: A new cargo record has been created and all required fields populated
Applied to: Store New Cargo Record
Action: The system stores the cargo record
Logic Flow:
IF A new cargo record has been created and all required fields populated
AND The system stores the cargo record
THEN:
• The cargo record is inserted into the database and becomes available for further processing
R-GCX016-cbl-00687 (+9)File: GCX016.cblBusiness Rule: Car ID Matching
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when equipment information contains car identification data.
Trigger Criteria:
Context: Equipment information contains car identification data
Applied to: Extract Car ID from Equipment Information
Action: Car ID extraction process is initiated
Logic Flow:
IF Equipment information contains car identification data
AND Car ID extraction process is initiated
THEN:
• Car ID is extracted from equipment segment and formatted using GCCCARFM utility for standardized format
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when car id has been extracted and formatted from equipment information.
Trigger Criteria:
Context: Car ID has been extracted and formatted from equipment information
Applied to: Car ID Valid?
Action: Car ID validation is performed
Logic Flow:
IF Car ID has been extracted and formatted from equipment information
AND Car ID validation is performed
THEN:
• System determines if car ID is valid for cargo matching operations or terminates matching process if invalid
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when valid car id is available and us-ccn key exists.
Trigger Criteria:
Context: Valid car ID is available and US-CCN key exists
Applied to: Attempt Exact Match with US-CCN Key
Action: Exact match query is executed against cargo database using car ID index
Logic Flow:
IF Valid car ID is available and US-CCN key exists
AND Exact match query is executed against cargo database using car ID index
THEN:
• System searches for cargo record that matches both car ID andUS-CCN key exactly
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when exact match query has been executed with car id and us-ccn key.
Trigger Criteria:
Context: Exact match query has been executed with car ID and US-CCN key
Applied to: Cargo Found with US-CCN?
Action: Query results are evaluated for exact match
Logic Flow:
IF Exact match query has been executed with car ID and US-CCN key
AND Query results are evaluated for exact match
THEN:
• If cargo found with matching US-CCN, return matched cargo record, otherwise proceed to partial matching
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when exact match with us-ccn key failed and valid car id exists.
Trigger Criteria:
Context: Exact match with US-CCN key failed and valid car ID exists
Applied to: Attempt Partial Match without US-CCN
Action: Partial match query is executed against cargo database
Logic Flow:
IF Exact match with US-CCN key failed and valid car ID exists
AND Partial match query is executed against cargo database
THEN:
• System searches for cargo records matching car ID only without US-CCN key requirement
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when partial match query has been executed with car id only.
Trigger Criteria:
Context: Partial match query has been executed with car ID only
Applied to: Cargo Found without US-CCN?
Action: Query results are evaluated for partial match
Logic Flow:
IF Partial match query has been executed with car ID only
AND Query results are evaluated for partial match
THEN:
• If cargo found without US-CCN requirement, proceed to validation, otherwise declare match failure
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record found through partial matching with car id only.
Trigger Criteria:
Context: Cargo record found through partial matching with car ID only
Applied to: Validate Cargo Record Status
Action: Cargo record status validation is performed
Logic Flow:
IF Cargo record found through partial matching with car ID only
AND Cargo record status validation is performed
THEN:
• System checks if cargo record is in valid status for business processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record status validation has been completed.
Trigger Criteria:
Context: Cargo record status validation has been completed
Applied to: Cargo Record Valid?
Action: Validation results are evaluated
Logic Flow:
IF Cargo record status validation has been completed
AND Validation results are evaluated
THEN:
• If cargo record is valid, return partially matched cargo, otherwise declare car ID match failed
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when car id is invalid or no cargo found with exact match or no cargo found with partial match or cargo record is invalid.
Trigger Criteria:
Context: Car ID is invalid OR no cargo found with exact match OR no cargo found with partial match OR cargo record is invalid
Applied to: Car ID Match Failed
Action: Match failure condition is detected
Logic Flow:
IF Car ID is invalid OR no cargo found with exact match OR no cargo found with partial match OR cargo record is invalid
AND Match failure condition is detected
THEN:
• System declares car ID match failed and proceeds to logging
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when car id matching process has completed with success, partial success, or failure.
Trigger Criteria:
Context: Car ID matching process has completed with success, partial success, or failure
Applied to: Log Car ID Match Attempt
Action: Logging process is initiated
Logic Flow:
IF Car ID matching process has completed with success, partial success, or failure
AND Logging process is initiated
THEN:
• System records car ID match attempt results for audit trail and business tracking
R-GCX016-cbl-00697 (+84)File: GCX016.cblBusiness Rule: Multi
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when manifest record is being processed.
Trigger Criteria:
Context: A manifest record is being processed
Applied to: Lead Manifest Identified
Action: The manifest CCN key matches the saved CCN from previous processing
Logic Flow:
IF A manifest record is being processed
AND The manifest CCN key matches the saved CCN from previous processing
THEN:
• The system identifies this as a lead manifest requiring follower processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when manifest record is being processed.
Trigger Criteria:
Context: A manifest record is being processed
Applied to: Is Lead Manifest?
Action: The system evaluates the manifest type
Logic Flow:
IF A manifest record is being processed
AND The system evaluates the manifest type
THEN:
• The system identifies whether it is a lead manifest with associated followers or a single manifest
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when lead manifest has been identified.
Trigger Criteria:
Context: A lead manifest has been identified
Applied to: Follower Manifests Exist?
Action: The system checks for associated follower manifests
Logic Flow:
IF A lead manifest has been identified
AND The system checks for associated follower manifests
THEN:
• The system sets follower end-of-database flag based on whether follower records are found
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when lead manifest has been identified.
Trigger Criteria:
Context: A lead manifest has been identified
Applied to: Get Follower Manifest List
Action: The system needs to process associated follower manifests
Logic Flow:
IF A lead manifest has been identified
AND The system needs to process associated follower manifests
THEN:
• The system retrieves the complete list of follower manifests from GCWTL-TRAIN-LIST
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when follower manifests exist for the lead manifest.
Trigger Criteria:
Context: Follower manifests exist for the lead manifest
Applied to: Retrieve Follower Manifest List
Action: The system initiates follower manifest retrieval
Logic Flow:
IF Follower manifests exist for the lead manifest
AND The system initiates follower manifest retrieval
THEN:
• The system calls GCT0161E to retrieve all follower manifest records
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when list of follower manifests has been retrieved.
Trigger Criteria:
Context: A list of follower manifests has been retrieved
Applied to: Select Next Follower Manifest
Action: The system needs to process the next follower manifest
Logic Flow:
IF A list of follower manifests has been retrieved
AND The system needs to process the next follower manifest
THEN:
• The system selects the next available follower manifest record from the list
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when list of follower manifests has been retrieved.
Trigger Criteria:
Context: A list of follower manifests has been retrieved
Applied to: More Followers Available?
Action: The system is iterating through the follower manifest list
Logic Flow:
IF A list of follower manifests has been retrieved
AND The system is iterating through the follower manifest list
THEN:
• The system determines if more follower manifests are available for processing orif all have been processed
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when follower manifest has been selected for processing.
Trigger Criteria:
Context: A follower manifest has been selected for processing
Applied to: Prepare EDI 350 Message for Follower
Action: The system prepares the EDI message for the follower
Logic Flow:
IF A follower manifest has been selected for processing
AND The system prepares the EDI message for the follower
THEN:
• The system sets special action code '350' and copies disposition code, quantity, and entry number from X4 segment
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when follower manifest has been selected for processing.
Trigger Criteria:
Context: A follower manifest has been selected for processing
Applied to: Format EDI 350 Message for Follower
Action: The system needs to create an EDI message for the follower
Logic Flow:
IF A follower manifest has been selected for processing
AND The system needs to create an EDI message for the follower
THEN:
• The system formats an EDI 350 message with follower-specific data and parameters
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when edi 350 message has been prepared for a follower manifest.
Trigger Criteria:
Context: An EDI 350 message has been prepared for a follower manifest
Applied to: Format Message with Follower Details
Action: The system formats the message with follower details
Logic Flow:
IF An EDI 350 message has been prepared for a follower manifest
AND The system formats the message with follower details
THEN:
• The system includes follower manifest CCN, cargo details, and processing instructions in the formatted message
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when follower message has been formatted with all required details.
Trigger Criteria:
Context: A follower message has been formatted with all required details
Applied to: Spawn GCT0161E Transaction for Follower
Action: The system initiates follower processing
Logic Flow:
IF A follower message has been formatted with all required details
AND The system initiates follower processing
THEN:
• The system spawns GCT0161E transaction with the formatted follower message for independent processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when follower manifest has been processed and gct0161e transaction spawned.
Trigger Criteria:
Context: A follower manifest has been processed and GCT0161E transaction spawned
Applied to: More Followers to Process?
Action: The system checks for remaining follower manifests
Logic Flow:
IF A follower manifest has been processed and GCT0161E transaction spawned
AND The system checks for remaining follower manifests
THEN:
• The system evaluates the follower end-of-database flag to determine if more followers exist
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when all follower manifests have been processed and transactions spawned.
Trigger Criteria:
Context: All follower manifests have been processed and transactions spawned
Applied to: All Follower Manifests Processed
Action: No more follower manifests remain in the list
Logic Flow:
IF All follower manifests have been processed and transactions spawned
AND No more follower manifests remain in the list
THEN:
• The system sets completion status and prepares to continue with lead manifest processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when all follower manifests have been processed or no follower manifests exist.
Trigger Criteria:
Context: All follower manifests have been processed OR no follower manifests exist
Applied to: Continue with Lead Manifest Processing
Action: The system completes follower processing workflow
Logic Flow:
IF All follower manifests have been processed OR no follower manifests exist
AND The system completes follower processing workflow
THEN:
• The system returns control to continue processing the original lead manifest
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record is being processed for release verification.
Trigger Criteria:
Context: A cargo record is being processed for release verification
Applied to: Get Car ID and Waybill from Current Cargo
Action: The system needs to verify release status for all related cargo
Logic Flow:
IF A cargo record is being processed for release verification
AND The system needs to verify release status for all related cargo
THEN:
• The car ID and waybill number are extracted from the current cargo record and stored for subsequent cargo matching operations
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record is being processed for release verification.
Trigger Criteria:
Context: A cargo record is being processed for release verification
Applied to: Retrieve Car ID and Waybill from Current Cargo
Action: The system needs to identify related cargo records by transportation unit
Logic Flow:
IF A cargo record is being processed for release verification
AND The system needs to identify related cargo records by transportation unit
THEN:
• The car ID and waybill number are extracted from the current cargo record for use in subsequent searches
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when multi-cargo release verification is starting.
Trigger Criteria:
Context: Multi-cargo release verification is starting
Applied to: Initialize Cargo Scan Counter
Action: The system begins scanning related cargo records
Logic Flow:
IF Multi-cargo release verification is starting
AND The system begins scanning related cargo records
THEN:
• All cargo scan counters and release eligibility flags are reset to initial values
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when car id and waybill criteria are established.
Trigger Criteria:
Context: Car ID and waybill criteria are established
Applied to: Fetch All Cargo Records Matching Car ID and Waybill
Action: The system searches for related cargo records
Logic Flow:
IF Car ID and waybill criteria are established
AND The system searches for related cargo records
THEN:
• All cargo records matching the car ID and waybill combination are retrieved and made available for release verification processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo records are being scanned for release verification.
Trigger Criteria:
Context: Cargo records are being scanned for release verification
Applied to: More Cargo Records?
Action: The system checks for remaining unprocessed cargo records
Logic Flow:
IF Cargo records are being scanned for release verification
AND The system checks for remaining unprocessed cargo records
THEN:
• If more cargo records exist, processing continues with the next record, otherwise the verification analysis phase begins
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when additional cargo records are available for processing.
Trigger Criteria:
Context: Additional cargo records are available for processing
Applied to: Get Next Cargo Record
Action: The system continues the release verification scan
Logic Flow:
IF Additional cargo records are available for processing
AND The system continues the release verification scan
THEN:
• The next cargo record matching the car ID and waybill is retrieved and made current for release status checking
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record is being evaluated for release verification.
Trigger Criteria:
Context: A cargo record is being evaluated for release verification
Applied to: Check Cargo Release Status
Action: The system checks the cargo's current release status
Logic Flow:
IF A cargo record is being evaluated for release verification
AND The system checks the cargo's current release status
THEN:
• The cargo's release status is determined and used to direct further validation checks
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo release status has been evaluated.
Trigger Criteria:
Context: Cargo release status has been evaluated
Applied to: Is Cargo Released?
Action: The system determines if the cargo is currently in released status
Logic Flow:
IF Cargo release status has been evaluated
AND The system determines if the cargo is currently in released status
THEN:
• If cargo is not released, active hold checks are performed, otherwise manual release flag validation is conducted
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo is not currently in released status.
Trigger Criteria:
Context: Cargo is not currently in released status
Applied to: Check for Active Holds
Action: The system checks for active hold conditions on the cargo
Logic Flow:
IF Cargo is not currently in released status
AND The system checks for active hold conditions on the cargo
THEN:
• All active hold flags and conditions are evaluated to determine if holds exist that prevent release
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when active hold conditions have been checked.
Trigger Criteria:
Context: Active hold conditions have been checked
Applied to: Has Active Holds?
Action: The system evaluates whether active holds exist
Logic Flow:
IF Active hold conditions have been checked
AND The system evaluates whether active holds exist
THEN:
• If active holds are present, cargo is marked as not release eligible, otherwise manual release flag checking continues
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo has active hold conditions.
Trigger Criteria:
Context: Cargo has active hold conditions
Applied to: Mark as Not Release Eligible
Action: The system processes cargo with active holds
Logic Flow:
IF Cargo has active hold conditions
AND The system processes cargo with active holds
THEN:
• The cargo is marked as not eligible for release and the release eligibility counter is updated accordingly
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo does not have active holds or is in released status.
Trigger Criteria:
Context: Cargo does not have active holds or is in released status
Applied to: Check Manual Release Flag
Action: The system checks for manual release authorization
Logic Flow:
IF Cargo does not have active holds or is in released status
AND The system checks for manual release authorization
THEN:
• The manual release flag is evaluated to determine if special release authorization has been granted
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when manual release flag has been checked.
Trigger Criteria:
Context: Manual release flag has been checked
Applied to: Manually Released?
Action: The system evaluates manual release authorization
Logic Flow:
IF Manual release flag has been checked
AND The system evaluates manual release authorization
THEN:
• If manual release is authorized, cargo is marked as release eligible, otherwise quantity validation is performed
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo has manual release authorization or passes all validation checks.
Trigger Criteria:
Context: Cargo has manual release authorization or passes all validation checks
Applied to: Mark as Release Eligible
Action: The system processes cargo with release authorization
Logic Flow:
IF Cargo has manual release authorization or passes all validation checks
AND The system processes cargo with release authorization
THEN:
• The cargo is marked as eligible for release and the release eligibility counter is updated
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo does not have manual release authorization.
Trigger Criteria:
Context: Cargo does not have manual release authorization
Applied to: Check Quantity Validation
Action: The system performs quantity validation for release eligibility
Logic Flow:
IF Cargo does not have manual release authorization
AND The system performs quantity validation for release eligibility
THEN:
• Cargo quantities are compared against expected values and release thresholds to determine validation status
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when quantity validation has been performed.
Trigger Criteria:
Context: Quantity validation has been performed
Applied to: Quantities Match?
Action: The system evaluates whether quantities match requirements
Logic Flow:
IF Quantity validation has been performed
AND The system evaluates whether quantities match requirements
THEN:
• If quantities match, cargo is marked as release eligible, otherwise cargo is marked for partial release
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo quantities do not match full release requirements.
Trigger Criteria:
Context: Cargo quantities do not match full release requirements
Applied to: Mark as Partial Release
Action: The system processes cargo with quantity mismatches
Logic Flow:
IF Cargo quantities do not match full release requirements
AND The system processes cargo with quantity mismatches
THEN:
• The cargo is marked for partial release status and the release eligibility counter is updated to reflect partial release
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo release eligibility has been determined.
Trigger Criteria:
Context: Cargo release eligibility has been determined
Applied to: Update Release Eligibility Counter
Action: The system updates release verification statistics
Logic Flow:
IF Cargo release eligibility has been determined
AND The system updates release verification statistics
THEN:
• Release eligibility counters are incremented based on the cargo's determined status (eligible, not eligible, or partial)
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when current cargo record processing is complete.
Trigger Criteria:
Context: Current cargo record processing is complete
Applied to: Move to Next Cargo Record
Action: The system continues the multi-cargo verification process
Logic Flow:
IF Current cargo record processing is complete
AND The system continues the multi-cargo verification process
THEN:
• The system positions to process the next cargo record in the car ID and waybill group
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when all cargo records for the car id and waybill have been processed.
Trigger Criteria:
Context: All cargo records for the car ID and waybill have been processed
Applied to: Analyze Overall Release Status
Action: The system analyzes overall release verification results
Logic Flow:
IF All cargo records for the car ID and waybill have been processed
AND The system analyzes overall release verification results
THEN:
• Individual cargo release statuses are consolidated to determine the overall release eligibility for the entire car and waybill group
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when overall release status analysis is complete.
Trigger Criteria:
Context: Overall release status analysis is complete
Applied to: All Cargo Release Eligible?
Action: The system determines final release authorization
Logic Flow:
IF Overall release status analysis is complete
AND The system determines final release authorization
THEN:
• If all cargo is release eligible, overall status is set to YES, otherwise overall status is set to NO
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when all cargo in the car and waybill group is release eligible.
Trigger Criteria:
Context: All cargo in the car and waybill group is release eligible
Applied to: Set Overall Release Status = YES
Action: The system sets final release authorization
Logic Flow:
IF All cargo in the car and waybill group is release eligible
AND The system sets final release authorization
THEN:
• The overall release status is set to YES, indicating full authorization for release of all cargo
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when one or more cargo records in the car and waybill group are not release eligible.
Trigger Criteria:
Context: One or more cargo records in the car and waybill group are not release eligible
Applied to: Set Overall Release Status = NO
Action: The system sets final release authorization
Logic Flow:
IF One or more cargo records in the car and waybill group are not release eligible
AND The system sets final release authorization
THEN:
• The overall release status is set to NO, preventing release of the entire car and waybill group
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when release verification analysis is complete.
Trigger Criteria:
Context: Release verification analysis is complete
Applied to: Generate Release Verification Report
Action: The system generates verification documentation
Logic Flow:
IF Release verification analysis is complete
AND The system generates verification documentation
THEN:
• A detailed report is created showing all cargo evaluated, their individual statuses, and the final overall release determination
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when release verification process is complete and documented.
Trigger Criteria:
Context: Release verification process is complete and documented
Applied to: Return Release Verification Result
Action: The system returns verification results
Logic Flow:
IF Release verification process is complete and documented
AND The system returns verification results
THEN:
• The final release status (YES/NO) and supporting verification details are returned to enable appropriate cargo handling decisions
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when error message has been generated and requires routing.
Trigger Criteria:
Context: An error message has been generated and requires routing
Applied to: Set Primary Destination User
Action: The system determines the message type and attempts to set the primary destination user
Logic Flow:
IF An error message has been generated and requires routing
AND The system determines the message type and attempts to set the primary destination user
THEN:
• The primary destination user is identified and validated for message routing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when primary destination user has been identified.
Trigger Criteria:
Context: A primary destination user has been identified
Applied to: Is Primary User Valid?
Action: The system validates the primary user credentials and routing permissions
Logic Flow:
IF A primary destination user has been identified
AND The system validates the primary user credentials and routing permissions
THEN:
• The system determines if the primary user is valid and can receive the message
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when primary user has been validated as a valid recipient.
Trigger Criteria:
Context: The primary user has been validated as a valid recipient
Applied to: Route to Primary User
Action: The system processes the routing request
Logic Flow:
IF The primary user has been validated as a valid recipient
AND The system processes the routing request
THEN:
• The error message is routed to the primary user destination
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when primary user has been determined to be invalid.
Trigger Criteria:
Context: The primary user has been determined to be invalid
Applied to: Route to Default Error User
Action: The system needs to route the error message
Logic Flow:
IF The primary user has been determined to be invalid
AND The system needs to route the error message
THEN:
• The error message is routed to the default error user destination
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when error message has been routed to either primary or default error user.
Trigger Criteria:
Context: The error message has been routed to either primary or default error user
Applied to: Additional Recipients Required?
Action: The system evaluates the message type and routing requirements
Logic Flow:
IF The error message has been routed to either primary or default error user
AND The system evaluates the message type and routing requirements
THEN:
• The system determines whether additional recipients are required for this message type
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when additional recipients have been determined to be required.
Trigger Criteria:
Context: Additional recipients have been determined to be required
Applied to: Identify Secondary Recipients
Action: The system processes the secondary recipient identification logic
Logic Flow:
IF Additional recipients have been determined to be required
AND The system processes the secondary recipient identification logic
THEN:
• The system identifies all secondary recipients that should receive the error message
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when secondary recipients have been identified.
Trigger Criteria:
Context: Secondary recipients have been identified
Applied to: Check Secondary User Validity
Action: The system validates each secondary user's credentials and routing permissions
Logic Flow:
IF Secondary recipients have been identified
AND The system validates each secondary user's credentials and routing permissions
THEN:
• The system determines which secondary users are valid recipients
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when secondary user has been validated as a valid recipient.
Trigger Criteria:
Context: A secondary user has been validated as a valid recipient
Applied to: Add Valid Secondary User to Route List
Action: The system processes the routing list update
Logic Flow:
IF A secondary user has been validated as a valid recipient
AND The system processes the routing list update
THEN:
• The valid secondary user is added to the message routing list
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when secondary user has been determined to be invalid.
Trigger Criteria:
Context: A secondary user has been determined to be invalid
Applied to: Skip Invalid Secondary User
Action: The system processes the routing list
Logic Flow:
IF A secondary user has been determined to be invalid
AND The system processes the routing list
THEN:
• The invalid secondary user is skipped and not added to the routing list
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when all valid recipients have been identified and added to the routing list.
Trigger Criteria:
Context: All valid recipients have been identified and added to the routing list
Applied to: Set Message Keywords for Categorization
Action: The system processes message categorization requirements
Logic Flow:
IF All valid recipients have been identified and added to the routing list
AND The system processes message categorization requirements
THEN:
• Appropriate keywords are set for message categorization and proper routing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when message keywords have been set for categorization.
Trigger Criteria:
Context: Message keywords have been set for categorization
Applied to: Export Container Type?
Action: The system evaluates the message content and type
Logic Flow:
IF Message keywords have been set for categorization
AND The system evaluates the message content and type
THEN:
• The system determines if this is an export container type message
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when message has been determined to be an export container type.
Trigger Criteria:
Context: The message has been determined to be an export container type
Applied to: Route to USEXP Basket
Action: The system processes the specialized routing requirement
Logic Flow:
IF The message has been determined to be an export container type
AND The system processes the specialized routing requirement
THEN:
• The message is routed to the USEXP basket for export container processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when message has been determined to not be an export container type.
Trigger Criteria:
Context: The message has been determined to not be an export container type
Applied to: Route to Standard Error Basket
Action: The system processes the standard routing requirement
Logic Flow:
IF The message has been determined to not be an export container type
AND The system processes the standard routing requirement
THEN:
• The message is routed to the standard error basket for general error processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when all routing destinations have been determined and validated.
Trigger Criteria:
Context: All routing destinations have been determined and validated
Applied to: Send Message to All Valid Destinations
Action: The system executes the message delivery process
Logic Flow:
IF All routing destinations have been determined and validated
AND The system executes the message delivery process
THEN:
• The error message is successfully sent to all valid destinations in the routing list
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when error message has been sent to all valid destinations.
Trigger Criteria:
Context: The error message has been sent to all valid destinations
Applied to: Log Routing Information
Action: The system processes the logging requirements
Logic Flow:
IF The error message has been sent to all valid destinations
AND The system processes the logging requirements
THEN:
• Routing information including destinations and delivery status is logged for audit purposes
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when lead manifest is identified for processing.
Trigger Criteria:
Context: A lead manifest is identified for processing
Applied to: Check for Follower Manifests
Action: The system checks if the lead manifest CCN matches the saved CCN from previous processing
Logic Flow:
IF A lead manifest is identified for processing
AND The system checks if the lead manifest CCN matches the saved CCN from previous processing
THEN:
• The system identifies whether follower manifests exist and need to be processed
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when follower manifests are found for a lead manifest.
Trigger Criteria:
Context: Follower manifests are found for a lead manifest
Applied to: Initialize Follower Processing
Action: The system initiates follower processing
Logic Flow:
IF Follower manifests are found for a lead manifest
AND The system initiates follower processing
THEN:
• The follower end-of-database flag is reset and processing begins
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when follower manifest processing is in progress.
Trigger Criteria:
Context: Follower manifest processing is in progress
Applied to: More Followers to Process?
Action: The system checks the follower end-of-database flag
Logic Flow:
IF Follower manifest processing is in progress
AND The system checks the follower end-of-database flag
THEN:
• Processing continues if more followers exist or terminates if all followers are processed
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when follower manifest is selected for processing.
Trigger Criteria:
Context: A follower manifest is selected for processing
Applied to: Prepare EDI 350 Message for Follower
Action: The system prepares the EDI message
Logic Flow:
IF A follower manifest is selected for processing
AND The system prepares the EDI message
THEN:
• The special action code is set to '350', disposition code is copied from X4 segment, quantity is transferred, and entry number is populated
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when edi 350 message is prepared for a follower manifest.
Trigger Criteria:
Context: EDI 350 message is prepared for a follower manifest
Applied to: Spawn GCT0161E Transaction
Action: The system spawns the GCT0161E transaction
Logic Flow:
IF EDI 350 message is prepared for a follower manifest
AND The system spawns the GCT0161E transaction
THEN:
• The follower manifest is submitted for independent cargo processing with the prepared message data
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when follower manifest has been submitted for processing via gct0161e.
Trigger Criteria:
Context: A follower manifest has been submitted for processing via GCT0161E
Applied to: Processing Successful?
Action: The processing transaction completes
Logic Flow:
IF A follower manifest has been submitted for processing via GCT0161E
AND The processing transaction completes
THEN:
• The system determines if the processing was successful or encountered errors
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when follower manifest processing attempt has completed (either successfully or with errors).
Trigger Criteria:
Context: A follower manifest processing attempt has completed (either successfully or with errors)
Applied to: Continue to Next Follower
Action: The system continues processing
Logic Flow:
IF A follower manifest processing attempt has completed (either successfully or with errors)
AND The system continues processing
THEN:
• The next follower manifest in the sequence is selected for processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when all follower manifests associated with a lead manifest have been processed.
Trigger Criteria:
Context: All follower manifests associated with a lead manifest have been processed
Applied to: Complete Multi-manifest Processing
Action: No more followers remain in the processing queue
Logic Flow:
IF All follower manifests associated with a lead manifest have been processed
AND No more followers remain in the processing queue
THEN:
• The multi-manifest processing operation is marked as complete and control returns to the main processing flow
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when more follower manifests are available for processing.
Trigger Criteria:
Context: More follower manifests are available for processing
Applied to: Select Next Follower Manifest
Action: The system needs to process the next follower manifest
Logic Flow:
IF More follower manifests are available for processing
AND The system needs to process the next follower manifest
THEN:
• The system selects and loads the next follower manifest from the list
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when edi 350 message has been formatted for a follower manifest.
Trigger Criteria:
Context: An EDI 350 message has been formatted for a follower manifest
Applied to: Prepare Message Array for Follower
Action: The system needs to prepare the message for transaction spawning
Logic Flow:
IF An EDI 350 message has been formatted for a follower manifest
AND The system needs to prepare the message for transaction spawning
THEN:
• The system populates the EDI message array with the formatted follower manifest data
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when message array has been prepared for a follower manifest.
Trigger Criteria:
Context: The message array has been prepared for a follower manifest
Applied to: Set Follower Manifest Parameters
Action: The system needs to configure processing parameters
Logic Flow:
IF The message array has been prepared for a follower manifest
AND The system needs to configure processing parameters
THEN:
• The system sets follower-specific parameters including manifest identifiers and processing flags
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when follower manifest parameters have been configured.
Trigger Criteria:
Context: Follower manifest parameters have been configured
Applied to: Spawn GCT0161E Transaction
Action: The system is ready to process the follower manifest
Logic Flow:
IF Follower manifest parameters have been configured
AND The system is ready to process the follower manifest
THEN:
• The system spawns a GCT0161E transaction with the prepared message array and parameters
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when gct0161e transaction has been attempted for a follower manifest.
Trigger Criteria:
Context: A GCT0161E transaction has been attempted for a follower manifest
Applied to: Transaction Spawn Successful?
Action: The system receives the spawn response
Logic Flow:
IF A GCT0161E transaction has been attempted for a follower manifest
AND The system receives the spawn response
THEN:
• The system determines if the transaction spawn was successful or failed
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when gct0161e transaction was successfully spawned for a follower manifest.
Trigger Criteria:
Context: A GCT0161E transaction was successfully spawned for a follower manifest
Applied to: Log Follower Processing Success
Action: The system confirms successful transaction spawn
Logic Flow:
IF A GCT0161E transaction was successfully spawned for a follower manifest
AND The system confirms successful transaction spawn
THEN:
• The system logs the successful follower manifest processing to the transaction log
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when gct0161e transaction spawn failed for a follower manifest.
Trigger Criteria:
Context: A GCT0161E transaction spawn failed for a follower manifest
Applied to: Log Spawn Error
Action: The system detects the spawn failure
Logic Flow:
IF A GCT0161E transaction spawn failed for a follower manifest
AND The system detects the spawn failure
THEN:
• The system logs the spawn error details to the transaction log for troubleshooting
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when follower manifest has been successfully processed.
Trigger Criteria:
Context: A follower manifest has been successfully processed
Applied to: Move to Next Follower
Action: The system needs to continue with remaining followers
Logic Flow:
IF A follower manifest has been successfully processed
AND The system needs to continue with remaining followers
THEN:
• The system moves to the next follower manifest in the list for processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when transaction spawn error has been logged for a follower manifest.
Trigger Criteria:
Context: A transaction spawn error has been logged for a follower manifest
Applied to: Continue with Next Follower
Action: The system needs to continue processing remaining followers
Logic Flow:
IF A transaction spawn error has been logged for a follower manifest
AND The system needs to continue processing remaining followers
THEN:
• The system continues with the next follower manifest without stopping the entire process
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when system has iterated through all follower manifests in the list.
Trigger Criteria:
Context: The system has iterated through all follower manifests in the list
Applied to: All Followers Processed
Action: No more follower manifests are available for processing
Logic Flow:
IF The system has iterated through all follower manifests in the list
AND No more follower manifests are available for processing
THEN:
• The system confirms that all follower manifests have been processed
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when all follower manifests have been processed.
Trigger Criteria:
Context: All follower manifests have been processed
Applied to: Update Lead Manifest Status
Action: The system needs to finalize the lead manifest processing
Logic Flow:
IF All follower manifests have been processed
AND The system needs to finalize the lead manifest processing
THEN:
• The system updates the lead manifest status to reflect completion of follower processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when lead manifest status has been updated after follower processing.
Trigger Criteria:
Context: The lead manifest status has been updated after follower processing
Applied to: Complete Multi-manifest Processing
Action: All multi-manifest processing tasks are complete
Logic Flow:
IF The lead manifest status has been updated after follower processing
AND All multi-manifest processing tasks are complete
THEN:
• The system completes the multi-manifest processing workflow and returns control
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when manifest is not identified as a lead manifest.
Trigger Criteria:
Context: A manifest is not identified as a lead manifest
Applied to: Skip - Single Manifest Only
Action: The system evaluates the manifest for multi-manifest processing
Logic Flow:
IF A manifest is not identified as a lead manifest
AND The system evaluates the manifest for multi-manifest processing
THEN:
• The system skips follower processing and proceeds directly to completion
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when car id and waybill number have been identified from a cargo record.
Trigger Criteria:
Context: A car ID and waybill number have been identified from a cargo record
Applied to: Search All Cargo Records with Matching Car ID and Waybill
Action: The system searches for all related cargo records
Logic Flow:
IF A car ID and waybill number have been identified from a cargo record
AND The system searches for all related cargo records
THEN:
• All cargo records matching the same car ID and waybill combination are retrieved for group processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when search has been performed for cargo records matching a car id and waybill.
Trigger Criteria:
Context: A search has been performed for cargo records matching a car ID and waybill
Applied to: More Cargo Records Found?
Action: The system processes the search results
Logic Flow:
IF A search has been performed for cargo records matching a car ID and waybill
AND The system processes the search results
THEN:
• Each cargo record in the result set is processed individually until all records are evaluated
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record is being evaluated for release eligibility.
Trigger Criteria:
Context: A cargo record is being evaluated for release eligibility
Applied to: Is Cargo Already Released?
Action: The cargo status indicates it has already been released
Logic Flow:
IF A cargo record is being evaluated for release eligibility
AND The cargo status indicates it has already been released
THEN:
• The cargo is excluded from further release processing and the system continues to the next cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record that is not already released is being evaluated.
Trigger Criteria:
Context: A cargo record that is not already released is being evaluated
Applied to: Are There Active Holds?
Action: The system checks for active hold conditions
Logic Flow:
IF A cargo record that is not already released is being evaluated
AND The system checks for active hold conditions
THEN:
• If active holds exist, the cargo requires manual release authorization; if no active holds exist, the cargo is eligible for release
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record has active holds that would normally prevent release.
Trigger Criteria:
Context: A cargo record has active holds that would normally prevent release
Applied to: Is Manual Release Set?
Action: Manual release authorization has been granted for the cargo
Logic Flow:
IF A cargo record has active holds that would normally prevent release
AND Manual release authorization has been granted for the cargo
THEN:
• The cargo is marked as release eligible despite the active holds
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record has been evaluated and either has no active holds or has manual release authorization.
Trigger Criteria:
Context: A cargo record has been evaluated and either has no active holds or has manual release authorization
Applied to: Mark Cargo as Release Eligible
Action: The release eligibility determination is made
Logic Flow:
IF A cargo record has been evaluated and either has no active holds or has manual release authorization
AND The release eligibility determination is made
THEN:
• The cargo is marked as release eligible and added to the release eligible list
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record has active holds and no manual release authorization has been granted.
Trigger Criteria:
Context: A cargo record has active holds and no manual release authorization has been granted
Applied to: Mark Cargo as Not Release Eligible
Action: The release eligibility determination is made
Logic Flow:
IF A cargo record has active holds and no manual release authorization has been granted
AND The release eligibility determination is made
THEN:
• The cargo is marked as not release eligible and added to the hold list
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo records are being processed for a specific car id and waybill combination.
Trigger Criteria:
Context: Cargo records are being processed for a specific car ID and waybill combination
Applied to: All Cargo Records Processed?
Action: The system checks if all matching records have been evaluated
Logic Flow:
IF Cargo records are being processed for a specific car ID and waybill combination
AND The system checks if all matching records have been evaluated
THEN:
• If all records are processed, proceed to generate release verification summary; otherwise continue processing remaining records
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when all cargo records for a car id and waybill combination have been evaluated for release eligibility.
Trigger Criteria:
Context: All cargo records for a car ID and waybill combination have been evaluated for release eligibility
Applied to: Generate Release Verification Summary
Action: The system generates the verification summary
Logic Flow:
IF All cargo records for a car ID and waybill combination have been evaluated for release eligibility
AND The system generates the verification summary
THEN:
• A summary report is created showing which cargo records are release eligible and which are held, along with the reasons for hold status
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when release verification has been completed for all cargo records matching a car id and waybill.
Trigger Criteria:
Context: Release verification has been completed for all cargo records matching a car ID and waybill
Applied to: Update Release Eligibility Status for All Matching Cargo
Action: The system updates the release eligibility status
Logic Flow:
IF Release verification has been completed for all cargo records matching a car ID and waybill
AND The system updates the release eligibility status
THEN:
• All cargo records in the group have their release eligibility status updated based on the verification results
Business Justification: Dictates the expected operational logic and validation steps when x4 customs release segment is being processed.
Trigger Criteria:
Context: An X4 customs release segment is being processed
Applied to: Extract Disposition Code from X4 Segment
Action: The system needs to identify the disposition code
Logic Flow:
IF An X4 customs release segment is being processed
AND The system needs to identify the disposition code
THEN:
• The disposition code is extracted from the X4 segment and stored for lookup processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code has been extracted from the x4 segment. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: A disposition code has been extracted from the X4 segment
Applied to: Call GCCTBIO to Access DC Table
Action: The system needs to lookup disposition code details
Logic Flow:
IF A disposition code has been extracted from the X4 segment
AND The system needs to lookup disposition code details
THEN:
• The GCCTBIO table access routine is called to retrieve information from the DC table
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code has been extracted from the x4 segment.
Trigger Criteria:
Context: A disposition code has been extracted from the X4 segment
Applied to: Disposition Code Found in DC Table?
Action: The system searches for the disposition code in the DC table
Logic Flow:
IF A disposition code has been extracted from the X4 segment
AND The system searches for the disposition code in the DC table
THEN:
• The system determines if the disposition code exists and sets appropriate processing flags
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when disposition code lookup has been performed against the dc table.
Trigger Criteria:
Context: A disposition code lookup has been performed against the DC table
Applied to: Disposition Code Found in Table?
Action: The system checks if the disposition code exists in the table
Logic Flow:
IF A disposition code lookup has been performed against the DC table
AND The system checks if the disposition code exists in the table
THEN:
• If the code is found, processing continues with code details retrieval, otherwise an error status is set
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when disposition code lookup has been performed against the dc table.
Trigger Criteria:
Context: A disposition code lookup has been performed against the DC table
Applied to: Set Error Status - Code Not Found
Action: The disposition code is not found in the table
Logic Flow:
IF A disposition code lookup has been performed against the DC table
AND The disposition code is not found in the table
THEN:
• An error status is set to indicate the disposition code is invalid or not supported
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when valid disposition code has been found in the dc table.
Trigger Criteria:
Context: A valid disposition code has been found in the DC table
Applied to: Retrieve Disposition Code Details
Action: The system processes the disposition code record
Logic Flow:
IF A valid disposition code has been found in the DC table
AND The system processes the disposition code record
THEN:
• All disposition code details including description, counterpart code, quantity action flag, and processing instructions are retrieved and stored
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code record has been retrieved from the dc table.
Trigger Criteria:
Context: A disposition code record has been retrieved from the DC table
Applied to: Get Code Description
Action: The system extracts the code description
Logic Flow:
IF A disposition code record has been retrieved from the DC table
AND The system extracts the code description
THEN:
• The disposition code description is stored for use in processing and user messaging
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code record contains counterpart code information.
Trigger Criteria:
Context: A disposition code record contains counterpart code information
Applied to: Get Counterpart Code Information
Action: The system processes counterpart code relationships
Logic Flow:
IF A disposition code record contains counterpart code information
AND The system processes counterpart code relationships
THEN:
• Counterpart code information is retrieved to support removal of conflicting or superseded disposition codes
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code record contains quantity action information.
Trigger Criteria:
Context: A disposition code record contains quantity action information
Applied to: Get Quantity Action Flag
Action: The system evaluates quantity impact requirements
Logic Flow:
IF A disposition code record contains quantity action information
AND The system evaluates quantity impact requirements
THEN:
• The quantity action flag is retrieved to determine if release quantities should be increased, decreased, or remain unchanged
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code record contains processing instruction flags.
Trigger Criteria:
Context: A disposition code record contains processing instruction flags
Applied to: Get Processing Instructions
Action: The system needs to determine processing behavior
Logic Flow:
IF A disposition code record contains processing instruction flags
AND The system needs to determine processing behavior
THEN:
• Processing instructions are retrieved including hold/release flags, removal requirements, and status update methods
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when all disposition code details have been successfully retrieved from the dc table.
Trigger Criteria:
Context: All disposition code details have been successfully retrieved from the DC table
Applied to: Set Disposition Code Information in Working Storage
Action: The system prepares for disposition code processing
Logic Flow:
IF All disposition code details have been successfully retrieved from the DC table
AND The system prepares for disposition code processing
THEN:
• All disposition code information including description, counterpart codes, quantity actions, and processing flags are stored in working storage variables
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code information has been successfully retrieved and stored.
Trigger Criteria:
Context: Disposition code information has been successfully retrieved and stored
Applied to: Return Success Status
Action: The lookup process completes successfully
Logic Flow:
IF Disposition code information has been successfully retrieved and stored
AND The lookup process completes successfully
THEN:
• A success status is returned to indicate the disposition code is ready for processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code has not been found in the dc table.
Trigger Criteria:
Context: A disposition code has not been found in the DC table
Applied to: Log Disposition Code Not Found Error
Action: An error status has been set for the invalid code
Logic Flow:
IF A disposition code has not been found in the DC table
AND An error status has been set for the invalid code
THEN:
• The disposition code not found error is logged with relevant details for business review and system monitoring
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when x4 segment is available for processing.
Trigger Criteria:
Context: An X4 segment is available for processing
Applied to: Extract Disposition Code from X4 Segment
Action: The system needs to process disposition code information
Logic Flow:
IF An X4 segment is available for processing
AND The system needs to process disposition code information
THEN:
• The disposition code is extracted from the X4 segment and stored in working storage
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code needs to be validated and processed. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: A disposition code needs to be validated and processed
Applied to: Call GCCTBIO to Access DC Table
Action: The system calls GCCTBIO to access the DC table
Logic Flow:
IF A disposition code needs to be validated and processed
AND The system calls GCCTBIO to access the DC table
THEN:
• The DC table is accessed and made available for disposition code lookup
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code exists in the dc table.
Trigger Criteria:
Context: The disposition code exists in the DC table
Applied to: Retrieve Disposition Code Information
Action: The system processes the found disposition code record
Logic Flow:
IF The disposition code exists in the DC table
AND The system processes the found disposition code record
THEN:
• All disposition code information including counterpart codes, processing instructions, quantity actions, removal flags, and status information flags are extracted
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code information is available from the dc table.
Trigger Criteria:
Context: Disposition code information is available from the DC table
Applied to: Extract Counterpart Code
Action: The system processes the disposition code record
Logic Flow:
IF Disposition code information is available from the DC table
AND The system processes the disposition code record
THEN:
• The counterpart code is extracted and stored for subsequent processing operations
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code record is retrieved from the dc table.
Trigger Criteria:
Context: Disposition code record is retrieved from the DC table
Applied to: Extract Processing Instructions
Action: The system processes the disposition code information
Logic Flow:
IF Disposition code record is retrieved from the DC table
AND The system processes the disposition code information
THEN:
• Processing instructions are extracted and made available for disposition code handling logic
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code information is being processed.
Trigger Criteria:
Context: Disposition code information is being processed
Applied to: Extract Quantity Action Flag
Action: The system extracts quantity-related flags from the DC table record
Logic Flow:
IF Disposition code information is being processed
AND The system extracts quantity-related flags from the DC table record
THEN:
• The quantity action flag is extracted to determine whether release quantities will be added, subtracted, or remain unchanged
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code record is available from the dc table.
Trigger Criteria:
Context: Disposition code record is available from the DC table
Applied to: Extract Removal Flag
Action: The system processes removal-related information
Logic Flow:
IF Disposition code record is available from the DC table
AND The system processes removal-related information
THEN:
• The removal flag is extracted to determine whether existing disposition codes should be removed from cargo status
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when disposition code information is being extracted from the dc table.
Trigger Criteria:
Context: Disposition code information is being extracted from the DC table
Applied to: Extract Status Information Flag
Action: The system processes status-related flags
Logic Flow:
IF Disposition code information is being extracted from the DC table
AND The system processes status-related flags
THEN:
• The status information flag is extracted to determine whether the disposition code represents informational status or actionable processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when all disposition code information has been extracted from the dc table.
Trigger Criteria:
Context: All disposition code information has been extracted from the DC table
Applied to: Store DC Information in Working Storage
Action: The system needs to store the information for subsequent processing
Logic Flow:
IF All disposition code information has been extracted from the DC table
AND The system needs to store the information for subsequent processing
THEN:
• All DC information including counterpart codes, processing instructions, and flags are stored in working storage variables
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when disposition code has been successfully found in the dc table and all information extracted.
Trigger Criteria:
Context: Disposition code has been successfully found in the DC table and all information extracted
Applied to: Set Found Flag to True
Action: The system completes the disposition code lookup process
Logic Flow:
IF Disposition code has been successfully found in the DC table and all information extracted
AND The system completes the disposition code lookup process
THEN:
• The found flag is set to true to indicate successful disposition code processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code has been searched in the dc table.
Trigger Criteria:
Context: A disposition code has been searched in the DC table
Applied to: Log Disposition Code Not Found Error
Action: The disposition code is not found in the DC table
Logic Flow:
IF A disposition code has been searched in the DC table
AND The disposition code is not found in the DC table
THEN:
• An error is logged indicating the disposition code was not found and appropriate error handling is initiated
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code lookup has failed due to code not being found in dc table.
Trigger Criteria:
Context: Disposition code lookup has failed due to code not being found in DC table
Applied to: Set Found Flag to False
Action: The system needs to indicate lookup failure
Logic Flow:
IF Disposition code lookup has failed due to code not being found in DC table
AND The system needs to indicate lookup failure
THEN:
• The found flag is set to false to indicate unsuccessful disposition code processing
R-GCX016-cbl-00727 (+8)File: GCX016.cblBusiness Rule: Status Array Duplicate Detection
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when new disposition code needs to be added to the cargo status array.
Trigger Criteria:
Context: A new disposition code needs to be added to the cargo status array
Applied to: Start Status Array Duplicate Detection
Action: The system searches through the S09A array elements
Logic Flow:
IF A new disposition code needs to be added to the cargo status array
AND The system searches through the S09A array elements
THEN:
• The system initializes array search parameters and begins sequential element checking
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when array index position is being evaluated for processing.
Trigger Criteria:
Context: An array index position is being evaluated for processing
Applied to: Array Index <= Maximum Elements?
Action: The array index is compared against the maximum number of elements
Logic Flow:
IF An array index position is being evaluated for processing
AND The array index is compared against the maximum number of elements
THEN:
• Processing continues if index is within bounds, otherwise search terminates
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when specific array element is being examined.
Trigger Criteria:
Context: A specific array element is being examined
Applied to: Element Contains Data?
Action: The system checks if the element contains data
Logic Flow:
IF A specific array element is being examined
AND The system checks if the element contains data
THEN:
• Comparison proceeds if data exists, otherwise the system moves to the next element
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when new disposition code and an existing array element with data.
Trigger Criteria:
Context: A new disposition code and an existing array element with data
Applied to: Codes Match?
Action: The system compares the disposition codes
Logic Flow:
IF A new disposition code and an existing array element with data
AND The system compares the disposition codes
THEN:
• Entry number validation proceeds if codes match, otherwise the system moves to the next element
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition codes match between new entry and existing array element.
Trigger Criteria:
Context: Disposition codes match between new entry and existing array element
Applied to: Entry Numbers Match?
Action: The system compares entry numbers
Logic Flow:
IF Disposition codes match between new entry and existing array element
AND The system compares entry numbers
THEN:
• Quantity validation proceeds if entry numbers match, otherwise the system moves to the next element
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition codes and entry numbers match between new entry and existing array element.
Trigger Criteria:
Context: Disposition codes and entry numbers match between new entry and existing array element
Applied to: Quantities Match?
Action: The system compares quantities
Logic Flow:
IF Disposition codes and entry numbers match between new entry and existing array element
AND The system compares quantities
THEN:
• Duplicate is confirmed if quantities match, otherwise the system moves to the next element
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code, entry number, and quantity all match an existing array element.
Trigger Criteria:
Context: Disposition code, entry number, and quantity all match an existing array element
Applied to: Duplicate Found - Set Flag
Action: The system confirms a complete duplicate match
Logic Flow:
IF Disposition code, entry number, and quantity all match an existing array element
AND The system confirms a complete duplicate match
THEN:
• The duplicate found flag is set and search processing terminates
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when current array element does not match the new disposition code or contains no data.
Trigger Criteria:
Context: Current array element does not match the new disposition code or contains no data
Applied to: Increment Array Index
Action: The system needs to continue searching
Logic Flow:
IF Current array element does not match the new disposition code or contains no data
AND The system needs to continue searching
THEN:
• The array index is incremented to examine the next element
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when all array elements have been examined.
Trigger Criteria:
Context: All array elements have been examined
Applied to: No Duplicate Found
Action: No matching disposition code, entry number, and quantity combination is found
Logic Flow:
IF All array elements have been examined
AND No matching disposition code, entry number, and quantity combination is found
THEN:
• The system sets no duplicate found status and returns the search result
Business Justification: Establishes the required business protocol to be followed when new disposition code is received for processing.
Trigger Criteria:
Context: A new disposition code is received for processing
Applied to: Check if Code Has Counterpart
Action: The system checks the disposition code table for counterpart relationships
Logic Flow:
IF A new disposition code is received for processing
AND The system checks the disposition code table for counterpart relationships
THEN:
• The system identifies whether the code has a counterpart that needs to be removed
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when counterpart disposition code exists for the new code.
Trigger Criteria:
Context: A counterpart disposition code exists for the new code
Applied to: Search Status Array for Counterpart
Action: The system searches through the status array elements
Logic Flow:
IF A counterpart disposition code exists for the new code
AND The system searches through the status array elements
THEN:
• The system identifies if the counterpart code is present in the array
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when counterpart code is found in the status array.
Trigger Criteria:
Context: A counterpart code is found in the status array
Applied to: Match by Status Info
Action: The system compares status information fields between the counterpart and new code
Logic Flow:
IF A counterpart code is found in the status array
AND The system compares status information fields between the counterpart and new code
THEN:
• The system determines if the status information matches for removal eligibility
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when status information criteria are evaluated for the counterpart code.
Trigger Criteria:
Context: Status information criteria are evaluated for the counterpart code
Applied to: Match by Entry Number
Action: The system compares entry numbers between the counterpart and new code
Logic Flow:
IF Status information criteria are evaluated for the counterpart code
AND The system compares entry numbers between the counterpart and new code
THEN:
• The system determines if the entry numbers match for removal eligibility
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when entry number criteria are evaluated for the counterpart code.
Trigger Criteria:
Context: Entry number criteria are evaluated for the counterpart code
Applied to: Match by Quantity
Action: The system compares quantities between the counterpart and new code
Logic Flow:
IF Entry number criteria are evaluated for the counterpart code
AND The system compares quantities between the counterpart and new code
THEN:
• The system determines if the quantities match for removal eligibility
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when quantity criteria are evaluated for the counterpart code.
Trigger Criteria:
Context: Quantity criteria are evaluated for the counterpart code
Applied to: Match by Specific Code Pattern
Action: The system applies specific pattern matching rules for special codes like 4E disposition
Logic Flow:
IF Quantity criteria are evaluated for the counterpart code
AND The system applies specific pattern matching rules for special codes like 4E disposition
THEN:
• The system determines if the code patterns match for removal eligibility
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when all matching criteria are met for the counterpart code.
Trigger Criteria:
Context: All matching criteria are met for the counterpart code
Applied to: Remove Counterpart Code from Array
Action: The system removes the counterpart code from its position in the status array
Logic Flow:
IF All matching criteria are met for the counterpart code
AND The system removes the counterpart code from its position in the status array
THEN:
• The counterpart code is eliminated from the array and marked for compaction
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when counterpart codes have been removed from the status array.
Trigger Criteria:
Context: Counterpart codes have been removed from the status array
Applied to: Compact Remaining Array Elements
Action: The system compacts the array by moving remaining elements forward
Logic Flow:
IF Counterpart codes have been removed from the status array
AND The system compacts the array by moving remaining elements forward
THEN:
• All gaps in the array are eliminated and elements are contiguous
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when status array has been compacted after counterpart removal.
Trigger Criteria:
Context: The status array has been compacted after counterpart removal
Applied to: Update Array Element Count
Action: The system recalculates the number of active array elements
Logic Flow:
IF The status array has been compacted after counterpart removal
AND The system recalculates the number of active array elements
THEN:
• The array element count reflects the reduced number of status entries
R-GCX016-cbl-00745 (+13)File: GCX016.cblBusiness Rule: ARL Auto Release Processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code is received in the x4 segment.
Trigger Criteria:
Context: A disposition code is received in the X4 segment
Applied to: ARL Auto Release Request Received
Action: The disposition code equals 'ARL'
Logic Flow:
IF A disposition code is received in the X4 segment
AND The disposition code equals 'ARL'
THEN:
• The system initiates auto release processing workflow
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when arl disposition code is being processed.
Trigger Criteria:
Context: An ARL disposition code is being processed
Applied to: Skip Status Code Insertion
Action: The system reaches status code insertion logic
Logic Flow:
IF An ARL disposition code is being processed
AND The system reaches status code insertion logic
THEN:
• Status code insertion is skipped and existing status array is analyzed
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when arl processing requires status analysis.
Trigger Criteria:
Context: ARL processing requires status analysis
Applied to: Retrieve Current Status Array S09A
Action: The system needs current status information
Logic Flow:
IF ARL processing requires status analysis
AND The system needs current status information
THEN:
• Current S09A status array is retrieved from GCSUSS09 status segments
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when current status array s09a is available.
Trigger Criteria:
Context: Current status array S09A is available
Applied to: Analyze Existing Status Codes
Action: ARL processing analyzes existing status codes
Logic Flow:
IF Current status array S09A is available
AND ARL processing analyzes existing status codes
THEN:
• System evaluates hold conditions, release quantities, and cargo status flags
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when existing status codes have been analyzed.
Trigger Criteria:
Context: Existing status codes have been analyzed
Applied to: Release Conditions Met?
Action: The system evaluates release eligibility
Logic Flow:
IF Existing status codes have been analyzed
AND The system evaluates release eligibility
THEN:
• Release conditions are validated based on hold status, quantities, and regulatory requirements
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when release conditions are met for arl processing.
Trigger Criteria:
Context: Release conditions are met for ARL processing
Applied to: Set Auto Release Flag
Action: The system confirms cargo eligibility
Logic Flow:
IF Release conditions are met for ARL processing
AND The system confirms cargo eligibility
THEN:
• Auto release flag is set to enable release processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when auto release flag is set and cargo is eligible.
Trigger Criteria:
Context: Auto release flag is set and cargo is eligible
Applied to: Calculate Release Quantities
Action: The system processes release quantities
Logic Flow:
IF Auto release flag is set and cargo is eligible
AND The system processes release quantities
THEN:
• Release quantities are calculated based on total cargo quantities and existing releases
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when release quantities are calculated and auto release flag is set.
Trigger Criteria:
Context: Release quantities are calculated and auto release flag is set
Applied to: Update Cargo Status
Action: The system updates cargo status
Logic Flow:
IF Release quantities are calculated and auto release flag is set
AND The system updates cargo status
THEN:
• Cargo status is updated to reflect automatic release processing results
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo status has been updated for arl processing.
Trigger Criteria:
Context: Cargo status has been updated for ARL processing
Applied to: Manual Release Override?
Action: The system checks for manual release conditions
Logic Flow:
IF Cargo status has been updated for ARL processing
AND The system checks for manual release conditions
THEN:
• Manual release override flag is evaluated based on cargo status and processing requirements
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when manual release override conditions are detected.
Trigger Criteria:
Context: Manual release override conditions are detected
Applied to: Clear Destination Index
Action: The system processes the override
Logic Flow:
IF Manual release override conditions are detected
AND The system processes the override
THEN:
• Destination index is cleared to reflect manual release status
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when arl processing is complete with or without manual override.
Trigger Criteria:
Context: ARL processing is complete with or without manual override
Applied to: Generate Release Notification
Action: The system generates notifications
Logic Flow:
IF ARL processing is complete with or without manual override
AND The system generates notifications
THEN:
• Release notifications are created and routed to appropriate destinations
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when release notifications are generated and processing is complete.
Trigger Criteria:
Context: Release notifications are generated and processing is complete
Applied to: Update Cargo Record
Action: The system updates the cargo record
Logic Flow:
IF Release notifications are generated and processing is complete
AND The system updates the cargo record
THEN:
• Cargo record is updated in GCCC-CARGO-ROOT with new status and release information
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when arl disposition code is processed but release conditions are not met.
Trigger Criteria:
Context: ARL disposition code is processed but release conditions are not met
Applied to: Process Complete - No Status Change
Action: The system completes processing
Logic Flow:
IF ARL disposition code is processed but release conditions are not met
AND The system completes processing
THEN:
• Processing completes without status changes and logs the no-change result
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when arl processing is complete with or without status changes.
Trigger Criteria:
Context: ARL processing is complete with or without status changes
Applied to: Log ARL Processing
Action: The system logs the processing result
Logic Flow:
IF ARL processing is complete with or without status changes
AND The system logs the processing result
THEN:
• ARL processing completion is logged with appropriate status and outcome information
Business Justification: Governs the functional prerequisites and system routing when cargo record with mrl disposition code is being processed.
Trigger Criteria:
Context: A cargo record with MRL disposition code is being processed
Applied to: Is Cargo CPRS?
Action: The system evaluates the cargo type to determine if it is CPRS cargo
Logic Flow:
IF A cargo record with MRL disposition code is being processed
AND The system evaluates the cargo type to determine if it is CPRS cargo
THEN:
• The system identifies CPRS cargo and routes it to manual release processing or continues with standard processing for non-CPRS cargo
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record is identified as cprs cargo with mrl disposition code.
Trigger Criteria:
Context: A cargo record is identified as CPRS cargo with MRL disposition code
Applied to: Force Manual Release Flag
Action: The system processes the manual release request
Logic Flow:
IF A cargo record is identified as CPRS cargo with MRL disposition code
AND The system processes the manual release request
THEN:
• The system sets the manual release flag to force manual release processing workflow
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cprs cargo is being processed for manual release with mrl disposition code.
Trigger Criteria:
Context: CPRS cargo is being processed for manual release with MRL disposition code
Applied to: Clear Destination Index
Action: The manual release flag is activated
Logic Flow:
IF CPRS cargo is being processed for manual release with MRL disposition code
AND The manual release flag is activated
THEN:
• The system clears the destination index to remove destination routing information
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cprs cargo with cleared destination index is being manually released.
Trigger Criteria:
Context: CPRS cargo with cleared destination index is being manually released
Applied to: Process Canadian Manifest Coordination
Action: The system processes the manual release workflow
Logic Flow:
IF CPRS cargo with cleared destination index is being manually released
AND The system processes the manual release workflow
THEN:
• The system initiates Canadian manifest coordination processing to synchronize release information across border systems
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when canadian manifest coordination has been processed for manual release.
Trigger Criteria:
Context: Canadian manifest coordination has been processed for manual release
Applied to: Log Manual Release Action
Action: The system completes the coordination process
Logic Flow:
IF Canadian manifest coordination has been processed for manual release
AND The system completes the coordination process
THEN:
• The system logs the manual release action with relevant cargo and processing details for audit purposes
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when manual release action has been logged for cprs cargo.
Trigger Criteria:
Context: Manual release action has been logged for CPRS cargo
Applied to: Update Cargo Status to Released
Action: The system processes the status update
Logic Flow:
IF Manual release action has been logged for CPRS cargo
AND The system processes the status update
THEN:
• The system updates the cargo status to released state indicating successful manual release completion
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo status has been updated to released for manual release.
Trigger Criteria:
Context: Cargo status has been updated to released for manual release
Applied to: Generate Release Notification
Action: The system completes the status update process
Logic Flow:
IF Cargo status has been updated to released for manual release
AND The system completes the status update process
THEN:
• The system generates release notification messages to inform relevant parties of the manual release completion
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when release notification has been generated for manual release.
Trigger Criteria:
Context: Release notification has been generated for manual release
Applied to: Skip Standard Release Processing
Action: The system evaluates next processing steps
Logic Flow:
IF Release notification has been generated for manual release
AND The system evaluates next processing steps
THEN:
• The system skips standard release processing workflow since manual release has been completed
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record with mrl disposition code is identified as non-cprs cargo.
Trigger Criteria:
Context: A cargo record with MRL disposition code is identified as non-CPRS cargo
Applied to: Continue Standard Processing
Action: The system evaluates the processing workflow
Logic Flow:
IF A cargo record with MRL disposition code is identified as non-CPRS cargo
AND The system evaluates the processing workflow
THEN:
• The system continues with standard processing workflow without manual release procedures
R-GCX016-cbl-00768 (+15)File: GCX016.cblBusiness Rule: Hold Code Processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code is received from x4 segment processing.
Trigger Criteria:
Context: A disposition code is received from X4 segment processing
Applied to: Is Disposition Code a Hold Code?
Action: The system evaluates the disposition code type
Logic Flow:
IF A disposition code is received from X4 segment processing
AND The system evaluates the disposition code type
THEN:
• The system determines if the code represents a hold action and proceeds to hold processing or skips to completion
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when hold disposition code needs validation.
Trigger Criteria:
Context: A hold disposition code needs validation
Applied to: Validate Hold Code in DC Table
Action: The system looks up the code in the DC table
Logic Flow:
IF A hold disposition code needs validation
AND The system looks up the code in the DC table
THEN:
• The system retrieves the code details and sets validation status
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code has been looked up in the dc table.
Trigger Criteria:
Context: A disposition code has been looked up in the DC table
Applied to: Hold Code Valid?
Action: The system checks if the lookup was successful
Logic Flow:
IF A disposition code has been looked up in the DC table
AND The system checks if the lookup was successful
THEN:
• The system either proceeds with hold processing for valid codes or generates an error for invalid codes
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when valid hold disposition code is being processed.
Trigger Criteria:
Context: A valid hold disposition code is being processed
Applied to: Determine Hold Location
Action: The system evaluates the hold location requirements
Logic Flow:
IF A valid hold disposition code is being processed
AND The system evaluates the hold location requirements
THEN:
• The system determines whether the hold applies to border location or destination location
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when hold location needs to be determined for cargo.
Trigger Criteria:
Context: A hold location needs to be determined for cargo
Applied to: Border Hold or Destination Hold?
Action: The system evaluates the cargo routing and disposition code requirements
Logic Flow:
IF A hold location needs to be determined for cargo
AND The system evaluates the cargo routing and disposition code requirements
THEN:
• The system classifies the hold as either border hold or destination hold and sets appropriate location information
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when hold is classified as a border hold.
Trigger Criteria:
Context: A hold is classified as a border hold
Applied to: Set Border Hold Location Info
Action: The system sets up the hold location information
Logic Flow:
IF A hold is classified as a border hold
AND The system sets up the hold location information
THEN:
• The system configures border-specific location details and hold parameters
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when hold is classified as a destination hold.
Trigger Criteria:
Context: A hold is classified as a destination hold
Applied to: Set Destination Hold Location Info
Action: The system sets up the hold location information
Logic Flow:
IF A hold is classified as a destination hold
AND The system sets up the hold location information
THEN:
• The system configures destination-specific location details and hold parameters
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when hold code is ready to be inserted into the status array.
Trigger Criteria:
Context: A hold code is ready to be inserted into the status array
Applied to: Check Status Array for Duplicates
Action: The system searches the existing status array for the same hold code
Logic Flow:
IF A hold code is ready to be inserted into the status array
AND The system searches the existing status array for the same hold code
THEN:
• The system identifies whether the hold code already exists in the array
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when system has checked for duplicate hold codes in the status array.
Trigger Criteria:
Context: The system has checked for duplicate hold codes in the status array
Applied to: Hold Code Already Exists?
Action: A duplicate hold code is found
Logic Flow:
IF The system has checked for duplicate hold codes in the status array
AND A duplicate hold code is found
THEN:
• The system skips the duplicate entry to avoid redundant hold codes
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when hold code already exists in the status array.
Trigger Criteria:
Context: A hold code already exists in the status array
Applied to: Skip Duplicate Entry
Action: The system attempts to insert the same hold code
Logic Flow:
IF A hold code already exists in the status array
AND The system attempts to insert the same hold code
THEN:
• The system skips the insertion and proceeds to completion without adding the duplicate
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when valid hold code that does not exist in the status array.
Trigger Criteria:
Context: A valid hold code that does not exist in the status array
Applied to: Insert Hold Code into S09A Array
Action: The system inserts the hold code into the S09A array
Logic Flow:
IF A valid hold code that does not exist in the status array
AND The system inserts the hold code into the S09A array
THEN:
• The system adds the hold code with proper sequence number and status information
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when hold code has been successfully inserted into the status array.
Trigger Criteria:
Context: A hold code has been successfully inserted into the status array
Applied to: Set Hold Status Flag
Action: The system updates the cargo status flags
Logic Flow:
IF A hold code has been successfully inserted into the status array
AND The system updates the cargo status flags
THEN:
• The system sets the hold status flag to indicate the cargo is held
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when hold code has been inserted with status flag set.
Trigger Criteria:
Context: A hold code has been inserted with status flag set
Applied to: Set Location Information
Action: The system updates location information
Logic Flow:
IF A hold code has been inserted with status flag set
AND The system updates location information
THEN:
• The system sets the appropriate border or destination location details for the hold
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when hold code has been successfully added to the status array.
Trigger Criteria:
Context: A hold code has been successfully added to the status array
Applied to: Update Array Element Count
Action: The system updates the array management counters
Logic Flow:
IF A hold code has been successfully added to the status array
AND The system updates the array management counters
THEN:
• The system increments the element count to maintain accurate array size tracking
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when hold code has been successfully processed and added to the status array.
Trigger Criteria:
Context: A hold code has been successfully processed and added to the status array
Applied to: Log Hold Code Processing
Action: The system performs logging operations
Logic Flow:
IF A hold code has been successfully processed and added to the status array
AND The system performs logging operations
THEN:
• The system creates appropriate log entries for the hold code processing activity
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code lookup in the dc table fails.
Trigger Criteria:
Context: A disposition code lookup in the DC table fails
Applied to: Invalid Hold Code Error
Action: The system determines the code is invalid
Logic Flow:
IF A disposition code lookup in the DC table fails
AND The system determines the code is invalid
THEN:
• The system generates an appropriate error message and proceeds to completion without processing the hold
Business Justification: Ensures correct system behavior and process compliance when release disposition code is received in x4 segment.
Trigger Criteria:
Context: A release disposition code is received in X4 segment
Applied to: Validate Disposition Code in DC Table
Action: The system looks up the disposition code in the DC table
Logic Flow:
IF A release disposition code is received in X4 segment
AND The system looks up the disposition code in the DC table
THEN:
• If the code exists in DC table, processing continues; if not found, an error is generated
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when valid release disposition code needs to be processed.
Trigger Criteria:
Context: A valid release disposition code needs to be processed
Applied to: Check Status Array for Duplicates
Action: The system searches the S09A status array for existing entries with the same disposition code
Logic Flow:
IF A valid release disposition code needs to be processed
AND The system searches the S09A status array for existing entries with the same disposition code
THEN:
• If the code already exists, skip processing to prevent duplicates; if not found, continue with processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when validated release disposition code is being processed.
Trigger Criteria:
Context: A validated release disposition code is being processed
Applied to: Determine Release Location
Action: The system evaluates the disposition code properties to determine location type
Logic Flow:
IF A validated release disposition code is being processed
AND The system evaluates the disposition code properties to determine location type
THEN:
• The system sets either border release location or destination release location based on code characteristics
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when release disposition code is determined to be for border location.
Trigger Criteria:
Context: A release disposition code is determined to be for border location
Applied to: Set Border Release Location
Action: The system processes the border release
Logic Flow:
IF A release disposition code is determined to be for border location
AND The system processes the border release
THEN:
• The system sets the location information to border-specific values
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when release disposition code is determined to be for destination location.
Trigger Criteria:
Context: A release disposition code is determined to be for destination location
Applied to: Set Destination Release Location
Action: The system processes the destination release
Logic Flow:
IF A release disposition code is determined to be for destination location
AND The system processes the destination release
THEN:
• The system sets the location information to destination-specific values
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when valid release disposition code has been validated and location determined.
Trigger Criteria:
Context: A valid release disposition code has been validated and location determined
Applied to: Create Status Array Entry
Action: The system creates a new status array entry
Logic Flow:
IF A valid release disposition code has been validated and location determined
AND The system creates a new status array entry
THEN:
• A new entry is created in the S09A status array with the disposition code information
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when status array entry is being created for a release disposition code.
Trigger Criteria:
Context: A status array entry is being created for a release disposition code
Applied to: Set Released Flag = 'Y'
Action: The system sets the release status flag
Logic Flow:
IF A status array entry is being created for a release disposition code
AND The system sets the release status flag
THEN:
• The released flag is set to 'Y' to indicate active release status
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when release status entry is being populated.
Trigger Criteria:
Context: A release status entry is being populated
Applied to: Set Entry Number from X4-04
Action: The system processes the X4-04 field containing the entry number
Logic Flow:
IF A release status entry is being populated
AND The system processes the X4-04 field containing the entry number
THEN:
• The entry number from X4-04 is assigned to the status array entry
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when release status entry is being populated with quantity information.
Trigger Criteria:
Context: A release status entry is being populated with quantity information
Applied to: Set Quantity from X4-05
Action: The system processes the X4-05 field containing the quantity
Logic Flow:
IF A release status entry is being populated with quantity information
AND The system processes the X4-05 field containing the quantity
THEN:
• The quantity from X4-05 is assigned to the status array entry
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when complete status entry has been created with all required information.
Trigger Criteria:
Context: A complete status entry has been created with all required information
Applied to: Insert Entry into S09A Status Array
Action: The system inserts the entry into the S09A status array
Logic Flow:
IF A complete status entry has been created with all required information
AND The system inserts the entry into the S09A status array
THEN:
• The status entry is added to the S09A array for cargo status tracking
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when status entry has been successfully inserted into the s09a array.
Trigger Criteria:
Context: A status entry has been successfully inserted into the S09A array
Applied to: Update Array Element Count
Action: The system updates the array management counters
Logic Flow:
IF A status entry has been successfully inserted into the S09A array
AND The system updates the array management counters
THEN:
• The element count for the S09A status array is incremented by one
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code is not found in the dc table.
Trigger Criteria:
Context: A disposition code is not found in the DC table
Applied to: Generate Error Message
Action: The system processes the validation failure
Logic Flow:
IF A disposition code is not found in the DC table
AND The system processes the validation failure
THEN:
• An error message is generated indicating the invalid disposition code
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when error message has been generated for invalid disposition code.
Trigger Criteria:
Context: An error message has been generated for invalid disposition code
Applied to: Route Error to Merlin Users
Action: The system routes the error message
Logic Flow:
IF An error message has been generated for invalid disposition code
AND The system routes the error message
THEN:
• The error message is sent to designated Merlin users for appropriate action
R-GCX016-cbl-00797 (+4)File: GCX016.cblBusiness Rule: Status Info Processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code is identified as status information type and the s09a status array contains existing status entries.
Trigger Criteria:
Context: A disposition code is identified as status information type AND the S09A status array contains existing status entries
Applied to: Check for Duplicate in Status Array
Action: The system checks if the same disposition code already exists in the status array
Logic Flow:
IF A disposition code is identified as status information type AND the S09A status array contains existing status entries
AND The system checks if the same disposition code already exists in the status array
THEN:
• If duplicate found, skip processing to prevent duplicate entry, otherwise proceed with adding the status code
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when disposition code is validated as status information type and no duplicate exists in the status array.
Trigger Criteria:
Context: A disposition code is validated as status information type AND no duplicate exists in the status array
Applied to: Add Informational Status Code
Action: The system processes the informational status code
Logic Flow:
IF A disposition code is validated as status information type AND no duplicate exists in the status array
AND The system processes the informational status code
THEN:
• Add the disposition code to the next available position in the S09A status array
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code is being added as status information.
Trigger Criteria:
Context: A disposition code is being added as status information
Applied to: Set Status Info Flag
Action: The system updates the status array element
Logic Flow:
IF A disposition code is being added as status information
AND The system updates the status array element
THEN:
• Set the status information flag to indicate this is informational only and not an actionable status
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when status code is marked as informational only.
Trigger Criteria:
Context: A status code is marked as informational only
Applied to: Skip Quantity Processing
Action: The system evaluates whether quantity processing is required
Logic Flow:
IF A status code is marked as informational only
AND The system evaluates whether quantity processing is required
THEN:
• Skip all quantity-related processing including release quantity calculations and quantity impact assessments
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when informational status code has been successfully added to the status array.
Trigger Criteria:
Context: An informational status code has been successfully added to the status array
Applied to: Log Status Information
Action: The system completes the status information processing
Logic Flow:
IF An informational status code has been successfully added to the status array
AND The system completes the status information processing
THEN:
• Log the status change with disposition code details and timestamp for audit purposes
R-GCX016-cbl-00802 (+12)File: GCX016.cblBusiness Rule: Bond Processing for Proceed Codes
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when non-bonded traffic cargo with proceed disposition code.
Trigger Criteria:
Context: Non-bonded traffic cargo with proceed disposition code
Applied to: Broker Bond Information Available?
Action: System checks for broker bond information in K1 remarks segment
Logic Flow:
IF Non-bonded traffic cargo with proceed disposition code
AND System checks for broker bond information in K1 remarks segment
THEN:
• System identifies if bond control number is available from broker
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when broker bond information is available in k1 segment.
Trigger Criteria:
Context: Broker bond information is available in K1 segment
Applied to: Retrieve Bond Information from Broker
Action: System processes K1 remarks containing bond details
Logic Flow:
IF Broker bond information is available in K1 segment
AND System processes K1 remarks containing bond details
THEN:
• System extracts bond control number and broker information for cargo processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when bond control number extracted from broker information.
Trigger Criteria:
Context: Bond control number extracted from broker information
Applied to: Validate Bond Control Number
Action: System validates bond number format and checks against bond database
Logic Flow:
IF Bond control number extracted from broker information
AND System validates bond number format and checks against bond database
THEN:
• System determines if bond number is valid and active
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when valid bond control number and non-bonded cargo record.
Trigger Criteria:
Context: Valid bond control number and non-bonded cargo record
Applied to: Apply Bond to Non-bonded Traffic
Action: System processes bond assignment for proceed code
Logic Flow:
IF Valid bond control number and non-bonded cargo record
AND System processes bond assignment for proceed code
THEN:
• System updates cargo record with bond control number and changes status from non-bonded to bonded
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo with valid bond assignment.
Trigger Criteria:
Context: Cargo with valid bond assignment
Applied to: Set Proceed Status with Bond
Action: System processes proceed disposition code with bond
Logic Flow:
IF Cargo with valid bond assignment
AND System processes proceed disposition code with bond
THEN:
• System sets cargo status to proceed and includes bond control number in status record
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo with proceed status and valid bond.
Trigger Criteria:
Context: Cargo with proceed status and valid bond
Applied to: Update Border Arrival Date
Action: System processes border arrival information
Logic Flow:
IF Cargo with proceed status and valid bond
AND System processes border arrival information
THEN:
• System updates cargo record with current border arrival date and time
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo previously marked as non-bonded with new bond assignment.
Trigger Criteria:
Context: Cargo previously marked as non-bonded with new bond assignment
Applied to: Clear Previous Non-bonded Status
Action: System updates cargo status with bond information
Logic Flow:
IF Cargo previously marked as non-bonded with new bond assignment
AND System updates cargo status with bond information
THEN:
• System clears all non-bonded status flags and updates status array
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo with validated bond information and updated status.
Trigger Criteria:
Context: Cargo with validated bond information and updated status
Applied to: Update Cargo Record with Bond Info
Action: System commits cargo record changes
Logic Flow:
IF Cargo with validated bond information and updated status
AND System commits cargo record changes
THEN:
• System updates cargo database record with bond control number, proceed status, and border arrival date
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo successfully updated with bond and proceed status.
Trigger Criteria:
Context: Cargo successfully updated with bond and proceed status
Applied to: Generate Proceed Notification
Action: System generates status notification
Logic Flow:
IF Cargo successfully updated with bond and proceed status
AND System generates status notification
THEN:
• System creates Merlin message with proceed status, bond information, and cargo details for broker notification
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when completed bond assignment to cargo.
Trigger Criteria:
Context: Completed bond assignment to cargo
Applied to: Log Bond Assignment Transaction
Action: System logs transaction details
Logic Flow:
IF Completed bond assignment to cargo
AND System logs transaction details
THEN:
• System creates audit log entry with cargo CCN, bond number, broker information, and timestamp
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when non-bonded cargo with proceed code and invalid or missing bond information.
Trigger Criteria:
Context: Non-bonded cargo with proceed code and invalid or missing bond information
Applied to: Reject Proceed Code
Action: System validates bond information and finds it invalid
Logic Flow:
IF Non-bonded cargo with proceed code and invalid or missing bond information
AND System validates bond information and finds it invalid
THEN:
• System rejects proceed code processing and maintains current cargo status
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when failed bond validation or missing bond information for proceed code.
Trigger Criteria:
Context: Failed bond validation or missing bond information for proceed code
Applied to: Generate Error Message
Action: System generates error notification
Logic Flow:
IF Failed bond validation or missing bond information for proceed code
AND System generates error notification
THEN:
• System creates error message indicating bond processing failure with cargo details and reason code
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when non-bonded cargo with failed bond processing.
Trigger Criteria:
Context: Non-bonded cargo with failed bond processing
Applied to: Maintain Non-bonded Status
Action: System maintains current status
Logic Flow:
IF Non-bonded cargo with failed bond processing
AND System maintains current status
THEN:
• System keeps cargo in non-bonded status and does not apply proceed disposition code
R-GCX016-cbl-00815 (+2)File: GCX016.cblBusiness Rule: Broker vs QP Bond Processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record with disposition codes '1j', '69', or '55' is being processed.
Trigger Criteria:
Context: A cargo record with disposition codes '1J', '69', or '55' is being processed
Applied to: Bond Processing Required
Action: The system evaluates the disposition code for in-bond requirements
Logic Flow:
IF A cargo record with disposition codes '1J', '69', or '55' is being processed
AND The system evaluates the disposition code for in-bond requirements
THEN:
• The system sets master in-bond flag and processes bond number information
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record is being processed with disposition code 95.
Trigger Criteria:
Context: A cargo record is being processed with disposition code 95
Applied to: Clear Bond Information if DC 95
Action: The system processes the disposition code
Logic Flow:
IF A cargo record is being processed with disposition code 95
AND The system processes the disposition code
THEN:
• The system clears existing bond control numbers and processes as proceed status
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when entry number is provided in the x4 segment.
Trigger Criteria:
Context: An entry number is provided in the X4 segment
Applied to: Process Broker Entry Numbers
Action: The entry number starts with 'V' prefix
Logic Flow:
IF An entry number is provided in the X4 segment
AND The entry number starts with 'V' prefix
THEN:
• The system places the entry number in the entry number field, otherwise places it in the in-bond control number field
R-GCX016-cbl-00818File: GCX016.cblBusiness Rule: Tax Number Processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record with disposition code 95 and entry type in (61, 62, 63, 69) and cargo type is cprs.
Trigger Criteria:
Context: A cargo record with disposition code 95 and entry type in (61, 62, 63, 69) and cargo type is CPRS
Applied to: Tax Number Processing - Handle CPRS tax numbers for Canadian Pacific entities
Action: The system processes the X4 segment for in-bond processing
Logic Flow:
IF A cargo record with disposition code 95 and entry type in (61, 62, 63, 69) and cargo type is CPRS
AND The system processes the X4 segment for in-bond processing
THEN:
• The system should lookup CPRS tax number for broker identification and prepare appropriate broker messages
R-GCX016-cbl-00819 (+8)File: GCX016.cblBusiness Rule: Port Mapping
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record is being processed for port mapping.
Trigger Criteria:
Context: A cargo record is being processed for port mapping
Applied to: Port Code Available?
Action: The system evaluates the bonded-to port code field
Logic Flow:
IF A cargo record is being processed for port mapping
AND The system evaluates the bonded-to port code field
THEN:
• The system determines if a port code is present and proceeds with mapping or completes the process
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record contains a bonded-to port code.
Trigger Criteria:
Context: A cargo record contains a bonded-to port code
Applied to: Extract Bonded-To Port Code
Action: The port mapping process requires the port code for lookup
Logic Flow:
IF A cargo record contains a bonded-to port code
AND The port mapping process requires the port code for lookup
THEN:
• The system extracts the bonded-to port code from the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when bonded-to port code has been extracted from the cargo record. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: A bonded-to port code has been extracted from the cargo record
Applied to: Call GCCTBIO for DS Table Lookup
Action: The system needs to retrieve the corresponding port name
Logic Flow:
IF A bonded-to port code has been extracted from the cargo record
AND The system needs to retrieve the corresponding port name
THEN:
• The system calls GCCTBIO to lookup the port information in the DS table
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when ds table lookup has been performed for a port code.
Trigger Criteria:
Context: A DS table lookup has been performed for a port code
Applied to: DS Table Record Found?
Action: The system evaluates the lookup results
Logic Flow:
IF A DS table lookup has been performed for a port code
AND The system evaluates the lookup results
THEN:
• The system determines if a matching DS table record was found and proceeds with port name retrieval or uses default handling
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when matching ds table record has been found for the port code.
Trigger Criteria:
Context: A matching DS table record has been found for the port code
Applied to: Retrieve Port Name from DS Table
Action: The system needs to obtain the port name
Logic Flow:
IF A matching DS table record has been found for the port code
AND The system needs to obtain the port name
THEN:
• The system retrieves the port name from the DS table record
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when port name has been retrieved from the ds table.
Trigger Criteria:
Context: A port name has been retrieved from the DS table
Applied to: Map Port Code to Port Name
Action: The system needs to establish the port code to port name relationship
Logic Flow:
IF A port name has been retrieved from the DS table
AND The system needs to establish the port code to port name relationship
THEN:
• The system maps the port code to the retrieved port name
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when ds table lookup has failed to find a matching record for the port code.
Trigger Criteria:
Context: A DS table lookup has failed to find a matching record for the port code
Applied to: Use Default Port Name
Action: The system needs to provide a port name for the cargo record
Logic Flow:
IF A DS table lookup has failed to find a matching record for the port code
AND The system needs to provide a port name for the cargo record
THEN:
• The system uses a default port name
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when port code lookup has failed in the ds table.
Trigger Criteria:
Context: A port code lookup has failed in the DS table
Applied to: Log Port Code Not Found
Action: The system needs to record the lookup failure
Logic Flow:
IF A port code lookup has failed in the DS table
AND The system needs to record the lookup failure
THEN:
• The system logs that the port code was not found
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when port mapping has been completed with either retrieved or default port name.
Trigger Criteria:
Context: Port mapping has been completed with either retrieved or default port name
Applied to: Update Cargo Record with Port Information
Action: The cargo record needs to be updated with port information
Logic Flow:
IF Port mapping has been completed with either retrieved or default port name
AND The cargo record needs to be updated with port information
THEN:
• The system updates the cargo record with the port code and corresponding port name
R-GCX016-cbl-00828 (+19)File: GCX016.cblBusiness Rule: Arrival Status Processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record exists with pod disposition code in the message.
Trigger Criteria:
Context: A cargo record exists with POD disposition code in the message
Applied to: POD - Proof of Delivery Code
Action: The system processes the POD disposition code
Logic Flow:
IF A cargo record exists with POD disposition code in the message
AND The system processes the POD disposition code
THEN:
• The system sets arrival status and updates arrival date based on cargo location (border or destination)
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record exists with aad disposition code in the message.
Trigger Criteria:
Context: A cargo record exists with AAD disposition code in the message
Applied to: AAD - Arrival at Destination Code
Action: The system processes the AAD disposition code
Logic Flow:
IF A cargo record exists with AAD disposition code in the message
AND The system processes the AAD disposition code
THEN:
• The system sets destination arrival status and updates destination arrival date
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record with arrival disposition code is being processed.
Trigger Criteria:
Context: A cargo record with arrival disposition code is being processed
Applied to: Cargo Location Check
Action: The system checks the cargo's current location status
Logic Flow:
IF A cargo record with arrival disposition code is being processed
AND The system checks the cargo's current location status
THEN:
• The system routes to either border location processing or destination location processing based on cargo location
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo is determined to be at border location with arrival disposition code.
Trigger Criteria:
Context: Cargo is determined to be at border location with arrival disposition code
Applied to: Border Location Processing
Action: The system processes border arrival
Logic Flow:
IF Cargo is determined to be at border location with arrival disposition code
AND The system processes border arrival
THEN:
• The system sets border arrival flag and updates border arrival date
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo is determined to be at destination location with arrival disposition code.
Trigger Criteria:
Context: Cargo is determined to be at destination location with arrival disposition code
Applied to: Destination Location Processing
Action: The system processes destination arrival
Logic Flow:
IF Cargo is determined to be at destination location with arrival disposition code
AND The system processes destination arrival
THEN:
• The system sets destination arrival flag and updates destination arrival date
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo is being processed for border arrival.
Trigger Criteria:
Context: Cargo is being processed for border arrival
Applied to: Set Border Arrival Flag
Action: The system updates cargo status for border arrival
Logic Flow:
IF Cargo is being processed for border arrival
AND The system updates cargo status for border arrival
THEN:
• The system sets the border arrival flag to true
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo is being processed for destination arrival.
Trigger Criteria:
Context: Cargo is being processed for destination arrival
Applied to: Set Destination Arrival Flag
Action: The system updates cargo status for destination arrival
Logic Flow:
IF Cargo is being processed for destination arrival
AND The system updates cargo status for destination arrival
THEN:
• The system sets the destination arrival flag to true
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo has border arrival flag set and current system date/time is available.
Trigger Criteria:
Context: Cargo has border arrival flag set and current system date/time is available
Applied to: Update Border Arrival Date
Action: The system processes border arrival date update
Logic Flow:
IF Cargo has border arrival flag set and current system date/time is available
AND The system processes border arrival date update
THEN:
• The system updates the border arrival date field with current date and time
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo has destination arrival flag set and current system date/time is available.
Trigger Criteria:
Context: Cargo has destination arrival flag set and current system date/time is available
Applied to: Update Destination Arrival Date
Action: The system processes destination arrival date update
Logic Flow:
IF Cargo has destination arrival flag set and current system date/time is available
AND The system processes destination arrival date update
THEN:
• The system updates the destination arrival date field with current date and time
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo arrival processing is in progress.
Trigger Criteria:
Context: Cargo arrival processing is in progress
Applied to: Export Manifest Check
Action: The system checks the cargo's manifest type
Logic Flow:
IF Cargo arrival processing is in progress
AND The system checks the cargo's manifest type
THEN:
• The system determines if cargo is export or import based on manifest type
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo is determined to be on export manifest.
Trigger Criteria:
Context: Cargo is determined to be on export manifest
Applied to: Set Export Arrival Status
Action: The system processes arrival status for export cargo
Logic Flow:
IF Cargo is determined to be on export manifest
AND The system processes arrival status for export cargo
THEN:
• The system sets export arrival status in cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo is determined to be on import manifest.
Trigger Criteria:
Context: Cargo is determined to be on import manifest
Applied to: Set Import Arrival Status
Action: The system processes arrival status for import cargo
Logic Flow:
IF Cargo is determined to be on import manifest
AND The system processes arrival status for import cargo
THEN:
• The system sets import arrival status in cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo has arrival status set and may have previous hold status.
Trigger Criteria:
Context: Cargo has arrival status set and may have previous hold status
Applied to: Clear Previous Hold Status
Action: The system processes arrival status update
Logic Flow:
IF Cargo has arrival status set and may have previous hold status
AND The system processes arrival status update
THEN:
• The system clears any existing hold status flags and codes
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo arrival processing is complete with arrival flags and dates set.
Trigger Criteria:
Context: Cargo arrival processing is complete with arrival flags and dates set
Applied to: Update Cargo Status Array
Action: The system updates the cargo status array
Logic Flow:
IF Cargo arrival processing is complete with arrival flags and dates set
AND The system updates the cargo status array
THEN:
• The system adds arrival status codes and information to the cargo status array
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo arrival processing is complete.
Trigger Criteria:
Context: Cargo arrival processing is complete
Applied to: Train Level Processing
Action: The system checks if train-level processing is required
Logic Flow:
IF Cargo arrival processing is complete
AND The system checks if train-level processing is required
THEN:
• The system either proceeds to train arrival status update or skips to cargo record update
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when train-level processing is required for arrival.
Trigger Criteria:
Context: Train-level processing is required for arrival
Applied to: Update Train Arrival Status
Action: The system processes train arrival status
Logic Flow:
IF Train-level processing is required for arrival
AND The system processes train arrival status
THEN:
• The system updates the train record with arrival status and date
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when train arrival status has been updated.
Trigger Criteria:
Context: Train arrival status has been updated
Applied to: Send Train Arrival Notification
Action: The system processes train arrival notification
Logic Flow:
IF Train arrival status has been updated
AND The system processes train arrival notification
THEN:
• The system sends arrival notification message to appropriate recipients
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when all arrival processing is complete including status array updates.
Trigger Criteria:
Context: All arrival processing is complete including status array updates
Applied to: Update Cargo Record in Database
Action: The system updates the cargo record in database
Logic Flow:
IF All arrival processing is complete including status array updates
AND The system updates the cargo record in database
THEN:
• The system saves all arrival flags, dates, and status changes to the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record has been updated in database with arrival information.
Trigger Criteria:
Context: Cargo record has been updated in database with arrival information
Applied to: Generate Arrival Message
Action: The system generates arrival message
Logic Flow:
IF Cargo record has been updated in database with arrival information
AND The system generates arrival message
THEN:
• The system creates and formats arrival message with cargo and arrival details
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when arrival message has been generated and all processing is complete.
Trigger Criteria:
Context: Arrival message has been generated and all processing is complete
Applied to: Log Arrival Processing
Action: The system logs arrival processing
Logic Flow:
IF Arrival message has been generated and all processing is complete
AND The system logs arrival processing
THEN:
• The system creates audit log entry with arrival processing details and timestamp
R-GCX016-cbl-00848 (+15)File: GCX016.cblBusiness Rule: Export Status Processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record exists in the system with valid status information.
Trigger Criteria:
Context: A cargo record exists in the system with valid status information
Applied to: Export Status Processing Triggered
Action: Export status processing is triggered for the cargo
Logic Flow:
IF A cargo record exists in the system with valid status information
AND Export status processing is triggered for the cargo
THEN:
• The system begins export status evaluation workflow
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when export status processing has been initiated for a cargo record.
Trigger Criteria:
Context: Export status processing has been initiated for a cargo record
Applied to: Cargo Status Analysis Complete?
Action: The system checks if cargo status analysis is complete
Logic Flow:
IF Export status processing has been initiated for a cargo record
AND The system checks if cargo status analysis is complete
THEN:
• Processing continues if analysis is complete, otherwise processing stops with error
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo status analysis is confirmed complete.
Trigger Criteria:
Context: Cargo status analysis is confirmed complete
Applied to: Check Current Cargo Status
Action: The system checks current cargo status from GCSUSS09 status segments
Logic Flow:
IF Cargo status analysis is confirmed complete
AND The system checks current cargo status from GCSUSS09 status segments
THEN:
• Current cargo status information is retrieved and made available for export evaluation
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when current cargo status has been retrieved from status segments.
Trigger Criteria:
Context: Current cargo status has been retrieved from status segments
Applied to: Is Cargo Ready for Export?
Action: The system evaluates cargo readiness for export based on status conditions
Logic Flow:
IF Current cargo status has been retrieved from status segments
AND The system evaluates cargo readiness for export based on status conditions
THEN:
• Export processing continues if cargo is ready, otherwise export conditions not met error is generated
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo has been determined ready for export.
Trigger Criteria:
Context: Cargo has been determined ready for export
Applied to: Set Export Status Flag
Action: The system sets export status flag for the cargo
Logic Flow:
IF Cargo has been determined ready for export
AND The system sets export status flag for the cargo
THEN:
• Export status flag is activated and cargo is marked for export processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when export status flag has been set for cargo.
Trigger Criteria:
Context: Export status flag has been set for cargo
Applied to: Clear Destination Index RT076
Action: The system clears destination index RT076
Logic Flow:
IF Export status flag has been set for cargo
AND The system clears destination index RT076
THEN:
• Destination index is cleared and cargo is no longer tied to specific destination
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when export status flag is set and destination index is cleared.
Trigger Criteria:
Context: Export status flag is set and destination index is cleared
Applied to: Update Cargo Record Status
Action: The system updates cargo record status in GCCC-CARGO-ROOT
Logic Flow:
IF Export status flag is set and destination index is cleared
AND The system updates cargo record status in GCCC-CARGO-ROOT
THEN:
• Cargo record reflects updated export status and cleared destination information
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record status has been updated with export information.
Trigger Criteria:
Context: Cargo record status has been updated with export information
Applied to: Log Export Status Change
Action: The system logs export status change
Logic Flow:
IF Cargo record status has been updated with export information
AND The system logs export status change
THEN:
• Export status change is recorded in system logs for audit trail
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when export status change has been logged for cargo.
Trigger Criteria:
Context: Export status change has been logged for cargo
Applied to: Canadian Manifest Coordination Required?
Action: The system checks if Canadian manifest coordination is required
Logic Flow:
IF Export status change has been logged for cargo
AND The system checks if Canadian manifest coordination is required
THEN:
• Processing branches to Canadian manifest handling if required, otherwise continues to database update
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when canadian manifest coordination is required for export cargo.
Trigger Criteria:
Context: Canadian manifest coordination is required for export cargo
Applied to: Find Matching Canadian Manifest
Action: The system searches for matching Canadian manifest records
Logic Flow:
IF Canadian manifest coordination is required for export cargo
AND The system searches for matching Canadian manifest records
THEN:
• Matching Canadian manifest records are identified and retrieved for coordination
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when matching canadian manifest records have been found.
Trigger Criteria:
Context: Matching Canadian manifest records have been found
Applied to: Generate Cross-Border Log Message
Action: The system generates cross-border log message
Logic Flow:
IF Matching Canadian manifest records have been found
AND The system generates cross-border log message
THEN:
• Cross-border coordination message is created and logged to Canadian manifest records
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cross-border coordination is complete or not required.
Trigger Criteria:
Context: Cross-border coordination is complete or not required
Applied to: Update Database with Export Status
Action: The system updates database with export status
Logic Flow:
IF Cross-border coordination is complete or not required
AND The system updates database with export status
THEN:
• Export status changes are permanently stored in the database
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when database has been updated with export status.
Trigger Criteria:
Context: Database has been updated with export status
Applied to: Prepare Export Notification Message
Action: The system prepares export notification message
Logic Flow:
IF Database has been updated with export status
AND The system prepares export notification message
THEN:
• Export notification message is formatted and ready for routing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when export notification message has been prepared.
Trigger Criteria:
Context: Export notification message has been prepared
Applied to: Route Export Message to USEXP Basket
Action: The system routes export message to USEXP basket
Logic Flow:
IF Export notification message has been prepared
AND The system routes export message to USEXP basket
THEN:
• Export notification message is delivered to USEXP basket for further processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when export message has been routed successfully or error conditions have been handled.
Trigger Criteria:
Context: Export message has been routed successfully or error conditions have been handled
Applied to: Export Status Processing Complete
Action: The system completes export status processing
Logic Flow:
IF Export message has been routed successfully or error conditions have been handled
AND The system completes export status processing
THEN:
• Export status processing workflow is finished and control returns to calling process
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo status analysis is incomplete or cargo is not ready for export.
Trigger Criteria:
Context: Cargo status analysis is incomplete or cargo is not ready for export
Applied to: Export Conditions Not Met
Action: Export conditions are not met
Logic Flow:
IF Cargo status analysis is incomplete or cargo is not ready for export
AND Export conditions are not met
THEN:
• Error condition is set and export processing terminates without status changes
Business Justification: Defines the strict business conditions required to proceed when cancellation processing request is received with disposition code and cargo status information.
Trigger Criteria:
Context: A cancellation processing request is received with disposition code and cargo status information
Applied to: Cancellation Type?
Action: The system evaluates the message type and cargo current status
Logic Flow:
IF A cancellation processing request is received with disposition code and cargo status information
AND The system evaluates the message type and cargo current status
THEN:
• The system routes to either arrival cancellation processing or export cancellation processing based on the evaluation criteria
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when arrival cancellation request is identified for cargo.
Trigger Criteria:
Context: An arrival cancellation request is identified for cargo
Applied to: Process Arrival Cancellation
Action: The system processes the arrival cancellation
Logic Flow:
IF An arrival cancellation request is identified for cargo
AND The system processes the arrival cancellation
THEN:
• The system prepares arrival cancellation message and sends it via Merlin messaging system
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when export cancellation request is identified for cargo.
Trigger Criteria:
Context: An export cancellation request is identified for cargo
Applied to: Process Export Cancellation
Action: The system processes the export cancellation
Logic Flow:
IF An export cancellation request is identified for cargo
AND The system processes the export cancellation
THEN:
• The system prepares export cancellation message and sends it via Merlin messaging system
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when arrival cancellation has been processed for cargo.
Trigger Criteria:
Context: An arrival cancellation has been processed for cargo
Applied to: Restore Previous Bond Dates
Action: The system needs to restore previous bond state
Logic Flow:
IF An arrival cancellation has been processed for cargo
AND The system needs to restore previous bond state
THEN:
• The system restores previous bond dates and clears current arrival information to return cargo to pre-arrival state
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when export cancellation has been processed for cargo.
Trigger Criteria:
Context: An export cancellation has been processed for cargo
Applied to: Re-establish Destination Index
Action: The system needs to restore destination routing
Logic Flow:
IF An export cancellation has been processed for cargo
AND The system needs to restore destination routing
THEN:
• The system re-establishes destination index and updates routing information to restore proper cargo destination tracking
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cancellation processing has been completed and previous dates/indexes restored.
Trigger Criteria:
Context: Cancellation processing has been completed and previous dates/indexes restored
Applied to: Update Cargo Status
Action: The system updates cargo status
Logic Flow:
IF Cancellation processing has been completed and previous dates/indexes restored
AND The system updates cargo status
THEN:
• The system sets appropriate cargo status based on cancellation type and updates cargo record with new status information
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cancellation processing requires status array updates.
Trigger Criteria:
Context: Cancellation processing requires status array updates
Applied to: Update Status Array
Action: The system processes status array changes
Logic Flow:
IF Cancellation processing requires status array updates
AND The system processes status array changes
THEN:
• The system removes cancelled status codes from S09 array and adds appropriate cancellation status information
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cancellation processing is complete with updated status and cargo information.
Trigger Criteria:
Context: Cancellation processing is complete with updated status and cargo information
Applied to: Generate Cancellation Notice
Action: The system generates cancellation notices
Logic Flow:
IF Cancellation processing is complete with updated status and cargo information
AND The system generates cancellation notices
THEN:
• The system creates formatted cancellation messages with cargo details, cancellation type, and routing information for distribution
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cancellation notice has been generated.
Trigger Criteria:
Context: Cancellation notice has been generated
Applied to: Log Cancellation Transaction
Action: The system logs the transaction
Logic Flow:
IF Cancellation notice has been generated
AND The system logs the transaction
THEN:
• The system records cancellation details including cargo information, cancellation type, timestamp, and user information in transaction log
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cancellation transaction has been logged.
Trigger Criteria:
Context: Cancellation transaction has been logged
Applied to: Notify Integration Services
Action: The system notifies integration services
Logic Flow:
IF Cancellation transaction has been logged
AND The system notifies integration services
THEN:
• The system sends cancellation notification to GCCIIS and other integration services with updated cargo status and cancellation details
R-GCX016-cbl-00874 (+3)File: GCX016.cblBusiness Rule: Age Calculation
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record with bond start date information is being processed.
Trigger Criteria:
Context: A cargo record with bond start date information is being processed
Applied to: Calculate Age in Days
Action: The system needs to calculate cargo age for destination indexing
Logic Flow:
IF A cargo record with bond start date information is being processed
AND The system needs to calculate cargo age for destination indexing
THEN:
• The system converts both bond start date and current date to Julian format and calculates the difference in days
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record is being processed for age calculation.
Trigger Criteria:
Context: A cargo record is being processed for age calculation
Applied to: Bond Start Date Available?
Action: The system checks for bond start date availability
Logic Flow:
IF A cargo record is being processed for age calculation
AND The system checks for bond start date availability
THEN:
• If bond start date is available, proceed with age calculation; otherwise set age to zero
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record without a valid bond start date.
Trigger Criteria:
Context: A cargo record without a valid bond start date
Applied to: Set Age to Zero - No Bond Date
Action: Age calculation is required for destination indexing
Logic Flow:
IF A cargo record without a valid bond start date
AND Age calculation is required for destination indexing
THEN:
• The system sets cargo age to zero days
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo age has been calculated or set to zero.
Trigger Criteria:
Context: Cargo age has been calculated or set to zero
Applied to: Use Age for Destination Indexing Decision
Action: The system processes destination indexing decisions
Logic Flow:
IF Cargo age has been calculated or set to zero
AND The system processes destination indexing decisions
THEN:
• The calculated age value is used to determine cargo priority for destination processing
Business Justification: Defines the strict business conditions required to proceed when disposition code needs to be processed for counterpart removal.
Trigger Criteria:
Context: A disposition code needs to be processed for counterpart removal
Applied to: Get Disposition Code from DC Table
Action: The system looks up the disposition code in the DC table
Logic Flow:
IF A disposition code needs to be processed for counterpart removal
AND The system looks up the disposition code in the DC table
THEN:
• The disposition code information including counterpart code is retrieved from the table
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code information has been retrieved from the dc table.
Trigger Criteria:
Context: Disposition code information has been retrieved from the DC table
Applied to: Has Counterpart Code?
Action: The system checks if a counterpart code exists for the disposition code
Logic Flow:
IF Disposition code information has been retrieved from the DC table
AND The system checks if a counterpart code exists for the disposition code
THEN:
• If counterpart code exists, proceed with counterpart removal logic, otherwise skip counterpart removal processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when counterpart code exists and needs to be removed from the status array.
Trigger Criteria:
Context: A counterpart code exists and needs to be removed from the status array
Applied to: Initialize Status Array Search
Action: The system initializes the search process for the S09A status array
Logic Flow:
IF A counterpart code exists and needs to be removed from the status array
AND The system initializes the search process for the S09A status array
THEN:
• Search parameters are set up to iterate through all elements in the status array
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when status array search has been initialized with counterpart code criteria.
Trigger Criteria:
Context: The status array search has been initialized with counterpart code criteria
Applied to: Search S09A Array for Matching Elements
Action: The system searches through each element in the S09A status array
Logic Flow:
IF The status array search has been initialized with counterpart code criteria
AND The system searches through each element in the S09A status array
THEN:
• Each array element is evaluated against the counterpart code matching criteria
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when status array element is being evaluated against counterpart code criteria.
Trigger Criteria:
Context: A status array element is being evaluated against counterpart code criteria
Applied to: Match Found?
Action: The system compares the element against the counterpart matching rules
Logic Flow:
IF A status array element is being evaluated against counterpart code criteria
AND The system compares the element against the counterpart matching rules
THEN:
• If a match is found, proceed with detailed matching criteria validation, otherwise continue searching remaining elements
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when potential counterpart match has been found in the status array.
Trigger Criteria:
Context: A potential counterpart match has been found in the status array
Applied to: Check Matching Criteria
Action: The system begins detailed matching criteria evaluation
Logic Flow:
IF A potential counterpart match has been found in the status array
AND The system begins detailed matching criteria evaluation
THEN:
• Multiple matching criteria are evaluated in sequence to determine if the element should be removed
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when status array element is being evaluated for counterpart removal.
Trigger Criteria:
Context: A status array element is being evaluated for counterpart removal
Applied to: Status Info Match?
Action: The system checks if the status information matches the counterpart criteria
Logic Flow:
IF A status array element is being evaluated for counterpart removal
AND The system checks if the status information matches the counterpart criteria
THEN:
• If status information matches, mark element for removal, otherwise continue with entry number validation
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when status information did not match counterpart criteria for a status array element.
Trigger Criteria:
Context: Status information did not match counterpart criteria for a status array element
Applied to: Entry Number Match?
Action: The system checks if the entry number matches the counterpart criteria
Logic Flow:
IF Status information did not match counterpart criteria for a status array element
AND The system checks if the entry number matches the counterpart criteria
THEN:
• If entry number matches, mark element for removal, otherwise continue with quantity validation
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when entry number did not match counterpart criteria for a status array element.
Trigger Criteria:
Context: Entry number did not match counterpart criteria for a status array element
Applied to: Quantity Match?
Action: The system checks if the quantity matches the counterpart criteria
Logic Flow:
IF Entry number did not match counterpart criteria for a status array element
AND The system checks if the quantity matches the counterpart criteria
THEN:
• If quantity matches, mark element for removal, otherwise continue with specific code pattern validation
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when quantity did not match counterpart criteria for a status array element.
Trigger Criteria:
Context: Quantity did not match counterpart criteria for a status array element
Applied to: Specific Code Pattern Match?
Action: The system checks if the element matches specific code patterns for counterpart removal
Logic Flow:
IF Quantity did not match counterpart criteria for a status array element
AND The system checks if the element matches specific code patterns for counterpart removal
THEN:
• If specific code pattern matches, mark element for removal, otherwise continue searching remaining elements
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when status array element has been identified as matching counterpart removal criteria.
Trigger Criteria:
Context: A status array element has been identified as matching counterpart removal criteria
Applied to: Remove Element from Array
Action: The system removes the element from the S09A status array
Logic Flow:
IF A status array element has been identified as matching counterpart removal criteria
AND The system removes the element from the S09A status array
THEN:
• The matching element is marked for removal from the status array
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when one or more elements have been removed from the s09a status array.
Trigger Criteria:
Context: One or more elements have been removed from the S09A status array
Applied to: Compact Remaining Array Elements
Action: The system compacts the remaining array elements
Logic Flow:
IF One or more elements have been removed from the S09A status array
AND The system compacts the remaining array elements
THEN:
• All remaining elements are moved to eliminate gaps and maintain array integrity
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when status array has been compacted after element removal.
Trigger Criteria:
Context: The status array has been compacted after element removal
Applied to: Update Array Count
Action: The system updates the array element count
Logic Flow:
IF The status array has been compacted after element removal
AND The system updates the array element count
THEN:
• The array count reflects the actual number of remaining elements after counterpart removal
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when counterpart element has been removed and the array has been updated.
Trigger Criteria:
Context: A counterpart element has been removed and the array has been updated
Applied to: Continue Search for More Matches
Action: The system continues searching for additional counterpart matches
Logic Flow:
IF A counterpart element has been removed and the array has been updated
AND The system continues searching for additional counterpart matches
THEN:
• The search process resumes with the remaining elements in the status array
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when system has processed a status array element for counterpart matching.
Trigger Criteria:
Context: The system has processed a status array element for counterpart matching
Applied to: More Elements to Check?
Action: The system checks if more elements remain to be processed
Logic Flow:
IF The system has processed a status array element for counterpart matching
AND The system checks if more elements remain to be processed
THEN:
• If more elements exist, continue searching, otherwise complete the counterpart removal process
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when all elements in the status array have been checked for counterpart matches.
Trigger Criteria:
Context: All elements in the status array have been checked for counterpart matches
Applied to: Counterpart Removal Complete
Action: The counterpart removal process is completed
Logic Flow:
IF All elements in the status array have been checked for counterpart matches
AND The counterpart removal process is completed
THEN:
• The status array contains only non-counterpart elements and the removal process is finished
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code has been retrieved from the dc table.
Trigger Criteria:
Context: A disposition code has been retrieved from the DC table
Applied to: No Counterpart Code - Skip Removal
Action: The disposition code has no associated counterpart code
Logic Flow:
IF A disposition code has been retrieved from the DC table
AND The disposition code has no associated counterpart code
THEN:
• The counterpart removal process is skipped and processing continues without array modification
Business Justification: Dictates the expected operational logic and validation steps when disposition code is being processed for cargo release.
Trigger Criteria:
Context: A disposition code is being processed for cargo release
Applied to: Disposition Code Has Quantity Action?
Action: The system evaluates if the disposition code has an associated quantity action
Logic Flow:
IF A disposition code is being processed for cargo release
AND The system evaluates if the disposition code has an associated quantity action
THEN:
• The system should proceed to quantity processing if action exists, otherwise skip quantity calculations
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record exists with current released quantity information.
Trigger Criteria:
Context: A cargo record exists with current released quantity information
Applied to: Get Current Released Quantity from Cargo
Action: The system needs to perform quantity calculations
Logic Flow:
IF A cargo record exists with current released quantity information
AND The system needs to perform quantity calculations
THEN:
• The system should retrieve the current released quantity from the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code with quantity action is being processed.
Trigger Criteria:
Context: A disposition code with quantity action is being processed
Applied to: Quantity Action Type?
Action: The system evaluates the type of quantity action required
Logic Flow:
IF A disposition code with quantity action is being processed
AND The system evaluates the type of quantity action required
THEN:
• The system should identify whether to add or subtract the quantity from current released amount
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code requires adding quantity to released amount and current released quantity exists and x4 segment contains quantity value.
Trigger Criteria:
Context: A disposition code requires adding quantity to released amount AND current released quantity exists AND X4 segment contains quantity value
Applied to: Released Qty = Released Qty + X4 Quantity
Action: The system performs add quantity action
Logic Flow:
IF A disposition code requires adding quantity to released amount AND current released quantity exists AND X4 segment contains quantity value
AND The system performs add quantity action
THEN:
• The system should calculate new released quantity as current released quantity plus X4 quantity
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code requires subtracting quantity from released amount and current released quantity exists and x4 segment contains quantity value.
Trigger Criteria:
Context: A disposition code requires subtracting quantity from released amount AND current released quantity exists AND X4 segment contains quantity value
Applied to: Released Qty = Released Qty - X4 Quantity
Action: The system performs subtract quantity action
Logic Flow:
IF A disposition code requires subtracting quantity from released amount AND current released quantity exists AND X4 segment contains quantity value
AND The system performs subtract quantity action
THEN:
• The system should calculate new released quantity as current released quantity minus X4 quantity
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when quantity calculation has been performed for released amount.
Trigger Criteria:
Context: A quantity calculation has been performed for released amount
Applied to: Result Less Than Zero?
Action: The calculated result is less than zero
Logic Flow:
IF A quantity calculation has been performed for released amount
AND The calculated result is less than zero
THEN:
• The system should identify this as an invalid negative quantity condition
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when quantity calculation results in a negative value.
Trigger Criteria:
Context: A quantity calculation results in a negative value
Applied to: Set Released Quantity to Zero
Action: The system needs to assign a valid released quantity
Logic Flow:
IF A quantity calculation results in a negative value
AND The system needs to assign a valid released quantity
THEN:
• The system should set the released quantity to zero to prevent negative inventory
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when quantity calculation results in zero or positive value.
Trigger Criteria:
Context: A quantity calculation results in zero or positive value
Applied to: Keep Calculated Released Quantity
Action: The system needs to assign the released quantity
Logic Flow:
IF A quantity calculation results in zero or positive value
AND The system needs to assign the released quantity
THEN:
• The system should retain the calculated released quantity value
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when final released quantity has been determined through calculations and validations.
Trigger Criteria:
Context: A final released quantity has been determined through calculations and validations
Applied to: Update Cargo Record with New Released Quantity
Action: The system needs to persist the quantity changes
Logic Flow:
IF A final released quantity has been determined through calculations and validations
AND The system needs to persist the quantity changes
THEN:
• The system should update the cargo record with the new released quantity value
R-GCX016-cbl-00904 (+15)File: GCX016.cblBusiness Rule: Cargo Hold Message Generation
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo item has been identified as having hold status.
Trigger Criteria:
Context: A cargo item has been identified as having hold status
Applied to: Determine Hold Location
Action: The system evaluates the cargo hold location type
Logic Flow:
IF A cargo item has been identified as having hold status
AND The system evaluates the cargo hold location type
THEN:
• The system determines if the hold is at border location or destination location based on cargo status flags
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo hold location has been determined as either border or destination.
Trigger Criteria:
Context: A cargo hold location has been determined as either border or destination
Applied to: Format Hold Message with Location Details
Action: The system formats the hold message
Logic Flow:
IF A cargo hold location has been determined as either border or destination
AND The system formats the hold message
THEN:
• The system includes appropriate location details in the message format based on hold location type
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when hold message is being formatted for cargo.
Trigger Criteria:
Context: A hold message is being formatted for cargo
Applied to: Include Cargo Information
Action: The system adds cargo information to the message
Logic Flow:
IF A hold message is being formatted for cargo
AND The system adds cargo information to the message
THEN:
• The system includes car ID, waybill number, US-CCN key, and other cargo identifiers in the message
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when hold message is being formatted with cargo information.
Trigger Criteria:
Context: A hold message is being formatted with cargo information
Applied to: Add Disposition Code Details
Action: The system adds disposition code details
Logic Flow:
IF A hold message is being formatted with cargo information
AND The system adds disposition code details
THEN:
• The system includes the disposition code and its description from the DC table in the message
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when hold message is being formatted with disposition code details.
Trigger Criteria:
Context: A hold message is being formatted with disposition code details
Applied to: Include Quantity Information
Action: The system adds quantity information
Logic Flow:
IF A hold message is being formatted with disposition code details
AND The system adds quantity information
THEN:
• The system includes total cargo quantity and quantity affected by the hold in the message
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when hold message is being formatted with quantity information.
Trigger Criteria:
Context: A hold message is being formatted with quantity information
Applied to: Add K1 Comments if Available
Action: The system checks for K1 comments availability
Logic Flow:
IF A hold message is being formatted with quantity information
AND The system checks for K1 comments availability
THEN:
• If K1 comments exist, the system adds the remarks to the hold message, otherwise proceeds without comments
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when hold message has been formatted with all required information.
Trigger Criteria:
Context: A hold message has been formatted with all required information
Applied to: Message Routing Required?
Action: The system evaluates routing requirements
Logic Flow:
IF A hold message has been formatted with all required information
AND The system evaluates routing requirements
THEN:
• If message routing is required, the system proceeds to determine recipients, otherwise logs the message generation
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when hold message requires routing to external recipients.
Trigger Criteria:
Context: A hold message requires routing to external recipients
Applied to: Determine Message Recipients
Action: The system determines message recipients
Logic Flow:
IF A hold message requires routing to external recipients
AND The system determines message recipients
THEN:
• The system identifies recipients including station Merlin IDs, broker contacts, and payer of freight based on cargo configuration
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when message recipients have been determined for hold message.
Trigger Criteria:
Context: Message recipients have been determined for hold message
Applied to: Broker Notification Required?
Action: The system checks broker notification requirements
Logic Flow:
IF Message recipients have been determined for hold message
AND The system checks broker notification requirements
THEN:
• If broker notification is required, the system retrieves broker information, otherwise sends to multiple standard destinations
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when broker notification is required for cargo hold message.
Trigger Criteria:
Context: Broker notification is required for cargo hold message
Applied to: Get Broker Information
Action: The system retrieves broker information
Logic Flow:
IF Broker notification is required for cargo hold message
AND The system retrieves broker information
THEN:
• The system gets payer of freight broker information if available, otherwise uses cargo broker information
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when broker information has been retrieved for notification.
Trigger Criteria:
Context: Broker information has been retrieved for notification
Applied to: Check Broker Preferences
Action: The system checks broker communication preferences
Logic Flow:
IF Broker information has been retrieved for notification
AND The system checks broker communication preferences
THEN:
• The system determines if broker prefers email notification or Merlin messaging based on broker configuration
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when broker preferences indicate email as preferred communication method.
Trigger Criteria:
Context: Broker preferences indicate email as preferred communication method
Applied to: Route via Email
Action: The system routes the message via email
Logic Flow:
IF Broker preferences indicate email as preferred communication method
AND The system routes the message via email
THEN:
• The system sends the hold message to broker's email address and proceeds to send to payer of freight
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when broker preferences indicate merlin as preferred communication method.
Trigger Criteria:
Context: Broker preferences indicate Merlin as preferred communication method
Applied to: Route via Merlin
Action: The system routes the message via Merlin
Logic Flow:
IF Broker preferences indicate Merlin as preferred communication method
AND The system routes the message via Merlin
THEN:
• The system sends the hold message to broker's Merlin ID and proceeds to send to payer of freight
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when hold message has been routed to broker via preferred communication method.
Trigger Criteria:
Context: Hold message has been routed to broker via preferred communication method
Applied to: Send to Payer of Freight
Action: The system sends message to payer of freight
Logic Flow:
IF Hold message has been routed to broker via preferred communication method
AND The system sends message to payer of freight
THEN:
• If payer of freight information exists, the system sends the hold message to payer of freight contact
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when hold message routing to specific recipients has been completed or broker notification is not required.
Trigger Criteria:
Context: Hold message routing to specific recipients has been completed or broker notification is not required
Applied to: Send to Multiple Destinations
Action: The system sends message to multiple destinations
Logic Flow:
IF Hold message routing to specific recipients has been completed or broker notification is not required
AND The system sends message to multiple destinations
THEN:
• The system sends the hold message to station-specific Merlin IDs and other configured destinations
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when hold message has been sent to all required destinations.
Trigger Criteria:
Context: Hold message has been sent to all required destinations
Applied to: Log Hold Message Generation
Action: The system logs the message generation
Logic Flow:
IF Hold message has been sent to all required destinations
AND The system logs the message generation
THEN:
• The system records the hold message generation event including recipients and message details for audit trail
R-GCX016-cbl-00947 (+11)File: GCX016.cblBusiness Rule: Complex Cargo Status Determination
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record is being processed for status determination.
Trigger Criteria:
Context: A cargo record is being processed for status determination
Applied to: Manual Release Flag Set?
Action: The manual release flag is set to true
Logic Flow:
IF A cargo record is being processed for status determination
AND The manual release flag is set to true
THEN:
• The destination index should be cleared and Canadian manifest coordination should be initiated
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record is being evaluated for fda hold requirements.
Trigger Criteria:
Context: A cargo record is being evaluated for FDA hold requirements
Applied to: FDA Hold at Destination?
Action: FDA hold conditions are present at the destination location
Logic Flow:
IF A cargo record is being evaluated for FDA hold requirements
AND FDA hold conditions are present at the destination location
THEN:
• The cargo status should be set to FDA hold with code 66
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record is being processed for status updates.
Trigger Criteria:
Context: A cargo record is being processed for status updates
Applied to: PTT Status Present?
Action: The cargo currently has PTT status assigned
Logic Flow:
IF A cargo record is being processed for status updates
AND The cargo currently has PTT status assigned
THEN:
• The current PTT status should be saved for potential restoration later in the process
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record with defined total quantity and released quantity.
Trigger Criteria:
Context: A cargo record with defined total quantity and released quantity
Applied to: Released Quantity < Total Quantity?
Action: The released quantity is less than the total quantity
Logic Flow:
IF A cargo record with defined total quantity and released quantity
AND The released quantity is less than the total quantity
THEN:
• The cargo status should be set to hold on piece counts to reflect partial release
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record with released quantity and total quantity values.
Trigger Criteria:
Context: A cargo record with released quantity and total quantity values
Applied to: Released Quantity = Total Quantity?
Action: The released quantity equals the total quantity
Logic Flow:
IF A cargo record with released quantity and total quantity values
AND The released quantity equals the total quantity
THEN:
• The system should process full release and clear the destination index
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record being evaluated for proceed status.
Trigger Criteria:
Context: A cargo record being evaluated for proceed status
Applied to: Proceed Status Present?
Action: Proceed status conditions are present in the cargo data
Logic Flow:
IF A cargo record being evaluated for proceed status
AND Proceed status conditions are present in the cargo data
THEN:
• The cargo status should be set to proceed and the border arrival date should be updated
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record with hold status conditions present.
Trigger Criteria:
Context: A cargo record with hold status conditions present
Applied to: Hold at Border?
Action: The hold location is determined to be at the border
Logic Flow:
IF A cargo record with hold status conditions present
AND The hold location is determined to be at the border
THEN:
• The cargo status should be set to border hold, otherwise it should be set to destination hold
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record being processed for arrival status.
Trigger Criteria:
Context: A cargo record being processed for arrival status
Applied to: Arrival Status Present?
Action: Arrival status conditions are present in the cargo data
Logic Flow:
IF A cargo record being processed for arrival status
AND Arrival status conditions are present in the cargo data
THEN:
• The cargo status should be set to arrival and the arrival date should be updated
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record being evaluated for export status.
Trigger Criteria:
Context: A cargo record being evaluated for export status
Applied to: Export Status Present?
Action: Export status conditions are present in the cargo data
Logic Flow:
IF A cargo record being evaluated for export status
AND Export status conditions are present in the cargo data
THEN:
• The cargo status should be set to export and the destination index should be cleared
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record with potential cancel release conditions.
Trigger Criteria:
Context: A cargo record with potential cancel release conditions
Applied to: Cancel Release Status?
Action: Cancel release status is detected in the cargo data
Logic Flow:
IF A cargo record with potential cancel release conditions
AND Cancel release status is detected in the cargo data
THEN:
• The cargo status should be set to unrelease, an unrelease notification should be generated, and the destination index should be re-established
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record completing status determination processing.
Trigger Criteria:
Context: A cargo record completing status determination processing
Applied to: Calculate Cargo Age
Action: Final status calculations are being performed
Logic Flow:
IF A cargo record completing status determination processing
AND Final status calculations are being performed
THEN:
• The cargo age should be calculated and bond dates should be updated accordingly
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record that had ptt status saved during processing.
Trigger Criteria:
Context: A cargo record that had PTT status saved during processing
Applied to: Restore PTT Status if Saved
Action: All other status determinations have been completed
Logic Flow:
IF A cargo record that had PTT status saved during processing
AND All other status determinations have been completed
THEN:
• The previously saved PTT status should be restored if it was saved earlier in the process
Business Justification: Defines the strict business conditions required to proceed when cargo record exists in the system and the cargo belongs to cprs (canadian pacific railway system).
Trigger Criteria:
Context: A cargo record exists in the system AND the cargo belongs to CPRS (Canadian Pacific Railway System)
Applied to: Force Manual Release for CPRS
Action: A manual release request is processed for the cargo
Logic Flow:
IF A cargo record exists in the system AND the cargo belongs to CPRS (Canadian Pacific Railway System)
AND A manual release request is processed for the cargo
THEN:
• The system shall force set the manual release flag to true AND bypass standard release validation checks
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record exists in the system with a current status.
Trigger Criteria:
Context: A cargo record exists in the system with a current status
Applied to: Check Current Cargo Status
Action: Manual release processing is initiated
Logic Flow:
IF A cargo record exists in the system with a current status
AND Manual release processing is initiated
THEN:
• The system shall check if the cargo is currently in a held status AND only proceed with manual release if cargo is held
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo is confirmed to be in held status and manual release is authorized.
Trigger Criteria:
Context: Cargo is confirmed to be in held status AND manual release is authorized
Applied to: Clear Destination Index
Action: Manual release processing begins
Logic Flow:
IF Cargo is confirmed to be in held status AND manual release is authorized
AND Manual release processing begins
THEN:
• The system shall clear the destination index field AND remove any destination-based routing restrictions
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when destination index has been cleared and cargo was previously held.
Trigger Criteria:
Context: Destination index has been cleared AND cargo was previously held
Applied to: Update Cargo Status to Released
Action: Manual release processing continues
Logic Flow:
IF Destination index has been cleared AND cargo was previously held
AND Manual release processing continues
THEN:
• The system shall update the cargo status to 'Released' AND record the manual release timestamp
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo status has been updated to released.
Trigger Criteria:
Context: Cargo status has been updated to released
Applied to: Cross-Border Cargo?
Action: The system evaluates cargo movement requirements
Logic Flow:
IF Cargo status has been updated to released
AND The system evaluates cargo movement requirements
THEN:
• The system shall determine if the cargo involves cross-border movement between US and Canada AND set cross-border processing flag accordingly
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo is identified as cross-border movement and cargo has been manually released.
Trigger Criteria:
Context: Cargo is identified as cross-border movement AND cargo has been manually released
Applied to: Find Matching Canadian Manifest
Action: Canadian coordination processing is initiated
Logic Flow:
IF Cargo is identified as cross-border movement AND cargo has been manually released
AND Canadian coordination processing is initiated
THEN:
• The system shall search for matching Canadian manifest records using waybill number AND equipment ID AND establish coordination link if found
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when matching canadian manifest record is found and cargo is manually released.
Trigger Criteria:
Context: Matching Canadian manifest record is found AND cargo is manually released
Applied to: Generate Canadian Coordination Log
Action: Cross-border coordination is established
Logic Flow:
IF Matching Canadian manifest record is found AND cargo is manually released
AND Cross-border coordination is established
THEN:
• The system shall generate a coordination log entry AND record cargo release details in GCX105 system AND include waybill and equipment information
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when manual release processing is confirmed and canadian coordination is complete (if required).
Trigger Criteria:
Context: Manual release processing is confirmed AND Canadian coordination is complete (if required)
Applied to: Update Status Array without New Codes
Action: Status array update is performed
Logic Flow:
IF Manual release processing is confirmed AND Canadian coordination is complete (if required)
AND Status array update is performed
THEN:
• The system shall update the S09 status array to reflect manual release AND shall not add new disposition codes AND preserve existing status history
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when status array has been updated and manual release processing is in progress.
Trigger Criteria:
Context: Status array has been updated AND manual release processing is in progress
Applied to: Save Manual Release Flag
Action: Cargo record finalization occurs
Logic Flow:
IF Status array has been updated AND manual release processing is in progress
AND Cargo record finalization occurs
THEN:
• The system shall save the manual release flag in the cargo record AND maintain the flag for audit purposes AND ensure flag persists through subsequent processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when manual release flag is saved and cargo has associated bond dates.
Trigger Criteria:
Context: Manual release flag is saved AND cargo has associated bond dates
Applied to: Clear Bond Dates if Applicable
Action: Bond date evaluation is performed
Logic Flow:
IF Manual release flag is saved AND cargo has associated bond dates
AND Bond date evaluation is performed
THEN:
• The system shall clear bond dates if cargo status allows AND remove time-based movement restrictions AND update bond-related fields accordingly
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when manual release processing is complete and all status updates are finalized.
Trigger Criteria:
Context: Manual release processing is complete AND all status updates are finalized
Applied to: Generate Release Notification
Action: Notification generation is triggered
Logic Flow:
IF Manual release processing is complete AND all status updates are finalized
AND Notification generation is triggered
THEN:
• The system shall generate release notification messages AND send notifications to relevant parties AND include cargo details and release timestamp
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when manual release request is received for cargo.
Trigger Criteria:
Context: A manual release request is received for cargo
Applied to: Is Cargo CPRS Type?
Action: The system checks the cargo type in the CCN key
Logic Flow:
IF A manual release request is received for cargo
AND The system checks the cargo type in the CCN key
THEN:
• If cargo type is CPRS, proceed with manual release validation, otherwise reject the manual release request
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cprs cargo requires manual release.
Trigger Criteria:
Context: A CPRS cargo requires manual release
Applied to: Validate Manual Release Authority
Action: The system validates the manual release authority
Logic Flow:
IF A CPRS cargo requires manual release
AND The system validates the manual release authority
THEN:
• If authorized, allow manual release processing, otherwise reject the request
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when manual release authority is validated for cprs cargo.
Trigger Criteria:
Context: Manual release authority is validated for CPRS cargo
Applied to: Clear Destination Index RT076
Action: The system processes the manual release
Logic Flow:
IF Manual release authority is validated for CPRS cargo
AND The system processes the manual release
THEN:
• Clear the RT076 destination index to remove destination constraints
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when destination index has been cleared for manual release.
Trigger Criteria:
Context: Destination index has been cleared for manual release
Applied to: Save Current Cargo Status
Action: The system prepares to update cargo status
Logic Flow:
IF Destination index has been cleared for manual release
AND The system prepares to update cargo status
THEN:
• Save the current cargo status information for potential restoration
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when current cargo status has been saved.
Trigger Criteria:
Context: Current cargo status has been saved
Applied to: Update Cargo to Manual Release Status
Action: The system applies manual release processing
Logic Flow:
IF Current cargo status has been saved
AND The system applies manual release processing
THEN:
• Update cargo status to manual release (MRL) and set manual release indicators
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo has been updated to manual release status.
Trigger Criteria:
Context: Cargo has been updated to manual release status
Applied to: Search for Canadian Manifest Match
Action: The system searches for Canadian manifest coordination
Logic Flow:
IF Cargo has been updated to manual release status
AND The system searches for Canadian manifest coordination
THEN:
• Search Canadian manifest records using car ID and waybill number to find matching records
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when canadian manifest match is found for the released cargo.
Trigger Criteria:
Context: Canadian manifest match is found for the released cargo
Applied to: Generate Canadian Log Message
Action: The system processes the Canadian manifest coordination
Logic Flow:
IF Canadian manifest match is found for the released cargo
AND The system processes the Canadian manifest coordination
THEN:
• Generate Canadian log message with cargo release details including car ID, waybill, and release information
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when canadian log message has been generated.
Trigger Criteria:
Context: Canadian log message has been generated
Applied to: Update Canadian Manifest Status
Action: The system coordinates with Canadian manifest system
Logic Flow:
IF Canadian log message has been generated
AND The system coordinates with Canadian manifest system
THEN:
• Update Canadian manifest status to reflect the cargo release and maintain cross-border coordination
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when canadian manifest processing is complete or no canadian manifest was found.
Trigger Criteria:
Context: Canadian manifest processing is complete or no Canadian manifest was found
Applied to: Restore Cargo Status Information
Action: The system finalizes manual release processing
Logic Flow:
IF Canadian manifest processing is complete or no Canadian manifest was found
AND The system finalizes manual release processing
THEN:
• Restore the preserved cargo status information while maintaining manual release indicators
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when canadian manifest processing is complete or no canadian manifest was found.
Trigger Criteria:
Context: Canadian manifest processing is complete or no Canadian manifest was found
Applied to: Restore Cargo Status Information
Action: The system needs to restore cargo status information
Logic Flow:
IF Canadian manifest processing is complete or no Canadian manifest was found
AND The system needs to restore cargo status information
THEN:
• Previously saved cargo status information is restored to the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo status information has been restored.
Trigger Criteria:
Context: Cargo status information has been restored
Applied to: Generate Manual Release Notification
Action: The system completes manual release processing
Logic Flow:
IF Cargo status information has been restored
AND The system completes manual release processing
THEN:
• Generate manual release notification messages to inform relevant parties of the cargo release
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo status information has been restored.
Trigger Criteria:
Context: Cargo status information has been restored
Applied to: Age Calculation Required?
Action: The system evaluates cargo processing requirements
Logic Flow:
IF Cargo status information has been restored
AND The system evaluates cargo processing requirements
THEN:
• Processing branches to age calculation if required, or continues to destination index re-establishment if not required
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when manual release notification has been generated.
Trigger Criteria:
Context: Manual release notification has been generated
Applied to: Update Cargo Record in Database
Action: The system finalizes the manual release transaction
Logic Flow:
IF Manual release notification has been generated
AND The system finalizes the manual release transaction
THEN:
• Update the cargo record in database with all manual release changes and status modifications
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record has been updated in database.
Trigger Criteria:
Context: Cargo record has been updated in database
Applied to: Manual Release Complete
Action: All manual release processing steps are completed successfully
Logic Flow:
IF Cargo record has been updated in database
AND All manual release processing steps are completed successfully
THEN:
• Confirm manual release completion and return success status
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when manual release request fails validation or authorization.
Trigger Criteria:
Context: Manual release request fails validation or authorization
Applied to: Manual Release Rejected
Action: The system determines manual release cannot be processed
Logic Flow:
IF Manual release request fails validation or authorization
AND The system determines manual release cannot be processed
THEN:
• Reject the manual release request and return appropriate error status without modifying cargo
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record with potential manual release status.
Trigger Criteria:
Context: A cargo record with potential manual release status
Applied to: Check if Manual Release Flag Set
Action: The system checks the manual release flag in the cargo status
Logic Flow:
IF A cargo record with potential manual release status
AND The system checks the manual release flag in the cargo status
THEN:
• Processing continues to manual release workflow if flag is set, otherwise processing completes
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record undergoing manual release processing.
Trigger Criteria:
Context: A cargo record undergoing manual release processing
Applied to: Clear Destination Index
Action: The manual release flag is confirmed as set
Logic Flow:
IF A cargo record undergoing manual release processing
AND The manual release flag is confirmed as set
THEN:
• The destination index is cleared to remove destination routing constraints
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record with existing status information.
Trigger Criteria:
Context: A cargo record with existing status information
Applied to: Save Current Cargo Status
Action: Manual release processing begins
Logic Flow:
IF A cargo record with existing status information
AND Manual release processing begins
THEN:
• Current cargo status is saved to temporary storage for potential restoration
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record undergoing manual release.
Trigger Criteria:
Context: A cargo record undergoing manual release
Applied to: Process Canadian Manifest Coordination
Action: Destination index has been cleared and status saved
Logic Flow:
IF A cargo record undergoing manual release
AND Destination index has been cleared and status saved
THEN:
• System searches for corresponding Canadian manifest records for coordination
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when search for canadian manifest records has been initiated.
Trigger Criteria:
Context: A search for Canadian manifest records has been initiated
Applied to: Canadian Manifest Found?
Action: The system searches Canadian manifest database using cargo identifiers
Logic Flow:
IF A search for Canadian manifest records has been initiated
AND The system searches Canadian manifest database using cargo identifiers
THEN:
• Processing branches to update Canadian records if found, or continues to status restoration if not found
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when canadian manifest records exist for the cargo being manually released.
Trigger Criteria:
Context: Canadian manifest records exist for the cargo being manually released
Applied to: Generate Log Message for Canadian CCN
Action: The system confirms Canadian manifest record availability
Logic Flow:
IF Canadian manifest records exist for the cargo being manually released
AND The system confirms Canadian manifest record availability
THEN:
• A log message is generated containing the Canadian CCN information for audit purposes
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when canadian manifest records found and log message generated.
Trigger Criteria:
Context: Canadian manifest records found and log message generated
Applied to: Update Canadian Manifest Status
Action: The system processes the Canadian manifest coordination
Logic Flow:
IF Canadian manifest records found and log message generated
AND The system processes the Canadian manifest coordination
THEN:
• Canadian manifest status is updated to reflect the manual release action
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when age calculation is required for the cargo.
Trigger Criteria:
Context: Age calculation is required for the cargo
Applied to: Calculate Cargo Age Using Julian Date
Action: The system processes cargo age requirements
Logic Flow:
IF Age calculation is required for the cargo
AND The system processes cargo age requirements
THEN:
• Cargo age is calculated using Julian date conversion methods
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when age calculation is complete or not required.
Trigger Criteria:
Context: Age calculation is complete or not required
Applied to: Re-establish Destination Index
Action: The system needs to restore destination routing capability
Logic Flow:
IF Age calculation is complete or not required
AND The system needs to restore destination routing capability
THEN:
• Destination index is re-established based on current cargo status and routing requirements
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when destination index has been re-established.
Trigger Criteria:
Context: Destination index has been re-established
Applied to: Update Cargo Record with Manual Release Status
Action: The system finalizes manual release processing
Logic Flow:
IF Destination index has been re-established
AND The system finalizes manual release processing
THEN:
• Cargo record is updated with manual release status information
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record has been updated with manual release status.
Trigger Criteria:
Context: Cargo record has been updated with manual release status
Applied to: Generate Manual Release Notification
Action: The system completes manual release processing
Logic Flow:
IF Cargo record has been updated with manual release status
AND The system completes manual release processing
THEN:
• Notification messages are generated and sent to appropriate recipients regarding the manual release
R-GCX016-cbl-00970 (+31)File: GCX016.cblBusiness Rule: FDA Hold Processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record exists in the system.
Trigger Criteria:
Context: A cargo record exists in the system
Applied to: FDA Hold Processing Start
Action: FDA hold processing is triggered for the cargo
Logic Flow:
IF A cargo record exists in the system
AND FDA hold processing is triggered for the cargo
THEN:
• The system begins FDA hold evaluation workflow
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record with location information exists.
Trigger Criteria:
Context: A cargo record with location information exists
Applied to: Cargo at Destination?
Action: The system evaluates cargo location status
Logic Flow:
IF A cargo record with location information exists
AND The system evaluates cargo location status
THEN:
• The system determines if cargo is at destination and proceeds with appropriate FDA processing path
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo is at destination location and has a status array.
Trigger Criteria:
Context: Cargo is at destination location and has a status array
Applied to: Check Status Array for FDA Codes
Action: The system scans the status array for FDA codes
Logic Flow:
IF Cargo is at destination location and has a status array
AND The system scans the status array for FDA codes
THEN:
• The system identifies all FDA-related status codes present in the array
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when status array has been examined for fda codes.
Trigger Criteria:
Context: The status array has been examined for FDA codes
Applied to: FDA Hold Code Found?
Action: The system evaluates the presence of FDA hold codes
Logic Flow:
IF The status array has been examined for FDA codes
AND The system evaluates the presence of FDA hold codes
THEN:
• The system either proceeds with FDA hold processing if codes are found or exits FDA processing if no codes are present
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when fda hold codes are found in the status array and cargo is at destination.
Trigger Criteria:
Context: FDA hold codes are found in the status array and cargo is at destination
Applied to: Set FDA Hold Status at Destination
Action: The system processes FDA hold assignment
Logic Flow:
IF FDA hold codes are found in the status array and cargo is at destination
AND The system processes FDA hold assignment
THEN:
• The system sets FDA hold status with destination location designation
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when fda hold status has been set at destination.
Trigger Criteria:
Context: FDA hold status has been set at destination
Applied to: Apply FDA-Specific Status Codes
Action: The system applies FDA-specific status codes
Logic Flow:
IF FDA hold status has been set at destination
AND The system applies FDA-specific status codes
THEN:
• The cargo record is updated with appropriate FDA regulatory status codes
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when fda-specific status codes have been applied to cargo.
Trigger Criteria:
Context: FDA-specific status codes have been applied to cargo
Applied to: Generate FDA Hold Description
Action: The system generates FDA hold description
Logic Flow:
IF FDA-specific status codes have been applied to cargo
AND The system generates FDA hold description
THEN:
• A clear, business-readable description of the FDA hold is created and associated with the cargo
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when fda hold description has been generated for cargo.
Trigger Criteria:
Context: FDA hold description has been generated for cargo
Applied to: Other Hold Codes Present?
Action: The system checks for other hold codes in the status array
Logic Flow:
IF FDA hold description has been generated for cargo
AND The system checks for other hold codes in the status array
THEN:
• The system determines if additional hold codes exist that require combination with FDA hold
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when fda hold exists and other hold codes are present in the status array.
Trigger Criteria:
Context: FDA hold exists and other hold codes are present in the status array
Applied to: Combine FDA Hold with Other Holds
Action: The system combines FDA hold with other holds
Logic Flow:
IF FDA hold exists and other hold codes are present in the status array
AND The system combines FDA hold with other holds
THEN:
• A comprehensive hold status is created that includes FDA hold and all other applicable hold codes
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when fda hold processing is complete (with or without other holds).
Trigger Criteria:
Context: FDA hold processing is complete (with or without other holds)
Applied to: Set Destination Hold Flag
Action: The system sets destination hold flag
Logic Flow:
IF FDA hold processing is complete (with or without other holds)
AND The system sets destination hold flag
THEN:
• The cargo record is marked with destination hold flag indicating hold status at destination
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when destination hold flag has been set and all fda processing is complete.
Trigger Criteria:
Context: Destination hold flag has been set and all FDA processing is complete
Applied to: Update Cargo Status Record
Action: The system updates the cargo status record
Logic Flow:
IF Destination hold flag has been set and all FDA processing is complete
AND The system updates the cargo status record
THEN:
• The cargo record is permanently updated with FDA hold status, descriptions, and all related information
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo status record has been updated with fda hold information.
Trigger Criteria:
Context: Cargo status record has been updated with FDA hold information
Applied to: Generate FDA Hold Notification
Action: The system generates FDA hold notification
Logic Flow:
IF Cargo status record has been updated with FDA hold information
AND The system generates FDA hold notification
THEN:
• Appropriate notification messages are created for brokers, carriers, and other stakeholders about the FDA hold
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when fda hold notification has been generated.
Trigger Criteria:
Context: FDA hold notification has been generated
Applied to: Route to FDA Processing Queue
Action: The system routes to FDA processing queue
Logic Flow:
IF FDA hold notification has been generated
AND The system routes to FDA processing queue
THEN:
• The notification is sent to the appropriate FDA processing queue for regulatory review and action
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when fda processing queue routing is complete.
Trigger Criteria:
Context: FDA processing queue routing is complete
Applied to: Log FDA Hold Action
Action: The system logs FDA hold action
Logic Flow:
IF FDA processing queue routing is complete
AND The system logs FDA hold action
THEN:
• A complete audit record of the FDA hold action is created including timestamps, cargo details, and regulatory codes
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when fda hold action has been logged successfully.
Trigger Criteria:
Context: FDA hold action has been logged successfully
Applied to: FDA Hold Processing Complete
Action: The system completes FDA hold processing
Logic Flow:
IF FDA hold action has been logged successfully
AND The system completes FDA hold processing
THEN:
• FDA hold processing workflow is marked complete and control returns to main cargo processing flow
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo is not at destination or no fda hold codes are found.
Trigger Criteria:
Context: Cargo is not at destination or no FDA hold codes are found
Applied to: No FDA Hold Required
Action: The system determines no FDA hold is required
Logic Flow:
IF Cargo is not at destination or no FDA hold codes are found
AND The system determines no FDA hold is required
THEN:
• FDA hold processing is bypassed and the system proceeds to completion without applying FDA holds
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo status analysis has been completed.
Trigger Criteria:
Context: Cargo status analysis has been completed
Applied to: Check for FDA Hold Conditions
Action: System evaluates cargo for FDA hold requirements
Logic Flow:
IF Cargo status analysis has been completed
AND System evaluates cargo for FDA hold requirements
THEN:
• System identifies whether FDA hold conditions exist for the cargo
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when fda hold conditions have been identified for cargo.
Trigger Criteria:
Context: FDA hold conditions have been identified for cargo
Applied to: FDA Hold Required at Destination?
Action: System determines the appropriate hold location
Logic Flow:
IF FDA hold conditions have been identified for cargo
AND System determines the appropriate hold location
THEN:
• System decides whether FDA hold is required at destination or can proceed with other status processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when fda hold is required at destination for the cargo.
Trigger Criteria:
Context: FDA hold is required at destination for the cargo
Applied to: Set FDA Hold Status Flag
Action: System processes FDA hold assignment
Logic Flow:
IF FDA hold is required at destination for the cargo
AND System processes FDA hold assignment
THEN:
• System sets the FDA hold status flag to active state
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when fda hold status flag has been set for cargo.
Trigger Criteria:
Context: FDA hold status flag has been set for cargo
Applied to: Apply FDA-Specific Status Code
Action: System assigns FDA regulatory codes
Logic Flow:
IF FDA hold status flag has been set for cargo
AND System assigns FDA regulatory codes
THEN:
• System applies the FDA-specific status code corresponding to the hold type
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when fda-specific status code has been applied to cargo.
Trigger Criteria:
Context: FDA-specific status code has been applied to cargo
Applied to: Set Destination Hold Location
Action: System determines hold enforcement location
Logic Flow:
IF FDA-specific status code has been applied to cargo
AND System determines hold enforcement location
THEN:
• System sets the destination as the hold location for FDA regulatory compliance
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when destination hold location has been set for fda requirements.
Trigger Criteria:
Context: Destination hold location has been set for FDA requirements
Applied to: Update Cargo Status Description
Action: System updates cargo status information
Logic Flow:
IF Destination hold location has been set for FDA requirements
AND System updates cargo status information
THEN:
• System updates the cargo status description to indicate FDA hold status
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo status description has been updated for fda hold.
Trigger Criteria:
Context: Cargo status description has been updated for FDA hold
Applied to: Preserve Current Release Quantities
Action: System processes quantity information during FDA hold application
Logic Flow:
IF Cargo status description has been updated for FDA hold
AND System processes quantity information during FDA hold application
THEN:
• System preserves current release quantities without modification
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when current release quantities have been preserved for cargo under fda hold.
Trigger Criteria:
Context: Current release quantities have been preserved for cargo under FDA hold
Applied to: Set Hold on Piece Counts Status
Action: System applies piece-level hold controls
Logic Flow:
IF Current release quantities have been preserved for cargo under FDA hold
AND System applies piece-level hold controls
THEN:
• System sets hold status on piece counts to prevent unauthorized releases
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when hold on piece counts status has been set for cargo.
Trigger Criteria:
Context: Hold on piece counts status has been set for cargo
Applied to: Multiple FDA Codes Present?
Action: System evaluates FDA code complexity
Logic Flow:
IF Hold on piece counts status has been set for cargo
AND System evaluates FDA code complexity
THEN:
• System determines whether multiple FDA codes are present requiring additional processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when multiple fda codes are present for the cargo.
Trigger Criteria:
Context: Multiple FDA codes are present for the cargo
Applied to: Process Primary FDA Code
Action: System processes FDA codes in priority order
Logic Flow:
IF Multiple FDA codes are present for the cargo
AND System processes FDA codes in priority order
THEN:
• System processes the primary FDA code first to establish main hold requirements
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when primary fda code has been processed for cargo.
Trigger Criteria:
Context: Primary FDA code has been processed for cargo
Applied to: Process Secondary FDA Codes
Action: System continues with remaining FDA codes
Logic Flow:
IF Primary FDA code has been processed for cargo
AND System continues with remaining FDA codes
THEN:
• System processes secondary FDA codes to complete regulatory requirements
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when fda code processing has been completed (primary and secondary if applicable).
Trigger Criteria:
Context: FDA code processing has been completed (primary and secondary if applicable)
Applied to: Update Status Array with FDA Code
Action: System updates cargo status tracking
Logic Flow:
IF FDA code processing has been completed (primary and secondary if applicable)
AND System updates cargo status tracking
THEN:
• System updates the status array with FDA code information
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when status array has been updated with fda code information.
Trigger Criteria:
Context: Status array has been updated with FDA code information
Applied to: Mark Cargo as Held at Destination
Action: System applies destination hold markers
Logic Flow:
IF Status array has been updated with FDA code information
AND System applies destination hold markers
THEN:
• System marks cargo as held at destination location
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo has been marked as held at destination.
Trigger Criteria:
Context: Cargo has been marked as held at destination
Applied to: Set FDA Hold Description Text
Action: System assigns status description text
Logic Flow:
IF Cargo has been marked as held at destination
AND System assigns status description text
THEN:
• System sets FDA hold description text explaining the regulatory hold reason
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when fda hold description text has been set for cargo.
Trigger Criteria:
Context: FDA hold description text has been set for cargo
Applied to: Update Hold Location Indicator
Action: System finalizes hold location information
Logic Flow:
IF FDA hold description text has been set for cargo
AND System finalizes hold location information
THEN:
• System updates the hold location indicator to reflect FDA enforcement location
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when hold location indicator has been updated for cargo.
Trigger Criteria:
Context: Hold location indicator has been updated for cargo
Applied to: Log FDA Hold Action
Action: System performs audit logging
Logic Flow:
IF Hold location indicator has been updated for cargo
AND System performs audit logging
THEN:
• System logs the FDA hold action with timestamp and regulatory details
R-GCX016-cbl-00986 (+18)File: GCX016.cblBusiness Rule: PTT Processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record is being processed for ptt status changes.
Trigger Criteria:
Context: A cargo record is being processed for PTT status changes
Applied to: Cargo Has PTT Status?
Action: The system evaluates the cargo's current status
Logic Flow:
IF A cargo record is being processed for PTT status changes
AND The system evaluates the cargo's current status
THEN:
• If cargo has existing PTT status, preserve current PTT status for comparison, otherwise proceed with PTT analysis
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo has an existing ptt status.
Trigger Criteria:
Context: Cargo has an existing PTT status
Applied to: Save Current PTT Status
Action: PTT processing begins
Logic Flow:
IF Cargo has an existing PTT status
AND PTT processing begins
THEN:
• Save the current PTT status values to working storage for potential restoration
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo status array exists with multiple status entries.
Trigger Criteria:
Context: A cargo status array exists with multiple status entries
Applied to: Analyze Status Array for PTT Codes
Action: The system analyzes the status array for PTT codes
Logic Flow:
IF A cargo status array exists with multiple status entries
AND The system analyzes the status array for PTT codes
THEN:
• Identify and flag any PTT disposition codes present in the status array
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when status array has been analyzed for ptt codes.
Trigger Criteria:
Context: The status array has been analyzed for PTT codes
Applied to: PTT Disposition Code Found?
Action: The system checks for PTT disposition code presence
Logic Flow:
IF The status array has been analyzed for PTT codes
AND The system checks for PTT disposition code presence
THEN:
• If PTT disposition code is found, proceed with PTT quantity extraction, otherwise restore previous PTT status if needed
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when ptt disposition code has been found in the status array.
Trigger Criteria:
Context: A PTT disposition code has been found in the status array
Applied to: Extract PTT Quantity from Status Array
Action: The system extracts quantity information
Logic Flow:
IF A PTT disposition code has been found in the status array
AND The system extracts quantity information
THEN:
• Retrieve the PTT quantity value from the status array entry for validation
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when ptt quantity has been extracted from the status array.
Trigger Criteria:
Context: PTT quantity has been extracted from the status array
Applied to: Validate PTT Quantity Against Cargo Quantity
Action: The system validates the PTT quantity against total cargo quantity
Logic Flow:
IF PTT quantity has been extracted from the status array
AND The system validates the PTT quantity against total cargo quantity
THEN:
• If PTT quantity is valid and within acceptable range, proceed with quantity calculations, otherwise generate PTT validation error
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when ptt quantity has been validated against business rules.
Trigger Criteria:
Context: PTT quantity has been validated against business rules
Applied to: Quantity Valid?
Action: The system checks validation results
Logic Flow:
IF PTT quantity has been validated against business rules
AND The system checks validation results
THEN:
• If quantity is valid, calculate remaining quantity after PTT, otherwise log PTT validation error
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when ptt quantity has been validated as acceptable.
Trigger Criteria:
Context: PTT quantity has been validated as acceptable
Applied to: Calculate Remaining Quantity After PTT
Action: The system calculates remaining quantities
Logic Flow:
IF PTT quantity has been validated as acceptable
AND The system calculates remaining quantities
THEN:
• Subtract PTT quantity from total cargo quantity to determine remaining quantity for further processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when remaining quantity after ptt has been calculated.
Trigger Criteria:
Context: Remaining quantity after PTT has been calculated
Applied to: Partial Release Scenario?
Action: The system evaluates if this is a partial release scenario
Logic Flow:
IF Remaining quantity after PTT has been calculated
AND The system evaluates if this is a partial release scenario
THEN:
• If released quantity is less than total quantity, set PTT status with partial quantity, otherwise set full PTT release status
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when partial release scenario has been identified.
Trigger Criteria:
Context: A partial release scenario has been identified
Applied to: Set PTT Status with Partial Quantity
Action: The system sets PTT status
Logic Flow:
IF A partial release scenario has been identified
AND The system sets PTT status
THEN:
• Set PTT status with the partial quantity value and maintain tracking for remaining unreleased cargo
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when ptt status has been set with partial quantity.
Trigger Criteria:
Context: PTT status has been set with partial quantity
Applied to: Update Released Quantity
Action: The system updates released quantity
Logic Flow:
IF PTT status has been set with partial quantity
AND The system updates released quantity
THEN:
• Add PTT quantity to the cargo's total released quantity field
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when released quantity has been updated for partial release.
Trigger Criteria:
Context: Released quantity has been updated for partial release
Applied to: Preserve PTT for Remaining Cargo
Action: The system processes remaining cargo
Logic Flow:
IF Released quantity has been updated for partial release
AND The system processes remaining cargo
THEN:
• Preserve PTT status for the remaining unreleased cargo quantity to enable future processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when scenario is determined to be a full release (not partial).
Trigger Criteria:
Context: The scenario is determined to be a full release (not partial)
Applied to: Set Full PTT Release Status
Action: The system sets PTT release status
Logic Flow:
IF The scenario is determined to be a full release (not partial)
AND The system sets PTT release status
THEN:
• Set full PTT release status for the entire cargo quantity
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when full ptt release status has been set.
Trigger Criteria:
Context: Full PTT release status has been set
Applied to: Clear PTT Status from Array
Action: The system cleans up the status array
Logic Flow:
IF Full PTT release status has been set
AND The system cleans up the status array
THEN:
• Remove PTT status codes from the cargo status array to prevent duplicate processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when no ptt disposition code was found in the current processing.
Trigger Criteria:
Context: No PTT disposition code was found in the current processing
Applied to: Restore Previous PTT Status if Needed
Action: The system needs to restore previous state
Logic Flow:
IF No PTT disposition code was found in the current processing
AND The system needs to restore previous state
THEN:
• Restore the previously saved PTT status to maintain cargo status consistency
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when ptt status has been determined (new, preserved, or restored).
Trigger Criteria:
Context: PTT status has been determined (new, preserved, or restored)
Applied to: Update Cargo Record with PTT Status
Action: The system updates the cargo record
Logic Flow:
IF PTT status has been determined (new, preserved, or restored)
AND The system updates the cargo record
THEN:
• Write the final PTT status and associated quantities to the cargo database record
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record has been updated with ptt status.
Trigger Criteria:
Context: Cargo record has been updated with PTT status
Applied to: Generate PTT Status Message
Action: The system generates status messages
Logic Flow:
IF Cargo record has been updated with PTT status
AND The system generates status messages
THEN:
• Create and send PTT status notification messages to relevant external systems and stakeholders
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when ptt quantity validation has failed.
Trigger Criteria:
Context: PTT quantity validation has failed
Applied to: PTT Validation Error
Action: The system encounters validation errors
Logic Flow:
IF PTT quantity validation has failed
AND The system encounters validation errors
THEN:
• Generate PTT validation error and proceed to error logging
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when ptt validation error has occurred.
Trigger Criteria:
Context: A PTT validation error has occurred
Applied to: Log PTT Error Message
Action: The system logs the error
Logic Flow:
IF A PTT validation error has occurred
AND The system logs the error
THEN:
• Create detailed error log entry with PTT validation failure details and cargo information
Business Justification: Ensures correct system behavior and process compliance when cargo record is being processed for proceed status.
Trigger Criteria:
Context: A cargo record is being processed for proceed status
Applied to: Cargo Status Analysis Complete?
Action: The system checks if cargo status analysis is complete
Logic Flow:
IF A cargo record is being processed for proceed status
AND The system checks if cargo status analysis is complete
THEN:
• The system either continues to proceed flag check or skips proceed processing based on analysis completion status
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo status analysis is complete and status array is available.
Trigger Criteria:
Context: Cargo status analysis is complete and status array is available
Applied to: Proceed Flag Set?
Action: The system checks the proceed flag in the status array
Logic Flow:
IF Cargo status analysis is complete and status array is available
AND The system checks the proceed flag in the status array
THEN:
• If proceed flag is set, continue to border arrival validation, otherwise skip proceed processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when proceed flag is set in status array and border arrival requirements are being validated.
Trigger Criteria:
Context: Proceed flag is set in status array and border arrival requirements are being validated
Applied to: Border Arrival Date Available?
Action: The system checks for border arrival date availability
Logic Flow:
IF Proceed flag is set in status array and border arrival requirements are being validated
AND The system checks for border arrival date availability
THEN:
• If border arrival date is available, proceed to set proceed status, otherwise skip proceed processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when border arrival date is available and all proceed validation requirements are met.
Trigger Criteria:
Context: Border arrival date is available and all proceed validation requirements are met
Applied to: Set Proceed Status in Cargo Record
Action: The system sets proceed status in the cargo record
Logic Flow:
IF Border arrival date is available and all proceed validation requirements are met
AND The system sets proceed status in the cargo record
THEN:
• The cargo record status is updated to proceed and the system continues to update border arrival date
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when proceed status has been set in the cargo record.
Trigger Criteria:
Context: Proceed status has been set in the cargo record
Applied to: Update Border Arrival Date
Action: The system updates the border arrival date
Logic Flow:
IF Proceed status has been set in the cargo record
AND The system updates the border arrival date
THEN:
• The border arrival date is recorded in the cargo record and the system proceeds to clear conflicting hold status
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when border arrival date has been updated in the cargo record.
Trigger Criteria:
Context: Border arrival date has been updated in the cargo record
Applied to: Clear Any Conflicting Hold Status
Action: The system clears conflicting hold status
Logic Flow:
IF Border arrival date has been updated in the cargo record
AND The system clears conflicting hold status
THEN:
• Any hold status that conflicts with proceed status is removed and the system checks if cargo is cross-border
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when conflicting hold status has been cleared.
Trigger Criteria:
Context: Conflicting hold status has been cleared
Applied to: Cross-Border Cargo?
Action: The system checks if cargo is cross-border cargo
Logic Flow:
IF Conflicting hold status has been cleared
AND The system checks if cargo is cross-border cargo
THEN:
• If cargo is cross-border, coordinate with Canadian system, otherwise proceed to update cargo status flags
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo is identified as cross-border cargo.
Trigger Criteria:
Context: Cargo is identified as cross-border cargo
Applied to: Coordinate with Canadian System
Action: The system coordinates with Canadian system
Logic Flow:
IF Cargo is identified as cross-border cargo
AND The system coordinates with Canadian system
THEN:
• Canadian manifest records are updated or notified of proceed status and the system continues to update cargo status flags
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when proceed status has been set and any canadian system coordination is complete.
Trigger Criteria:
Context: Proceed status has been set and any Canadian system coordination is complete
Applied to: Update Cargo Status Flags
Action: The system updates cargo status flags
Logic Flow:
IF Proceed status has been set and any Canadian system coordination is complete
AND The system updates cargo status flags
THEN:
• All cargo status flags are updated to reflect proceed status and the system logs the status change
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo status flags have been updated to reflect proceed status.
Trigger Criteria:
Context: Cargo status flags have been updated to reflect proceed status
Applied to: Log Proceed Status Change
Action: The system logs the proceed status change
Logic Flow:
IF Cargo status flags have been updated to reflect proceed status
AND The system logs the proceed status change
THEN:
• The proceed status change is recorded in the system log and proceed processing is marked as complete
R-GCX016-cbl-01015 (+12)File: GCX016.cblBusiness Rule: Hold Processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record with status array s09a containing various disposition codes.
Trigger Criteria:
Context: A cargo record with status array S09A containing various disposition codes
Applied to: Analyze Status Array for Hold Codes
Action: The system processes the status array to identify hold-related codes
Logic Flow:
IF A cargo record with status array S09A containing various disposition codes
AND The system processes the status array to identify hold-related codes
THEN:
• The system sets appropriate flags for border holds, destination holds, FDA holds, and piece count holds based on the codes found in the array
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record with identified hold codes in the status array.
Trigger Criteria:
Context: A cargo record with identified hold codes in the status array
Applied to: Hold Location Determination
Action: The system evaluates the hold codes to determine applicable locations
Logic Flow:
IF A cargo record with identified hold codes in the status array
AND The system evaluates the hold codes to determine applicable locations
THEN:
• The system classifies the hold as border-only, destination-only, or both locations based on the specific disposition codes present
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record requiring border hold processing.
Trigger Criteria:
Context: A cargo record requiring border hold processing
Applied to: Set Border Hold Status
Action: The system determines that hold codes apply to border location
Logic Flow:
IF A cargo record requiring border hold processing
AND The system determines that hold codes apply to border location
THEN:
• The system sets the cargo status to border hold and updates the appropriate status flags
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record requiring destination hold processing.
Trigger Criteria:
Context: A cargo record requiring destination hold processing
Applied to: Set Destination Hold Status
Action: The system determines that hold codes apply to destination location
Logic Flow:
IF A cargo record requiring destination hold processing
AND The system determines that hold codes apply to destination location
THEN:
• The system sets the cargo status to destination hold and updates the appropriate status flags
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record with hold codes requiring restrictions at multiple locations.
Trigger Criteria:
Context: A cargo record with hold codes requiring restrictions at multiple locations
Applied to: Set Both Border and Destination Hold
Action: The system determines that hold codes apply to both border and destination
Logic Flow:
IF A cargo record with hold codes requiring restrictions at multiple locations
AND The system determines that hold codes apply to both border and destination
THEN:
• The system sets the cargo status to hold at both locations and updates all relevant status flags
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record with proposed hold status changes.
Trigger Criteria:
Context: A cargo record with proposed hold status changes
Applied to: Validate Hold Requirements
Action: The system validates the hold requirements against current cargo conditions
Logic Flow:
IF A cargo record with proposed hold status changes
AND The system validates the hold requirements against current cargo conditions
THEN:
• The system confirms the hold is valid or rejects invalid hold attempts based on cargo state and business rules
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record with disposition codes that may require fda oversight.
Trigger Criteria:
Context: A cargo record with disposition codes that may require FDA oversight
Applied to: FDA Hold Required?
Action: The system evaluates disposition codes for FDA hold requirements
Logic Flow:
IF A cargo record with disposition codes that may require FDA oversight
AND The system evaluates disposition codes for FDA hold requirements
THEN:
• The system sets FDA hold flag if A3 or other FDA-related disposition codes are present
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record requiring fda hold processing.
Trigger Criteria:
Context: A cargo record requiring FDA hold processing
Applied to: Set FDA Hold at Destination
Action: The system determines FDA hold is required at destination
Logic Flow:
IF A cargo record requiring FDA hold processing
AND The system determines FDA hold is required at destination
THEN:
• The system sets HOLDFDA status and applies destination hold with FDA-specific processing requirements
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record with release quantities that may be less than total quantities.
Trigger Criteria:
Context: A cargo record with release quantities that may be less than total quantities
Applied to: Partial Release Scenario?
Action: The system compares released quantities against total cargo quantities
Logic Flow:
IF A cargo record with release quantities that may be less than total quantities
AND The system compares released quantities against total cargo quantities
THEN:
• The system identifies partial release scenarios where released quantity is less than total quantity
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record with partial release quantities.
Trigger Criteria:
Context: A cargo record with partial release quantities
Applied to: Set Hold on Piece Counts Status
Action: The system determines that some pieces are released while others remain held
Logic Flow:
IF A cargo record with partial release quantities
AND The system determines that some pieces are released while others remain held
THEN:
• The system sets HOLDPCS status to indicate hold on remaining piece counts
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record with determined hold status requirements.
Trigger Criteria:
Context: A cargo record with determined hold status requirements
Applied to: Update Cargo Hold Flags
Action: The system updates cargo hold flags and status indicators
Logic Flow:
IF A cargo record with determined hold status requirements
AND The system updates cargo hold flags and status indicators
THEN:
• The system sets all appropriate hold flags including border hold, destination hold, FDA hold, and piece count hold flags
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record with confirmed hold status and location details.
Trigger Criteria:
Context: A cargo record with confirmed hold status and location details
Applied to: Generate Hold Message with Location Details
Action: The system generates hold notification messages
Logic Flow:
IF A cargo record with confirmed hold status and location details
AND The system generates hold notification messages
THEN:
• The system creates detailed messages including hold type, location information, and relevant cargo details for broker notifications
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record with processed hold status changes.
Trigger Criteria:
Context: A cargo record with processed hold status changes
Applied to: Update Status Array with Hold Information
Action: The system updates the status array with hold information
Logic Flow:
IF A cargo record with processed hold status changes
AND The system updates the status array with hold information
THEN:
• The system adds appropriate hold disposition codes to the S09A status array and maintains proper sequencing
Business Justification: Governs the functional prerequisites and system routing when cargo record exists and arrival processing is being performed.
Trigger Criteria:
Context: A cargo record exists and arrival processing is being performed
Applied to: Set Arrival Status
Action: The arrival flag is set for the cargo
Logic Flow:
IF A cargo record exists and arrival processing is being performed
AND The arrival flag is set for the cargo
THEN:
• The cargo status is updated to arrival status and the border arrival date is set to current date
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo is being set to arrival status.
Trigger Criteria:
Context: Cargo is being set to arrival status
Applied to: Update Border Arrival Date
Action: The arrival status is being applied
Logic Flow:
IF Cargo is being set to arrival status
AND The arrival status is being applied
THEN:
• The border arrival date is updated with the current system date
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo has both arrival flag set and existing export status.
Trigger Criteria:
Context: Cargo has both arrival flag set and existing export status
Applied to: Clear Export Status if Set
Action: Arrival status is being applied to the cargo
Logic Flow:
IF Cargo has both arrival flag set and existing export status
AND Arrival status is being applied to the cargo
THEN:
• The export status is cleared and removed from the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record exists and export processing is being performed.
Trigger Criteria:
Context: A cargo record exists and export processing is being performed
Applied to: Set Export Status
Action: The export flag is set for the cargo
Logic Flow:
IF A cargo record exists and export processing is being performed
AND The export flag is set for the cargo
THEN:
• The cargo status is updated to export status
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo is being set to export status.
Trigger Criteria:
Context: Cargo is being set to export status
Applied to: Clear Destination Index & Update Export Date
Action: The export status is being applied
Logic Flow:
IF Cargo is being set to export status
AND The export status is being applied
THEN:
• The destination index is cleared and set to blank
• The export date is updated with the current system date
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo has both arrival and export flags set simultaneously.
Trigger Criteria:
Context: Cargo has both arrival and export flags set simultaneously
Applied to: Prioritize Export Status
Action: Both statuses are being evaluated for application
Logic Flow:
IF Cargo has both arrival and export flags set simultaneously
AND Both statuses are being evaluated for application
THEN:
• Export status is applied and arrival status is overridden
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo status is being changed to arrival or export.
Trigger Criteria:
Context: Cargo status is being changed to arrival or export
Applied to: Log Status Change
Action: The status change is being applied
Logic Flow:
IF Cargo status is being changed to arrival or export
AND The status change is being applied
THEN:
• The status change is logged with timestamp and details for audit trail
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when arrival or export status has been determined for cargo.
Trigger Criteria:
Context: Arrival or export status has been determined for cargo
Applied to: Update Cargo Record
Action: Status processing is complete
Logic Flow:
IF Arrival or export status has been determined for cargo
AND Status processing is complete
THEN:
• The cargo record is updated in the database with the new status and associated dates
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo status has been updated to arrival or export.
Trigger Criteria:
Context: Cargo status has been updated to arrival or export
Applied to: Generate Status Notification
Action: The status update is complete
Logic Flow:
IF Cargo status has been updated to arrival or export
AND The status update is complete
THEN:
• Status change notifications are generated and sent to relevant parties including brokers and customs
Business Justification: Defines the strict business conditions required to proceed when cargo record exists in the system with status information.
Trigger Criteria:
Context: A cargo record exists in the system with status information
Applied to: Previously Released Cargo Detected?
Action: The system analyzes the cargo's current status array for release indicators
Logic Flow:
IF A cargo record exists in the system with status information
AND The system analyzes the cargo's current status array for release indicators
THEN:
• The system determines if the cargo was previously released based on release status flags and proceeds to status analysis or completes processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when previously released cargo has been identified.
Trigger Criteria:
Context: Previously released cargo has been identified
Applied to: Analyze Current Status Array
Action: The system calls B570-VERIFY-THE-ARRAY to analyze status conditions
Logic Flow:
IF Previously released cargo has been identified
AND The system calls B570-VERIFY-THE-ARRAY to analyze status conditions
THEN:
• The system sets flags for cargo conditions including empty, held, released, PTT status and prepares for release status change detection
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when current status array has been analyzed and cargo was previously released.
Trigger Criteria:
Context: The current status array has been analyzed and cargo was previously released
Applied to: Release Status Changed to Unreleased?
Action: The system compares current release status against previous release status
Logic Flow:
IF The current status array has been analyzed and cargo was previously released
AND The system compares current release status against previous release status
THEN:
• If release status changed from released to unreleased, proceed to unrelease scenario identification, otherwise complete processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when release status has changed from released to unreleased.
Trigger Criteria:
Context: Release status has changed from released to unreleased
Applied to: Identify Cargo Unrelease Scenario
Action: The system evaluates the disposition code and current cargo conditions
Logic Flow:
IF Release status has changed from released to unreleased
AND The system evaluates the disposition code and current cargo conditions
THEN:
• The system identifies the specific unrelease scenario type and prepares appropriate processing actions
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when unrelease scenario has been identified.
Trigger Criteria:
Context: An unrelease scenario has been identified
Applied to: Generate Unrelease Notification
Action: The system calls C600-FORMAT-MERLIN-INFO to format the unrelease message
Logic Flow:
IF An unrelease scenario has been identified
AND The system calls C600-FORMAT-MERLIN-INFO to format the unrelease message
THEN:
• The system creates a formatted notification message containing disposition code, cargo details, and unrelease information
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when unrelease notification has been generated.
Trigger Criteria:
Context: Unrelease notification has been generated
Applied to: Update Cargo Status to Unreleased
Action: The system calls B580-SET-US-CARGO-STATUS to update cargo status
Logic Flow:
IF Unrelease notification has been generated
AND The system calls B580-SET-US-CARGO-STATUS to update cargo status
THEN:
• The cargo status is updated to unreleased condition with appropriate status description and flags
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo status has been updated to unreleased.
Trigger Criteria:
Context: Cargo status has been updated to unreleased
Applied to: Clear Release Quantities
Action: The system processes quantity adjustments for unrelease
Logic Flow:
IF Cargo status has been updated to unreleased
AND The system processes quantity adjustments for unrelease
THEN:
• Release quantities are cleared or adjusted to reflect the unreleased status
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when release quantities have been cleared.
Trigger Criteria:
Context: Release quantities have been cleared
Applied to: Re-establish Destination Index
Action: The system calls B585-SET-RT076-DEST-INDEX to restore destination information
Logic Flow:
IF Release quantities have been cleared
AND The system calls B585-SET-RT076-DEST-INDEX to restore destination information
THEN:
• Destination index is re-established with appropriate bond dates and routing information for the unreleased cargo
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when destination index has been re-established for unreleased cargo.
Trigger Criteria:
Context: Destination index has been re-established for unreleased cargo
Applied to: Canadian Manifest Coordination Required?
Action: The system checks if cargo has Canadian manifest cross-references
Logic Flow:
IF Destination index has been re-established for unreleased cargo
AND The system checks if cargo has Canadian manifest cross-references
THEN:
• If Canadian manifest coordination is required, proceed to Canadian manifest processing, otherwise proceed to message routing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when canadian manifest coordination is required.
Trigger Criteria:
Context: Canadian manifest coordination is required
Applied to: Process Canadian Manifest Cross-reference
Action: The system calls B583-PROCESS-CDN-MFST to handle Canadian manifest processing
Logic Flow:
IF Canadian manifest coordination is required
AND The system calls B583-PROCESS-CDN-MFST to handle Canadian manifest processing
THEN:
• Canadian manifest records are updated to reflect the cargo unrelease status
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when canadian manifest cross-reference has been processed.
Trigger Criteria:
Context: Canadian manifest cross-reference has been processed
Applied to: Send Notification to Canadian System
Action: The system sends notification to Canadian system about cargo unrelease
Logic Flow:
IF Canadian manifest cross-reference has been processed
AND The system sends notification to Canadian system about cargo unrelease
THEN:
• Canadian system receives notification of cargo status change to unreleased
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when canadian system notification has been sent or canadian coordination is not required.
Trigger Criteria:
Context: Canadian system notification has been sent or Canadian coordination is not required
Applied to: Route Unrelease Message to Appropriate Users
Action: The system calls Z110-PREP-EMCSEND with message type UNRLSE
Logic Flow:
IF Canadian system notification has been sent or Canadian coordination is not required
AND The system calls Z110-PREP-EMCSEND with message type UNRLSE
THEN:
• Unrelease message is routed to default and cancel-specific Merlin IDs for appropriate user notification
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when unrelease message has been routed to appropriate users.
Trigger Criteria:
Context: Unrelease message has been routed to appropriate users
Applied to: Broker Notification Required?
Action: The system checks broker notification requirements for the cargo
Logic Flow:
IF Unrelease message has been routed to appropriate users
AND The system checks broker notification requirements for the cargo
THEN:
• If broker notification is required, proceed to send broker notification, otherwise proceed to transaction logging
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when broker notification is required for the unrelease event.
Trigger Criteria:
Context: Broker notification is required for the unrelease event
Applied to: Send Broker Notification for Unrelease
Action: The system calls C801-NOTIFY-BROKER with unrelease information
Logic Flow:
IF Broker notification is required for the unrelease event
AND The system calls C801-NOTIFY-BROKER with unrelease information
THEN:
• Broker receives notification about cargo unrelease with relevant details and disposition code information
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when broker notification has been sent or is not required.
Trigger Criteria:
Context: Broker notification has been sent or is not required
Applied to: Log Cargo Unrelease Transaction
Action: The system calls Z300-SPAWN-GCT1051E to log the transaction
Logic Flow:
IF Broker notification has been sent or is not required
AND The system calls Z300-SPAWN-GCT1051E to log the transaction
THEN:
• Cargo unrelease transaction is logged with complete details for audit trail and system tracking
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo unrelease transaction has been logged.
Trigger Criteria:
Context: Cargo unrelease transaction has been logged
Applied to: Update Integration Services
Action: The system calls C700-CALL-GCCIIS with unrelease status information
Logic Flow:
IF Cargo unrelease transaction has been logged
AND The system calls C700-CALL-GCCIIS with unrelease status information
THEN:
• Integration services are updated with cargo unrelease status for equipment and container processing systems
R-GCX016-cbl-01065 (+11)File: GCX016.cblBusiness Rule: Canadian Manifest Processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when us cargo has been released.
Trigger Criteria:
Context: A US cargo has been released
Applied to: Canadian Manifest Coordination Required?
Action: The system evaluates if Canadian manifest coordination is needed
Logic Flow:
IF A US cargo has been released
AND The system evaluates if Canadian manifest coordination is needed
THEN:
• The system should proceed with Canadian manifest processing if coordination is required, otherwise skip Canadian processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when canadian manifest coordination is required.
Trigger Criteria:
Context: Canadian manifest coordination is required
Applied to: Access Canadian Cargo Database Records
Action: The system needs to access Canadian cargo records
Logic Flow:
IF Canadian manifest coordination is required
AND The system needs to access Canadian cargo records
THEN:
• The system should connect to and query the Canadian cargo database
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when canadian cargo database records are accessible.
Trigger Criteria:
Context: Canadian cargo database records are accessible
Applied to: Match Canadian Cargo by Equipment ID
Action: The system searches for matching Canadian cargo using equipment ID
Logic Flow:
IF Canadian cargo database records are accessible
AND The system searches for matching Canadian cargo using equipment ID
THEN:
• The system should locate Canadian cargo records that match the equipment identifier
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when system has searched for canadian cargo by equipment id.
Trigger Criteria:
Context: The system has searched for Canadian cargo by equipment ID
Applied to: Canadian Cargo Record Found?
Action: The search results are evaluated
Logic Flow:
IF The system has searched for Canadian cargo by equipment ID
AND The search results are evaluated
THEN:
• The system should determine if a valid Canadian cargo record was found and proceed accordingly or terminate Canadian processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when canadian cargo record has been found.
Trigger Criteria:
Context: A Canadian cargo record has been found
Applied to: Validate Canadian Record Status
Action: The system validates the record status
Logic Flow:
IF A Canadian cargo record has been found
AND The system validates the record status
THEN:
• The system should verify the Canadian record is in a valid state for processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when canadian cargo record status has been validated.
Trigger Criteria:
Context: A Canadian cargo record status has been validated
Applied to: Canadian Record Valid and Usable?
Action: The system checks if the record is usable for coordination
Logic Flow:
IF A Canadian cargo record status has been validated
AND The system checks if the record is usable for coordination
THEN:
• The system should proceed with log message creation if the record is valid and usable, otherwise terminate Canadian processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when valid and usable canadian cargo record exists.
Trigger Criteria:
Context: A valid and usable Canadian cargo record exists
Applied to: Create Cross-Border Log Message
Action: The system creates a cross-border coordination log message
Logic Flow:
IF A valid and usable Canadian cargo record exists
AND The system creates a cross-border coordination log message
THEN:
• The system should generate a properly formatted log message containing relevant cargo release information
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cross-border log message has been created.
Trigger Criteria:
Context: A cross-border log message has been created
Applied to: Place Log Message on Canadian CCN
Action: The system places the log message on the Canadian CCN
Logic Flow:
IF A cross-border log message has been created
AND The system places the log message on the Canadian CCN
THEN:
• The system should successfully transmit and store the log message in the Canadian CCN system
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when log message has been placed on canadian ccn.
Trigger Criteria:
Context: The log message has been placed on Canadian CCN
Applied to: Update Canadian Manifest Status
Action: The system updates the Canadian manifest status
Logic Flow:
IF The log message has been placed on Canadian CCN
AND The system updates the Canadian manifest status
THEN:
• The system should update the Canadian manifest record to indicate successful cross-border coordination
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when canadian manifest status has been updated.
Trigger Criteria:
Context: The Canadian manifest status has been updated
Applied to: Canadian Coordination Complete
Action: The coordination process completes
Logic Flow:
IF The Canadian manifest status has been updated
AND The coordination process completes
THEN:
• The system should mark the Canadian coordination as complete and continue with normal processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when us cargo has been released.
Trigger Criteria:
Context: US cargo has been released
Applied to: No Canadian Manifest Processing Required
Action: Canadian manifest coordination is not required
Logic Flow:
IF US cargo has been released
AND Canadian manifest coordination is not required
THEN:
• The system should bypass all Canadian manifest processing and continue with normal operations
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when system has attempted to find and validate canadian cargo records.
Trigger Criteria:
Context: The system has attempted to find and validate Canadian cargo records
Applied to: Canadian Record Not Found or Invalid
Action: No valid Canadian record is found or the record is invalid
Logic Flow:
IF The system has attempted to find and validate Canadian cargo records
AND No valid Canadian record is found or the record is invalid
THEN:
• The system should terminate Canadian coordination processing and continue with normal operations
R-GCX016-cbl-01077 (+9)File: GCX016.cblBusiness Rule: Canadian Release Notification
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when us cargo has been released.
Trigger Criteria:
Context: US cargo has been released
Applied to: Canadian Manifest Coordination Required?
Action: the system evaluates if Canadian manifest coordination is needed
Logic Flow:
IF US cargo has been released
AND the system evaluates if Canadian manifest coordination is needed
THEN:
• the system should proceed to find matching Canadian manifests if coordination is required, otherwise skip Canadian processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when canadian manifest coordination is required.
Trigger Criteria:
Context: Canadian manifest coordination is required
Applied to: Find Matching Canadian Manifests
Action: the system searches for matching Canadian manifests using equipment ID
Logic Flow:
IF Canadian manifest coordination is required
AND the system searches for matching Canadian manifests using equipment ID
THEN:
• the system should access the Canadian cargo database to find related records
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when matching canadian manifests need to be found.
Trigger Criteria:
Context: matching Canadian manifests need to be found
Applied to: Access Canadian Cargo Database
Action: the system accesses the Canadian cargo database
Logic Flow:
IF matching Canadian manifests need to be found
AND the system accesses the Canadian cargo database
THEN:
• the system should retrieve Canadian CCN records for processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when canadian cargo database has been accessed.
Trigger Criteria:
Context: the Canadian cargo database has been accessed
Applied to: Canadian CCN Records Found?
Action: the system checks for Canadian CCN records
Logic Flow:
IF the Canadian cargo database has been accessed
AND the system checks for Canadian CCN records
THEN:
• if Canadian CCN records are found, proceed to match Canadian cargo by equipment ID, otherwise skip Canadian processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when canadian ccn records are found.
Trigger Criteria:
Context: Canadian CCN records are found
Applied to: Match Canadian Cargo by Equipment ID
Action: the system matches Canadian cargo by equipment ID
Logic Flow:
IF Canadian CCN records are found
AND the system matches Canadian cargo by equipment ID
THEN:
• the system should validate if the Canadian records are usable for processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when canadian cargo has been matched by equipment id.
Trigger Criteria:
Context: Canadian cargo has been matched by equipment ID
Applied to: Valid Canadian Records?
Action: the system validates Canadian records
Logic Flow:
IF Canadian cargo has been matched by equipment ID
AND the system validates Canadian records
THEN:
• if records are valid, generate log message for Canadian CCN, otherwise exclude deleted or unusable records
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when canadian records need validation.
Trigger Criteria:
Context: Canadian records need validation
Applied to: Exclude Deleted/Unusable Canadian Records
Action: the system encounters deleted or unusable Canadian records
Logic Flow:
IF Canadian records need validation
AND the system encounters deleted or unusable Canadian records
THEN:
• the system should exclude these records and re-validate the remaining records
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when valid canadian records are identified.
Trigger Criteria:
Context: valid Canadian records are identified
Applied to: Generate Log Message for Canadian CCN
Action: the system generates a log message for Canadian CCN
Logic Flow:
IF valid Canadian records are identified
AND the system generates a log message for Canadian CCN
THEN:
• the system should place the log message on the Canadian system
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when log message has been generated for canadian ccn.
Trigger Criteria:
Context: a log message has been generated for Canadian CCN
Applied to: Place Log Message on Canadian System
Action: the system places the log message on the Canadian system
Logic Flow:
IF a log message has been generated for Canadian CCN
AND the system places the log message on the Canadian system
THEN:
• the system should create an audit trail for the cross-border release
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when log message has been placed on the canadian system.
Trigger Criteria:
Context: the log message has been placed on the Canadian system
Applied to: Create Audit Trail for Cross-Border Release
Action: the system creates an audit trail for cross-border release
Logic Flow:
IF the log message has been placed on the Canadian system
AND the system creates an audit trail for cross-border release
THEN:
• the Canadian notification process should be marked as complete
R-GCX016-cbl-01087 (+8)File: GCX016.cblBusiness Rule: Destination Index Management
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record exists with manual release status (mrl) and has an existing destination index.
Trigger Criteria:
Context: A cargo record exists with manual release status (MRL) and has an existing destination index
Applied to: Manual Release Processing
Action: The cargo status is set to manual release
Logic Flow:
IF A cargo record exists with manual release status (MRL) and has an existing destination index
AND The cargo status is set to manual release
THEN:
• The RT076 destination index should be cleared and the cargo should no longer be tracked for destination-specific requirements
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record exists and fda hold disposition code (a3) is applied at destination location.
Trigger Criteria:
Context: A cargo record exists and FDA hold disposition code (A3) is applied at destination location
Applied to: FDA Hold at Destination
Action: The cargo status is set to FDA hold at destination
Logic Flow:
IF A cargo record exists and FDA hold disposition code (A3) is applied at destination location
AND The cargo status is set to FDA hold at destination
THEN:
• The RT076 destination index should be set with FDA hold status and destination location information
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record exists with full release status where released quantity equals or exceeds total quantity.
Trigger Criteria:
Context: A cargo record exists with full release status where released quantity equals or exceeds total quantity
Applied to: Full Release Processing
Action: The cargo status is set to full release
Logic Flow:
IF A cargo record exists with full release status where released quantity equals or exceeds total quantity
AND The cargo status is set to full release
THEN:
• The RT076 destination index should be cleared and destination tracking requirements should be removed
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record exists and arrival status is being processed with valid arrival date and destination location.
Trigger Criteria:
Context: A cargo record exists and arrival status is being processed with valid arrival date and destination location
Applied to: Arrival Status Processing
Action: The cargo status is set to arrival at destination
Logic Flow:
IF A cargo record exists and arrival status is being processed with valid arrival date and destination location
AND The cargo status is set to arrival at destination
THEN:
• The RT076 destination index should be set with arrival date and destination location information
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record exists and export status is being applied.
Trigger Criteria:
Context: A cargo record exists and export status is being applied
Applied to: Export Status Processing
Action: The cargo status is set to export
Logic Flow:
IF A cargo record exists and export status is being applied
AND The cargo status is set to export
THEN:
• The RT076 destination index should be cleared and domestic destination tracking should be removed
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record exists with cancelled arrival status and has previous bond date information available.
Trigger Criteria:
Context: A cargo record exists with cancelled arrival status and has previous bond date information available
Applied to: Arrival Cancellation
Action: The cargo arrival status is cancelled
Logic Flow:
IF A cargo record exists with cancelled arrival status and has previous bond date information available
AND The cargo arrival status is cancelled
THEN:
• The previous bond date should be restored and the RT076 destination index should be re-established with the restored bond date
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record exists with cancelled export status and has bond date information available.
Trigger Criteria:
Context: A cargo record exists with cancelled export status and has bond date information available
Applied to: Export Cancellation
Action: The cargo export status is cancelled
Logic Flow:
IF A cargo record exists with cancelled export status and has bond date information available
AND The cargo export status is cancelled
THEN:
• The RT076 destination index should be re-established with bond date information to resume domestic destination tracking
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record requires bond date processing with valid calendar date information.
Trigger Criteria:
Context: A cargo record requires bond date processing with valid calendar date information
Applied to: Calculate Julian Date for Bond Start
Action: Bond date calculation is initiated for cargo processing
Logic Flow:
IF A cargo record requires bond date processing with valid calendar date information
AND Bond date calculation is initiated for cargo processing
THEN:
• The system should convert the calendar date to Julian date format for bond tracking and cargo age calculation purposes
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record has undergone status changes that affect destination tracking requirements.
Trigger Criteria:
Context: A cargo record has undergone status changes that affect destination tracking requirements
Applied to: Update RT076 Destination Index
Action: Destination index updates are processed
Logic Flow:
IF A cargo record has undergone status changes that affect destination tracking requirements
AND Destination index updates are processed
THEN:
• The RT076 destination index record should be updated with current status, dates, and location information reflecting the cargo's destination tracking requirements
R-GCX016-cbl-01096 (+10)File: GCX016.cblBusiness Rule: Cargo Record Updates
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when status array has been updated with new cargo status information.
Trigger Criteria:
Context: Status array has been updated with new cargo status information
Applied to: Move S09A Array Data to Database Segments
Action: The system prepares to update cargo records in the database
Logic Flow:
IF Status array has been updated with new cargo status information
AND The system prepares to update cargo records in the database
THEN:
• The status array data is moved to the appropriate database segment structure
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo status has been determined and validated.
Trigger Criteria:
Context: Cargo status has been determined and validated
Applied to: Update Cargo Root Record Fields
Action: The system updates the cargo root record
Logic Flow:
IF Cargo status has been determined and validated
AND The system updates the cargo root record
THEN:
• Core cargo fields including status description, processing timestamps, and control information are updated
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition codes have been processed and status flags determined.
Trigger Criteria:
Context: Disposition codes have been processed and status flags determined
Applied to: Update Status Information
Action: The system updates cargo status information
Logic Flow:
IF Disposition codes have been processed and status flags determined
AND The system updates cargo status information
THEN:
• Current status codes, hold flags, release flags, and processing indicators are applied to the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when quantity changes have been calculated from disposition code processing.
Trigger Criteria:
Context: Quantity changes have been calculated from disposition code processing
Applied to: Update Quantity Information
Action: The system updates cargo quantity information
Logic Flow:
IF Quantity changes have been calculated from disposition code processing
AND The system updates cargo quantity information
THEN:
• Total quantities, released quantities, piece counts, and quantity-related flags are updated in the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo status has been determined as held, released, or partially released.
Trigger Criteria:
Context: Cargo status has been determined as held, released, or partially released
Applied to: Update Hold/Release Flags
Action: The system updates hold and release flags
Logic Flow:
IF Cargo status has been determined as held, released, or partially released
AND The system updates hold and release flags
THEN:
• Hold flags, release flags, border hold indicators, destination hold indicators, and partial release flags are set correctly
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when arrival or export events have been processed for the cargo.
Trigger Criteria:
Context: Arrival or export events have been processed for the cargo
Applied to: Update Arrival/Export Status
Action: The system updates arrival and export status
Logic Flow:
IF Arrival or export events have been processed for the cargo
AND The system updates arrival and export status
THEN:
• Arrival flags, export flags, arrival dates, export dates, and location-specific indicators are updated
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when bond processing has been completed and bond information validated.
Trigger Criteria:
Context: Bond processing has been completed and bond information validated
Applied to: Update Bond Information
Action: The system updates bond information in the cargo record
Logic Flow:
IF Bond processing has been completed and bond information validated
AND The system updates bond information in the cargo record
THEN:
• Bond numbers, entry numbers, in-bond control numbers, and bond-related flags are updated
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when all cargo record fields have been updated with current processing results.
Trigger Criteria:
Context: All cargo record fields have been updated with current processing results
Applied to: Replace Cargo Record in Database
Action: The system executes the database replacement operation
Logic Flow:
IF All cargo record fields have been updated with current processing results
AND The system executes the database replacement operation
THEN:
• The cargo record is successfully replaced in the database with all updated information
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when database update operation has been attempted.
Trigger Criteria:
Context: A database update operation has been attempted
Applied to: Database Update Successful?
Action: The system checks the update operation result
Logic Flow:
IF A database update operation has been attempted
AND The system checks the update operation result
THEN:
• If the update was successful, processing continues; if the update failed, error handling is initiated
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record has been successfully updated in the database.
Trigger Criteria:
Context: A cargo record has been successfully updated in the database
Applied to: Log Successful Update
Action: The system logs the successful update
Logic Flow:
IF A cargo record has been successfully updated in the database
AND The system logs the successful update
THEN:
• Update confirmation information including cargo identifier, timestamp, and processing details are recorded
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when database update operation has failed.
Trigger Criteria:
Context: A database update operation has failed
Applied to: Handle Database Error
Action: The system handles the database error
Logic Flow:
IF A database update operation has failed
AND The system handles the database error
THEN:
• Error information is logged, appropriate error messages are generated, and error recovery procedures are initiated
R-GCX016-cbl-01107 (+14)File: GCX016.cblBusiness Rule: Integration Service Calls
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when integration service call is required for cargo equipment. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: An integration service call is required for cargo equipment
Applied to: Container Type Valid?
Action: The system checks the equipment type for integration eligibility
Logic Flow:
IF An integration service call is required for cargo equipment
AND The system checks the equipment type for integration eligibility
THEN:
• Only valid container types (containers, trailers, etc.) are allowed to proceed with integration processing, while invalid types are skipped
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when container type has been determined as valid for integration.
Trigger Criteria:
Context: A container type has been determined as valid for integration
Applied to: Validate Equipment Type
Action: The system validates the specific equipment type details
Logic Flow:
IF A container type has been determined as valid for integration
AND The system validates the specific equipment type details
THEN:
• The equipment type is confirmed as eligible for hold/release notifications and status changes
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when valid equipment type has been confirmed for integration.
Trigger Criteria:
Context: Valid equipment type has been confirmed for integration
Applied to: Map Internal Status to Integration Format
Action: The system maps internal cargo status to integration service format
Logic Flow:
IF Valid equipment type has been confirmed for integration
AND The system maps internal cargo status to integration service format
THEN:
• Internal status codes are translated to appropriate GCCIIS-compatible status values
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo status has been mapped to integration format.
Trigger Criteria:
Context: Cargo status has been mapped to integration format
Applied to: Hold Notification Required?
Action: The system evaluates if hold notification is required
Logic Flow:
IF Cargo status has been mapped to integration format
AND The system evaluates if hold notification is required
THEN:
• Hold notification is required when cargo has hold status conditions that need to be communicated to external systems
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when hold notification has been determined as required.
Trigger Criteria:
Context: Hold notification has been determined as required
Applied to: Prepare Hold Notification Data
Action: The system prepares hold notification data
Logic Flow:
IF Hold notification has been determined as required
AND The system prepares hold notification data
THEN:
• All required hold information including cargo details, hold reasons, and status descriptions are formatted for GCCIIS transmission
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when hold notification data has been prepared. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: Hold notification data has been prepared
Applied to: Call GCCIIS for Hold
Action: The system calls GCCIIS for hold notification
Logic Flow:
IF Hold notification data has been prepared
AND The system calls GCCIIS for hold notification
THEN:
• The hold notification is transmitted to GCCIIS with all required cargo hold information
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when hold notification processing has been completed or skipped.
Trigger Criteria:
Context: Hold notification processing has been completed or skipped
Applied to: Release Notification Required?
Action: The system evaluates if release notification is required
Logic Flow:
IF Hold notification processing has been completed or skipped
AND The system evaluates if release notification is required
THEN:
• Release notification is required when cargo has release status conditions that need to be communicated to external systems
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when release notification has been determined as required.
Trigger Criteria:
Context: Release notification has been determined as required
Applied to: Prepare Release Notification Data
Action: The system prepares release notification data
Logic Flow:
IF Release notification has been determined as required
AND The system prepares release notification data
THEN:
• All required release information including cargo details, release quantities, and status descriptions are formatted for GCCIIS transmission
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when release notification data has been prepared. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: Release notification data has been prepared
Applied to: Call GCCIIS for Release
Action: The system calls GCCIIS for release notification
Logic Flow:
IF Release notification data has been prepared
AND The system calls GCCIIS for release notification
THEN:
• The release notification is transmitted to GCCIIS with all required cargo release information
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when release notification processing has been completed or skipped.
Trigger Criteria:
Context: Release notification processing has been completed or skipped
Applied to: Status Change Required?
Action: The system evaluates if status change notification is required
Logic Flow:
IF Release notification processing has been completed or skipped
AND The system evaluates if status change notification is required
THEN:
• Status change notification is required when cargo status has changed and needs to be synchronized with external systems
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when status change notification has been determined as required.
Trigger Criteria:
Context: Status change notification has been determined as required
Applied to: Prepare Status Change Data
Action: The system prepares status change data
Logic Flow:
IF Status change notification has been determined as required
AND The system prepares status change data
THEN:
• All required status change information including cargo details, new status, and change reasons are formatted for GCCIIS transmission
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when status change data has been prepared. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: Status change data has been prepared
Applied to: Call GCCIIS for Status Update
Action: The system calls GCCIIS for status update
Logic Flow:
IF Status change data has been prepared
AND The system calls GCCIIS for status update
THEN:
• The status change notification is transmitted to GCCIIS with all required cargo status information
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when gcciis integration calls have been completed. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: GCCIIS integration calls have been completed
Applied to: Log Integration Call Results
Action: The system logs integration call results
Logic Flow:
IF GCCIIS integration calls have been completed
AND The system logs integration call results
THEN:
• All integration service call results including success/failure status and response details are recorded for audit trail
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when all required integration calls have been made and results logged.
Trigger Criteria:
Context: All required integration calls have been made and results logged
Applied to: Integration Complete
Action: The system completes integration processing
Logic Flow:
IF All required integration calls have been made and results logged
AND The system completes integration processing
THEN:
• Integration service processing is marked as complete and control returns to the calling process
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when container type validation has failed.
Trigger Criteria:
Context: Container type validation has failed
Applied to: Skip Integration - Invalid Container
Action: The system determines container type is invalid for integration
Logic Flow:
IF Container type validation has failed
AND The system determines container type is invalid for integration
THEN:
• All GCCIIS integration processing is skipped and control proceeds to completion
Business Justification: Governs the functional prerequisites and system routing when cargo record exists with status information.
Trigger Criteria:
Context: A cargo record exists with status information
Applied to: Manual Release Flag Set?
Action: The system checks for manual release flag in cargo status
Logic Flow:
IF A cargo record exists with status information
AND The system checks for manual release flag in cargo status
THEN:
• The system identifies if manual release conditions apply and proceeds to validate manual release requirements
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo has manual release flag set.
Trigger Criteria:
Context: Cargo has manual release flag set
Applied to: Validate Manual Release Conditions
Action: The system validates manual release conditions including broker authorization and cargo status
Logic Flow:
IF Cargo has manual release flag set
AND The system validates manual release conditions including broker authorization and cargo status
THEN:
• The system confirms manual release is valid and clears destination index for further processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record with current status information.
Trigger Criteria:
Context: A cargo record with current status information
Applied to: Cargo Currently Held?
Action: The system examines cargo status for hold conditions including border holds, destination holds, FDA holds, or seizure status
Logic Flow:
IF A cargo record with current status information
AND The system examines cargo status for hold conditions including border holds, destination holds, FDA holds, or seizure status
THEN:
• The system identifies if cargo is held and determines the type and location of hold
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo is currently held.
Trigger Criteria:
Context: Cargo is currently held
Applied to: Check Hold Location - Border vs Destination
Action: The system checks hold location information in cargo status
Logic Flow:
IF Cargo is currently held
AND The system checks hold location information in cargo status
THEN:
• The system identifies whether cargo is held at border, destination, or both locations and validates release authority for that location
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo is held at a specific location with a particular hold type.
Trigger Criteria:
Context: Cargo is held at a specific location with a particular hold type
Applied to: Hold Status Valid for Release?
Action: The system validates if the disposition code has authority to release the specific hold type at the specific location
Logic Flow:
IF Cargo is held at a specific location with a particular hold type
AND The system validates if the disposition code has authority to release the specific hold type at the specific location
THEN:
• The system confirms hold can be released or rejects release attempt if disposition code lacks authority
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when release request with specified quantities.
Trigger Criteria:
Context: A release request with specified quantities
Applied to: Validate Release Quantities
Action: The system compares requested release quantity against total cargo quantity and existing released quantity
Logic Flow:
IF A release request with specified quantities
AND The system compares requested release quantity against total cargo quantity and existing released quantity
THEN:
• The system validates that total released quantity does not exceed total cargo quantity and prevents negative quantities
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo with existing released quantities and a new release request.
Trigger Criteria:
Context: Cargo with existing released quantities and a new release request
Applied to: Released Quantity <= Total Quantity?
Action: The system calculates total released quantity including the new release amount
Logic Flow:
IF Cargo with existing released quantities and a new release request
AND The system calculates total released quantity including the new release amount
THEN:
• The system confirms total released quantity is less than or equal to total cargo quantity, or rejects the release if it would exceed total
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo with ptt (proceed to transfer) status.
Trigger Criteria:
Context: Cargo with PTT (Proceed to Transfer) status
Applied to: Check PTT Status
Action: The system checks PTT permit validity and associated conditions
Logic Flow:
IF Cargo with PTT (Proceed to Transfer) status
AND The system checks PTT permit validity and associated conditions
THEN:
• The system validates PTT permit is current and allows for the requested release action
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo with ptt status and associated permit information.
Trigger Criteria:
Context: Cargo with PTT status and associated permit information
Applied to: PTT Permit Valid?
Action: The system validates PTT permit dates, conditions, and authorization
Logic Flow:
IF Cargo with PTT status and associated permit information
AND The system validates PTT permit dates, conditions, and authorization
THEN:
• The system confirms PTT permit is valid for current release request or rejects if permit is expired or invalid
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code that requires counterpart code removal.
Trigger Criteria:
Context: A disposition code that requires counterpart code removal
Applied to: Validate Counterpart Codes Removed
Action: The system processes the disposition code and checks for existing counterpart codes in cargo status
Logic Flow:
IF A disposition code that requires counterpart code removal
AND The system processes the disposition code and checks for existing counterpart codes in cargo status
THEN:
• The system removes all applicable counterpart codes before applying the new disposition code
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when disposition code processing that requires counterpart code removal.
Trigger Criteria:
Context: Disposition code processing that requires counterpart code removal
Applied to: All Counterpart Codes Cleared?
Action: The system completes counterpart code removal process
Logic Flow:
IF Disposition code processing that requires counterpart code removal
AND The system completes counterpart code removal process
THEN:
• The system confirms all applicable counterpart codes have been cleared from cargo status array
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo that may be subject to fda regulations.
Trigger Criteria:
Context: Cargo that may be subject to FDA regulations
Applied to: Check FDA Hold Status
Action: The system checks for FDA hold status in cargo disposition codes
Logic Flow:
IF Cargo that may be subject to FDA regulations
AND The system checks for FDA hold status in cargo disposition codes
THEN:
• The system identifies if cargo is under FDA hold and determines if release is permitted
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo with fda hold status.
Trigger Criteria:
Context: Cargo with FDA hold status
Applied to: FDA Hold Prevents Release?
Action: The system evaluates if FDA hold conditions prevent release
Logic Flow:
IF Cargo with FDA hold status
AND The system evaluates if FDA hold conditions prevent release
THEN:
• The system blocks release if FDA hold is active or allows release if FDA clearance is obtained
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo requiring bond validation for release.
Trigger Criteria:
Context: Cargo requiring bond validation for release
Applied to: Validate Bond Information
Action: The system checks bond number, bond type, and bond status information
Logic Flow:
IF Cargo requiring bond validation for release
AND The system checks bond number, bond type, and bond status information
THEN:
• The system validates bond information is complete and bond is active for cargo movement
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo with validated bond information.
Trigger Criteria:
Context: Cargo with validated bond information
Applied to: Bond Status Allows Release?
Action: The system checks if bond status and type allow for the requested release action
Logic Flow:
IF Cargo with validated bond information
AND The system checks if bond status and type allow for the requested release action
THEN:
• The system authorizes release if bond permits the action or rejects if bond restrictions apply
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo and associated transportation equipment.
Trigger Criteria:
Context: Cargo and associated transportation equipment
Applied to: Check Seizure Status
Action: The system checks for seizure status on cargo or equipment
Logic Flow:
IF Cargo and associated transportation equipment
AND The system checks for seizure status on cargo or equipment
THEN:
• The system identifies if seizure conditions exist that would prevent release
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo with potential equipment seizure status.
Trigger Criteria:
Context: Cargo with potential equipment seizure status
Applied to: Equipment Seized?
Action: The system evaluates if seizure status prevents cargo release
Logic Flow:
IF Cargo with potential equipment seizure status
AND The system evaluates if seizure status prevents cargo release
THEN:
• The system blocks release if equipment is seized or allows release if seizure is cleared
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo that has passed all release validation checks.
Trigger Criteria:
Context: Cargo that has passed all release validation checks
Applied to: Release Validation Passed
Action: All validation criteria including quantities, holds, permits, bonds, and seizure status are satisfied
Logic Flow:
IF Cargo that has passed all release validation checks
AND All validation criteria including quantities, holds, permits, bonds, and seizure status are satisfied
THEN:
• The system confirms release validation is successful and cargo is eligible for release processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo that fails one or more release validation checks.
Trigger Criteria:
Context: Cargo that fails one or more release validation checks
Applied to: Release Validation Failed
Action: Validation criteria for quantities, holds, permits, bonds, or seizure status are not satisfied
Logic Flow:
IF Cargo that fails one or more release validation checks
AND Validation criteria for quantities, holds, permits, bonds, or seizure status are not satisfied
THEN:
• The system rejects the release request and maintains current cargo status
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when completed release validation process with success or failure outcome.
Trigger Criteria:
Context: Completed release validation process with success or failure outcome
Applied to: Log Validation Results
Action: The system completes all validation checks
Logic Flow:
IF Completed release validation process with success or failure outcome
AND The system completes all validation checks
THEN:
• The system logs validation results including specific reasons for success or failure and updates cargo processing history
Business Justification: Dictates the expected operational logic and validation steps when n7 equipment segment is available in the message queue.
Trigger Criteria:
Context: An N7 equipment segment is available in the message queue
Applied to: Receive N7 Equipment Segment
Action: The system processes the N7 segment
Logic Flow:
IF An N7 equipment segment is available in the message queue
AND The system processes the N7 segment
THEN:
• Equipment data including container type, car initial, and car number are extracted and made available for processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when n7 segment data contains equipment type information.
Trigger Criteria:
Context: N7 segment data contains equipment type information
Applied to: Extract Container/Equipment Type
Action: The system extracts container type from the segment
Logic Flow:
IF N7 segment data contains equipment type information
AND The system extracts container type from the segment
THEN:
• Container type code is identified and stored for validation and processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when container type code has been extracted from n7 segment.
Trigger Criteria:
Context: A container type code has been extracted from N7 segment
Applied to: Validate Container Type Against System Tables
Action: The system validates the container type against GCSTBRT container type tables
Logic Flow:
IF A container type code has been extracted from N7 segment
AND The system validates the container type against GCSTBRT container type tables
THEN:
• Container type is confirmed as valid or invalid based on table lookup results
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when container type validation has been performed against system tables.
Trigger Criteria:
Context: Container type validation has been performed against system tables
Applied to: Container Type Valid?
Action: The validation result indicates container type status
Logic Flow:
IF Container type validation has been performed against system tables
AND The validation result indicates container type status
THEN:
• Processing continues for valid container types or error handling is triggered for invalid types
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when container type is valid and equipment data is available from n7 segment.
Trigger Criteria:
Context: Container type is valid and equipment data is available from N7 segment
Applied to: Update Equipment Information in Cargo Record
Action: The system updates cargo record with equipment information
Logic Flow:
IF Container type is valid and equipment data is available from N7 segment
AND The system updates cargo record with equipment information
THEN:
• Cargo record contains updated car initial, car number, and equipment type information from the N7 segment
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when equipment information has been updated in cargo record. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: Equipment information has been updated in cargo record
Applied to: Integration Service Required?
Action: The system evaluates integration service requirements based on cargo hold status and equipment type
Logic Flow:
IF Equipment information has been updated in cargo record
AND The system evaluates integration service requirements based on cargo hold status and equipment type
THEN:
• Integration service call is required for held cargo with container or trailer equipment types, or skipped for PTT status cargo
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when integration service call is required for the container. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: Integration service call is required for the container
Applied to: Prepare Container Data for Integration Call
Action: The system prepares data for GCCIIS integration
Logic Flow:
IF Integration service call is required for the container
AND The system prepares data for GCCIIS integration
THEN:
• Container data including equipment type, status, and cargo information is formatted and ready for integration service call
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when container data is prepared for integration service. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: Container data is prepared for integration service
Applied to: Call GCCIIS Integration Service
Action: The system calls GCCIIS integration service
Logic Flow:
IF Container data is prepared for integration service
AND The system calls GCCIIS integration service
THEN:
• Equipment interface system is notified of container status changes and processes hold or release actions accordingly
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when container processing is in progress.
Trigger Criteria:
Context: Container processing is in progress
Applied to: Export Container?
Action: The system evaluates export status based on cargo routing and destination information
Logic Flow:
IF Container processing is in progress
AND The system evaluates export status based on cargo routing and destination information
THEN:
• Container is identified as export or domestic based on routing criteria and cargo status
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when container is identified as export container.
Trigger Criteria:
Context: Container is identified as export container
Applied to: Route to USEXP Basket for Export Processing
Action: The system routes container for export processing
Logic Flow:
IF Container is identified as export container
AND The system routes container for export processing
THEN:
• Container information is sent to USEXP basket for export-specific processing and documentation
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when container type has been validated and processing is in progress.
Trigger Criteria:
Context: Container type has been validated and processing is in progress
Applied to: Special Container Type?
Action: The system evaluates container type for special handling requirements
Logic Flow:
IF Container type has been validated and processing is in progress
AND The system evaluates container type for special handling requirements
THEN:
• Container is classified as requiring special handling or standard processing based on type characteristics
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when container is identified as requiring special handling.
Trigger Criteria:
Context: Container is identified as requiring special handling
Applied to: Apply Special Container Handling Rules
Action: The system applies special container handling rules
Logic Flow:
IF Container is identified as requiring special handling
AND The system applies special container handling rules
THEN:
• Container processing follows specialized rules appropriate for the specific container type characteristics
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when container processing including special handling (if required) has been completed.
Trigger Criteria:
Context: Container processing including special handling (if required) has been completed
Applied to: Update Container Status in Cargo Record
Action: The system updates container status in cargo record
Logic Flow:
IF Container processing including special handling (if required) has been completed
AND The system updates container status in cargo record
THEN:
• Cargo record reflects current container status including any status changes from processing activities
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when container status has been updated in cargo record.
Trigger Criteria:
Context: Container status has been updated in cargo record
Applied to: Log Container Processing Information
Action: The system logs container processing information
Logic Flow:
IF Container status has been updated in cargo record
AND The system logs container processing information
THEN:
• Processing activities, status changes, and container information are recorded in system logs for audit and tracking purposes
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when container type validation has failed against system tables.
Trigger Criteria:
Context: Container type validation has failed against system tables
Applied to: Generate Container Type Error Message
Action: The system generates container type error message
Logic Flow:
IF Container type validation has failed against system tables
AND The system generates container type error message
THEN:
• Error message is created indicating invalid container type and processing is directed to skip container processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when container type error has been generated or invalid container type detected.
Trigger Criteria:
Context: Container type error has been generated or invalid container type detected
Applied to: Skip Container Processing
Action: The system skips container processing
Logic Flow:
IF Container type error has been generated or invalid container type detected
AND The system skips container processing
THEN:
• Container processing is bypassed and system continues with next processing step without updating container information
R-GCX016-cbl-01196 (+7)File: GCX016.cblBusiness Rule: IM Tag Removal
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record exists in the system with current status information.
Trigger Criteria:
Context: A cargo record exists in the system with current status information
Applied to: Check Cargo Release Status
Action: The system checks the cargo release status during release processing
Logic Flow:
IF A cargo record exists in the system with current status information
AND The system checks the cargo release status during release processing
THEN:
• The system determines whether the cargo qualifies for IM tag removal based on its release status
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo has a release status and associated release quantities.
Trigger Criteria:
Context: Cargo has a release status and associated release quantities
Applied to: Verify Full Release Conditions
Action: The system verifies full release conditions
Logic Flow:
IF Cargo has a release status and associated release quantities
AND The system verifies full release conditions
THEN:
• The system confirms that released quantity equals or exceeds total quantity AND no hold conditions exist
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo has release quantity information and status array data.
Trigger Criteria:
Context: Cargo has release quantity information and status array data
Applied to: Is Cargo Fully Released?
Action: The system evaluates if cargo is fully released
Logic Flow:
IF Cargo has release quantity information and status array data
AND The system evaluates if cargo is fully released
THEN:
• If released quantity is greater than or equal to total quantity AND no active holds exist, then cargo is considered fully released, otherwise it is partially released or held
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo is confirmed as fully released.
Trigger Criteria:
Context: Cargo is confirmed as fully released
Applied to: IM Tags Present?
Action: The system checks for existing IM inspection tags in the cargo status array
Logic Flow:
IF Cargo is confirmed as fully released
AND The system checks for existing IM inspection tags in the cargo status array
THEN:
• If IM tags are found in the status array, proceed with tag removal, otherwise skip IM tag processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo is fully released and im tags are present in the status array.
Trigger Criteria:
Context: Cargo is fully released AND IM tags are present in the status array
Applied to: Remove IM Inspection Tags
Action: The system processes IM tag removal
Logic Flow:
IF Cargo is fully released AND IM tags are present in the status array
AND The system processes IM tag removal
THEN:
• All IM inspection tags are removed from the cargo status array
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when im tags have been removed from the cargo status array.
Trigger Criteria:
Context: IM tags have been removed from the cargo status array
Applied to: Update Cargo Status Records
Action: The system updates cargo status records
Logic Flow:
IF IM tags have been removed from the cargo status array
AND The system updates cargo status records
THEN:
• The cargo record is updated in the database with the modified status array AND the cargo status description is updated to reflect the removal
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when im tags have been successfully removed from cargo.
Trigger Criteria:
Context: IM tags have been successfully removed from cargo
Applied to: Log IM Tag Removal
Action: The system logs the IM tag removal activity
Logic Flow:
IF IM tags have been successfully removed from cargo
AND The system logs the IM tag removal activity
THEN:
• A log entry is created documenting the IM tag removal with cargo identifier, timestamp, and removal details
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo is determined to be partially released, held, or not released.
Trigger Criteria:
Context: Cargo is determined to be partially released, held, or not released
Applied to: Skip IM Tag Processing
Action: The system evaluates IM tag processing requirements
Logic Flow:
IF Cargo is determined to be partially released, held, or not released
AND The system evaluates IM tag processing requirements
THEN:
• IM tag processing is skipped AND the system continues with standard release processing
Business Justification: Defines the strict business conditions required to proceed when cargo export status has been detected in cargo processing.
Trigger Criteria:
Context: A cargo export status has been detected in cargo processing
Applied to: Export Operation Type?
Action: The system evaluates the export operation type
Logic Flow:
IF A cargo export status has been detected in cargo processing
AND The system evaluates the export operation type
THEN:
• The system identifies whether it is a standard export or export cancellation operation
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when operation has been identified as a standard export.
Trigger Criteria:
Context: The operation has been identified as a standard export
Applied to: Set Export Message Type
Action: The system sets the export message type
Logic Flow:
IF The operation has been identified as a standard export
AND The system sets the export message type
THEN:
• The message type is configured for standard export processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when operation has been identified as an export cancellation.
Trigger Criteria:
Context: The operation has been identified as an export cancellation
Applied to: Set Export Cancellation Message Type
Action: The system sets the export cancellation message type
Logic Flow:
IF The operation has been identified as an export cancellation
AND The system sets the export cancellation message type
THEN:
• The message type is configured for export cancellation processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when export message type has been configured. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: The export message type has been configured
Applied to: Call Z110-PREP-EMCSEND Message Preparation
Action: The system calls the message preparation service Z110-PREP-EMCSEND
Logic Flow:
IF The export message type has been configured
AND The system calls the message preparation service Z110-PREP-EMCSEND
THEN:
• The export message is formatted and prepared for transmission
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when export message has been prepared for transmission.
Trigger Criteria:
Context: An export message has been prepared for transmission
Applied to: Container Type Validation
Action: The system validates the container type
Logic Flow:
IF An export message has been prepared for transmission
AND The system validates the container type
THEN:
• The system determines if the equipment type is a valid container for special routing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when container type validation has determined the equipment is a valid container.
Trigger Criteria:
Context: The container type validation has determined the equipment is a valid container
Applied to: Route to USEXP Baskets for Container Types
Action: The system routes the export message
Logic Flow:
IF The container type validation has determined the equipment is a valid container
AND The system routes the export message
THEN:
• The message is routed to USEXP baskets for container-specific processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when export message routing has been determined.
Trigger Criteria:
Context: The export message routing has been determined
Applied to: Set Export Message Keywords
Action: The system sets export message keywords
Logic Flow:
IF The export message routing has been determined
AND The system sets export message keywords
THEN:
• The message is tagged with appropriate keywords for export processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when export message keywords have been configured.
Trigger Criteria:
Context: Export message keywords have been configured
Applied to: Format Export Subject Line
Action: The system formats the export subject line
Logic Flow:
IF Export message keywords have been configured
AND The system formats the export subject line
THEN:
• The subject line contains formatted cargo and export operation information
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when export subject line has been formatted.
Trigger Criteria:
Context: The export subject line has been formatted
Applied to: Valid Destination User?
Action: The system validates the destination user from message routing tables
Logic Flow:
IF The export subject line has been formatted
AND The system validates the destination user from message routing tables
THEN:
• The system determines if the destination user is valid for receiving export notifications
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when destination user validation has determined the user is invalid.
Trigger Criteria:
Context: The destination user validation has determined the user is invalid
Applied to: Route to Default USEXP User
Action: The system routes to the default USEXP user
Logic Flow:
IF The destination user validation has determined the user is invalid
AND The system routes to the default USEXP user
THEN:
• The export message is assigned to the default USEXP user for processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when valid destination user has been determined (either original or default).
Trigger Criteria:
Context: A valid destination user has been determined (either original or default)
Applied to: Send Export Notification Message
Action: The system sends the export notification message
Logic Flow:
IF A valid destination user has been determined (either original or default)
AND The system sends the export notification message
THEN:
• The export notification is transmitted to the designated user
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when export notification message has been sent successfully.
Trigger Criteria:
Context: The export notification message has been sent successfully
Applied to: Log Export Message Transaction
Action: The system logs the export message transaction
Logic Flow:
IF The export notification message has been sent successfully
AND The system logs the export message transaction
THEN:
• The export message transaction is recorded in the system logs
Business Justification: Ensures correct system behavior and process compliance when train arrival event message is received from the message queue.
Trigger Criteria:
Context: A train arrival event message is received from the message queue
Applied to: Train Arrival Event Received
Action: The system processes the V9 event segment
Logic Flow:
IF A train arrival event message is received from the message queue
AND The system processes the V9 event segment
THEN:
• The system identifies the event type and prepares for appropriate arrival or cancellation processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when v9 segment with event code 'pod' is received.
Trigger Criteria:
Context: A V9 segment with event code 'POD' is received
Applied to: POD - Train Arrived at Port
Action: The system evaluates the disposition code
Logic Flow:
IF A V9 segment with event code 'POD' is received
AND The system evaluates the disposition code
THEN:
• The system sets arrival processing flags and prepares port arrival notification
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when v9 segment with event code 'aad' is received.
Trigger Criteria:
Context: A V9 segment with event code 'AAD' is received
Applied to: AAD - Train Arrived at Destination
Action: The system evaluates the disposition code
Logic Flow:
IF A V9 segment with event code 'AAD' is received
AND The system evaluates the disposition code
THEN:
• The system sets arrival processing flags and prepares destination arrival notification
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when v9 segment with event code 'coc' is received.
Trigger Criteria:
Context: A V9 segment with event code 'COC' is received
Applied to: COC - Cancel Train Arrival
Action: The system evaluates the disposition code
Logic Flow:
IF A V9 segment with event code 'COC' is received
AND The system evaluates the disposition code
THEN:
• The system sets cancellation processing flags and prepares arrival cancellation notification
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when arrival event (pod or aad) has been identified.
Trigger Criteria:
Context: An arrival event (POD or AAD) has been identified
Applied to: Set Arrival Message Type
Action: The system prepares message routing configuration
Logic Flow:
IF An arrival event (POD or AAD) has been identified
AND The system prepares message routing configuration
THEN:
• The system sets arrival message type flag and configures routing parameters
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cancellation event (coc) has been identified.
Trigger Criteria:
Context: A cancellation event (COC) has been identified
Applied to: Set Cancellation Message Type
Action: The system prepares message routing configuration
Logic Flow:
IF A cancellation event (COC) has been identified
AND The system prepares message routing configuration
THEN:
• The system sets cancellation message type flag and configures routing parameters
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when arrival message type has been set for pod or aad events.
Trigger Criteria:
Context: Arrival message type has been set for POD or AAD events
Applied to: Prepare USCS Arrival Message
Action: The system formats the notification message
Logic Flow:
IF Arrival message type has been set for POD or AAD events
AND The system formats the notification message
THEN:
• The system creates a properly formatted USCS arrival message with train and location details
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cancellation message type has been set for coc events.
Trigger Criteria:
Context: Cancellation message type has been set for COC events
Applied to: Prepare USCS Cancellation Message
Action: The system formats the notification message
Logic Flow:
IF Cancellation message type has been set for COC events
AND The system formats the notification message
THEN:
• The system creates a properly formatted USCS cancellation message with train and location details
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when uscs message has been prepared for arrival or cancellation.
Trigger Criteria:
Context: A USCS message has been prepared for arrival or cancellation
Applied to: Format Message Content
Action: The system formats the message content
Logic Flow:
IF A USCS message has been prepared for arrival or cancellation
AND The system formats the message content
THEN:
• The system structures the message with proper headers, data fields, and formatting requirements
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when message content formatting is in progress.
Trigger Criteria:
Context: Message content formatting is in progress
Applied to: Include Train Information
Action: The system adds train-specific information
Logic Flow:
IF Message content formatting is in progress
AND The system adds train-specific information
THEN:
• The system includes train ID, vessel name, and current status in the message
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when train information has been included in the message.
Trigger Criteria:
Context: Train information has been included in the message
Applied to: Include Port/Destination Details
Action: The system adds location details
Logic Flow:
IF Train information has been included in the message
AND The system adds location details
THEN:
• The system includes appropriate port or destination information based on the event type (POD/AAD)
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when location details have been included in the message.
Trigger Criteria:
Context: Location details have been included in the message
Applied to: Include Timestamp Information
Action: The system adds temporal information
Logic Flow:
IF Location details have been included in the message
AND The system adds temporal information
THEN:
• The system includes event date, time, and timezone information in the notification message
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when complete notification message has been formatted.
Trigger Criteria:
Context: A complete notification message has been formatted
Applied to: Message Routing Required?
Action: The system evaluates routing requirements
Logic Flow:
IF A complete notification message has been formatted
AND The system evaluates routing requirements
THEN:
• The system determines if the message should be routed to USCS, brokers, or payer of freight based on message type and content
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when message routing evaluation determines uscs routing is required.
Trigger Criteria:
Context: Message routing evaluation determines USCS routing is required
Applied to: Route to USCS System
Action: The system initiates USCS routing
Logic Flow:
IF Message routing evaluation determines USCS routing is required
AND The system initiates USCS routing
THEN:
• The system sends the notification message to USCS system endpoints
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when message routing evaluation determines broker notification is required.
Trigger Criteria:
Context: Message routing evaluation determines broker notification is required
Applied to: Route to Broker Notifications
Action: The system initiates broker routing
Logic Flow:
IF Message routing evaluation determines broker notification is required
AND The system initiates broker routing
THEN:
• The system sends the notification message to identified brokers via configured communication channels
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when message routing evaluation determines payer of freight notification is required.
Trigger Criteria:
Context: Message routing evaluation determines payer of freight notification is required
Applied to: Route to Payer of Freight
Action: The system initiates payer of freight routing
Logic Flow:
IF Message routing evaluation determines payer of freight notification is required
AND The system initiates payer of freight routing
THEN:
• The system sends the notification message to payer of freight contacts via configured communication channels
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when message routing has been configured for arrival notifications.
Trigger Criteria:
Context: Message routing has been configured for arrival notifications
Applied to: Send Arrival Notification
Action: The system transmits the arrival notification
Logic Flow:
IF Message routing has been configured for arrival notifications
AND The system transmits the arrival notification
THEN:
• The system successfully sends arrival messages to USCS, brokers, and payer of freight as configured
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when message routing has been configured for cancellation notifications.
Trigger Criteria:
Context: Message routing has been configured for cancellation notifications
Applied to: Send Cancellation Notification
Action: The system transmits the cancellation notification
Logic Flow:
IF Message routing has been configured for cancellation notifications
AND The system transmits the cancellation notification
THEN:
• The system successfully sends cancellation messages to USCS, brokers, and payer of freight as configured
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when arrival or cancellation notifications have been transmitted.
Trigger Criteria:
Context: Arrival or cancellation notifications have been transmitted
Applied to: Log Message Activity
Action: The system performs activity logging
Logic Flow:
IF Arrival or cancellation notifications have been transmitted
AND The system performs activity logging
THEN:
• The system records message transmission details, recipients, timestamps, and status in audit logs
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when message activity has been logged successfully.
Trigger Criteria:
Context: Message activity has been logged successfully
Applied to: Update Train Status
Action: The system updates train status
Logic Flow:
IF Message activity has been logged successfully
AND The system updates train status
THEN:
• The system modifies train status to reflect current arrival state and processing completion
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when train status has been updated successfully.
Trigger Criteria:
Context: Train status has been updated successfully
Applied to: Arrival Notification Complete
Action: The system finalizes arrival notification processing
Logic Flow:
IF Train status has been updated successfully
AND The system finalizes arrival notification processing
THEN:
• The system marks the arrival notification process as complete and returns to main message processing flow
R-GCX016-cbl-01237 (+9)File: GCX016.cblBusiness Rule: Payer of Freight Identification
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record exists in the system.
Trigger Criteria:
Context: A cargo record exists in the system
Applied to: Access Cargo Secondary Records
Action: The system needs to identify payer of freight information
Logic Flow:
IF A cargo record exists in the system
AND The system needs to identify payer of freight information
THEN:
• The system accesses the cargo secondary records (GCSA2RT) to search for payer information
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo secondary records are accessible.
Trigger Criteria:
Context: Cargo secondary records are accessible
Applied to: Search for N101 Segments
Action: The system searches for payer of freight information
Logic Flow:
IF Cargo secondary records are accessible
AND The system searches for payer of freight information
THEN:
• The system iterates through secondary records to find N101 segments containing payer codes
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when system is searching cargo secondary records.
Trigger Criteria:
Context: The system is searching cargo secondary records
Applied to: N101 Segment Found?
Action: No N101 segments are found in the secondary records
Logic Flow:
IF The system is searching cargo secondary records
AND No N101 segments are found in the secondary records
THEN:
• The system returns with no payer found status
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when n101 segment is found in cargo secondary records.
Trigger Criteria:
Context: An N101 segment is found in cargo secondary records
Applied to: Extract Payer of Freight Code
Action: The system processes the N101 segment
Logic Flow:
IF An N101 segment is found in cargo secondary records
AND The system processes the N101 segment
THEN:
• The system extracts the payer of freight code from the segment data
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when payer of freight code has been extracted from n101 segment.
Trigger Criteria:
Context: A payer of freight code has been extracted from N101 segment
Applied to: Check if Code Starts with 'PF='
Action: The payer code does not start with 'PF='
Logic Flow:
IF A payer of freight code has been extracted from N101 segment
AND The payer code does not start with 'PF='
THEN:
• The system treats it as a standard payer code
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when payer code starts with 'pf='.
Trigger Criteria:
Context: The payer code starts with 'PF='
Applied to: Extract Broker Code After 'PF='
Action: The system processes the PF-formatted code
Logic Flow:
IF The payer code starts with 'PF='
AND The system processes the PF-formatted code
THEN:
• The system extracts the broker code portion after the 'PF=' prefix
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when broker code has been extracted from the pf= formatted payer code.
Trigger Criteria:
Context: A broker code has been extracted from the PF= formatted payer code
Applied to: Lookup Broker Short Name
Action: The system looks up the broker information
Logic Flow:
IF A broker code has been extracted from the PF= formatted payer code
AND The system looks up the broker information
THEN:
• The system searches the BK broker table and B1 broker detail table to retrieve the broker short name
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when payer code does not start with 'pf='.
Trigger Criteria:
Context: The payer code does not start with 'PF='
Applied to: Use Standard Payer Code
Action: The system processes the payer code
Logic Flow:
IF The payer code does not start with 'PF='
AND The system processes the payer code
THEN:
• The system uses the code directly as the payer of freight identifier without broker lookup
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when payer of freight information has been identified through either broker lookup or standard processing.
Trigger Criteria:
Context: Payer of freight information has been identified through either broker lookup or standard processing
Applied to: Store Payer of Freight Information
Action: The system completes payer identification
Logic Flow:
IF Payer of freight information has been identified through either broker lookup or standard processing
AND The system completes payer identification
THEN:
• The system stores the payer of freight information in working storage for subsequent cargo processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when payer of freight identification process is complete.
Trigger Criteria:
Context: Payer of freight identification process is complete
Applied to: Return Payer Information
Action: The system has either found payer information or determined no payer exists
Logic Flow:
IF Payer of freight identification process is complete
AND The system has either found payer information or determined no payer exists
THEN:
• The system returns the payer information results with appropriate status indicators
R-GCX016-cbl-01247 (+6)File: GCX016.cblBusiness Rule: Broker Name Resolution
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when entity code is provided for broker name resolution.
Trigger Criteria:
Context: An entity code is provided for broker name resolution
Applied to: Is Entity a Payer of Freight?
Action: The system evaluates the entity type
Logic Flow:
IF An entity code is provided for broker name resolution
AND The system evaluates the entity type
THEN:
• The system identifies whether the entity is classified as a payer of freight entity
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when entity has been identified as a payer of freight.
Trigger Criteria:
Context: An entity has been identified as a payer of freight
Applied to: Add PF= Prefix to Entity Code
Action: The system prepares the entity code for broker lookup
Logic Flow:
IF An entity has been identified as a payer of freight
AND The system prepares the entity code for broker lookup
THEN:
• The system adds 'PF=' prefix to the entity code to create the lookup key
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when formatted entity code (with or without pf= prefix) is available.
Trigger Criteria:
Context: A formatted entity code (with or without PF= prefix) is available
Applied to: Lookup Broker Information in BK Table
Action: The system searches for broker information in the BK table
Logic Flow:
IF A formatted entity code (with or without PF= prefix) is available
AND The system searches for broker information in the BK table
THEN:
• The system attempts to locate matching broker record in GCSTBRT BK table
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when broker lookup has been performed in the bk table.
Trigger Criteria:
Context: A broker lookup has been performed in the BK table
Applied to: Broker Found in BK Table?
Action: The system evaluates the lookup results
Logic Flow:
IF A broker lookup has been performed in the BK table
AND The system evaluates the lookup results
THEN:
• The system determines if a valid broker record was found or not found
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when valid broker record has been found in the bk table.
Trigger Criteria:
Context: A valid broker record has been found in the BK table
Applied to: Retrieve Broker Short Name
Action: The system processes the broker information
Logic Flow:
IF A valid broker record has been found in the BK table
AND The system processes the broker information
THEN:
• The system retrieves and returns the broker short name from the broker record
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when either no broker record was found in the bk table or the entity is not a payer of freight.
Trigger Criteria:
Context: Either no broker record was found in the BK table OR the entity is not a payer of freight
Applied to: Use Default Name if Not Found
Action: The system needs to provide a broker name
Logic Flow:
IF Either no broker record was found in the BK table OR the entity is not a payer of freight
AND The system needs to provide a broker name
THEN:
• The system uses a default name value for the broker name
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when either a broker short name has been retrieved from the bk table or a default name has been assigned.
Trigger Criteria:
Context: Either a broker short name has been retrieved from the BK table OR a default name has been assigned
Applied to: Return Broker Short Name
Action: The broker name resolution process completes
Logic Flow:
IF Either a broker short name has been retrieved from the BK table OR a default name has been assigned
AND The broker name resolution process completes
THEN:
• The system returns the final broker short name for use in subsequent processing
R-GCX016-cbl-01254 (+20)File: GCX016.cblBusiness Rule: New Cargo Record Creation
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when foreign bill is not found in the existing cargo system.
Trigger Criteria:
Context: A foreign bill is not found in the existing cargo system
Applied to: Initialize New Cargo Record
Action: The system needs to create a new cargo record
Logic Flow:
IF A foreign bill is not found in the existing cargo system
AND The system needs to create a new cargo record
THEN:
• Initialize a new cargo record structure and clear all data fields to default values
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when new cargo record is being created.
Trigger Criteria:
Context: A new cargo record is being created
Applied to: Set Default CPRS/USCS Status
Action: The cargo record type is CPRS
Logic Flow:
IF A new cargo record is being created
AND The cargo record type is CPRS
THEN:
• Set the cargo status to 'ERROR' and status description to 'ERROR'
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when new cargo record is being created.
Trigger Criteria:
Context: A new cargo record is being created
Applied to: Set Default CPRS/USCS Status
Action: The cargo record type is not CPRS
Logic Flow:
IF A new cargo record is being created
AND The cargo record type is not CPRS
THEN:
• Set the cargo status to 'SENT' and status description to 'SENT'
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when new cargo record is being created.
Trigger Criteria:
Context: A new cargo record is being created
Applied to: Set Default CPRS/USCS Status
Action: The current cargo status is blank or equals 'ACK-R'
Logic Flow:
IF A new cargo record is being created
AND The current cargo status is blank or equals 'ACK-R'
THEN:
• Set the acknowledgment status to 'ACK' or 'ACK-R' as default
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when new cargo record is being created.
Trigger Criteria:
Context: A new cargo record is being created
Applied to: Set Default Broker Information
Action: Broker information needs to be initialized
Logic Flow:
IF A new cargo record is being created
AND Broker information needs to be initialized
THEN:
• Set default broker fields and clear broker-specific data elements
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when new cargo record is being created.
Trigger Criteria:
Context: A new cargo record is being created
Applied to: Set SCAC Code
Action: SCAC code needs to be assigned
Logic Flow:
IF A new cargo record is being created
AND SCAC code needs to be assigned
THEN:
• Set the SCAC code from the X4 segment to identify the transportation carrier
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when new cargo record requires manifest information.
Trigger Criteria:
Context: A new cargo record requires manifest information
Applied to: Build M10 Manifest Information
Action: M10 manifest data needs to be populated
Logic Flow:
IF A new cargo record requires manifest information
AND M10 manifest data needs to be populated
THEN:
• Build the manifest structure with vessel name, voyage number, and transportation details from the X4 segment
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when new cargo record has an entry type code.
Trigger Criteria:
Context: A new cargo record has an entry type code
Applied to: Entry Type Code?
Action: The entry type code is evaluated
Logic Flow:
IF A new cargo record has an entry type code
AND The entry type code is evaluated
THEN:
• Route to master in-bond processing for codes 61, 62, 63, 69, border entry processing for code 00, or standard entry processing for other codes
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when new cargo record has an entry type code.
Trigger Criteria:
Context: A new cargo record has an entry type code
Applied to: Master In-Bond Processing Types 61,62,63,69
Action: The entry type code is 61 (immediate transport), 62 (transport export), 63 (immediate export), or 69 (US-Canada-US movement)
Logic Flow:
IF A new cargo record has an entry type code
AND The entry type code is 61 (immediate transport), 62 (transport export), 63 (immediate export), or 69 (US-Canada-US movement)
THEN:
• Set the M1109 master in-bond flag and process according to the specific entry type requirements
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when new cargo record has an entry type code.
Trigger Criteria:
Context: A new cargo record has an entry type code
Applied to: Border Entry Processing Type 00
Action: The entry type code is 00 (border processing)
Logic Flow:
IF A new cargo record has an entry type code
AND The entry type code is 00 (border processing)
THEN:
• Clear bond information and process as border entry with default border processing rules
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when new cargo record has an entry type code.
Trigger Criteria:
Context: A new cargo record has an entry type code
Applied to: Standard Entry Processing
Action: The entry type code is not 61, 62, 63, 69, or 00
Logic Flow:
IF A new cargo record has an entry type code
AND The entry type code is not 61, 62, 63, 69, or 00
THEN:
• Process using standard entry processing rules without special in-bond or border handling
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record is being processed for master in-bond entry.
Trigger Criteria:
Context: A cargo record is being processed for master in-bond entry
Applied to: Map Transport Type Codes
Action: The entry type code needs to be mapped to transport type
Logic Flow:
IF A cargo record is being processed for master in-bond entry
AND The entry type code needs to be mapped to transport type
THEN:
• Map code 61 to immediate transport, 62 to transport export, 63 to immediate export, and 69 to US-Canada-US movement
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record is being processed as border entry type 00.
Trigger Criteria:
Context: A cargo record is being processed as border entry type 00
Applied to: Clear Bond Information for Border Entry
Action: Bond information needs to be cleared
Logic Flow:
IF A cargo record is being processed as border entry type 00
AND Bond information needs to be cleared
THEN:
• Clear all bond-related fields and set appropriate border processing flags
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when new cargo record requires manifest data.
Trigger Criteria:
Context: A new cargo record requires manifest data
Applied to: Set Manifest Data Fields
Action: Manifest fields need to be populated
Logic Flow:
IF A new cargo record requires manifest data
AND Manifest fields need to be populated
THEN:
• Set manifest data fields from X4 segment including arrival date, arrival time, and manifest reference numbers
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when new cargo record requires transport type assignment.
Trigger Criteria:
Context: A new cargo record requires transport type assignment
Applied to: Set Transport Type
Action: Transport type needs to be set
Logic Flow:
IF A new cargo record requires transport type assignment
AND Transport type needs to be set
THEN:
• Set the transport type code based on the transportation mode from the manifest information
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when new cargo record requires country identification.
Trigger Criteria:
Context: A new cargo record requires country identification
Applied to: Set Country Code
Action: Country code needs to be assigned
Logic Flow:
IF A new cargo record requires country identification
AND Country code needs to be assigned
THEN:
• Set the appropriate country code from the manifest data to identify origin or destination country
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when new cargo record requires conveyance information.
Trigger Criteria:
Context: A new cargo record requires conveyance information
Applied to: Set Vessel/Flight Information
Action: Vessel or flight information needs to be set
Logic Flow:
IF A new cargo record requires conveyance information
AND Vessel or flight information needs to be set
THEN:
• Set vessel name, voyage number, or flight details from the M10 manifest segment
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when new cargo record requires quantity data.
Trigger Criteria:
Context: A new cargo record requires quantity data
Applied to: Set Quantity Information
Action: Quantity information needs to be populated
Logic Flow:
IF A new cargo record requires quantity data
AND Quantity information needs to be populated
THEN:
• Set total quantity, release quantity, and unit of measure from the X4 segment data
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when new cargo record requires manifest type classification.
Trigger Criteria:
Context: A new cargo record requires manifest type classification
Applied to: Set Manifest Type Code
Action: Manifest type code needs to be assigned
Logic Flow:
IF A new cargo record requires manifest type classification
AND Manifest type code needs to be assigned
THEN:
• Set the manifest type code based on the document type and transportation mode
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when new cargo record requires status indication.
Trigger Criteria:
Context: A new cargo record requires status indication
Applied to: Set Condition Response Code
Action: Condition response code needs to be set
Logic Flow:
IF A new cargo record requires status indication
AND Condition response code needs to be set
THEN:
• Set appropriate condition response codes to reflect the current processing status and any special handling requirements
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when new cargo record has been fully populated with required data.
Trigger Criteria:
Context: A new cargo record has been fully populated with required data
Applied to: Store New Cargo Record
Action: The record needs to be saved to the system
Logic Flow:
IF A new cargo record has been fully populated with required data
AND The record needs to be saved to the system
THEN:
• Store the cargo record in the database and confirm successful creation
R-GCX016-cbl-01275 (+12)File: GCX016.cblBusiness Rule: Manifest Data Integration
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when m10 manifest segment is received with carrier information in field m10-02.
Trigger Criteria:
Context: An M10 manifest segment is received with carrier information in field M10-02
Applied to: Extract SCAC Code from M10-02
Action: The system processes the M10 segment for manifest data integration
Logic Flow:
IF An M10 manifest segment is received with carrier information in field M10-02
AND The system processes the M10 segment for manifest data integration
THEN:
• The SCAC code is extracted from M10-02 field and stored for carrier identification
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when m10 manifest segment is received with transport type information in field m10-03.
Trigger Criteria:
Context: An M10 manifest segment is received with transport type information in field M10-03
Applied to: Extract Transport Type from M10-03
Action: The system processes the M10 segment for manifest data integration
Logic Flow:
IF An M10 manifest segment is received with transport type information in field M10-03
AND The system processes the M10 segment for manifest data integration
THEN:
• The transport type is extracted from M10-03 field and stored for transportation mode identification
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when m10 manifest segment is received with country information in field m10-04.
Trigger Criteria:
Context: An M10 manifest segment is received with country information in field M10-04
Applied to: Extract Country Code from M10-04
Action: The system processes the M10 segment for manifest data integration
Logic Flow:
IF An M10 manifest segment is received with country information in field M10-04
AND The system processes the M10 segment for manifest data integration
THEN:
• The country code is extracted from M10-04 field and stored for origin country identification
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when m10 manifest segment is received with vessel information in field m10-05.
Trigger Criteria:
Context: An M10 manifest segment is received with vessel information in field M10-05
Applied to: Extract Vessel Name from M10-05
Action: The system processes the M10 segment for manifest data integration
Logic Flow:
IF An M10 manifest segment is received with vessel information in field M10-05
AND The system processes the M10 segment for manifest data integration
THEN:
• The vessel name is extracted from M10-05 field and stored for carrier vessel identification
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when m10 manifest segment is received with flight/voyage information in field m10-06.
Trigger Criteria:
Context: An M10 manifest segment is received with flight/voyage information in field M10-06
Applied to: Extract Flight/Voyage Number from M10-06
Action: The system processes the M10 segment for manifest data integration
Logic Flow:
IF An M10 manifest segment is received with flight/voyage information in field M10-06
AND The system processes the M10 segment for manifest data integration
THEN:
• The flight/voyage number is extracted from M10-06 field and stored for trip identification
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when m10 manifest segment is received with quantity information in field m10-07.
Trigger Criteria:
Context: An M10 manifest segment is received with quantity information in field M10-07
Applied to: Extract Quantity from M10-07
Action: The system processes the M10 segment for manifest data integration
Logic Flow:
IF An M10 manifest segment is received with quantity information in field M10-07
AND The system processes the M10 segment for manifest data integration
THEN:
• The quantity is extracted from M10-07 field and stored for cargo quantity tracking
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when m10 manifest segment is received with manifest type information in field m10-08.
Trigger Criteria:
Context: An M10 manifest segment is received with manifest type information in field M10-08
Applied to: Extract Manifest Type Code from M10-08
Action: The system processes the M10 segment for manifest data integration
Logic Flow:
IF An M10 manifest segment is received with manifest type information in field M10-08
AND The system processes the M10 segment for manifest data integration
THEN:
• The manifest type code is extracted from M10-08 field and stored for manifest classification
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when m10 manifest segment is received with condition response information in field m10-09.
Trigger Criteria:
Context: An M10 manifest segment is received with condition response information in field M10-09
Applied to: Extract Condition Response Code from M10-09
Action: The system processes the M10 segment for manifest data integration
Logic Flow:
IF An M10 manifest segment is received with condition response information in field M10-09
AND The system processes the M10 segment for manifest data integration
THEN:
• The condition response code is extracted from M10-09 field and stored for manifest condition tracking
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when transport type code has been extracted from m10-03 field.
Trigger Criteria:
Context: A transport type code has been extracted from M10-03 field
Applied to: Is Transport Type Valid?
Action: The system validates the transport type against valid transportation modes
Logic Flow:
IF A transport type code has been extracted from M10-03 field
AND The system validates the transport type against valid transportation modes
THEN:
• The system determines if the transport type is valid for further processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when transport type code has been validated as a recognized transportation mode.
Trigger Criteria:
Context: A transport type code has been validated as a recognized transportation mode
Applied to: Map Transport Type to Internal Code
Action: The system maps the transport type to internal coding standards
Logic Flow:
IF A transport type code has been validated as a recognized transportation mode
AND The system maps the transport type to internal coding standards
THEN:
• The transport type is converted to the appropriate internal system code
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when transport type code has been extracted but is not a recognized valid transportation mode.
Trigger Criteria:
Context: A transport type code has been extracted but is not a recognized valid transportation mode
Applied to: Set Default Transport Type
Action: The system cannot map the transport type to internal coding standards
Logic Flow:
IF A transport type code has been extracted but is not a recognized valid transportation mode
AND The system cannot map the transport type to internal coding standards
THEN:
• The system assigns a default transport type code for processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when all m10 manifest data elements have been extracted and validated.
Trigger Criteria:
Context: All M10 manifest data elements have been extracted and validated
Applied to: Build Manifest Information into Cargo Record
Action: The system builds the manifest information into cargo record structure
Logic Flow:
IF All M10 manifest data elements have been extracted and validated
AND The system builds the manifest information into cargo record structure
THEN:
• All manifest data is consolidated into a complete cargo record with SCAC, transport type, country, vessel, voyage, quantity, manifest type, and condition codes
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when manifest information has been built into a structured cargo record format.
Trigger Criteria:
Context: Manifest information has been built into a structured cargo record format
Applied to: Update Cargo Record with M10 Data
Action: The system updates the cargo record with M10 manifest data
Logic Flow:
IF Manifest information has been built into a structured cargo record format
AND The system updates the cargo record with M10 manifest data
THEN:
• The cargo record is updated with all manifest information including carrier, transport mode, origin, vessel details, quantities, and status codes
R-GCX016-cbl-01288 (+12)File: GCX016.cblBusiness Rule: Station Data Lookup
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when station data lookup request is received.
Trigger Criteria:
Context: A station data lookup request is received
Applied to: Station Type?
Action: The system evaluates the station type
Logic Flow:
IF A station data lookup request is received
AND The system evaluates the station type
THEN:
• The system routes to bonded-to station lookup for bonded stations or border crossing station lookup for border stations
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when station lookup request is initiated.
Trigger Criteria:
Context: A station lookup request is initiated
Applied to: Search SD Table
Action: The system searches the SD table using station identifier
Logic Flow:
IF A station lookup request is initiated
AND The system searches the SD table using station identifier
THEN:
• The system retrieves station directory information if found
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when sd table has been searched for a station.
Trigger Criteria:
Context: The SD table has been searched for a station
Applied to: Station Found in SD?
Action: The system checks if the station was found in SD table
Logic Flow:
IF The SD table has been searched for a station
AND The system checks if the station was found in SD table
THEN:
• If found, retrieve station name; if not found, search DS table
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when station was not found in sd table.
Trigger Criteria:
Context: Station was not found in SD table
Applied to: Search DS Table
Action: The system searches the DS table using station identifier
Logic Flow:
IF Station was not found in SD table
AND The system searches the DS table using station identifier
THEN:
• The system retrieves destination station information if found
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when ds table has been searched for a station.
Trigger Criteria:
Context: The DS table has been searched for a station
Applied to: Station Found in DS?
Action: The system checks if the station was found in DS table
Logic Flow:
IF The DS table has been searched for a station
AND The system checks if the station was found in DS table
THEN:
• If found, retrieve station description; if not found, search KS table
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when station was not found in sd or ds tables.
Trigger Criteria:
Context: Station was not found in SD or DS tables
Applied to: Search KS Table
Action: The system searches the KS table using station identifier
Logic Flow:
IF Station was not found in SD or DS tables
AND The system searches the KS table using station identifier
THEN:
• The system retrieves known station information if found
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when ks table has been searched for a station.
Trigger Criteria:
Context: The KS table has been searched for a station
Applied to: Station Found in KS?
Action: The system checks if the station was found in KS table
Logic Flow:
IF The KS table has been searched for a station
AND The system checks if the station was found in KS table
THEN:
• If found, retrieve location details; if not found, generate station not found error
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when station is found in sd table.
Trigger Criteria:
Context: Station is found in SD table
Applied to: Retrieve Station Name
Action: The system retrieves station data
Logic Flow:
IF Station is found in SD table
AND The system retrieves station data
THEN:
• The system extracts and stores the station name for formatting
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when station is found in ds table.
Trigger Criteria:
Context: Station is found in DS table
Applied to: Retrieve Station Description
Action: The system retrieves station data
Logic Flow:
IF Station is found in DS table
AND The system retrieves station data
THEN:
• The system extracts and stores the station description for formatting
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when station is found in ks table.
Trigger Criteria:
Context: Station is found in KS table
Applied to: Retrieve Location Details
Action: The system retrieves station data
Logic Flow:
IF Station is found in KS table
AND The system retrieves station data
THEN:
• The system extracts and stores the location details for formatting
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when station information has been retrieved from any of the station tables.
Trigger Criteria:
Context: Station information has been retrieved from any of the station tables
Applied to: Format Station Information
Action: The system formats the station data
Logic Flow:
IF Station information has been retrieved from any of the station tables
AND The system formats the station data
THEN:
• The system creates a standardized station information structure with name, description, and location details
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when station information has been formatted.
Trigger Criteria:
Context: Station information has been formatted
Applied to: Update Cargo Record with Station Data
Action: The system updates the cargo record
Logic Flow:
IF Station information has been formatted
AND The system updates the cargo record
THEN:
• The system stores the station data in the appropriate cargo record fields
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when station was not found in sd, ds, or ks tables.
Trigger Criteria:
Context: Station was not found in SD, DS, or KS tables
Applied to: Station Not Found Error
Action: The system completes all station table searches
Logic Flow:
IF Station was not found in SD, DS, or KS tables
AND The system completes all station table searches
THEN:
• The system generates a station not found error and continues with lookup completion
R-GCX016-cbl-01301 (+13)File: GCX016.cblBusiness Rule: Destination Station Lookup
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record is being processed for destination station lookup.
Trigger Criteria:
Context: A cargo record is being processed for destination station lookup
Applied to: Location ID Available?
Action: The system checks for location ID availability in the cargo record
Logic Flow:
IF A cargo record is being processed for destination station lookup
AND The system checks for location ID availability in the cargo record
THEN:
• The system proceeds to extract location ID if available, otherwise uses default/unknown station
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record contains a valid location id.
Trigger Criteria:
Context: A cargo record contains a valid location ID
Applied to: Extract Location ID from Cargo Record
Action: The system extracts the location ID from the cargo record
Logic Flow:
IF A cargo record contains a valid location ID
AND The system extracts the location ID from the cargo record
THEN:
• The location ID is available for station table lookup operations
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when location id has been extracted from the cargo record.
Trigger Criteria:
Context: A location ID has been extracted from the cargo record
Applied to: Lookup Station in DS Table
Action: The system searches the DS table using the location ID
Logic Flow:
IF A location ID has been extracted from the cargo record
AND The system searches the DS table using the location ID
THEN:
• The system retrieves station information if found or proceeds to secondary lookup
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when ds table lookup has been performed using the location id.
Trigger Criteria:
Context: A DS table lookup has been performed using the location ID
Applied to: DS Table Entry Found?
Action: The system checks if a matching DS table entry was found
Logic Flow:
IF A DS table lookup has been performed using the location ID
AND The system checks if a matching DS table entry was found
THEN:
• The system extracts station information if found, otherwise performs KS table lookup
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when ds table lookup did not find a matching station entry.
Trigger Criteria:
Context: The DS table lookup did not find a matching station entry
Applied to: Lookup Station in KS Table
Action: The system searches the KS table using the location ID
Logic Flow:
IF The DS table lookup did not find a matching station entry
AND The system searches the KS table using the location ID
THEN:
• The system retrieves station information if found or logs station not found warning
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when ks table lookup has been performed using the location id.
Trigger Criteria:
Context: A KS table lookup has been performed using the location ID
Applied to: KS Table Entry Found?
Action: The system checks if a matching KS table entry was found
Logic Flow:
IF A KS table lookup has been performed using the location ID
AND The system checks if a matching KS table entry was found
THEN:
• The system extracts station information if found, otherwise logs station not found warning
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when station entry has been found in either ds or ks table.
Trigger Criteria:
Context: A station entry has been found in either DS or KS table
Applied to: Extract Station Name and Description
Action: The system extracts station name and description from the table entry
Logic Flow:
IF A station entry has been found in either DS or KS table
AND The system extracts station name and description from the table entry
THEN:
• The station information is available for mapping to the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when station name and description have been extracted from the table lookup.
Trigger Criteria:
Context: Station name and description have been extracted from the table lookup
Applied to: Map Location ID to Station Information
Action: The system maps the location ID to the station information
Logic Flow:
IF Station name and description have been extracted from the table lookup
AND The system maps the location ID to the station information
THEN:
• The location ID is associated with the corresponding station details
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when location id has been mapped to station information.
Trigger Criteria:
Context: Location ID has been mapped to station information
Applied to: Update Cargo Record with Station Details
Action: The system updates the cargo record with station details
Logic Flow:
IF Location ID has been mapped to station information
AND The system updates the cargo record with station details
THEN:
• The cargo record contains the station name and description for the location ID
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record has been updated with station details.
Trigger Criteria:
Context: The cargo record has been updated with station details
Applied to: KCSM Station Required?
Action: The system checks if KCSM station lookup is required
Logic Flow:
IF The cargo record has been updated with station details
AND The system checks if KCSM station lookup is required
THEN:
• The system performs KCSM station lookup if required, otherwise completes station lookup
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when kcsm station lookup is required for the cargo record.
Trigger Criteria:
Context: KCSM station lookup is required for the cargo record
Applied to: Perform KCSM Station Lookup
Action: The system performs KCSM station lookup
Logic Flow:
IF KCSM station lookup is required for the cargo record
AND The system performs KCSM station lookup
THEN:
• The system retrieves KCSM-specific station information for mapping
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when kcsm station lookup has been performed successfully.
Trigger Criteria:
Context: KCSM station lookup has been performed successfully
Applied to: Apply KCSM Station Mapping
Action: The system applies KCSM station mapping
Logic Flow:
IF KCSM station lookup has been performed successfully
AND The system applies KCSM station mapping
THEN:
• The cargo record is updated with KCSM-specific station information
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when both ds and ks table lookups have failed to find a matching station entry.
Trigger Criteria:
Context: Both DS and KS table lookups have failed to find a matching station entry
Applied to: Log Station Not Found Warning
Action: The system logs a station not found warning
Logic Flow:
IF Both DS and KS table lookups have failed to find a matching station entry
AND The system logs a station not found warning
THEN:
• A warning is recorded indicating the location ID could not be resolved to station information
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when station lookup has failed or location id is not available.
Trigger Criteria:
Context: Station lookup has failed or location ID is not available
Applied to: Use Default/Unknown Station
Action: The system uses default/unknown station information
Logic Flow:
IF Station lookup has failed or location ID is not available
AND The system uses default/unknown station information
THEN:
• The cargo record is assigned default station details to complete processing
R-GCX016-cbl-01315 (+9)File: GCX016.cblBusiness Rule: KCSM Station Lookup
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when station lookup request is received.
Trigger Criteria:
Context: A station lookup request is received
Applied to: Station Type Check
Action: The system evaluates the station type
Logic Flow:
IF A station lookup request is received
AND The system evaluates the station type
THEN:
• The system routes to either DS table for standard stations or KS table for KCSM stations
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when standard station type is identified.
Trigger Criteria:
Context: A standard station type is identified
Applied to: Access DS Table for Standard Stations
Action: The system accesses the DS table
Logic Flow:
IF A standard station type is identified
AND The system accesses the DS table
THEN:
• Station code, name, and description are retrieved from DS table records
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when kcsm station type is identified.
Trigger Criteria:
Context: A KCSM station type is identified
Applied to: Access KS Table for KCSM Stations
Action: The system accesses the KS table
Logic Flow:
IF A KCSM station type is identified
AND The system accesses the KS table
THEN:
• Station code, name, and description are retrieved from KS table records
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when station information has been retrieved.
Trigger Criteria:
Context: Station information has been retrieved
Applied to: KCSM Specific Mapping Required?
Action: The system evaluates if KCSM-specific mapping is required
Logic Flow:
IF Station information has been retrieved
AND The system evaluates if KCSM-specific mapping is required
THEN:
• The system either applies KCSM mapping rules or proceeds to validation
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when kcsm-specific mapping is required.
Trigger Criteria:
Context: KCSM-specific mapping is required
Applied to: Apply KCSM Station Mapping Rules
Action: The system applies KCSM station mapping rules
Logic Flow:
IF KCSM-specific mapping is required
AND The system applies KCSM station mapping rules
THEN:
• Station information is transformed according to KCSM business requirements
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when kcsm mapping rules have been applied.
Trigger Criteria:
Context: KCSM mapping rules have been applied
Applied to: Format Station Information for KCSM
Action: The system formats station information for KCSM
Logic Flow:
IF KCSM mapping rules have been applied
AND The system formats station information for KCSM
THEN:
• Station data is presented in KCSM-compliant format
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when station information has been retrieved and optionally formatted.
Trigger Criteria:
Context: Station information has been retrieved and optionally formatted
Applied to: Validate Station Data
Action: The system validates station data
Logic Flow:
IF Station information has been retrieved and optionally formatted
AND The system validates station data
THEN:
• Station data is confirmed as complete and accurate or flagged as invalid
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when station data validation has been completed.
Trigger Criteria:
Context: Station data validation has been completed
Applied to: Station Found?
Action: The system checks if station was found
Logic Flow:
IF Station data validation has been completed
AND The system checks if station was found
THEN:
• The system either returns station information or handles station not found condition
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when station lookup has failed to find valid station.
Trigger Criteria:
Context: Station lookup has failed to find valid station
Applied to: Log Station Not Found Error
Action: The system logs station not found error
Logic Flow:
IF Station lookup has failed to find valid station
AND The system logs station not found error
THEN:
• Error is recorded with station lookup details for troubleshooting
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when station not found error has been logged.
Trigger Criteria:
Context: Station not found error has been logged
Applied to: Use Default Station Information
Action: The system uses default station information
Logic Flow:
IF Station not found error has been logged
AND The system uses default station information
THEN:
• Default station values are provided to ensure processing continuity
Business Justification: Dictates the expected operational logic and validation steps when disposition code message needs to be formatted and message type is standard disposition message.
Trigger Criteria:
Context: A disposition code message needs to be formatted AND message type is standard disposition message
Applied to: Format Standard Disposition Message
Action: The system processes the message formatting request
Logic Flow:
IF A disposition code message needs to be formatted AND message type is standard disposition message
AND The system processes the message formatting request
THEN:
• The system creates a standard disposition message format with disposition code and cargo details
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code message needs to be formatted and message type is broker bond message.
Trigger Criteria:
Context: A disposition code message needs to be formatted AND message type is broker bond message
Applied to: Format Broker Bond Message
Action: The system processes the message formatting request
Logic Flow:
IF A disposition code message needs to be formatted AND message type is broker bond message
AND The system processes the message formatting request
THEN:
• The system creates a broker bond message format with bond-specific information
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when message is being formatted with disposition code information.
Trigger Criteria:
Context: A message is being formatted with disposition code information
Applied to: Add Disposition Code Information
Action: The system adds disposition code details to the message
Logic Flow:
IF A message is being formatted with disposition code information
AND The system adds disposition code details to the message
THEN:
• The message includes the disposition code value and related processing information
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when message contains disposition code information.
Trigger Criteria:
Context: A message contains disposition code information
Applied to: Add Disposition Description
Action: The system adds disposition description to the message
Logic Flow:
IF A message contains disposition code information
AND The system adds disposition description to the message
THEN:
• The message includes the descriptive text explaining the disposition code meaning
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code is being processed that affects cargo quantities.
Trigger Criteria:
Context: A disposition code is being processed that affects cargo quantities
Applied to: Determine Quantity Action
Action: The system evaluates the quantity impact of the disposition code
Logic Flow:
IF A disposition code is being processed that affects cargo quantities
AND The system evaluates the quantity impact of the disposition code
THEN:
• The system determines whether quantities will be added, subtracted, or remain unchanged
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when quantity action type is determined to be add quantity.
Trigger Criteria:
Context: Quantity action type is determined to be add quantity
Applied to: Format Add Quantity Message
Action: The system formats the quantity action message
Logic Flow:
IF Quantity action type is determined to be add quantity
AND The system formats the quantity action message
THEN:
• The message indicates that the specified quantity will be added to the cargo release amount
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when quantity action type is determined to be subtract quantity.
Trigger Criteria:
Context: Quantity action type is determined to be subtract quantity
Applied to: Format Subtract Quantity Message
Action: The system formats the quantity action message
Logic Flow:
IF Quantity action type is determined to be subtract quantity
AND The system formats the quantity action message
THEN:
• The message indicates that the specified quantity will be subtracted from the cargo release amount
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when quantity action type is determined to be no change.
Trigger Criteria:
Context: Quantity action type is determined to be no change
Applied to: Format No Quantity Change Message
Action: The system formats the quantity action message
Logic Flow:
IF Quantity action type is determined to be no change
AND The system formats the quantity action message
THEN:
• The message indicates that no quantity changes will be made to the cargo
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition message is being formatted and entry number information is available.
Trigger Criteria:
Context: A disposition message is being formatted AND entry number information is available
Applied to: Include Entry Number Information
Action: The system includes entry number information in the message
Logic Flow:
IF A disposition message is being formatted AND entry number information is available
AND The system includes entry number information in the message
THEN:
• The message contains the entry number for customs reference and tracking
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition message is being formatted.
Trigger Criteria:
Context: A disposition message is being formatted
Applied to: K1 Comments Available?
Action: The system checks for available K1 comments
Logic Flow:
IF A disposition message is being formatted
AND The system checks for available K1 comments
THEN:
• The system determines whether K1 comment information exists and should be included in the message
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when k1 comments are available and first k1 comment exists.
Trigger Criteria:
Context: K1 comments are available AND first K1 comment exists
Applied to: Add First K1 Comment
Action: The system adds the first K1 comment to the message
Logic Flow:
IF K1 comments are available AND first K1 comment exists
AND The system adds the first K1 comment to the message
THEN:
• The message includes the first K1 comment text for additional context
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when k1 comments are available and second k1 comment exists.
Trigger Criteria:
Context: K1 comments are available AND second K1 comment exists
Applied to: Add Second K1 Comment
Action: The system adds the second K1 comment to the message
Logic Flow:
IF K1 comments are available AND second K1 comment exists
AND The system adds the second K1 comment to the message
THEN:
• The message includes the second K1 comment text for additional context
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when k1 comments are available and third k1 comment exists.
Trigger Criteria:
Context: K1 comments are available AND third K1 comment exists
Applied to: Add Third K1 Comment
Action: The system adds the third K1 comment to the message
Logic Flow:
IF K1 comments are available AND third K1 comment exists
AND The system adds the third K1 comment to the message
THEN:
• The message includes the third K1 comment text for additional context
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when k1 comments are available and fourth k1 comment exists.
Trigger Criteria:
Context: K1 comments are available AND fourth K1 comment exists
Applied to: Add Fourth K1 Comment
Action: The system adds the fourth K1 comment to the message
Logic Flow:
IF K1 comments are available AND fourth K1 comment exists
AND The system adds the fourth K1 comment to the message
THEN:
• The message includes the fourth K1 comment text for additional context
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when disposition message requires cargo details.
Trigger Criteria:
Context: A disposition message requires cargo details
Applied to: Format Cargo Details
Action: The system formats cargo details for the message
Logic Flow:
IF A disposition message requires cargo details
AND The system formats cargo details for the message
THEN:
• The message includes formatted cargo identification and tracking information
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo details are being formatted and car id information is available.
Trigger Criteria:
Context: Cargo details are being formatted AND car ID information is available
Applied to: Add Car ID Information
Action: The system adds car ID information to the message
Logic Flow:
IF Cargo details are being formatted AND car ID information is available
AND The system adds car ID information to the message
THEN:
• The message includes the railroad car identification for equipment tracking
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo details are being formatted and waybill information is available.
Trigger Criteria:
Context: Cargo details are being formatted AND waybill information is available
Applied to: Add Waybill Information
Action: The system adds waybill information to the message
Logic Flow:
IF Cargo details are being formatted AND waybill information is available
AND The system adds waybill information to the message
THEN:
• The message includes the waybill number for shipment tracking and reference
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo details are being formatted and us-ccn information is available.
Trigger Criteria:
Context: Cargo details are being formatted AND US-CCN information is available
Applied to: Add US-CCN Information
Action: The system adds US-CCN information to the message
Logic Flow:
IF Cargo details are being formatted AND US-CCN information is available
AND The system adds US-CCN information to the message
THEN:
• The message includes the US Customs Control Number for customs tracking and processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition message is being finalized.
Trigger Criteria:
Context: A disposition message is being finalized
Applied to: Add Processing Timestamp
Action: The system adds processing timestamp to the message
Logic Flow:
IF A disposition message is being finalized
AND The system adds processing timestamp to the message
THEN:
• The message includes the current processing date and time for audit trail
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when all message components have been added to the disposition message.
Trigger Criteria:
Context: All message components have been added to the disposition message
Applied to: Finalize Message Format
Action: The system finalizes the message format
Logic Flow:
IF All message components have been added to the disposition message
AND The system finalizes the message format
THEN:
• The message is properly formatted and ready for transmission to recipients
Business Justification: Defines the strict business conditions required to proceed when disposition code is received in the x4 segment.
Trigger Criteria:
Context: A disposition code is received in the X4 segment
Applied to: Disposition Code Has Quantity Action?
Action: The system checks if the disposition code has an associated quantity action in the DC table
Logic Flow:
IF A disposition code is received in the X4 segment
AND The system checks if the disposition code has an associated quantity action in the DC table
THEN:
• The system determines whether quantity processing is required and proceeds accordingly
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code has been identified as having quantity action.
Trigger Criteria:
Context: A disposition code has been identified as having quantity action
Applied to: Retrieve Quantity Action from DC Table
Action: The system retrieves the quantity action details from the DC table
Logic Flow:
IF A disposition code has been identified as having quantity action
AND The system retrieves the quantity action details from the DC table
THEN:
• The quantity action type and parameters are available for processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when quantity action details have been retrieved from the dc table.
Trigger Criteria:
Context: Quantity action details have been retrieved from the DC table
Applied to: Action Type?
Action: The system evaluates the action type field
Logic Flow:
IF Quantity action details have been retrieved from the DC table
AND The system evaluates the action type field
THEN:
• The system routes to either ADD or SUBTRACT quantity processing based on the action type
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when quantity action type is add.
Trigger Criteria:
Context: The quantity action type is ADD
Applied to: Format ADD Quantity Message
Action: The system formats the quantity action message
Logic Flow:
IF The quantity action type is ADD
AND The system formats the quantity action message
THEN:
• A message is created showing the quantity that will be added to the release quantity
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when quantity action type is subtract.
Trigger Criteria:
Context: The quantity action type is SUBTRACT
Applied to: Format SUBTRACT Quantity Message
Action: The system formats the quantity action message
Logic Flow:
IF The quantity action type is SUBTRACT
AND The system formats the quantity action message
THEN:
• A message is created showing the quantity that will be subtracted from the release quantity
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when current release quantity and quantity action amount are known.
Trigger Criteria:
Context: The current release quantity and quantity action amount are known
Applied to: Calculate New Release Quantity
Action: The system calculates the new release quantity based on the action type
Logic Flow:
IF The current release quantity and quantity action amount are known
AND The system calculates the new release quantity based on the action type
THEN:
• The new release quantity is computed by adding or subtracting the action amount from the current quantity
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when new release quantity has been calculated.
Trigger Criteria:
Context: A new release quantity has been calculated
Applied to: Quantity Would Be Negative?
Action: The calculated quantity would be less than zero
Logic Flow:
IF A new release quantity has been calculated
AND The calculated quantity would be less than zero
THEN:
• The system identifies this as an invalid condition requiring correction
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when calculated release quantity would be negative.
Trigger Criteria:
Context: A calculated release quantity would be negative
Applied to: Set Quantity to Zero
Action: The system applies the minimum quantity constraint
Logic Flow:
IF A calculated release quantity would be negative
AND The system applies the minimum quantity constraint
THEN:
• The release quantity is set to zero to prevent negative values
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when new release quantity has been calculated and is not negative.
Trigger Criteria:
Context: A new release quantity has been calculated and is not negative
Applied to: Use Calculated Quantity
Action: The system validates the calculated quantity
Logic Flow:
IF A new release quantity has been calculated and is not negative
AND The system validates the calculated quantity
THEN:
• The calculated quantity is accepted as the new release quantity
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when final release quantity has been determined.
Trigger Criteria:
Context: The final release quantity has been determined
Applied to: Format Quantity Action Display Message
Action: The system formats the quantity action display message
Logic Flow:
IF The final release quantity has been determined
AND The system formats the quantity action display message
THEN:
• A formatted message is created containing all relevant quantity action information
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when quantity action display message is being formatted.
Trigger Criteria:
Context: A quantity action display message is being formatted
Applied to: Include Current Released Quantity
Action: The system includes current quantity information
Logic Flow:
IF A quantity action display message is being formatted
AND The system includes current quantity information
THEN:
• The current released quantity is added to the message for broker reference
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when quantity action display message is being formatted.
Trigger Criteria:
Context: A quantity action display message is being formatted
Applied to: Include Quantity Change Amount
Action: The system includes the quantity change details
Logic Flow:
IF A quantity action display message is being formatted
AND The system includes the quantity change details
THEN:
• The exact amount being added or subtracted is included in the message
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when quantity action display message is being formatted and broker entry number exists.
Trigger Criteria:
Context: A quantity action display message is being formatted and broker entry number exists
Applied to: Include Broker Entry Number
Action: The system includes entry number information
Logic Flow:
IF A quantity action display message is being formatted and broker entry number exists
AND The system includes entry number information
THEN:
• The broker entry number is added to the message for cargo identification
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when complete quantity action message has been formatted.
Trigger Criteria:
Context: A complete quantity action message has been formatted
Applied to: Add to Merlin Message Buffer
Action: The system adds the message to the Merlin buffer
Logic Flow:
IF A complete quantity action message has been formatted
AND The system adds the message to the Merlin buffer
THEN:
• The message is appended to the buffer for subsequent transmission
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when quantity action processing has been completed successfully.
Trigger Criteria:
Context: Quantity action processing has been completed successfully
Applied to: Continue Message Processing
Action: The system continues with message processing
Logic Flow:
IF Quantity action processing has been completed successfully
AND The system continues with message processing
THEN:
• Control returns to the main message processing flow for additional processing steps
Business Justification: Defines the strict business conditions required to proceed when k1 comment segment is received for processing.
Trigger Criteria:
Context: A K1 comment segment is received for processing
Applied to: Processing Context?
Action: The system evaluates the current processing context
Logic Flow:
IF A K1 comment segment is received for processing
AND The system evaluates the current processing context
THEN:
• The system routes K1 processing to either train-level operations or cargo-level operations based on the context
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when k1 comment segment is being processed in train operations context.
Trigger Criteria:
Context: A K1 comment segment is being processed in train operations context
Applied to: Store K1 Comment in Train Log
Action: The system processes the K1 segment
Logic Flow:
IF A K1 comment segment is being processed in train operations context
AND The system processes the K1 segment
THEN:
• The K1 comment is stored in the train log for future reference
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when k1 comment segment is being processed for cargo operations.
Trigger Criteria:
Context: A K1 comment segment is being processed for cargo operations
Applied to: Comment Count < 4?
Action: The system checks the current count of K1 comments already processed
Logic Flow:
IF A K1 comment segment is being processed for cargo operations
AND The system checks the current count of K1 comments already processed
THEN:
• If comment count is less than 4, the comment is added to the array, otherwise additional comments are skipped
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when k1 comment segment is received and comment count is less than 4.
Trigger Criteria:
Context: A K1 comment segment is received and comment count is less than 4
Applied to: Add K1 Comment to Array
Action: The system processes the K1 comment
Logic Flow:
IF A K1 comment segment is received and comment count is less than 4
AND The system processes the K1 comment
THEN:
• The K1 comment is added to the comment array for inclusion in messages
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when k1 comment segment is received and comment count is already 4 or more.
Trigger Criteria:
Context: A K1 comment segment is received and comment count is already 4 or more
Applied to: Skip Additional Comments
Action: The system evaluates the comment for processing
Logic Flow:
IF A K1 comment segment is received and comment count is already 4 or more
AND The system evaluates the comment for processing
THEN:
• The additional K1 comment is skipped and not included in the comment array
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when k1 comments are ready for formatting and a message is being prepared.
Trigger Criteria:
Context: K1 comments are ready for formatting and a message is being prepared
Applied to: Message Type?
Action: The system evaluates the message type (Release, Hold, Status, or Error)
Logic Flow:
IF K1 comments are ready for formatting and a message is being prepared
AND The system evaluates the message type (Release, Hold, Status, or Error)
THEN:
• The system routes K1 comment formatting to the appropriate message type handler
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when k1 comments are available and message type has been determined.
Trigger Criteria:
Context: K1 comments are available and message type has been determined
Applied to: Format Free-Form Text
Action: The system formats the K1 comments for message inclusion
Logic Flow:
IF K1 comments are available and message type has been determined
AND The system formats the K1 comments for message inclusion
THEN:
• The K1 comments are formatted as free-form text appropriate for the specific message type
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when k1 comments have been formatted as free-form text.
Trigger Criteria:
Context: K1 comments have been formatted as free-form text
Applied to: Append to Message Body
Action: The system prepares the final message for transmission
Logic Flow:
IF K1 comments have been formatted as free-form text
AND The system prepares the final message for transmission
THEN:
• The formatted K1 comments are appended to the message body
R-GCX016-cbl-01368 (+7)File: GCX016.cblBusiness Rule: Broker Bond Message Handling
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when message is received for processing.
Trigger Criteria:
Context: A message is received for processing
Applied to: Message from Canadian Pacific Entity?
Action: The system evaluates the message source entity
Logic Flow:
IF A message is received for processing
AND The system evaluates the message source entity
THEN:
• The message is classified as either Canadian Pacific entity or standard entity for appropriate processing path
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when canadian pacific entity message is being processed.
Trigger Criteria:
Context: A Canadian Pacific entity message is being processed
Applied to: Identify Broker-Created Bond
Action: The system analyzes the bond creation source
Logic Flow:
IF A Canadian Pacific entity message is being processed
AND The system analyzes the bond creation source
THEN:
• The bond is identified as broker-created and flagged for special handling
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when broker-created bond has been identified.
Trigger Criteria:
Context: A broker-created bond has been identified
Applied to: Extract Bond Information
Action: The system processes the bond message content
Logic Flow:
IF A broker-created bond has been identified
AND The system processes the bond message content
THEN:
• Bond control numbers, broker information, and related bond details are extracted and stored
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when bond information has been extracted from a broker-created bond.
Trigger Criteria:
Context: Bond information has been extracted from a broker-created bond
Applied to: Format Special Bond Message
Action: The system prepares the notification message
Logic Flow:
IF Bond information has been extracted from a broker-created bond
AND The system prepares the notification message
THEN:
• The message is formatted with special bond message structure including bond control numbers and broker details
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when special bond message has been formatted.
Trigger Criteria:
Context: A special bond message has been formatted
Applied to: Apply Canadian Pacific Formatting Rules
Action: The message is from Canadian Pacific entity
Logic Flow:
IF A special bond message has been formatted
AND The message is from Canadian Pacific entity
THEN:
• Canadian Pacific specific formatting rules are applied including entity-specific message structure and content requirements
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when canadian pacific formatting rules have been applied to the bond message.
Trigger Criteria:
Context: Canadian Pacific formatting rules have been applied to the bond message
Applied to: Prepare Bond Notification
Action: The system finalizes the notification preparation
Logic Flow:
IF Canadian Pacific formatting rules have been applied to the bond message
AND The system finalizes the notification preparation
THEN:
• The bond notification is prepared with complete formatting, bond details, and ready for routing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when bond notification has been prepared.
Trigger Criteria:
Context: A bond notification has been prepared
Applied to: Route to Merlin Message System
Action: The system routes the message for delivery
Logic Flow:
IF A bond notification has been prepared
AND The system routes the message for delivery
THEN:
• The notification is sent to the Merlin message system for final delivery to appropriate recipients
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when message is not from canadian pacific entity.
Trigger Criteria:
Context: A message is not from Canadian Pacific entity
Applied to: Standard Message Processing
Action: The system determines the processing path
Logic Flow:
IF A message is not from Canadian Pacific entity
AND The system determines the processing path
THEN:
• The message is processed through standard message handling procedures without special bond formatting
R-GCX016-cbl-01376 (+4)File: GCX016.cblBusiness Rule: Container Type Validation
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record is being processed for equipment integration.
Trigger Criteria:
Context: A cargo record is being processed for equipment integration
Applied to: Equipment Type Present?
Action: The system retrieves the equipment type from the cargo record
Logic Flow:
IF A cargo record is being processed for equipment integration
AND The system retrieves the equipment type from the cargo record
THEN:
• The system should check if equipment type information is present and proceed to validation if available, or skip to invalid handling if not present
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when equipment type has been retrieved from the cargo record.
Trigger Criteria:
Context: An equipment type has been retrieved from the cargo record
Applied to: Is Valid Container/Equipment Type?
Action: The system checks the equipment type against the list of valid container and equipment types including containers, trailers, and various other equipment types
Logic Flow:
IF An equipment type has been retrieved from the cargo record
AND The system checks the equipment type against the list of valid container and equipment types including containers, trailers, and various other equipment types
THEN:
• The system should classify the equipment type as valid if it matches approved container/equipment types, or invalid if it does not match
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when equipment type has been validated as a recognized container or equipment type. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: The equipment type has been validated as a recognized container or equipment type
Applied to: Set Integration Call Flag to Proceed
Action: The validation process determines the equipment type is valid for integration
Logic Flow:
IF The equipment type has been validated as a recognized container or equipment type
AND The validation process determines the equipment type is valid for integration
THEN:
• The system should set the integration call flag to proceed and allow the integration call to be made
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when equipment type is either not present in the cargo record or does not match valid container/equipment types. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: The equipment type is either not present in the cargo record or does not match valid container/equipment types
Applied to: Log Invalid Equipment Type
Action: The validation process identifies an invalid or missing equipment type
Logic Flow:
IF The equipment type is either not present in the cargo record or does not match valid container/equipment types
AND The validation process identifies an invalid or missing equipment type
THEN:
• The system should log the invalid equipment type occurrence and set the integration call flag to skip processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when equipment type validation has failed due to invalid or missing equipment type. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: The equipment type validation has failed due to invalid or missing equipment type
Applied to: Set Integration Call Flag to Skip
Action: The system needs to determine the next processing step after validation failure
Logic Flow:
IF The equipment type validation has failed due to invalid or missing equipment type
AND The system needs to determine the next processing step after validation failure
THEN:
• The system should set the integration call flag to skip and prevent any integration calls from being made
R-GCX016-cbl-01381 (+9)File: GCX016.cblBusiness Rule: Status Mapping
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record has an internal hold status.
Trigger Criteria:
Context: A cargo record has an internal hold status
Applied to: Map Hold Status
Action: The system processes the cargo status for integration service mapping
Logic Flow:
IF A cargo record has an internal hold status
AND The system processes the cargo status for integration service mapping
THEN:
• The system maps the hold status to appropriate integration service status description based on hold type (border hold, destination hold, or combined hold conditions)
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record has an internal release status.
Trigger Criteria:
Context: A cargo record has an internal release status
Applied to: Map Release Status
Action: The system processes the cargo status for integration service mapping
Logic Flow:
IF A cargo record has an internal release status
AND The system processes the cargo status for integration service mapping
THEN:
• The system maps the release status to appropriate integration service status description based on release type (full release when released quantity equals total quantity, or partial release when released quantity is less than total quantity)
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record has an internal ptt (permit to transfer) status.
Trigger Criteria:
Context: A cargo record has an internal PTT (Permit to Transfer) status
Applied to: Map PTT Status
Action: The system processes the cargo status for integration service mapping
Logic Flow:
IF A cargo record has an internal PTT (Permit to Transfer) status
AND The system processes the cargo status for integration service mapping
THEN:
• The system maps the PTT status to 'Permit to Transfer' integration service status description
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record has an internal proceed status with border arrival date.
Trigger Criteria:
Context: A cargo record has an internal proceed status with border arrival date
Applied to: Map Proceed Status
Action: The system processes the cargo status for integration service mapping
Logic Flow:
IF A cargo record has an internal proceed status with border arrival date
AND The system processes the cargo status for integration service mapping
THEN:
• The system maps the proceed status to integration service status description that includes the border arrival date information
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record has an internal train arrival status.
Trigger Criteria:
Context: A cargo record has an internal train arrival status
Applied to: Map Arrival Status
Action: The system processes the cargo status for integration service mapping
Logic Flow:
IF A cargo record has an internal train arrival status
AND The system processes the cargo status for integration service mapping
THEN:
• The system maps the arrival status to 'Train Arrival' integration service status description
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record has an internal export completion status.
Trigger Criteria:
Context: A cargo record has an internal export completion status
Applied to: Map Export Status
Action: The system processes the cargo status for integration service mapping
Logic Flow:
IF A cargo record has an internal export completion status
AND The system processes the cargo status for integration service mapping
THEN:
• The system maps the export status to 'Export Complete' integration service status description
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record has an internal customs seizure status.
Trigger Criteria:
Context: A cargo record has an internal customs seizure status
Applied to: Map Seizure Status
Action: The system processes the cargo status for integration service mapping
Logic Flow:
IF A cargo record has an internal customs seizure status
AND The system processes the cargo status for integration service mapping
THEN:
• The system maps the seizure status to 'Customs Seizure' integration service status description
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record has an internal fda hold status.
Trigger Criteria:
Context: A cargo record has an internal FDA hold status
Applied to: Map FDA Hold Status
Action: The system processes the cargo status for integration service mapping
Logic Flow:
IF A cargo record has an internal FDA hold status
AND The system processes the cargo status for integration service mapping
THEN:
• The system maps the FDA hold status to 'FDA Destination Hold' integration service status description
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when status description has been generated for integration service mapping.
Trigger Criteria:
Context: A status description has been generated for integration service mapping
Applied to: Validate Status Description Format
Action: The system validates the status description format
Logic Flow:
IF A status description has been generated for integration service mapping
AND The system validates the status description format
THEN:
• The system ensures the status description meets integration service format requirements and standards
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when validated status description exists for a cargo record. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: A validated status description exists for a cargo record
Applied to: Prepare Status for Integration Service Call
Action: The system prepares the status for integration service transmission
Logic Flow:
IF A validated status description exists for a cargo record
AND The system prepares the status for integration service transmission
THEN:
• The system formats and packages the status description for external integration service call
R-GCX016-cbl-01391 (+17)File: GCX016.cblBusiness Rule: Broker Information Lookup
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when broker lookup request is initiated.
Trigger Criteria:
Context: A broker lookup request is initiated
Applied to: Broker Code Available?
Action: The system checks for broker code availability
Logic Flow:
IF A broker lookup request is initiated
AND The system checks for broker code availability
THEN:
• The system proceeds to broker table lookup if broker code exists, otherwise returns broker not found error
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when valid broker code is available.
Trigger Criteria:
Context: A valid broker code is available
Applied to: Retrieve BK Table Record
Action: The system performs BK table lookup using the broker code
Logic Flow:
IF A valid broker code is available
AND The system performs BK table lookup using the broker code
THEN:
• The system retrieves the corresponding broker master record from BK table
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when bk table lookup has been performed with broker code.
Trigger Criteria:
Context: BK table lookup has been performed with broker code
Applied to: BK Record Found?
Action: The system checks if a matching BK record was found
Logic Flow:
IF BK table lookup has been performed with broker code
AND The system checks if a matching BK record was found
THEN:
• The system proceeds to extract broker short name if record found, otherwise returns broker not found error
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when valid bk table record has been found.
Trigger Criteria:
Context: A valid BK table record has been found
Applied to: Extract Broker Short Name
Action: The system processes the BK record
Logic Flow:
IF A valid BK table record has been found
AND The system processes the BK record
THEN:
• The system extracts and stores the broker short name from the BK record
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when broker short name has been extracted from bk table.
Trigger Criteria:
Context: Broker short name has been extracted from BK table
Applied to: Retrieve B1 Table Record
Action: The system performs B1 table lookup using the broker code
Logic Flow:
IF Broker short name has been extracted from BK table
AND The system performs B1 table lookup using the broker code
THEN:
• The system retrieves the corresponding broker detail record from B1 table
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when b1 table lookup has been performed with broker code.
Trigger Criteria:
Context: B1 table lookup has been performed with broker code
Applied to: B1 Record Found?
Action: The system checks if a matching B1 record was found
Logic Flow:
IF B1 table lookup has been performed with broker code
AND The system checks if a matching B1 record was found
THEN:
• The system proceeds to extract broker contact details if record found, otherwise sets default broker values
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when valid b1 table record has been found.
Trigger Criteria:
Context: A valid B1 table record has been found
Applied to: Extract Broker Contact Details
Action: The system processes the B1 record
Logic Flow:
IF A valid B1 table record has been found
AND The system processes the B1 record
THEN:
• The system extracts and stores broker contact details from the B1 record
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when broker contact details have been extracted from b1 record.
Trigger Criteria:
Context: Broker contact details have been extracted from B1 record
Applied to: Extract Email Preferences
Action: The system processes email preference fields
Logic Flow:
IF Broker contact details have been extracted from B1 record
AND The system processes email preference fields
THEN:
• The system extracts and stores broker email preferences for notification purposes
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when email preferences have been extracted from b1 record.
Trigger Criteria:
Context: Email preferences have been extracted from B1 record
Applied to: Extract Notification Settings
Action: The system processes notification setting fields
Logic Flow:
IF Email preferences have been extracted from B1 record
AND The system processes notification setting fields
THEN:
• The system extracts and stores broker notification settings for message routing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when notification settings have been extracted from broker record.
Trigger Criteria:
Context: Notification settings have been extracted from broker record
Applied to: Payer of Freight Entity?
Action: The system checks if this is a payer of freight entity lookup
Logic Flow:
IF Notification settings have been extracted from broker record
AND The system checks if this is a payer of freight entity lookup
THEN:
• The system applies PF= prefix lookup if payer of freight entity, otherwise proceeds to validate broker information
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when broker lookup is identified as payer of freight entity.
Trigger Criteria:
Context: The broker lookup is identified as payer of freight entity
Applied to: Apply PF= Prefix Lookup
Action: The system applies PF= prefix lookup logic
Logic Flow:
IF The broker lookup is identified as payer of freight entity
AND The system applies PF= prefix lookup logic
THEN:
• The system performs specialized payer of freight broker name retrieval
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when pf= prefix lookup has been applied.
Trigger Criteria:
Context: PF= prefix lookup has been applied
Applied to: Get Special PF Broker Name
Action: The system performs special PF broker name lookup
Logic Flow:
IF PF= prefix lookup has been applied
AND The system performs special PF broker name lookup
THEN:
• The system retrieves and stores the specialized payer of freight broker name
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when all broker information has been extracted from tables.
Trigger Criteria:
Context: All broker information has been extracted from tables
Applied to: Validate Broker Information
Action: The system validates the completeness of broker information
Logic Flow:
IF All broker information has been extracted from tables
AND The system validates the completeness of broker information
THEN:
• The system proceeds to store information if complete, otherwise sets default values
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when broker information validation has been performed.
Trigger Criteria:
Context: Broker information validation has been performed
Applied to: Information Complete?
Action: The system checks for information completeness
Logic Flow:
IF Broker information validation has been performed
AND The system checks for information completeness
THEN:
• The system stores broker information if complete, otherwise applies default broker values
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when broker information is incomplete or b1 record was not found.
Trigger Criteria:
Context: Broker information is incomplete or B1 record was not found
Applied to: Set Default Broker Values
Action: The system applies default value assignment logic
Logic Flow:
IF Broker information is incomplete or B1 record was not found
AND The system applies default value assignment logic
THEN:
• The system sets standard default values for missing broker information fields
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when broker information is complete or default values have been applied.
Trigger Criteria:
Context: Broker information is complete or default values have been applied
Applied to: Store Broker Information
Action: The system stores the broker information
Logic Flow:
IF Broker information is complete or default values have been applied
AND The system stores the broker information
THEN:
• The system saves all broker details for use in notification and processing workflows
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when broker information has been stored successfully.
Trigger Criteria:
Context: Broker information has been stored successfully
Applied to: Broker Lookup Complete
Action: The system completes the broker lookup process
Logic Flow:
IF Broker information has been stored successfully
AND The system completes the broker lookup process
THEN:
• The system returns success status with complete broker information available for use
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when broker code is not available or broker records are not found in bk table.
Trigger Criteria:
Context: Broker code is not available or broker records are not found in BK table
Applied to: Broker Not Found Error
Action: The system encounters broker lookup failure
Logic Flow:
IF Broker code is not available or broker records are not found in BK table
AND The system encounters broker lookup failure
THEN:
• The system returns broker not found error status and terminates lookup process
R-GCX016-cbl-01409 (+9)File: GCX016.cblBusiness Rule: Email vs Merlin Routing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when broker notification is required for cargo processing.
Trigger Criteria:
Context: A broker notification is required for cargo processing
Applied to: Check Broker Preferences
Action: The system checks broker preferences in the broker tables
Logic Flow:
IF A broker notification is required for cargo processing
AND The system checks broker preferences in the broker tables
THEN:
• The system retrieves broker contact information and routing preferences from BK/B1 tables
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when broker contact information has been retrieved from broker tables.
Trigger Criteria:
Context: Broker contact information has been retrieved from broker tables
Applied to: Email Preference Set?
Action: The broker has internet notification preference set to 'Y' or email preference is configured
Logic Flow:
IF Broker contact information has been retrieved from broker tables
AND The broker has internet notification preference set to 'Y' or email preference is configured
THEN:
• The system routes the notification to the internet email system
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when broker contact information has been retrieved from broker tables.
Trigger Criteria:
Context: Broker contact information has been retrieved from broker tables
Applied to: Route to Traditional Merlin System
Action: The broker does not have internet notification preference set or email preference is not configured
Logic Flow:
IF Broker contact information has been retrieved from broker tables
AND The broker does not have internet notification preference set or email preference is not configured
THEN:
• The system routes the notification to the traditional Merlin messaging system
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when notification is being routed via internet email.
Trigger Criteria:
Context: Notification is being routed via internet email
Applied to: Format Email Message
Action: The system prepares the message content
Logic Flow:
IF Notification is being routed via internet email
AND The system prepares the message content
THEN:
• The system formats the message with cargo information, disposition codes, quantities, and broker-specific details for email delivery
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when email message has been formatted for delivery.
Trigger Criteria:
Context: Email message has been formatted for delivery
Applied to: Set Email Keywords for Categorization
Action: The system prepares email routing parameters
Logic Flow:
IF Email message has been formatted for delivery
AND The system prepares email routing parameters
THEN:
• The system sets appropriate keywords and categories based on message type and content for email gateway processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when notification is being routed via traditional merlin system.
Trigger Criteria:
Context: Notification is being routed via traditional Merlin system
Applied to: Format Merlin Message
Action: The system prepares the message content
Logic Flow:
IF Notification is being routed via traditional Merlin system
AND The system prepares the message content
THEN:
• The system formats the message with cargo information, disposition codes, quantities, and broker-specific details according to Merlin message standards
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when merlin message has been formatted for delivery.
Trigger Criteria:
Context: Merlin message has been formatted for delivery
Applied to: Set Merlin User Codes
Action: The system prepares Merlin routing parameters
Logic Flow:
IF Merlin message has been formatted for delivery
AND The system prepares Merlin routing parameters
THEN:
• The system sets appropriate user codes, destination identifiers, and routing parameters based on broker location and message type
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when email message is formatted with proper keywords and categorization.
Trigger Criteria:
Context: Email message is formatted with proper keywords and categorization
Applied to: Send via Email Gateway
Action: The system initiates email transmission
Logic Flow:
IF Email message is formatted with proper keywords and categorization
AND The system initiates email transmission
THEN:
• The system sends the notification through the email gateway to the broker's configured email address
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when merlin message is formatted with proper user codes and routing parameters.
Trigger Criteria:
Context: Merlin message is formatted with proper user codes and routing parameters
Applied to: Send via Merlin Gateway
Action: The system initiates Merlin transmission
Logic Flow:
IF Merlin message is formatted with proper user codes and routing parameters
AND The system initiates Merlin transmission
THEN:
• The system sends the notification through the Merlin gateway to the broker's configured Merlin user ID
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when notification has been transmitted via either email or merlin gateway.
Trigger Criteria:
Context: Notification has been transmitted via either email or Merlin gateway
Applied to: Log Routing Decision
Action: The transmission is completed
Logic Flow:
IF Notification has been transmitted via either email or Merlin gateway
AND The transmission is completed
THEN:
• The system logs the routing method used, broker information, message type, and transmission status for audit trail
Business Justification: Ensures correct system behavior and process compliance when disposition code needs to be validated for broker notification eligibility.
Trigger Criteria:
Context: A disposition code needs to be validated for broker notification eligibility
Applied to: Is Disposition Code Configured for Broker Notifications?
Action: The system checks the broker disposition code configuration in GCSTBRT system tables
Logic Flow:
IF A disposition code needs to be validated for broker notification eligibility
AND The system checks the broker disposition code configuration in GCSTBRT system tables
THEN:
• The system sets validation flag to TRUE if the disposition code is found in configuration tables, otherwise sets validation flag to FALSE
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code validation has been completed with a validation result.
Trigger Criteria:
Context: A disposition code validation has been completed with a validation result
Applied to: Continue with Broker Notification Process
Action: The validation flag is TRUE indicating the disposition code is configured for notifications
Logic Flow:
IF A disposition code validation has been completed with a validation result
AND The validation flag is TRUE indicating the disposition code is configured for notifications
THEN:
• The system continues with the broker notification process
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code validation has been completed with a validation result.
Trigger Criteria:
Context: A disposition code validation has been completed with a validation result
Applied to: Skip Broker Notification Process
Action: The validation flag is FALSE indicating the disposition code is not configured for notifications
Logic Flow:
IF A disposition code validation has been completed with a validation result
AND The validation flag is FALSE indicating the disposition code is not configured for notifications
THEN:
• The system skips the broker notification process
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code needs to be validated for broker notification configuration.
Trigger Criteria:
Context: A disposition code needs to be validated for broker notification configuration
Applied to: Access System Configuration Tables
Action: The system accesses the broker configuration tables to check if the disposition code exists
Logic Flow:
IF A disposition code needs to be validated for broker notification configuration
AND The system accesses the broker configuration tables to check if the disposition code exists
THEN:
• The system retrieves the configuration status from the system tables
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code has been looked up in the broker notification configuration table.
Trigger Criteria:
Context: A disposition code has been looked up in the broker notification configuration table
Applied to: Is Disposition Code Found in Broker Notification Table?
Action: The disposition code is found in the broker notification table
Logic Flow:
IF A disposition code has been looked up in the broker notification configuration table
AND The disposition code is found in the broker notification table
THEN:
• The broker notification flag is set to TRUE
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code has been looked up in the broker notification configuration table.
Trigger Criteria:
Context: A disposition code has been looked up in the broker notification configuration table
Applied to: Is Disposition Code Found in Broker Notification Table?
Action: The disposition code is not found in the broker notification table
Logic Flow:
IF A disposition code has been looked up in the broker notification configuration table
AND The disposition code is not found in the broker notification table
THEN:
• The broker notification flag is set to FALSE
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when broker notification flag has been set based on disposition code configuration lookup.
Trigger Criteria:
Context: The broker notification flag has been set based on disposition code configuration lookup
Applied to: Return Validation Result
Action: The validation process is complete
Logic Flow:
IF The broker notification flag has been set based on disposition code configuration lookup
AND The validation process is complete
THEN:
• The system returns the validation result with the broker notification flag status
R-GCX016-cbl-01422 (+13)File: GCX016.cblBusiness Rule: Secondary Record Processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record exists in the system.
Trigger Criteria:
Context: A cargo record exists in the system
Applied to: Access Cargo Secondary Records GCSA2RT Segment
Action: The system needs to access secondary cargo information
Logic Flow:
IF A cargo record exists in the system
AND The system needs to access secondary cargo information
THEN:
• The system retrieves GCSA2RT segment data from cargo secondary records
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when system has accessed cargo secondary records.
Trigger Criteria:
Context: The system has accessed cargo secondary records
Applied to: Secondary Records Available?
Action: The system checks for secondary record availability
Logic Flow:
IF The system has accessed cargo secondary records
AND The system checks for secondary record availability
THEN:
• The system determines if secondary records are available for processing orif no payer of freight information can be found
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when secondary records are available for the cargo.
Trigger Criteria:
Context: Secondary records are available for the cargo
Applied to: Initialize Secondary Record Search
Action: The system begins searching for payer of freight information
Logic Flow:
IF Secondary records are available for the cargo
AND The system begins searching for payer of freight information
THEN:
• The system initializes the search process to examine N101 segments
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when secondary record search has been initialized. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: The secondary record search has been initialized
Applied to: Read N101 Segments from Secondary Records
Action: The system reads N101 segments from secondary records
Logic Flow:
IF The secondary record search has been initialized
AND The system reads N101 segments from secondary records
THEN:
• The system retrieves N101 segment data for entity identification processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when system has attempted to read n101 segments. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: The system has attempted to read N101 segments
Applied to: N101 Segment Found?
Action: The system checks for N101 segment existence
Logic Flow:
IF The system has attempted to read N101 segments
AND The system checks for N101 segment existence
THEN:
• The system determines if N101 segments are found for qualifier processing or continues searching for additional records
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when n101 segment has been found in secondary records.
Trigger Criteria:
Context: An N101 segment has been found in secondary records
Applied to: Check N101-01 Qualifier for Payer of Freight
Action: The system checks the N101-01 qualifier field
Logic Flow:
IF An N101 segment has been found in secondary records
AND The system checks the N101-01 qualifier field
THEN:
• The system identifies the entity type for further processing based on the qualifier value
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when system has checked the n101-01 qualifier field.
Trigger Criteria:
Context: The system has checked the N101-01 qualifier field
Applied to: Qualifier = 'PF' Payer of Freight?
Action: The qualifier equals 'PF' indicating payer of freight
Logic Flow:
IF The system has checked the N101-01 qualifier field
AND The qualifier equals 'PF' indicating payer of freight
THEN:
• The system identifies this as payer of freight entity information and proceeds to extract the data
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when n101 segment has been identified as containing payer of freight information.
Trigger Criteria:
Context: The N101 segment has been identified as containing payer of freight information
Applied to: Extract Payer of Freight Entity Information
Action: The system extracts payer of freight entity information
Logic Flow:
IF The N101 segment has been identified as containing payer of freight information
AND The system extracts payer of freight entity information
THEN:
• The system retrieves the payer entity identification data from the N101 segment
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when payer of freight entity information has been extracted from n101 segment.
Trigger Criteria:
Context: Payer of freight entity information has been extracted from N101 segment
Applied to: Store Payer Entity ID in Working Storage
Action: The system stores the payer entity ID
Logic Flow:
IF Payer of freight entity information has been extracted from N101 segment
AND The system stores the payer entity ID
THEN:
• The payer entity identification is saved in working storage for broker lookup processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when system has processed an n101 segment.
Trigger Criteria:
Context: The system has processed an N101 segment
Applied to: Continue Search for Additional N101 Records
Action: The system continues searching for additional N101 records
Logic Flow:
IF The system has processed an N101 segment
AND The system continues searching for additional N101 records
THEN:
• The system examines remaining secondary records for more N101 segments
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when system has processed available n101 segments.
Trigger Criteria:
Context: The system has processed available N101 segments
Applied to: More N101 Records?
Action: The system checks for more N101 records
Logic Flow:
IF The system has processed available N101 segments
AND The system checks for more N101 records
THEN:
• The system determines if additional N101 records exist for processing orif the search should conclude
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when payer of freight entity id has been stored and no more n101 records exist.
Trigger Criteria:
Context: Payer of freight entity ID has been stored and no more N101 records exist
Applied to: Lookup Broker Short Name Using PF= Prefix
Action: The system looks up broker short name using PF= prefix
Logic Flow:
IF Payer of freight entity ID has been stored and no more N101 records exist
AND The system looks up broker short name using PF= prefix
THEN:
• The system retrieves broker short name information from the broker table using the formatted payer entity ID
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when broker short name has been successfully looked up.
Trigger Criteria:
Context: Broker short name has been successfully looked up
Applied to: Return Payer of Freight Information to Caller
Action: The system returns payer of freight information to caller
Logic Flow:
IF Broker short name has been successfully looked up
AND The system returns payer of freight information to caller
THEN:
• The complete payer of freight information including broker details is provided to the calling process
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when secondary records are not available or contain no payer of freight information.
Trigger Criteria:
Context: Secondary records are not available or contain no payer of freight information
Applied to: No Payer of Freight Information Found
Action: The system determines no payer of freight information is found
Logic Flow:
IF Secondary records are not available or contain no payer of freight information
AND The system determines no payer of freight information is found
THEN:
• The system indicates that no payer of freight information is available for the cargo
R-GCX016-cbl-01436 (+18)File: GCX016.cblBusiness Rule: Status Array Debugging
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when status array debugging request is received.
Trigger Criteria:
Context: A status array debugging request is received
Applied to: Debug Mode Active?
Action: The system checks the debug mode status
Logic Flow:
IF A status array debugging request is received
AND The system checks the debug mode status
THEN:
• If debug mode is active, proceed with debug display initialization, otherwise skip debug processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when status array debugging request is received.
Trigger Criteria:
Context: A status array debugging request is received
Applied to: Skip Debug Processing
Action: Debug mode is not active
Logic Flow:
IF A status array debugging request is received
AND Debug mode is not active
THEN:
• Skip all debug display processing and proceed to completion
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when debug mode is active.
Trigger Criteria:
Context: Debug mode is active
Applied to: Initialize Debug Display
Action: Debug display initialization is triggered
Logic Flow:
IF Debug mode is active
AND Debug display initialization is triggered
THEN:
• Set up debug display headers and prepare for array content display
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when s09a status array has been read. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: The S09A status array has been read
Applied to: Array Has Elements?
Action: The system checks for array elements
Logic Flow:
IF The S09A status array has been read
AND The system checks for array elements
THEN:
• If array has elements, display array header information, otherwise skip to array summary display
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when status array contains elements.
Trigger Criteria:
Context: The status array contains elements
Applied to: Display Array Header Information
Action: Array header display is initiated
Logic Flow:
IF The status array contains elements
AND Array header display is initiated
THEN:
• Display array identification and structural information
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when status array has elements to display.
Trigger Criteria:
Context: The status array has elements to display
Applied to: Loop Through Array Elements
Action: Element processing loop is initiated
Logic Flow:
IF The status array has elements to display
AND Element processing loop is initiated
THEN:
• Process each array element sequentially for detailed display
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when status array element is being processed.
Trigger Criteria:
Context: A status array element is being processed
Applied to: Display Element Details
Action: Element detail display is requested
Logic Flow:
IF A status array element is being processed
AND Element detail display is requested
THEN:
• Display disposition code, status information, entry number, quantity information, location details, and released flag
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when status array element is being displayed.
Trigger Criteria:
Context: A status array element is being displayed
Applied to: Show Disposition Code
Action: Disposition code display is requested
Logic Flow:
IF A status array element is being displayed
AND Disposition code display is requested
THEN:
• Show the disposition code value for the current element
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when status array element is being displayed.
Trigger Criteria:
Context: A status array element is being displayed
Applied to: Show Status Information
Action: Status information display is requested
Logic Flow:
IF A status array element is being displayed
AND Status information display is requested
THEN:
• Show all status flags and related information for the current element
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when status array element is being displayed.
Trigger Criteria:
Context: A status array element is being displayed
Applied to: Show Entry Number
Action: Entry number display is requested
Logic Flow:
IF A status array element is being displayed
AND Entry number display is requested
THEN:
• Show the entry number value for the current element
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when status array element is being displayed.
Trigger Criteria:
Context: A status array element is being displayed
Applied to: Show Quantity Information
Action: Quantity information display is requested
Logic Flow:
IF A status array element is being displayed
AND Quantity information display is requested
THEN:
• Show all quantity values and related information for the current element
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when status array element is being displayed.
Trigger Criteria:
Context: A status array element is being displayed
Applied to: Show Location Details
Action: Location details display is requested
Logic Flow:
IF A status array element is being displayed
AND Location details display is requested
THEN:
• Show location codes and related geographic information for the current element
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when status array element is being displayed.
Trigger Criteria:
Context: A status array element is being displayed
Applied to: Show Released Flag
Action: Released flag display is requested
Logic Flow:
IF A status array element is being displayed
AND Released flag display is requested
THEN:
• Show the released status indicator for the current element
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when array element has been processed and displayed.
Trigger Criteria:
Context: An array element has been processed and displayed
Applied to: More Elements?
Action: The system checks for additional elements
Logic Flow:
IF An array element has been processed and displayed
AND The system checks for additional elements
THEN:
• If more elements exist, continue with the next element, otherwise proceed to array summary display
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when all array elements have been processed or no elements exist.
Trigger Criteria:
Context: All array elements have been processed or no elements exist
Applied to: Display Array Summary
Action: Array summary display is initiated
Logic Flow:
IF All array elements have been processed or no elements exist
AND Array summary display is initiated
THEN:
• Display total element count and array capacity usage information
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when array summary display is being shown.
Trigger Criteria:
Context: Array summary display is being shown
Applied to: Show Total Element Count
Action: Total element count display is requested
Logic Flow:
IF Array summary display is being shown
AND Total element count display is requested
THEN:
• Show the count of elements currently in the status array
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when array summary display is being shown.
Trigger Criteria:
Context: Array summary display is being shown
Applied to: Show Array Capacity Usage
Action: Array capacity usage display is requested
Logic Flow:
IF Array summary display is being shown
AND Array capacity usage display is requested
THEN:
• Show the percentage or ratio of array capacity currently utilized
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when debug display has been completed.
Trigger Criteria:
Context: Debug display has been completed
Applied to: Log Debug Information
Action: Debug information logging is initiated
Logic Flow:
IF Debug display has been completed
AND Debug information logging is initiated
THEN:
• Record all displayed debug information in the system log
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when debug processing has been completed or skipped.
Trigger Criteria:
Context: Debug processing has been completed or skipped
Applied to: Debug Display Complete
Action: Debug display completion is reached
Logic Flow:
IF Debug processing has been completed or skipped
AND Debug display completion is reached
THEN:
• Finalize debug display and return control to the main processing flow
R-GCX016-cbl-01455 (+19)File: GCX016.cblBusiness Rule: Cargo Status Monitoring
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record exists in the system.
Trigger Criteria:
Context: A cargo record exists in the system
Applied to: Display Cargo Identification
Action: Cargo status monitoring is initiated
Logic Flow:
IF A cargo record exists in the system
AND Cargo status monitoring is initiated
THEN:
• The system displays cargo identification including car ID, waybill number, andUS-CCN status information
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record with car identification exists.
Trigger Criteria:
Context: A cargo record with car identification exists
Applied to: Show Car ID Information
Action: Car ID information is requested for display
Logic Flow:
IF A cargo record with car identification exists
AND Car ID information is requested for display
THEN:
• The system shows the car ID from the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record with waybill information exists.
Trigger Criteria:
Context: A cargo record with waybill information exists
Applied to: Show Waybill Number
Action: Waybill information is requested for display
Logic Flow:
IF A cargo record with waybill information exists
AND Waybill information is requested for display
THEN:
• The system displays the waybill number from the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record with us-ccn information exists.
Trigger Criteria:
Context: A cargo record with US-CCN information exists
Applied to: Display US-CCN Status
Action:US-CCN status is requested for display
Logic Flow:
IF A cargo record with US-CCN information exists
ANDUS-CCN status is requested for display
THEN:
• The system displays the current US-CCN status from the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record with cprs status information exists.
Trigger Criteria:
Context: A cargo record with CPRS status information exists
Applied to: Show CPRS Status Description
Action: CPRS status description is requested for display
Logic Flow:
IF A cargo record with CPRS status information exists
AND CPRS status description is requested for display
THEN:
• The system displays the CPRS status description from the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record with uscs status information exists.
Trigger Criteria:
Context: A cargo record with USCS status information exists
Applied to: Show USCS Status Description
Action: USCS status description is requested for display
Logic Flow:
IF A cargo record with USCS status information exists
AND USCS status description is requested for display
THEN:
• The system displays the USCS status description from the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record with quantity information exists.
Trigger Criteria:
Context: A cargo record with quantity information exists
Applied to: Show Total Quantity
Action: Total quantity information is requested for display
Logic Flow:
IF A cargo record with quantity information exists
AND Total quantity information is requested for display
THEN:
• The system displays the total quantity from the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record with release quantity information exists.
Trigger Criteria:
Context: A cargo record with release quantity information exists
Applied to: Show Released Quantity
Action: Released quantity information is requested for display
Logic Flow:
IF A cargo record with release quantity information exists
AND Released quantity information is requested for display
THEN:
• The system displays the released quantity from the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record with broker entry number information exists.
Trigger Criteria:
Context: A cargo record with broker entry number information exists
Applied to: Show Broker Entry Numbers
Action: Broker entry numbers are requested for display
Logic Flow:
IF A cargo record with broker entry number information exists
AND Broker entry numbers are requested for display
THEN:
• The system displays the broker entry numbers from the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record with disposition code information exists.
Trigger Criteria:
Context: A cargo record with disposition code information exists
Applied to: Show Disposition Code
Action: Disposition code is requested for display
Logic Flow:
IF A cargo record with disposition code information exists
AND Disposition code is requested for display
THEN:
• The system displays the disposition code from the cargo status array
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when disposition code exists in the cargo status array.
Trigger Criteria:
Context: A disposition code exists in the cargo status array
Applied to: Show Code Description
Action: Code description is requested for display
Logic Flow:
IF A disposition code exists in the cargo status array
AND Code description is requested for display
THEN:
• The system retrieves and displays the disposition code description from the disposition code table
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo status entry with timestamp information exists.
Trigger Criteria:
Context: A cargo status entry with timestamp information exists
Applied to: Show Processing Timestamp
Action: Processing timestamp is requested for display
Logic Flow:
IF A cargo status entry with timestamp information exists
AND Processing timestamp is requested for display
THEN:
• The system displays the processing timestamp from the status array entry
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record with status array exists.
Trigger Criteria:
Context: A cargo record with status array exists
Applied to: Show Array Element Count
Action: Status array element count is requested for display
Logic Flow:
IF A cargo record with status array exists
AND Status array element count is requested for display
THEN:
• The system displays the count of elements in the S09A status array
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo status array with multiple entries exists.
Trigger Criteria:
Context: A cargo status array with multiple entries exists
Applied to: Show Individual Status Entries
Action: Individual status entries are requested for display
Logic Flow:
IF A cargo status array with multiple entries exists
AND Individual status entries are requested for display
THEN:
• The system displays each status entry from the S09A array with its associated details
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record with hold status information exists.
Trigger Criteria:
Context: A cargo record with hold status information exists
Applied to: Show Hold Location Border/Destination
Action: Hold location information is requested for display
Logic Flow:
IF A cargo record with hold status information exists
AND Hold location information is requested for display
THEN:
• The system displays whether the cargo is held at border location or destination location based on the status array analysis
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record with release status information exists.
Trigger Criteria:
Context: A cargo record with release status information exists
Applied to: Show Release Status
Action: Release status information is requested for display
Logic Flow:
IF A cargo record with release status information exists
AND Release status information is requested for display
THEN:
• The system displays the release status based on analysis of the status array and release quantities
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record with ptt status information exists.
Trigger Criteria:
Context: A cargo record with PTT status information exists
Applied to: Display PTT Status
Action: PTT status information is requested for display
Logic Flow:
IF A cargo record with PTT status information exists
AND PTT status information is requested for display
THEN:
• The system displays the PTT status based on analysis of the status array and quantity thresholds
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record with proceed status information exists.
Trigger Criteria:
Context: A cargo record with proceed status information exists
Applied to: Show Proceed Status
Action: Proceed status information is requested for display
Logic Flow:
IF A cargo record with proceed status information exists
AND Proceed status information is requested for display
THEN:
• The system displays the proceed status based on analysis of the status array
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record with arrival or export status information exists.
Trigger Criteria:
Context: A cargo record with arrival or export status information exists
Applied to: Display Arrival/Export Status
Action: Arrival/export status information is requested for display
Logic Flow:
IF A cargo record with arrival or export status information exists
AND Arrival/export status information is requested for display
THEN:
• The system displays the arrival or export status based on analysis of the status array
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when all cargo status information has been retrieved and analyzed.
Trigger Criteria:
Context: All cargo status information has been retrieved and analyzed
Applied to: Format Status Report
Action: A complete status report is requested
Logic Flow:
IF All cargo status information has been retrieved and analyzed
AND A complete status report is requested
THEN:
• The system formats all status information including identification, quantities, codes, and status flags into a structured report
Business Justification: Defines the strict business conditions required to proceed when message type is determined to be an error message.
Trigger Criteria:
Context: A message type is determined to be an error message
Applied to: Set Error Message Keywords
Action: The system processes error messages for cargo not found or train processing failures
Logic Flow:
IF A message type is determined to be an error message
AND The system processes error messages for cargo not found or train processing failures
THEN:
• The system sets keywords 'CARGO_ERROR' for cargo-related errors and 'TRAIN_ERROR' for train-related errors to enable proper message routing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when message type is determined to be an informational message.
Trigger Criteria:
Context: A message type is determined to be an informational message
Applied to: Set Info Message Keywords
Action: The system processes cargo status updates or general information messages
Logic Flow:
IF A message type is determined to be an informational message
AND The system processes cargo status updates or general information messages
THEN:
• The system sets keywords 'CARGO_INFO' and 'STATUS_UPDATE' to ensure informational messages are routed to appropriate monitoring systems
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when message type is determined to be an unrelease message.
Trigger Criteria:
Context: A message type is determined to be an unrelease message
Applied to: Set Unrelease Message Keywords
Action: The system processes messages that apply holds to cargo or reverse previous release actions
Logic Flow:
IF A message type is determined to be an unrelease message
AND The system processes messages that apply holds to cargo or reverse previous release actions
THEN:
• The system sets keywords 'UNRELEASE' and 'HOLD_APPLIED' to ensure hold notifications are properly categorized and routed
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when message type is determined to be a release message.
Trigger Criteria:
Context: A message type is determined to be a release message
Applied to: Set Release Message Keywords
Action: The system processes messages that release cargo for movement or clear cargo holds
Logic Flow:
IF A message type is determined to be a release message
AND The system processes messages that release cargo for movement or clear cargo holds
THEN:
• The system sets keywords 'RELEASE' and 'CARGO_CLEARED' to ensure release notifications are properly identified and routed
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when message type is determined to be an export message.
Trigger Criteria:
Context: A message type is determined to be an export message
Applied to: Set Export Message Keywords
Action: The system processes messages related to cargo export operations or US export procedures
Logic Flow:
IF A message type is determined to be an export message
AND The system processes messages related to cargo export operations or US export procedures
THEN:
• The system sets keywords 'EXPORT' and 'USEXP' to ensure export-related messages are properly categorized for customs and export processing systems
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when message type is determined to be a hold message.
Trigger Criteria:
Context: A message type is determined to be a hold message
Applied to: Set Hold Message Keywords
Action: The system processes messages that place cargo on hold for customs examination or inspection
Logic Flow:
IF A message type is determined to be a hold message
AND The system processes messages that place cargo on hold for customs examination or inspection
THEN:
• The system sets keywords 'HOLD' and 'EXAMINATION' to ensure hold notifications are properly routed to examination and inspection systems
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when message type is determined to be a broker notification.
Trigger Criteria:
Context: A message type is determined to be a broker notification
Applied to: Set Broker Notification Keywords
Action: The system processes messages that notify brokers of quantity mismatches or other cargo-related issues
Logic Flow:
IF A message type is determined to be a broker notification
AND The system processes messages that notify brokers of quantity mismatches or other cargo-related issues
THEN:
• The system sets keywords 'BROKER' and 'QUANTITY_MISMATCH' to ensure broker notifications are properly categorized and delivered
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when message type is determined to be a train operation message.
Trigger Criteria:
Context: A message type is determined to be a train operation message
Applied to: Set Train Operation Keywords
Action: The system processes messages related to train arrivals, train holds, or other train operational events
Logic Flow:
IF A message type is determined to be a train operation message
AND The system processes messages related to train arrivals, train holds, or other train operational events
THEN:
• The system sets keywords 'TRAIN_ARRIVAL' and 'TRAIN_HOLD' to ensure train operation messages are properly categorized for train management systems
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when message keywords have been initially set based on message type.
Trigger Criteria:
Context: Message keywords have been initially set based on message type
Applied to: Apply Container Type Keywords
Action: The system identifies the container or equipment type associated with the cargo
Logic Flow:
IF Message keywords have been initially set based on message type
AND The system identifies the container or equipment type associated with the cargo
THEN:
• The system applies additional container type keywords to enhance message categorization and routing specificity
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when container type keywords have been applied to the message.
Trigger Criteria:
Context: Container type keywords have been applied to the message
Applied to: Apply Disposition Code Keywords
Action: The system identifies the disposition code associated with the cargo processing action
Logic Flow:
IF Container type keywords have been applied to the message
AND The system identifies the disposition code associated with the cargo processing action
THEN:
• The system applies disposition code keywords to provide additional context for message routing and processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code keywords have been applied to the message.
Trigger Criteria:
Context: Disposition code keywords have been applied to the message
Applied to: Apply Cargo Status Keywords
Action: The system determines the current status of the cargo (held, released, in-transit, etc.)
Logic Flow:
IF Disposition code keywords have been applied to the message
AND The system determines the current status of the cargo (held, released, in-transit, etc.)
THEN:
• The system applies cargo status keywords to indicate the current state of the cargo for proper message handling
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo status keywords have been applied to the message.
Trigger Criteria:
Context: Cargo status keywords have been applied to the message
Applied to: Set Routing Priority Keywords
Action: The system evaluates the urgency and priority level of the message based on cargo status and disposition codes
Logic Flow:
IF Cargo status keywords have been applied to the message
AND The system evaluates the urgency and priority level of the message based on cargo status and disposition codes
THEN:
• The system sets routing priority keywords to ensure high-priority messages are processed and delivered with appropriate urgency
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when routing priority keywords have been set for the message.
Trigger Criteria:
Context: Routing priority keywords have been set for the message
Applied to: Set User Category Keywords
Action: The system determines the appropriate recipient categories (brokers, customs officers, train operators, etc.)
Logic Flow:
IF Routing priority keywords have been set for the message
AND The system determines the appropriate recipient categories (brokers, customs officers, train operators, etc.)
THEN:
• The system sets user category keywords to ensure messages are delivered to the correct recipient groups
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when user category keywords have been set for the message.
Trigger Criteria:
Context: User category keywords have been set for the message
Applied to: Finalize Email Keywords
Action: The system has completed all keyword assignment steps
Logic Flow:
IF User category keywords have been set for the message
AND The system has completed all keyword assignment steps
THEN:
• The system finalizes the complete set of email keywords to prepare the message for routing and delivery
R-GCX016-cbl-01516 (+5)File: GCX016.cblBusiness Rule: Subject Line Formatting
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when email message needs to be prepared for sending.
Trigger Criteria:
Context: An email message needs to be prepared for sending
Applied to: Determine Message Type
Action: The system evaluates the message content and context
Logic Flow:
IF An email message needs to be prepared for sending
AND The system evaluates the message content and context
THEN:
• The message type is determined as one of: Error, Info, Release, Hold, Export, or Unrelease
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when message has been classified as an error or arrival cancellation type.
Trigger Criteria:
Context: A message has been classified as an error or arrival cancellation type
Applied to: Error Message Subject
Action: The message routing process is executed
Logic Flow:
IF A message has been classified as an error or arrival cancellation type
AND The message routing process is executed
THEN:
• The message is sent to both 'IN' and 'USERR' destinations with error-specific subject formatting
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when message has been classified as an informational type.
Trigger Criteria:
Context: A message has been classified as an informational type
Applied to: Info Message Subject
Action: The message routing process is executed
Logic Flow:
IF A message has been classified as an informational type
AND The message routing process is executed
THEN:
• The message is sent to 'IN' destination and station-specific Merlin IDs with info-specific subject formatting
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when message has been classified as a release type.
Trigger Criteria:
Context: A message has been classified as a release type
Applied to: Release Message Subject
Action: The message routing process is executed
Logic Flow:
IF A message has been classified as a release type
AND The message routing process is executed
THEN:
• The message is sent to station-specific Merlin IDs only with release-specific subject formatting
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when message has been classified as an unrelease type.
Trigger Criteria:
Context: A message has been classified as an unrelease type
Applied to: Unrelease Message Subject
Action: The message routing process is executed
Logic Flow:
IF A message has been classified as an unrelease type
AND The message routing process is executed
THEN:
• The message is sent to default and cancel-specific Merlin IDs with unrelease-specific subject formatting
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when message has been classified as an export type.
Trigger Criteria:
Context: A message has been classified as an export type
Applied to: Export Message Subject
Action: The message routing process is executed and equipment type is validated
Logic Flow:
IF A message has been classified as an export type
AND The message routing process is executed and equipment type is validated
THEN:
• The message is sent with export-specific subject formatting after equipment type validation
Business Justification: Establishes the required business protocol to be followed when message has been generated for routing.
Trigger Criteria:
Context: A message has been generated for routing
Applied to: Message Type?
Action: The system evaluates the message type
Logic Flow:
IF A message has been generated for routing
AND The system evaluates the message type
THEN:
• The message is classified as Error, Info, Unrelease, Release, or Export type for appropriate routing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when message has been classified as an error type (error or arrcanl).
Trigger Criteria:
Context: A message has been classified as an error type (ERROR or ARRCANL)
Applied to: Set Error Message Routing
Action: The system configures routing destinations
Logic Flow:
IF A message has been classified as an error type (ERROR or ARRCANL)
AND The system configures routing destinations
THEN:
• The message is set to route to both 'IN' destination and 'USERR' destination
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when message has been classified as info type.
Trigger Criteria:
Context: A message has been classified as info type
Applied to: Set Info Message Routing
Action: The system configures routing destinations
Logic Flow:
IF A message has been classified as info type
AND The system configures routing destinations
THEN:
• The message is set to route to 'IN' destination and station-specific Merlin IDs
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when message has been classified as unrelease type.
Trigger Criteria:
Context: A message has been classified as unrelease type
Applied to: Set Unrelease Message Routing
Action: The system configures routing destinations
Logic Flow:
IF A message has been classified as unrelease type
AND The system configures routing destinations
THEN:
• The message is set to route with default Merlin IDs and cancel-specific Merlin IDs
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when message has been classified as release type.
Trigger Criteria:
Context: A message has been classified as release type
Applied to: Set Release Message Routing
Action: The system configures routing destinations
Logic Flow:
IF A message has been classified as release type
AND The system configures routing destinations
THEN:
• The message is set to route to station-specific Merlin IDs only
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when message has been classified as export type.
Trigger Criteria:
Context: A message has been classified as export type
Applied to: Set Export Message Routing
Action: The system configures routing destinations
Logic Flow:
IF A message has been classified as export type
AND The system configures routing destinations
THEN:
• Equipment type validation is performed before setting routing destinations
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when destination user codes have been determined for message routing.
Trigger Criteria:
Context: Destination user codes have been determined for message routing
Applied to: User Code Valid?
Action: The system validates the user codes
Logic Flow:
IF Destination user codes have been determined for message routing
AND The system validates the user codes
THEN:
• Valid user codes proceed to primary destination routing and invalid user codes are handled by the invalid user handler
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when user code has been determined to be invalid.
Trigger Criteria:
Context: A user code has been determined to be invalid
Applied to: Route to Invalid User Handler
Action: The system processes the invalid user code
Logic Flow:
IF A user code has been determined to be invalid
AND The system processes the invalid user code
THEN:
• A default user code is set and the message is routed to multiple destinations
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when user code has been validated as valid.
Trigger Criteria:
Context: A user code has been validated as valid
Applied to: Route to Primary Destination
Action: The system routes the message
Logic Flow:
IF A user code has been validated as valid
AND The system routes the message
THEN:
• The message is routed to multiple destinations using the valid user code
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when message is being routed to multiple destinations.
Trigger Criteria:
Context: A message is being routed to multiple destinations
Applied to: Container Type Specific?
Action: The system evaluates if the message is container type specific
Logic Flow:
IF A message is being routed to multiple destinations
AND The system evaluates if the message is container type specific
THEN:
• Container type specific messages are routed to USEXP basket and non-container type messages are routed to standard basket
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when message has been determined to be container type specific.
Trigger Criteria:
Context: A message has been determined to be container type specific
Applied to: Route to USEXP Basket
Action: The system routes the export message
Logic Flow:
IF A message has been determined to be container type specific
AND The system routes the export message
THEN:
• The message is routed to the USEXP basket for specialized container processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when message has been determined to be non-container type specific.
Trigger Criteria:
Context: A message has been determined to be non-container type specific
Applied to: Route to Standard Basket
Action: The system routes the message
Logic Flow:
IF A message has been determined to be non-container type specific
AND The system routes the message
THEN:
• The message is routed to the standard basket for general processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when message has been routed to its destination basket.
Trigger Criteria:
Context: A message has been routed to its destination basket
Applied to: Set Message Keywords
Action: The system processes the message for final formatting
Logic Flow:
IF A message has been routed to its destination basket
AND The system processes the message for final formatting
THEN:
• Appropriate keywords are assigned to the message for categorization
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when message keywords have been set.
Trigger Criteria:
Context: Message keywords have been set
Applied to: Format Subject Line
Action: The system formats the message for delivery
Logic Flow:
IF Message keywords have been set
AND The system formats the message for delivery
THEN:
• The subject line is formatted according to the message type and content requirements
R-GCX016-cbl-01536 (+8)File: GCX016.cblBusiness Rule: Info Message Distribution
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when message is ready for distribution.
Trigger Criteria:
Context: A message is ready for distribution
Applied to: Message Type = INFO?
Action: The system checks the message type
Logic Flow:
IF A message is ready for distribution
AND The system checks the message type
THEN:
• If message type equals INFO, proceed with info message distribution, otherwise skip info message processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when message type is confirmed as info.
Trigger Criteria:
Context: Message type is confirmed as INFO
Applied to: Retrieve Configured User List
Action: The system needs to identify message recipients
Logic Flow:
IF Message type is confirmed as INFO
AND The system needs to identify message recipients
THEN:
• Retrieve configured user list from GCSTBRT user configuration table for info message distribution
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when configured user list has been retrieved.
Trigger Criteria:
Context: Configured user list has been retrieved
Applied to: Set Message Keywords for Categorization
Action: The system prepares the message for distribution
Logic Flow:
IF Configured user list has been retrieved
AND The system prepares the message for distribution
THEN:
• Set message keywords and categories based on message routing tables to enable proper message classification
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when message keywords have been set for categorization.
Trigger Criteria:
Context: Message keywords have been set for categorization
Applied to: Format Subject Line for Info Message
Action: The system prepares the message subject line
Logic Flow:
IF Message keywords have been set for categorization
AND The system prepares the message subject line
THEN:
• Format subject line for info message according to business message formatting standards
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when subject line has been formatted for the info message.
Trigger Criteria:
Context: Subject line has been formatted for the info message
Applied to: User Valid?
Action: The system processes each user in the configured user list
Logic Flow:
IF Subject line has been formatted for the info message
AND The system processes each user in the configured user list
THEN:
• If user is valid and active, proceed to send message to user, otherwise route to default user with notification
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when user has been validated as valid and active.
Trigger Criteria:
Context: User has been validated as valid and active
Applied to: Send Message to Configured User
Action: The system delivers the informational message
Logic Flow:
IF User has been validated as valid and active
AND The system delivers the informational message
THEN:
• Send message to the configured valid user
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when user has been validated as invalid or inactive.
Trigger Criteria:
Context: User has been validated as invalid or inactive
Applied to: Route to Default User with Notification
Action: The system needs to deliver the informational message
Logic Flow:
IF User has been validated as invalid or inactive
AND The system needs to deliver the informational message
THEN:
• Route message to default user and include notification about invalid user configuration
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when message has been sent to current user or routed to default user.
Trigger Criteria:
Context: Message has been sent to current user or routed to default user
Applied to: More Users to Process?
Action: The system checks for remaining users in the list
Logic Flow:
IF Message has been sent to current user or routed to default user
AND The system checks for remaining users in the list
THEN:
• If more users exist in configured list, continue processing next user, otherwise proceed to message distribution logging
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when all configured users have been processed for message delivery.
Trigger Criteria:
Context: All configured users have been processed for message delivery
Applied to: Log Message Distribution
Action: The system completes info message distribution
Logic Flow:
IF All configured users have been processed for message delivery
AND The system completes info message distribution
THEN:
• Log message distribution details including recipients and delivery status
Business Justification: Dictates the expected operational logic and validation steps when message has been received for processing.
Trigger Criteria:
Context: A message has been received for processing
Applied to: Message Type = Unrelease?
Action: The system evaluates the message type
Logic Flow:
IF A message has been received for processing
AND The system evaluates the message type
THEN:
• The system identifies whether the message is an unrelease type and routes accordingly or completes processing for non-unrelease messages
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when unrelease message type has been detected.
Trigger Criteria:
Context: An unrelease message type has been detected
Applied to: Set Unrelease Message Keywords
Action: The system prepares the message for routing
Logic Flow:
IF An unrelease message type has been detected
AND The system prepares the message for routing
THEN:
• The system sets appropriate unrelease-specific keywords and message identifiers
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when unrelease message keywords have been set.
Trigger Criteria:
Context: Unrelease message keywords have been set
Applied to: Determine Target Baskets
Action: The system evaluates routing requirements
Logic Flow:
IF Unrelease message keywords have been set
AND The system evaluates routing requirements
THEN:
• The system determines the appropriate target baskets for message delivery
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when target baskets have been determined for the unrelease message.
Trigger Criteria:
Context: Target baskets have been determined for the unrelease message
Applied to: Multiple Destinations?
Action: The system evaluates the number of required destinations
Logic Flow:
IF Target baskets have been determined for the unrelease message
AND The system evaluates the number of required destinations
THEN:
• The system routes to either a single primary basket or multiple baskets based on the destination count
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when system has determined single destination routing is required.
Trigger Criteria:
Context: The system has determined single destination routing is required
Applied to: Route to Primary Basket
Action: The primary basket has been identified
Logic Flow:
IF The system has determined single destination routing is required
AND The primary basket has been identified
THEN:
• The system routes the unrelease message to the primary basket only
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when system has determined multiple destination routing is required.
Trigger Criteria:
Context: The system has determined multiple destination routing is required
Applied to: Route to Multiple Baskets
Action: Multiple target baskets have been identified
Logic Flow:
IF The system has determined multiple destination routing is required
AND Multiple target baskets have been identified
THEN:
• The system routes the unrelease message to all designated baskets
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when basket routing has been determined for the unrelease message.
Trigger Criteria:
Context: Basket routing has been determined for the unrelease message
Applied to: User ID Valid?
Action: The system evaluates the user ID for routing
Logic Flow:
IF Basket routing has been determined for the unrelease message
AND The system evaluates the user ID for routing
THEN:
• The system routes to the specified user if valid or to the default user if invalid
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when user id has been validated as valid.
Trigger Criteria:
Context: The user ID has been validated as valid
Applied to: Route to Specified User
Action: The system processes user-specific routing
Logic Flow:
IF The user ID has been validated as valid
AND The system processes user-specific routing
THEN:
• The system routes the unrelease message to the specified user
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when user id has been validated as invalid.
Trigger Criteria:
Context: The user ID has been validated as invalid
Applied to: Route to Default User
Action: The system processes default routing
Logic Flow:
IF The user ID has been validated as invalid
AND The system processes default routing
THEN:
• The system routes the unrelease message to the default user
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when user routing has been determined (either specified or default user).
Trigger Criteria:
Context: User routing has been determined (either specified or default user)
Applied to: Add User Code to Routing
Action: The system prepares routing information
Logic Flow:
IF User routing has been determined (either specified or default user)
AND The system prepares routing information
THEN:
• The system adds the appropriate user code to the message routing configuration
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when primary user code has been added to routing.
Trigger Criteria:
Context: Primary user code has been added to routing
Applied to: Additional Users Required?
Action: The system evaluates additional user requirements
Logic Flow:
IF Primary user code has been added to routing
AND The system evaluates additional user requirements
THEN:
• The system either adds secondary users or proceeds to set message priority based on requirements
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when system has determined additional users are required.
Trigger Criteria:
Context: The system has determined additional users are required
Applied to: Add Secondary Users
Action: Secondary users are identified
Logic Flow:
IF The system has determined additional users are required
AND Secondary users are identified
THEN:
• The system adds all required secondary users to the message routing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when all required users have been added to routing.
Trigger Criteria:
Context: All required users have been added to routing
Applied to: Set Message Priority
Action: The system configures message properties
Logic Flow:
IF All required users have been added to routing
AND The system configures message properties
THEN:
• The system sets the appropriate priority level for the unrelease message
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when message priority has been set for the unrelease message.
Trigger Criteria:
Context: Message priority has been set for the unrelease message
Applied to: Format Subject Line for Unrelease
Action: The system prepares the message for delivery
Logic Flow:
IF Message priority has been set for the unrelease message
AND The system prepares the message for delivery
THEN:
• The system formats the subject line with unrelease-specific information and identifiers
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when unrelease message has been fully formatted with subject line.
Trigger Criteria:
Context: The unrelease message has been fully formatted with subject line
Applied to: Send Message to Basket
Action: The system executes message delivery
Logic Flow:
IF The unrelease message has been fully formatted with subject line
AND The system executes message delivery
THEN:
• The system sends the message to all designated baskets and users
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when unrelease message has been sent to designated baskets.
Trigger Criteria:
Context: The unrelease message has been sent to designated baskets
Applied to: Log Message Routing
Action: The system completes message delivery
Logic Flow:
IF The unrelease message has been sent to designated baskets
AND The system completes message delivery
THEN:
• The system logs the routing activity including destinations, users, and delivery status
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when message routing has been logged successfully.
Trigger Criteria:
Context: Message routing has been logged successfully
Applied to: Message Routing Complete
Action: All routing activities are complete
Logic Flow:
IF Message routing has been logged successfully
AND All routing activities are complete
THEN:
• The system marks the unrelease message routing as complete and returns control to the calling process
R-GCX016-cbl-01562 (+19)File: GCX016.cblBusiness Rule: Release Message Distribution
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when release message has been generated for cargo processing.
Trigger Criteria:
Context: A release message has been generated for cargo processing
Applied to: Message Type Check
Action: The system evaluates the message content and cargo status
Logic Flow:
IF A release message has been generated for cargo processing
AND The system evaluates the message content and cargo status
THEN:
• The message is classified as either release, export, arrival, or cancellation type for proper routing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when message type has been determined from cargo status evaluation.
Trigger Criteria:
Context: The message type has been determined from cargo status evaluation
Applied to: Set Release Message Type
Action: The system processes the release action (release, export, arrival, or cancellation)
Logic Flow:
IF The message type has been determined from cargo status evaluation
AND The system processes the release action (release, export, arrival, or cancellation)
THEN:
• The appropriate message type flag is set to control downstream message formatting and routing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when release message type has been set and cargo broker information is available.
Trigger Criteria:
Context: A release message type has been set and cargo broker information is available
Applied to: Determine Target Users
Action: The system evaluates broker configuration and payer of freight details
Logic Flow:
IF A release message type has been set and cargo broker information is available
AND The system evaluates broker configuration and payer of freight details
THEN:
• Target users are identified including cargo broker, payer of freight broker, and configured notification recipients
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when target users have been identified for release notification.
Trigger Criteria:
Context: Target users have been identified for release notification
Applied to: User Configuration Valid?
Action: The system checks user notification preferences and contact information
Logic Flow:
IF Target users have been identified for release notification
AND The system checks user notification preferences and contact information
THEN:
• Users with valid configurations are approved for notification while invalid configurations trigger default routing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when target users have been validated and have proper notification configurations.
Trigger Criteria:
Context: Target users have been validated and have proper notification configurations
Applied to: Route to Configured Users
Action: The system processes the release message for delivery
Logic Flow:
IF Target users have been validated and have proper notification configurations
AND The system processes the release message for delivery
THEN:
• Messages are routed to configured users based on their notification preferences
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when target users have been identified but lack valid notification configurations.
Trigger Criteria:
Context: Target users have been identified but lack valid notification configurations
Applied to: Route to Default Users
Action: The system attempts to deliver release notifications
Logic Flow:
IF Target users have been identified but lack valid notification configurations
AND The system attempts to deliver release notifications
THEN:
• Messages are routed to default notification recipients to ensure delivery
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when target users have been determined and routing decisions made.
Trigger Criteria:
Context: Target users have been determined and routing decisions made
Applied to: Email or Merlin?
Action: The system evaluates user notification preferences and message characteristics
Logic Flow:
IF Target users have been determined and routing decisions made
AND The system evaluates user notification preferences and message characteristics
THEN:
• The appropriate delivery method (email or Merlin) is selected for each recipient
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when email delivery method has been selected for release notification.
Trigger Criteria:
Context: Email delivery method has been selected for release notification
Applied to: Prepare Email Message
Action: The system prepares the message for email transmission
Logic Flow:
IF Email delivery method has been selected for release notification
AND The system prepares the message for email transmission
THEN:
• Email headers, subject line, and message body are formatted according to email standards
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when merlin delivery method has been selected for release notification.
Trigger Criteria:
Context: Merlin delivery method has been selected for release notification
Applied to: Prepare Merlin Message
Action: The system prepares the message for Merlin transmission
Logic Flow:
IF Merlin delivery method has been selected for release notification
AND The system prepares the message for Merlin transmission
THEN:
• Merlin message format, routing codes, and destination identifiers are properly configured
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when message delivery method has been determined and basic message structure prepared.
Trigger Criteria:
Context: Message delivery method has been determined and basic message structure prepared
Applied to: Set Message Keywords
Action: The system processes message content for keyword assignment
Logic Flow:
IF Message delivery method has been determined and basic message structure prepared
AND The system processes message content for keyword assignment
THEN:
• Relevant keywords are assigned based on message type, cargo details, and disposition codes
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when message keywords have been set and cargo information is available.
Trigger Criteria:
Context: Message keywords have been set and cargo information is available
Applied to: Format Subject Line
Action: The system formats the message subject line
Logic Flow:
IF Message keywords have been set and cargo information is available
AND The system formats the message subject line
THEN:
• Subject line includes cargo identifier, disposition code, and action type for easy identification
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when message subject line has been formatted and cargo data is accessible.
Trigger Criteria:
Context: Message subject line has been formatted and cargo data is accessible
Applied to: Add Cargo Details
Action: The system adds cargo details to the message body
Logic Flow:
IF Message subject line has been formatted and cargo data is accessible
AND The system adds cargo details to the message body
THEN:
• Cargo details including CCN, car ID, waybill number, and shipment information are included in the message
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo details have been added to the message and disposition codes are available.
Trigger Criteria:
Context: Cargo details have been added to the message and disposition codes are available
Applied to: Add Disposition Codes
Action: The system processes disposition code information for inclusion
Logic Flow:
IF Cargo details have been added to the message and disposition codes are available
AND The system processes disposition code information for inclusion
THEN:
• Disposition codes and their business descriptions are added to provide context for the release action
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition codes have been added and quantity information is available from cargo processing.
Trigger Criteria:
Context: Disposition codes have been added and quantity information is available from cargo processing
Applied to: Add Quantity Information
Action: The system adds quantity details to the release message
Logic Flow:
IF Disposition codes have been added and quantity information is available from cargo processing
AND The system adds quantity details to the release message
THEN:
• Released quantities, total quantities, and remaining quantities are included to show the impact of the release action
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when quantity information has been added and k1 segment data is available.
Trigger Criteria:
Context: Quantity information has been added and K1 segment data is available
Applied to: Add K1 Comments
Action: The system processes K1 comments for message inclusion
Logic Flow:
IF Quantity information has been added and K1 segment data is available
AND The system processes K1 comments for message inclusion
THEN:
• K1 remarks and special comments are added to provide additional context and instructions
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when release message has been fully formatted with all required information.
Trigger Criteria:
Context: Release message has been fully formatted with all required information
Applied to: Send to Release Basket
Action: The system processes the message for release basket distribution
Logic Flow:
IF Release message has been fully formatted with all required information
AND The system processes the message for release basket distribution
THEN:
• Message is sent to the release basket for general access and record keeping
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when message has been sent to release basket and broker information is available.
Trigger Criteria:
Context: Message has been sent to release basket and broker information is available
Applied to: Send to Broker
Action: The system processes broker notification requirements
Logic Flow:
IF Message has been sent to release basket and broker information is available
AND The system processes broker notification requirements
THEN:
• Release message is sent directly to the cargo broker using their configured notification method
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when broker notification has been completed and payer of freight information is available.
Trigger Criteria:
Context: Broker notification has been completed and payer of freight information is available
Applied to: Send to Payer of Freight
Action: The system evaluates payer of freight notification requirements
Logic Flow:
IF Broker notification has been completed and payer of freight information is available
AND The system evaluates payer of freight notification requirements
THEN:
• Release message is sent to the payer of freight if they differ from the cargo broker
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when all release message distributions have been completed.
Trigger Criteria:
Context: All release message distributions have been completed
Applied to: Log Message Distribution
Action: The system processes logging requirements for the distribution activity
Logic Flow:
IF All release message distributions have been completed
AND The system processes logging requirements for the distribution activity
THEN:
• Distribution details including recipients, delivery methods, and timestamps are logged for audit purposes
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when all message distributions have been completed and logged.
Trigger Criteria:
Context: All message distributions have been completed and logged
Applied to: Message Distribution Complete
Action: The system finalizes the distribution process
Logic Flow:
IF All message distributions have been completed and logged
AND The system finalizes the distribution process
THEN:
• Distribution process is marked as complete and control returns to the calling process
Business Justification: Governs the functional prerequisites and system routing when export message is generated for cargo processing.
Trigger Criteria:
Context: An export message is generated for cargo processing
Applied to: Check Container Type
Action: The system evaluates the container type from the cargo record
Logic Flow:
IF An export message is generated for cargo processing
AND The system evaluates the container type from the cargo record
THEN:
• The container type is identified and categorized for routing decisions
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when container type has been identified from the cargo record.
Trigger Criteria:
Context: A container type has been identified from the cargo record
Applied to: Container Type Matches USEXP Criteria?
Action: The container type is evaluated against USEXP routing criteria for export containers, special equipment, or regulated cargo
Logic Flow:
IF A container type has been identified from the cargo record
AND The container type is evaluated against USEXP routing criteria for export containers, special equipment, or regulated cargo
THEN:
• The system routes to USEXP basket if criteria match, otherwise routes to standard export processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when container has been qualified for usexp basket routing.
Trigger Criteria:
Context: A container has been qualified for USEXP basket routing
Applied to: Set Export Message Keywords
Action: The system prepares the export message for USEXP processing
Logic Flow:
IF A container has been qualified for USEXP basket routing
AND The system prepares the export message for USEXP processing
THEN:
• Appropriate export message keywords are set based on container type and export requirements
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when export message keywords have been set for usexp processing.
Trigger Criteria:
Context: Export message keywords have been set for USEXP processing
Applied to: Format Export Message Content
Action: The system formats the message content with cargo details, container information, and export requirements
Logic Flow:
IF Export message keywords have been set for USEXP processing
AND The system formats the message content with cargo details, container information, and export requirements
THEN:
• The export message is properly formatted with all required fields for USEXP basket processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when export message content has been formatted for usexp processing.
Trigger Criteria:
Context: Export message content has been formatted for USEXP processing
Applied to: Determine Destination Basket
Action: The system evaluates export processing type, customs clearance requirements, and documentation needs
Logic Flow:
IF Export message content has been formatted for USEXP processing
AND The system evaluates export processing type, customs clearance requirements, and documentation needs
THEN:
• The appropriate USEXP basket is selected from export processing, customs clearance, or documentation baskets
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when destination usexp basket has been determined and message is formatted.
Trigger Criteria:
Context: The destination USEXP basket has been determined and message is formatted
Applied to: Send to USEXP Processing
Action: The system transmits the export message to the selected USEXP basket
Logic Flow:
IF The destination USEXP basket has been determined and message is formatted
AND The system transmits the export message to the selected USEXP basket
THEN:
• The export message is successfully sent to USEXP processing for customs clearance and documentation
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when container type does not match usexp routing criteria.
Trigger Criteria:
Context: A container type does not match USEXP routing criteria
Applied to: Route to Standard Export Processing
Action: The system processes the export message for non-USEXP qualified containers
Logic Flow:
IF A container type does not match USEXP routing criteria
AND The system processes the export message for non-USEXP qualified containers
THEN:
• The export message is routed to standard export processing workflows
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when export message has been routed to either usexp or standard processing.
Trigger Criteria:
Context: An export message has been routed to either USEXP or standard processing
Applied to: Log Export Message Routing
Action: The routing decision is completed
Logic Flow:
IF An export message has been routed to either USEXP or standard processing
AND The routing decision is completed
THEN:
• The system logs the routing decision, destination, container type, and processing path for audit purposes
R-GCX016-cbl-01590 (+9)File: GCX016.cblBusiness Rule: Invalid User Handling
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when message is ready for routing with a destination user id.
Trigger Criteria:
Context: A message is ready for routing with a destination user ID
Applied to: Check Destination User Valid?
Action: The system checks if the destination user ID is valid
Logic Flow:
IF A message is ready for routing with a destination user ID
AND The system checks if the destination user ID is valid
THEN:
• The system determines whether the user exists in the system or not
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when message needs to be routed and the destination user id exists in the system.
Trigger Criteria:
Context: A message needs to be routed and the destination user ID exists in the system
Applied to: Route Message to Original User
Action: The user validation check passes
Logic Flow:
IF A message needs to be routed and the destination user ID exists in the system
AND The user validation check passes
THEN:
• The message is routed to the original intended user
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when message needs to be routed but the destination user id does not exist in the system.
Trigger Criteria:
Context: A message needs to be routed but the destination user ID does not exist in the system
Applied to: Identify Message Type
Action: The user validation check fails
Logic Flow:
IF A message needs to be routed but the destination user ID does not exist in the system
AND The user validation check fails
THEN:
• The system identifies the message type for appropriate rerouting
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when message is identified as an error message and the original destination user is invalid.
Trigger Criteria:
Context: A message is identified as an error message and the original destination user is invalid
Applied to: Route to Default Error Users
Action: The message type is determined to be an error message
Logic Flow:
IF A message is identified as an error message and the original destination user is invalid
AND The message type is determined to be an error message
THEN:
• The message is routed to the default error users
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when message is identified as an info message and the original destination user is invalid.
Trigger Criteria:
Context: A message is identified as an info message and the original destination user is invalid
Applied to: Route to Default Info Users
Action: The message type is determined to be an informational message
Logic Flow:
IF A message is identified as an info message and the original destination user is invalid
AND The message type is determined to be an informational message
THEN:
• The message is routed to the default info users
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when message is identified as a release message and the original destination user is invalid.
Trigger Criteria:
Context: A message is identified as a release message and the original destination user is invalid
Applied to: Route to Default Release Users
Action: The message type is determined to be a release message
Logic Flow:
IF A message is identified as a release message and the original destination user is invalid
AND The message type is determined to be a release message
THEN:
• The message is routed to the default release users
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when message is identified as an export message and the original destination user is invalid.
Trigger Criteria:
Context: A message is identified as an export message and the original destination user is invalid
Applied to: Route to Default Export Users
Action: The message type is determined to be an export message
Logic Flow:
IF A message is identified as an export message and the original destination user is invalid
AND The message type is determined to be an export message
THEN:
• The message is routed to the default export users
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when message has been rerouted due to invalid destination user.
Trigger Criteria:
Context: A message has been rerouted due to invalid destination user
Applied to: Log Invalid User Notification
Action: The message rerouting is completed
Logic Flow:
IF A message has been rerouted due to invalid destination user
AND The message rerouting is completed
THEN:
• The system logs an invalid user notification for audit purposes
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when invalid user notification has been logged.
Trigger Criteria:
Context: An invalid user notification has been logged
Applied to: Update Message Routing History
Action: The logging process is completed
Logic Flow:
IF An invalid user notification has been logged
AND The logging process is completed
THEN:
• The system updates the message routing history with the rerouting details
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when message routing history has been updated for an invalid user rerouting.
Trigger Criteria:
Context: The message routing history has been updated for an invalid user rerouting
Applied to: Send Notification to System Admin
Action: The routing history update is completed
Logic Flow:
IF The message routing history has been updated for an invalid user rerouting
AND The routing history update is completed
THEN:
• A notification is sent to the system administrator about the invalid user incident
R-GCX016-cbl-01600 (+26)File: GCX016.cblBusiness Rule: Cargo Information Logging
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo processing transaction is being executed.
Trigger Criteria:
Context: A cargo processing transaction is being executed
Applied to: Prepare Log Message with Cargo Details
Action: The system needs to create an audit log entry
Logic Flow:
IF A cargo processing transaction is being executed
AND The system needs to create an audit log entry
THEN:
• The system prepares a detailed log message containing cargo identification, processing context, and transaction details
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when log message is being prepared for cargo processing.
Trigger Criteria:
Context: A log message is being prepared for cargo processing
Applied to: Include Security Information
Action: Security information needs to be captured for audit purposes
Logic Flow:
IF A log message is being prepared for cargo processing
AND Security information needs to be captured for audit purposes
THEN:
• The system includes current user security context, authentication details, and access permissions in the log entry
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo processing transaction is in progress.
Trigger Criteria:
Context: A cargo processing transaction is in progress
Applied to: Add Transaction Information
Action: Transaction details need to be logged for audit purposes
Logic Flow:
IF A cargo processing transaction is in progress
AND Transaction details need to be logged for audit purposes
THEN:
• The system adds transaction type, processing timestamps, transaction ID, and related context information to the log entry
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo processing details need to be logged.
Trigger Criteria:
Context: Cargo processing details need to be logged
Applied to: Format Cargo Processing Details
Action: The system formats the cargo information for audit trail
Logic Flow:
IF Cargo processing details need to be logged
AND The system formats the cargo information for audit trail
THEN:
• The system structures cargo ID, waybill information, car details, manifest data, and processing status in a standardized log format
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code is being processed for cargo.
Trigger Criteria:
Context: A disposition code is being processed for cargo
Applied to: Include Disposition Code Information
Action: The processing details need to be logged for audit trail
Logic Flow:
IF A disposition code is being processed for cargo
AND The processing details need to be logged for audit trail
THEN:
• The system includes disposition code value, description, processing action taken, and regulatory impact in the log entry
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo quantities are being processed or modified.
Trigger Criteria:
Context: Cargo quantities are being processed or modified
Applied to: Add Quantity Information
Action: Quantity changes need to be documented for audit purposes
Logic Flow:
IF Cargo quantities are being processed or modified
AND Quantity changes need to be documented for audit purposes
THEN:
• The system logs original quantities, modified quantities, release quantities, and quantity calculation details in the audit entry
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo status is being updated during processing.
Trigger Criteria:
Context: Cargo status is being updated during processing
Applied to: Include Status Changes
Action: Status changes need to be logged for audit trail
Logic Flow:
IF Cargo status is being updated during processing
AND Status changes need to be logged for audit trail
THEN:
• The system documents previous status, new status, reason for change, and timestamp of status transition in the log entry
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when audit log entry is being prepared.
Trigger Criteria:
Context: An audit log entry is being prepared
Applied to: Set Audit Trail Parameters
Action: Audit trail parameters need to be configured
Logic Flow:
IF An audit log entry is being prepared
AND Audit trail parameters need to be configured
THEN:
• The system sets log classification, retention period, access controls, and regulatory compliance flags for the audit entry
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when complete audit log entry has been prepared.
Trigger Criteria:
Context: A complete audit log entry has been prepared
Applied to: Spawn GCT1051E Logging Transaction
Action: The log entry needs to be persisted to the audit system
Logic Flow:
IF A complete audit log entry has been prepared
AND The log entry needs to be persisted to the audit system
THEN:
• The system spawns GCT1051E logging transaction with the prepared audit data and monitors execution status
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when logging transaction has been executed.
Trigger Criteria:
Context: A logging transaction has been executed
Applied to: Logging Successful?
Action: The system needs to verify logging completion status
Logic Flow:
IF A logging transaction has been executed
AND The system needs to verify logging completion status
THEN:
• The system checks transaction completion status and determines whether logging was successful or encountered errors
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when logging transaction completed successfully.
Trigger Criteria:
Context: The logging transaction completed successfully
Applied to: Log Entry Created Successfully
Action: Confirmation of successful log creation is needed
Logic Flow:
IF The logging transaction completed successfully
AND Confirmation of successful log creation is needed
THEN:
• The system confirms audit log entry was created successfully and updates processing status to reflect successful logging
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when logging transaction encountered an error.
Trigger Criteria:
Context: The logging transaction encountered an error
Applied to: Handle Logging Error
Action: Logging failure needs to be handled
Logic Flow:
IF The logging transaction encountered an error
AND Logging failure needs to be handled
THEN:
• The system captures error details, implements fallback logging mechanisms if available, and ensures main processing can continue despite logging failure
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when audit logging activities have been completed (successfully or with error handling).
Trigger Criteria:
Context: Audit logging activities have been completed (successfully or with error handling)
Applied to: Continue Processing
Action: Main processing workflow needs to continue
Logic Flow:
IF Audit logging activities have been completed (successfully or with error handling)
AND Main processing workflow needs to continue
THEN:
• The system resumes normal cargo processing operations and continues with the next step in the business workflow
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo logging operation is initiated.
Trigger Criteria:
Context: A cargo logging operation is initiated
Applied to: Initialize Log Message Fields
Action: The system begins preparing the log message
Logic Flow:
IF A cargo logging operation is initiated
AND The system begins preparing the log message
THEN:
• All message fields are cleared and initialized to default values
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo logging message is being prepared.
Trigger Criteria:
Context: A cargo logging message is being prepared
Applied to: Set Security Information
Action: Security information needs to be recorded
Logic Flow:
IF A cargo logging message is being prepared
AND Security information needs to be recorded
THEN:
• Current user ID and security context are captured and added to the log message
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo processing operation is being logged.
Trigger Criteria:
Context: A cargo processing operation is being logged
Applied to: Set Transaction Type
Action: Transaction type needs to be identified
Logic Flow:
IF A cargo processing operation is being logged
AND Transaction type needs to be identified
THEN:
• The appropriate transaction type code is set based on the processing operation
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo information needs to be logged.
Trigger Criteria:
Context: Cargo information needs to be logged
Applied to: Format Cargo Details
Action: Cargo details are being formatted
Logic Flow:
IF Cargo information needs to be logged
AND Cargo details are being formatted
THEN:
• All cargo identification fields are properly formatted and included in the log message
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo processing event is being logged.
Trigger Criteria:
Context: A cargo processing event is being logged
Applied to: Add Processing Timestamps
Action: Timestamp information is required
Logic Flow:
IF A cargo processing event is being logged
AND Timestamp information is required
THEN:
• Current date and time are captured and added to the log message
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo processing involves disposition codes.
IF Cargo processing requires audit trail documentation
AND Audit trail data is being prepared
THEN:
• Complete audit trail information including references and status is set in the log message
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when all log message components have been prepared.
Trigger Criteria:
Context: All log message components have been prepared
Applied to: Prepare Log Message Structure
Action: The final log message structure needs to be assembled
Logic Flow:
IF All log message components have been prepared
AND The final log message structure needs to be assembled
THEN:
• All components are properly structured into the required log message format
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo processing operation with disposition code is ready for logging.
Trigger Criteria:
Context: A cargo processing operation with disposition code is ready for logging
Applied to: Spawn GCT1051E Transaction
Action: The disposition code is 54 or 55
Logic Flow:
IF A cargo processing operation with disposition code is ready for logging
AND The disposition code is 54 or 55
THEN:
• The logging transaction is not spawned and no log entry is created
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo processing operation needs to be logged and disposition code is not 54 or 55.
Trigger Criteria:
Context: A cargo processing operation needs to be logged and disposition code is not 54 or 55
Applied to: Spawn GCT1051E Transaction
Action: The logging transaction is initiated
Logic Flow:
IF A cargo processing operation needs to be logged and disposition code is not 54 or 55
AND The logging transaction is initiated
THEN:
• GCT1051E transaction is spawned with the prepared log message
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when logging transaction has been attempted.
Trigger Criteria:
Context: A logging transaction has been attempted
Applied to: Log Transaction Successful?
Action: The transaction completion status is evaluated
Logic Flow:
IF A logging transaction has been attempted
AND The transaction completion status is evaluated
THEN:
• System determines if logging was successful orif error handling is required
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo logging transaction completed successfully.
Business Justification: Defines the strict business conditions required to proceed when log message preparation process is initiated.
Trigger Criteria:
Context: A log message preparation process is initiated
Applied to: Gather Security Information
Action: Security information needs to be gathered for audit purposes
Logic Flow:
IF A log message preparation process is initiated
AND Security information needs to be gathered for audit purposes
THEN:
• The system collects user ID, terminal ID, and security level and includes them in the log message structure
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when transaction is being processed that requires logging.
Trigger Criteria:
Context: A transaction is being processed that requires logging
Applied to: Collect Transaction Details
Action: Transaction details need to be collected for the log message
Logic Flow:
IF A transaction is being processed that requires logging
AND Transaction details need to be collected for the log message
THEN:
• The system captures transaction type, processing mode, and message source and formats them for inclusion in the log
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo processing activities have occurred that need to be logged.
Trigger Criteria:
Context: Cargo processing activities have occurred that need to be logged
Applied to: Format Cargo Processing Information
Action: Cargo information needs to be formatted for the log message
Logic Flow:
IF Cargo processing activities have occurred that need to be logged
AND Cargo information needs to be formatted for the log message
THEN:
• The system formats cargo ID information, status changes, and quantity details into the appropriate log message structure
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code has been processed for cargo.
Trigger Criteria:
Context: A disposition code has been processed for cargo
Applied to: Include Disposition Code Details
Action: Disposition code details need to be included in the log message
Logic Flow:
IF A disposition code has been processed for cargo
AND Disposition code details need to be included in the log message
THEN:
• The system includes the disposition code, its description, and the processing action taken in the log message
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when log message is being prepared.
Trigger Criteria:
Context: A log message is being prepared
Applied to: Add Timestamp Information
Action: Timestamp information needs to be added to the log
Logic Flow:
IF A log message is being prepared
AND Timestamp information needs to be added to the log
THEN:
• The system adds processing date, processing time, and system timestamp to provide complete temporal context
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when transaction is being logged.
Trigger Criteria:
Context: A transaction is being logged
Applied to: Set User and Terminal Context
Action: User and terminal context needs to be established
Logic Flow:
IF A transaction is being logged
AND User and terminal context needs to be established
THEN:
• The system sets the user context and terminal context information in the log message structure
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when status change or transaction has occurred that requires audit tracking.
Trigger Criteria:
Context: A status change or transaction has occurred that requires audit tracking
Applied to: Prepare Audit Trail Data
Action: Audit trail data needs to be prepared for the log
Logic Flow:
IF A status change or transaction has occurred that requires audit tracking
AND Audit trail data needs to be prepared for the log
THEN:
• The system captures the before status, after status, and change reason to create a complete audit trail record
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when all log message components have been collected.
Trigger Criteria:
Context: All log message components have been collected
Applied to: Format Log Message Structure
Action: The log message structure needs to be formatted
Logic Flow:
IF All log message components have been collected
AND The log message structure needs to be formatted
THEN:
• The system formats all components into a standardized log message structure ready for transmission
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when log message has been formatted.
Trigger Criteria:
Context: A log message has been formatted
Applied to: Validate Message Completeness
Action: Message completeness needs to be validated
Logic Flow:
IF A log message has been formatted
AND Message completeness needs to be validated
THEN:
• The system validates that all required fields are populated and the message structure is complete before proceeding
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when log message has been validated for completeness.
Trigger Criteria:
Context: A log message has been validated for completeness
Applied to: Set Message Priority and Type
Action: Message priority and type need to be assigned
Logic Flow:
IF A log message has been validated for completeness
AND Message priority and type need to be assigned
THEN:
• The system sets the appropriate priority level and message type based on the transaction characteristics and business rules
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when complete log message is ready for transmission.
Trigger Criteria:
Context: A complete log message is ready for transmission
Applied to: Prepare for GCT1051E Spawn
Action: The message needs to be prepared for GCT1051E spawn
Logic Flow:
IF A complete log message is ready for transmission
AND The message needs to be prepared for GCT1051E spawn
THEN:
• The system prepares the message for GCT1051E transmission, excluding disposition codes 54 and 55 from the logging process
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when all log message preparation steps have been completed.
Trigger Criteria:
Context: All log message preparation steps have been completed
Applied to: Log Message Ready for Transmission
Action: The message readiness needs to be confirmed
Logic Flow:
IF All log message preparation steps have been completed
AND The message readiness needs to be confirmed
THEN:
• The system confirms the log message is complete, properly formatted, and ready for transmission to the logging system
Business Justification: Establishes the required business protocol to be followed when cargo processing event occurs with a specific disposition code.
Trigger Criteria:
Context: A cargo processing event occurs with a specific disposition code
Applied to: Logging Required?
Action: The system checks if logging is required AND the disposition code is not '54' or '55'
Logic Flow:
IF A cargo processing event occurs with a specific disposition code
AND The system checks if logging is required AND the disposition code is not '54' or '55'
THEN:
• The system proceeds with audit trail logging preparation
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when audit trail logging is required for a cargo processing event.
Trigger Criteria:
Context: Audit trail logging is required for a cargo processing event
Applied to: Prepare Log Message
Action: The system prepares the log message with cargo information, disposition codes, and processing context
Logic Flow:
IF Audit trail logging is required for a cargo processing event
AND The system prepares the log message with cargo information, disposition codes, and processing context
THEN:
• A complete audit log message is formatted with all required business information
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when audit log message is being prepared.
Trigger Criteria:
Context: An audit log message is being prepared
Applied to: Set Security Information
Action: The system sets security information including user context and access credentials
Logic Flow:
IF An audit log message is being prepared
AND The system sets security information including user context and access credentials
THEN:
• Security information is properly assigned to the audit trail record
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when security information has been set for the audit record.
Trigger Criteria:
Context: Security information has been set for the audit record
Applied to: Set Transaction Details
Action: The system configures transaction details with processing type and business context
Logic Flow:
IF Security information has been set for the audit record
AND The system configures transaction details with processing type and business context
THEN:
• Transaction details are properly configured in the audit trail record
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when transaction details have been configured for the audit record.
Trigger Criteria:
Context: Transaction details have been configured for the audit record
Applied to: Format Cargo Information
Action: The system formats cargo information including shipment identifiers, quantities, and cargo status
Logic Flow:
IF Transaction details have been configured for the audit record
AND The system formats cargo information including shipment identifiers, quantities, and cargo status
THEN:
• Cargo information is properly formatted and included in the audit trail record
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo information has been formatted for the audit record.
Trigger Criteria:
Context: Cargo information has been formatted for the audit record
Applied to: Include Disposition Code Details
Action: The system includes disposition code details and associated processing actions
Logic Flow:
IF Cargo information has been formatted for the audit record
AND The system includes disposition code details and associated processing actions
THEN:
• Complete disposition code information is included in the audit trail record
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code details have been included in the audit record.
Trigger Criteria:
Context: Disposition code details have been included in the audit record
Applied to: Add Processing Timestamps
Action: The system adds processing timestamps including event time and processing duration
Logic Flow:
IF Disposition code details have been included in the audit record
AND The system adds processing timestamps including event time and processing duration
THEN:
• Accurate timestamps are assigned to the audit trail record
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when processing timestamps have been added to the audit record.
Trigger Criteria:
Context: Processing timestamps have been added to the audit record
Applied to: Set Audit Trail Parameters
Action: The system sets audit trail parameters for retention and compliance
Logic Flow:
IF Processing timestamps have been added to the audit record
AND The system sets audit trail parameters for retention and compliance
THEN:
• Audit trail parameters are properly configured for regulatory compliance
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when audit trail parameters have been configured.
Trigger Criteria:
Context: Audit trail parameters have been configured
Applied to: Spawn GCT1051E Transaction
Action: The system spawns the GCT1051E transaction with complete audit information
Logic Flow:
IF Audit trail parameters have been configured
AND The system spawns the GCT1051E transaction with complete audit information
THEN:
• The logging transaction is initiated to create the audit trail record
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when gct1051e transaction has been spawned.
Trigger Criteria:
Context: The GCT1051E transaction has been spawned
Applied to: Spawn Successful?
Action: The system checks if the spawn operation completed successfully
Logic Flow:
IF The GCT1051E transaction has been spawned
AND The system checks if the spawn operation completed successfully
THEN:
• The system determines whether to proceed with normal processing or handle spawn errors
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when gct1051e transaction spawn was successful.
Trigger Criteria:
Context: The GCT1051E transaction spawn was successful
Applied to: Log Transaction Created
Action: The system confirms the log transaction has been created
Logic Flow:
IF The GCT1051E transaction spawn was successful
AND The system confirms the log transaction has been created
THEN:
• The audit trail record is confirmed as created and processing continues normally
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when gct1051e transaction spawn failed.
Trigger Criteria:
Context: The GCT1051E transaction spawn failed
Applied to: Handle Spawn Error
Action: The system handles the spawn error condition
Logic Flow:
IF The GCT1051E transaction spawn failed
AND The system handles the spawn error condition
THEN:
• Error recovery procedures are initiated to address the logging failure
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when spawn error has been handled.
Trigger Criteria:
Context: A spawn error has been handled
Applied to: Record Error Information
Action: The system records error information including failure details and context
Logic Flow:
IF A spawn error has been handled
AND The system records error information including failure details and context
THEN:
• Complete error information is recorded for compliance and troubleshooting purposes
R-GCX016-cbl-01638 (+4)File: GCX016.cblBusiness Rule: Car Information Display
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record is being processed for car information display.
Trigger Criteria:
Context: A cargo record is being processed for car information display
Applied to: Car ID Present?
Action: The system checks for car ID presence in the cargo record
Logic Flow:
IF A cargo record is being processed for car information display
AND The system checks for car ID presence in the cargo record
THEN:
• The system determines if car ID exists and routes to appropriate processing path
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when car id has been retrieved and formatted according to standard rules.
Trigger Criteria:
Context: A car ID has been retrieved and formatted according to standard rules
Applied to: Format Valid?
Action: The system validates the formatted car ID against format requirements
Logic Flow:
IF A car ID has been retrieved and formatted according to standard rules
AND The system validates the formatted car ID against format requirements
THEN:
• The system determines if the format is valid and proceeds with display or error handling
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when valid car id exists in the cargo record.
Trigger Criteria:
Context: A valid car ID exists in the cargo record
Applied to: Format Car ID for Display
Action: The system formats the car ID for display purposes
Logic Flow:
IF A valid car ID exists in the cargo record
AND The system formats the car ID for display purposes
THEN:
• The car ID is formatted according to standard display rules and prepared for report output
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record does not contain car id information.
Trigger Criteria:
Context: A cargo record does not contain car ID information
Applied to: Handle Missing Car ID
Action: The system processes the record for car information display
Logic Flow:
IF A cargo record does not contain car ID information
AND The system processes the record for car information display
THEN:
• The system sets a default display value for the missing car ID information
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when car id exists but fails format validation.
Trigger Criteria:
Context: A car ID exists but fails format validation
Applied to: Log Car ID Formatting Issue
Action: The system encounters a car ID formatting issue
Logic Flow:
IF A car ID exists but fails format validation
AND The system encounters a car ID formatting issue
THEN:
• The system logs the formatting issue and proceeds with default value handling
R-GCX016-cbl-01643 (+4)File: GCX016.cblBusiness Rule: Waybill Information Display
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record is retrieved from gccc-cargo-root.
Trigger Criteria:
Context: A cargo record is retrieved from GCCC-CARGO-ROOT
Applied to: Waybill Number Present?
Action: The system evaluates the waybill number field
Logic Flow:
IF A cargo record is retrieved from GCCC-CARGO-ROOT
AND The system evaluates the waybill number field
THEN:
• The system determines if waybill number is present or absent
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when waybill number is present in the cargo record.
Trigger Criteria:
Context: A waybill number is present in the cargo record
Applied to: Format Waybill Number for Display
Action: The system processes the waybill for display
Logic Flow:
IF A waybill number is present in the cargo record
AND The system processes the waybill for display
THEN:
• The waybill number is formatted according to display standards
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when waybill number has been formatted for display.
Trigger Criteria:
Context: A waybill number has been formatted for display
Applied to: Set Waybill Display Field
Action: The system prepares the display field
Logic Flow:
IF A waybill number has been formatted for display
AND The system prepares the display field
THEN:
• The formatted waybill number is assigned to the waybill display field
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record has no waybill number present.
Trigger Criteria:
Context: A cargo record has no waybill number present
Applied to: Display 'No Waybill' Message
Action: The system processes the waybill display requirement
Logic Flow:
IF A cargo record has no waybill number present
AND The system processes the waybill display requirement
THEN:
• The system displays 'No Waybill' message in the waybill field
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when waybill display field has been set with either waybill number or no waybill message.
Trigger Criteria:
Context: Waybill display field has been set with either waybill number or no waybill message
Applied to: Include in Report Output
Action: The system generates the report output
Logic Flow:
IF Waybill display field has been set with either waybill number or no waybill message
AND The system generates the report output
THEN:
• The waybill information is included in the report
R-GCX016-cbl-01648 (+20)File: GCX016.cblBusiness Rule: US
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record exists with us-ccn number, cprs status code, and uscs status code.
Trigger Criteria:
Context: A cargo record exists with US-CCN number, CPRS status code, and USCS status code
Applied to: Display Formatted US-CCN Status
Action: The system needs to display cargo status information
Logic Flow:
IF A cargo record exists with US-CCN number, CPRS status code, and USCS status code
AND The system needs to display cargo status information
THEN:
• The system formats and displays the US-CCN number combined with both CPRS and USCS status descriptions in a readable format
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cprs status code exists in the cargo record.
Trigger Criteria:
Context: A CPRS status code exists in the cargo record
Applied to: Lookup CPRS Status Description
Action: The system needs to display CPRS status information
Logic Flow:
IF A CPRS status code exists in the cargo record
AND The system needs to display CPRS status information
THEN:
• The system looks up and retrieves the corresponding CPRS status description from the status description tables
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when uscs status code exists in the cargo record.
Trigger Criteria:
Context: A USCS status code exists in the cargo record
Applied to: Lookup USCS Status Description
Action: The system needs to display USCS status information
Logic Flow:
IF A USCS status code exists in the cargo record
AND The system needs to display USCS status information
THEN:
• The system looks up and retrieves the corresponding USCS status description from the status description tables
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record contains us-ccn information.
Trigger Criteria:
Context: A cargo record contains US-CCN information
Applied to: Extract US-CCN Number
Action: The system processes cargo status display
Logic Flow:
IF A cargo record contains US-CCN information
AND The system processes cargo status display
THEN:
• The system extracts the US-CCN number from the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record exists with cprs status information.
Trigger Criteria:
Context: A cargo record exists with CPRS status information
Applied to: Get CPRS Status Code
Action: The system processes status display requirements
Logic Flow:
IF A cargo record exists with CPRS status information
AND The system processes status display requirements
THEN:
• The system retrieves the CPRS status code from the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record exists with uscs status information.
Trigger Criteria:
Context: A cargo record exists with USCS status information
Applied to: Get USCS Status Code
Action: The system processes status display requirements
Logic Flow:
IF A cargo record exists with USCS status information
AND The system processes status display requirements
THEN:
• The system retrieves the USCS status code from the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when system is monitoring for changes that impact us-ccn key structure.
Trigger Criteria:
Context: System is monitoring for changes that impact US-CCN key structure
Applied to: System Change Detected Requiring US-CCN Update
Action: A system change is detected that requires US-CCN key updates
Logic Flow:
IF System is monitoring for changes that impact US-CCN key structure
AND A system change is detected that requires US-CCN key updates
THEN:
• System initiates US-CCN renumbering process
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when system change has been detected requiring us-ccn updates.
Trigger Criteria:
Context: System change has been detected requiring US-CCN updates
Applied to: Identify Affected Cargo Records
Action: System searches for affected cargo records
Logic Flow:
IF System change has been detected requiring US-CCN updates
AND System searches for affected cargo records
THEN:
• All cargo records requiring US-CCN key changes are identified and flagged for processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when affected cargo records have been identified.
Trigger Criteria:
Context: Affected cargo records have been identified
Applied to: Retrieve Current US-CCN Key Structure
Action: System retrieves current US-CCN key structure from cargo records
Logic Flow:
IF Affected cargo records have been identified
AND System retrieves current US-CCN key structure from cargo records
THEN:
• Current key structure is available for renumbering process
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when current us-ccn key structure has been retrieved.
Trigger Criteria:
Context: Current US-CCN key structure has been retrieved
Applied to: Generate New US-CCN Key Sequence
Action: System generates new US-CCN key sequence
Logic Flow:
IF Current US-CCN key structure has been retrieved
AND System generates new US-CCN key sequence
THEN:
• New key sequence is created following system numbering standards
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when new us-ccn key sequence has been generated.
Trigger Criteria:
Context: New US-CCN key sequence has been generated
Applied to: Validate New Key Format?
Action: System validates the new key format against business rules
Logic Flow:
IF New US-CCN key sequence has been generated
AND System validates the new key format against business rules
THEN:
• Key format is either approved for use or rejected for regeneration
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when new us-ccn key format has been validated as correct.
Trigger Criteria:
Context: New US-CCN key format has been validated as correct
Applied to: Update Cargo Record with New US-CCN
Action: System updates cargo record with new US-CCN key
Logic Flow:
IF New US-CCN key format has been validated as correct
AND System updates cargo record with new US-CCN key
THEN:
• Cargo record contains updated US-CCN key and maintains data integrity
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record has been updated with new us-ccn key.
Trigger Criteria:
Context: Cargo record has been updated with new US-CCN key
Applied to: Update Related Secondary Records
Action: System updates all related secondary records with new US-CCN key
Logic Flow:
IF Cargo record has been updated with new US-CCN key
AND System updates all related secondary records with new US-CCN key
THEN:
• All secondary records maintain proper referential integrity with updated US-CCN key
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when related secondary records have been updated.
Trigger Criteria:
Context: Related secondary records have been updated
Applied to: Update Cross-Reference Tables
Action: System updates cross-reference tables with new US-CCN key mappings
Logic Flow:
IF Related secondary records have been updated
AND System updates cross-reference tables with new US-CCN key mappings
Business Justification: Defines the strict business conditions required to proceed when status array entry exists in s09a.
Trigger Criteria:
Context: A status array entry exists in S09A
Applied to: Retrieve Disposition Code from Status Array
Action: The system needs to display disposition code information
Logic Flow:
IF A status array entry exists in S09A
AND The system needs to display disposition code information
THEN:
• The disposition code value is extracted from the status array entry
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code value has been retrieved from status array.
Trigger Criteria:
Context: A disposition code value has been retrieved from status array
Applied to: Access DC Table for Code Details
Action: The system needs code description information
Logic Flow:
IF A disposition code value has been retrieved from status array
AND The system needs code description information
THEN:
• The DC table is accessed using the disposition code as lookup key
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code lookup has been performed against dc table.
Trigger Criteria:
Context: A disposition code lookup has been performed against DC table
Applied to: Code Found in Table?
Action: The system checks if the code exists in the table
Logic Flow:
IF A disposition code lookup has been performed against DC table
AND The system checks if the code exists in the table
THEN:
• A found or not found status is determined based on table lookup results
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code exists in the dc table.
Trigger Criteria:
Context: A disposition code exists in the DC table
Applied to: Get Code Description
Action: The system needs the code description
Logic Flow:
IF A disposition code exists in the DC table
AND The system needs the code description
THEN:
• The description text is retrieved from the DC table entry
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code is not found in the dc table.
Trigger Criteria:
Context: A disposition code is not found in the DC table
Applied to: Use Default Description
Action: The system needs to display code information
Logic Flow:
IF A disposition code is not found in the DC table
AND The system needs to display code information
THEN:
• A default description is used instead of table description
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code lookup fails in the dc table.
Trigger Criteria:
Context: A disposition code lookup fails in the DC table
Applied to: Log Code Not Found Warning
Action: The code is not found in the reference data
Logic Flow:
IF A disposition code lookup fails in the DC table
AND The code is not found in the reference data
THEN:
• A warning message is logged indicating the missing code
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code value is available.
Trigger Criteria:
Context: A disposition code value is available
Applied to: Format Code Number
Action: The system prepares the code for display
Logic Flow:
IF A disposition code value is available
AND The system prepares the code for display
THEN:
• The code number is formatted according to display standards
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code description is available from dc table or default.
Trigger Criteria:
Context: A disposition code description is available from DC table or default
Applied to: Format Code Description Text
Action: The system prepares the description for display
Logic Flow:
IF A disposition code description is available from DC table or default
AND The system prepares the description for display
THEN:
• The description text is formatted according to display standards
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when both formatted code number and description text are available.
Trigger Criteria:
Context: Both formatted code number and description text are available
Applied to: Combine Code and Description
Action: The system creates the final display string
Logic Flow:
IF Both formatted code number and description text are available
AND The system creates the final display string
THEN:
• The code and description are combined into a single formatted string
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when combined code and description string exists.
Trigger Criteria:
Context: A combined code and description string exists
Applied to: Set Display Format
Action: The system finalizes the display format
Logic Flow:
IF A combined code and description string exists
AND The system finalizes the display format
THEN:
• Standard display formatting rules are applied to ensure consistent presentation
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when fully formatted disposition code display string is ready.
Trigger Criteria:
Context: A fully formatted disposition code display string is ready
Applied to: Return Formatted Display String
Action: The formatting process is complete
Logic Flow:
IF A fully formatted disposition code display string is ready
AND The formatting process is complete
THEN:
• The formatted display string is returned to the requesting process
Business Justification: Establishes the required business protocol to be followed when cargo processing transaction is initiated.
Trigger Criteria:
Context: A cargo processing transaction is initiated
Applied to: Capture Current System Date & Capture Current System Time
Action: The system begins processing any segment or transaction
Logic Flow:
IF A cargo processing transaction is initiated
AND The system begins processing any segment or transaction
THEN:
• The current system date is captured and stored for timestamping purposes
• The current system time is captured and stored for timestamping purposes
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when system date has been captured.
Trigger Criteria:
Context: A system date has been captured
Applied to: Format Date for Display
Action: The date needs to be displayed in reports or user interfaces
Logic Flow:
IF A system date has been captured
AND The date needs to be displayed in reports or user interfaces
THEN:
• The date is formatted according to standard display requirements
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when system time has been captured.
Trigger Criteria:
Context: A system time has been captured
Applied to: Format Time for Display
Action: The time needs to be displayed in reports or user interfaces
Logic Flow:
IF A system time has been captured
AND The time needs to be displayed in reports or user interfaces
THEN:
• The time is formatted according to standard display requirements
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when both system date and time have been captured and formatted.
Trigger Criteria:
Context: Both system date and time have been captured and formatted
Applied to: Combine Date and Time Stamp
Action: A complete timestamp is required for processing records
Logic Flow:
IF Both system date and time have been captured and formatted
AND A complete timestamp is required for processing records
THEN:
• The formatted date and time are combined into a single timestamp
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo segment is being processed and a combined timestamp has been created.
Trigger Criteria:
Context: A cargo segment is being processed AND a combined timestamp has been created
Applied to: Add Timestamp to Segment Header
Action: The segment processing begins
Logic Flow:
IF A cargo segment is being processed AND a combined timestamp has been created
AND The segment processing begins
THEN:
• The timestamp is added to the segment header for audit purposes
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo processing activities are occurring.
Trigger Criteria:
Context: Cargo processing activities are occurring
Applied to: Add Timestamp to Processing Log
Action: Processing events need to be logged
Logic Flow:
IF Cargo processing activities are occurring
AND Processing events need to be logged
THEN:
• Timestamps are added to the processing log entries
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when system processing event is occurring and timestamps have been created.
Trigger Criteria:
Context: A system processing event is occurring AND timestamps have been created
Applied to: Add Timestamp to Transaction Log
Action: The event qualifies as a system processing event
Logic Flow:
IF A system processing event is occurring AND timestamps have been created
AND The event qualifies as a system processing event
THEN:
• The timestamp is added to the transaction log
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when system processing events are being logged in transaction logs.
Trigger Criteria:
Context: System processing events are being logged in transaction logs
Applied to: Add Timestamp to Audit Trail
Action: Audit trail records are being created
Logic Flow:
IF System processing events are being logged in transaction logs
AND Audit trail records are being created
THEN:
• Timestamps are added to the audit trail entries
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when timestamps have been captured and formatted.
Trigger Criteria:
Context: Timestamps have been captured and formatted
Applied to: Display Formatted Timestamp in Reports
Action: Reports are generated for users
Logic Flow:
IF Timestamps have been captured and formatted
AND Reports are generated for users
THEN:
• Formatted timestamps are displayed in the reports
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when formatted timestamps are available for display.
Trigger Criteria:
Context: Formatted timestamps are available for display
Applied to: Store Timestamp in Message Fields
Action: Message processing requires timestamp information
Logic Flow:
IF Formatted timestamps are available for display
AND Message processing requires timestamp information
THEN:
• Timestamps are stored in the designated message fields
R-GCX016-cbl-01676 (+12)File: GCX016.cblBusiness Rule: Quantity Information Display
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when x4 customs release segment is available for processing.
Trigger Criteria:
Context: An X4 customs release segment is available for processing
Applied to: Retrieve Broker Entry Number from X4 Segment
Action: The system needs to display quantity information for broker notification
Logic Flow:
IF An X4 customs release segment is available for processing
AND The system needs to display quantity information for broker notification
THEN:
• The broker entry number is retrieved from the X4-04 field of the segment
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo manifest record exists in the system.
Trigger Criteria:
Context: A cargo manifest record exists in the system
Applied to: Get Cargo Quantity from Manifest
Action: Quantity mismatch detection is being performed
Logic Flow:
IF A cargo manifest record exists in the system
AND Quantity mismatch detection is being performed
THEN:
• The total manifest quantity is retrieved from the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo status array contains release information.
Trigger Criteria:
Context: A cargo status array contains release information
Applied to: Get Released Quantity from Status Array
Action: Quantity verification is required for broker notification
Logic Flow:
IF A cargo status array contains release information
AND Quantity verification is required for broker notification
THEN:
• The released quantity is retrieved from the status array
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when manifest quantity and released quantity are available.
Trigger Criteria:
Context: Manifest quantity and released quantity are available
Applied to: Calculate Quantity Difference
Action: Quantity mismatch analysis is performed
Logic Flow:
IF Manifest quantity and released quantity are available
AND Quantity mismatch analysis is performed
THEN:
• The quantity difference is calculated as manifest quantity minus released quantity
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when manifest quantity and released quantity have been retrieved and compared.
Trigger Criteria:
Context: Manifest quantity and released quantity have been retrieved and compared
Applied to: Quantity Mismatch Detected?
Action: The system evaluates quantity consistency
Logic Flow:
IF Manifest quantity and released quantity have been retrieved and compared
AND The system evaluates quantity consistency
THEN:
• A mismatch is detected if the manifest quantity does not equal the released quantity
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when broker entry number exists and a quantity mismatch has been detected.
Trigger Criteria:
Context: A broker entry number exists and a quantity mismatch has been detected
Applied to: Format Broker Entry Number for Display
Action: The mismatch report is being prepared
Logic Flow:
IF A broker entry number exists and a quantity mismatch has been detected
AND The mismatch report is being prepared
THEN:
• The broker entry number is formatted according to display standards
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when manifest quantity value exists and formatting is required.
Trigger Criteria:
Context: A manifest quantity value exists and formatting is required
Applied to: Format Manifest Quantity for Display
Action: Quantity information is being prepared for display
Logic Flow:
IF A manifest quantity value exists and formatting is required
AND Quantity information is being prepared for display
THEN:
• The manifest quantity is formatted with appropriate decimal places and units
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when released quantity value exists and formatting is required.
Trigger Criteria:
Context: A released quantity value exists and formatting is required
Applied to: Format Released Quantity for Display
Action: Quantity information is being prepared for broker notification
Logic Flow:
IF A released quantity value exists and formatting is required
AND Quantity information is being prepared for broker notification
THEN:
• The released quantity is formatted with appropriate decimal places and units
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when quantity difference has been calculated and formatting is required.
Trigger Criteria:
Context: A quantity difference has been calculated and formatting is required
Applied to: Format Quantity Difference for Display
Action: Mismatch information is being prepared for display
Logic Flow:
IF A quantity difference has been calculated and formatting is required
AND Mismatch information is being prepared for display
THEN:
• The quantity difference is formatted with appropriate sign indication and decimal places
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when all quantity values have been formatted for display.
Trigger Criteria:
Context: All quantity values have been formatted for display
Applied to: Prepare Mismatch Report Fields
Action: The mismatch report structure is being assembled
Logic Flow:
IF All quantity values have been formatted for display
AND The mismatch report structure is being assembled
THEN:
• All formatted fields are organized into the appropriate report structure with proper field assignments
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when mismatch report fields have been prepared.
Trigger Criteria:
Context: Mismatch report fields have been prepared
Applied to: Set Report Display Format
Action: The report layout needs to be established
Logic Flow:
IF Mismatch report fields have been prepared
AND The report layout needs to be established
THEN:
• The display format is configured with proper headers, alignment, and spacing for broker readability
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when report display format has been set and all fields are prepared.
Trigger Criteria:
Context: Report display format has been set and all fields are prepared
Applied to: Generate Quantity Mismatch Message
Action: The final notification message needs to be generated
Logic Flow:
IF Report display format has been set and all fields are prepared
AND The final notification message needs to be generated
THEN:
• A complete mismatch message is generated containing entry number, manifest quantity, released quantity, and difference information
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when quantity mismatch message has been generated.
Trigger Criteria:
Context: A quantity mismatch message has been generated
Applied to: Route Message to Broker Notification
Action: The message needs to be delivered to the broker
Logic Flow:
IF A quantity mismatch message has been generated
AND The message needs to be delivered to the broker
THEN:
• The message is routed to the broker notification system for delivery via the appropriate communication channel
Business Justification: Dictates the expected operational logic and validation steps when disposition code is being processed for cargo release.
Trigger Criteria:
Context: A disposition code is being processed for cargo release
Applied to: Disposition Code Has Quantity Action?
Action: The system evaluates if the disposition code has quantity action requirements
Logic Flow:
IF A disposition code is being processed for cargo release
AND The system evaluates if the disposition code has quantity action requirements
THEN:
• The system should proceed with quantity processing if action exists, otherwise skip quantity operations
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when disposition code requires quantity processing.
Trigger Criteria:
Context: A disposition code requires quantity processing
Applied to: Get Disposition Code Details from DC Table
Action: The system looks up the disposition code in the DC table
Logic Flow:
IF A disposition code requires quantity processing
AND The system looks up the disposition code in the DC table
THEN:
• The system should retrieve the quantity action type and processing parameters for the disposition code
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code details have been retrieved from dc table.
Trigger Criteria:
Context: Disposition code details have been retrieved from DC table
Applied to: Quantity Action Type?
Action: The system evaluates the quantity action type
Logic Flow:
IF Disposition code details have been retrieved from DC table
AND The system evaluates the quantity action type
THEN:
• The system should route to add operation for increase actions or subtract operation for decrease actions
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code specifies an add quantity action.
Trigger Criteria:
Context: A disposition code specifies an add quantity action
Applied to: Add Operation - Increase Release Quantity
Action: The system processes the quantity increase
Logic Flow:
IF A disposition code specifies an add quantity action
AND The system processes the quantity increase
THEN:
• The system should add the specified quantity to the current release quantity
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code specifies a subtract quantity action.
Trigger Criteria:
Context: A disposition code specifies a subtract quantity action
Applied to: Subtract Operation - Decrease Release Quantity
Action: The system processes the quantity decrease
Logic Flow:
IF A disposition code specifies a subtract quantity action
AND The system processes the quantity decrease
THEN:
• The system should subtract the specified quantity from the current release quantity
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when subtract operation is being performed on release quantity.
Trigger Criteria:
Context: A subtract operation is being performed on release quantity
Applied to: Would Result in Negative Quantity?
Action: The calculated result would be less than zero
Logic Flow:
IF A subtract operation is being performed on release quantity
AND The calculated result would be less than zero
THEN:
• The system should prevent negative quantities and set release quantity to zero instead
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when quantity subtraction would result in a negative value.
Trigger Criteria:
Context: A quantity subtraction would result in a negative value
Applied to: Set Release Quantity to Zero
Action: The system applies the zero quantity rule
Logic Flow:
IF A quantity subtraction would result in a negative value
AND The system applies the zero quantity rule
THEN:
• The system should set the release quantity to zero to maintain data integrity
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when quantity calculation has been performed and validated.
Trigger Criteria:
Context: A quantity calculation has been performed and validated
Applied to: Apply Calculated Quantity
Action: The result is within acceptable business ranges
Logic Flow:
IF A quantity calculation has been performed and validated
AND The result is within acceptable business ranges
THEN:
• The system should apply the calculated quantity to the cargo release quantity
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when release quantity has been updated for a cargo item.
Trigger Criteria:
Context: Release quantity has been updated for a cargo item
Applied to: Release Quantity Matches Total Quantity?
Action: The system compares release quantity to total cargo quantity
Logic Flow:
IF Release quantity has been updated for a cargo item
AND The system compares release quantity to total cargo quantity
THEN:
• The system should determine full release if quantities match or partial release if they differ
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when release quantity equals or exceeds the total cargo quantity.
Trigger Criteria:
Context: Release quantity equals or exceeds the total cargo quantity
Applied to: Mark as Full Release
Action: The system assigns release status
Logic Flow:
IF Release quantity equals or exceeds the total cargo quantity
AND The system assigns release status
THEN:
• The system should mark the cargo as fully released
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when release quantity is less than the total cargo quantity.
Trigger Criteria:
Context: Release quantity is less than the total cargo quantity
Applied to: Mark as Partial Release
Action: The system assigns release status
Logic Flow:
IF Release quantity is less than the total cargo quantity
AND The system assigns release status
THEN:
• The system should mark the cargo as partially released
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when release status and quantities have been determined.
Trigger Criteria:
Context: Release status and quantities have been determined
Applied to: Update Cargo Status Array
Action: The system updates the cargo status array
Logic Flow:
IF Release status and quantities have been determined
AND The system updates the cargo status array
THEN:
• The system should record the new release quantities and status in the S09A status array
R-GCX016-cbl-01701 (+21)File: GCX016.cblBusiness Rule: Julian Date Conversion
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when gregorian date is provided for julian conversion.
Trigger Criteria:
Context: A Gregorian date is provided for Julian conversion
Applied to: Valid Date Format?
Action: The system checks the date format validity
Logic Flow:
IF A Gregorian date is provided for Julian conversion
AND The system checks the date format validity
THEN:
• The system either proceeds with conversion for valid dates or returns error status for invalid dates
• The system should validate the date format and either proceed with conversion or return an error for invalid dates
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when valid gregorian date format has been confirmed.
Trigger Criteria:
Context: A valid Gregorian date format has been confirmed
Applied to: Extract Year Component
Action: The system processes the date for Julian conversion
Logic Flow:
IF A valid Gregorian date format has been confirmed
AND The system processes the date for Julian conversion
THEN:
• The year component is extracted and prepared for Julian calculation
• The system should extract the year component from the input date
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when year component has been successfully extracted.
Trigger Criteria:
Context: The year component has been successfully extracted
Applied to: Extract Month Component
Action: The system continues processing the Gregorian date
Logic Flow:
IF The year component has been successfully extracted
AND The system continues processing the Gregorian date
THEN:
• The month component is extracted and prepared for day calculation
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when year and month components have been successfully extracted.
Trigger Criteria:
Context: The year and month components have been successfully extracted
Applied to: Extract Day Component
Action: The system continues processing the Gregorian date
Logic Flow:
IF The year and month components have been successfully extracted
AND The system continues processing the Gregorian date
THEN:
• The day component is extracted and prepared for final Julian calculation
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when year and month components have been successfully extracted.
Trigger Criteria:
Context: The year and month components have been successfully extracted
Applied to: Extract Day Component
Action: The system continues processing the date components
Logic Flow:
IF The year and month components have been successfully extracted
AND The system continues processing the date components
THEN:
• The system should extract the day component from the input date
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when year, month, and day components have been extracted from the gregorian date.
Trigger Criteria:
Context: Year, month, and day components have been extracted from the Gregorian date
Applied to: Calculate Days from Year Start
Action: The system performs Julian date calculation
Logic Flow:
IF Year, month, and day components have been extracted from the Gregorian date
AND The system performs Julian date calculation
THEN:
• The total days from January 1st to the current date is calculated
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when base days from year start have been calculated.
Trigger Criteria:
Context: The base days from year start have been calculated
Applied to: Add Month Days to Total
Action: The system processes the month component
Logic Flow:
IF The base days from year start have been calculated
AND The system processes the month component
THEN:
• Days from complete months are added to the cumulative day total
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when year start days and month days have been calculated and added.
Trigger Criteria:
Context: Year start days and month days have been calculated and added
Applied to: Add Day Component
Action: The system processes the day component
Logic Flow:
IF Year start days and month days have been calculated and added
AND The system processes the day component
THEN:
• The day value is added to complete the total days calculation for Julian format
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when total days from year start have been calculated.
Trigger Criteria:
Context: The total days from year start have been calculated
Applied to: Format as Julian Date
Action: The system completes the Julian conversion process
Logic Flow:
IF The total days from year start have been calculated
AND The system completes the Julian conversion process
THEN:
• The result is formatted as a proper Julian date (YYDDD format)
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when julian date formatting has been completed successfully.
Trigger Criteria:
Context: Julian date formatting has been completed successfully
Applied to: Return Julian Date Result
Action: The conversion process finishes
Logic Flow:
IF Julian date formatting has been completed successfully
AND The conversion process finishes
THEN:
• The formatted Julian date is returned to the requesting business process
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when invalid date format has been detected during validation.
Trigger Criteria:
Context: An invalid date format has been detected during validation
Applied to: Return Error Status & Return Error for Invalid Date
Action: The system cannot proceed with Julian conversion
Logic Flow:
IF An invalid date format has been detected during validation
AND The system cannot proceed with Julian conversion
THEN:
• An error status is returned indicating the date conversion failure
• The system should return an error indicating the date format is invalid
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when year component has been successfully extracted from the date.
Trigger Criteria:
Context: The year component has been successfully extracted from the date
Applied to: Extract Month Component
Action: The system continues processing the date components
Logic Flow:
IF The year component has been successfully extracted from the date
AND The system continues processing the date components
THEN:
• The system should extract the month component from the input date
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when year, month, and day components have been extracted from the input date.
Trigger Criteria:
Context: Year, month, and day components have been extracted from the input date
Applied to: Calculate Days from Year Start
Action: The system begins Julian date calculation
Logic Flow:
IF Year, month, and day components have been extracted from the input date
AND The system begins Julian date calculation
THEN:
• The system should calculate the total days elapsed from January 1st to the beginning of the specified month
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when days from year start have been calculated.
Trigger Criteria:
Context: The days from year start have been calculated
Applied to: Add Month Days to Total
Action: The system continues the Julian date calculation process
Logic Flow:
IF The days from year start have been calculated
AND The system continues the Julian date calculation process
THEN:
• The system should add the calculated month days to the running total
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when month days have been added to the running total.
Trigger Criteria:
Context: The month days have been added to the running total
Applied to: Add Day Component
Action: The system finalizes the Julian date calculation
Logic Flow:
IF The month days have been added to the running total
AND The system finalizes the Julian date calculation
THEN:
• The system should add the day component to complete the total days calculation
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when basic julian date calculation has been completed.
Trigger Criteria:
Context: The basic Julian date calculation has been completed
Applied to: Leap Year Check Required?
Action: The system evaluates whether leap year adjustment is necessary
Logic Flow:
IF The basic Julian date calculation has been completed
AND The system evaluates whether leap year adjustment is necessary
THEN:
• The system should determine if leap year check is required based on the year and whether the date falls after February 29th in a leap year
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when system has determined that leap year adjustment is required.
Trigger Criteria:
Context: The system has determined that leap year adjustment is required
Applied to: Apply Leap Year Adjustment
Action: The leap year adjustment is applied
Logic Flow:
IF The system has determined that leap year adjustment is required
AND The leap year adjustment is applied
THEN:
• The system should adjust the Julian date calculation to account for the extra day in leap years
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when julian date calculation is complete with any necessary leap year adjustments.
Trigger Criteria:
Context: The Julian date calculation is complete with any necessary leap year adjustments
Applied to: Format Julian Date Output
Action: The system prepares the final output
Logic Flow:
IF The Julian date calculation is complete with any necessary leap year adjustments
AND The system prepares the final output
THEN:
• The system should format the Julian date into the standard business format
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when julian date has been successfully calculated and formatted.
Trigger Criteria:
Context: The Julian date has been successfully calculated and formatted
Applied to: Return Julian Date for Business Calculations
Action: The conversion process is complete
Logic Flow:
IF The Julian date has been successfully calculated and formatted
AND The conversion process is complete
THEN:
• The system should return the Julian date for use in business date calculations
R-GCX016-cbl-01711 (+7)File: GCX016.cblBusiness Rule: Machine Date Processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when transaction processing session is initiated.
Trigger Criteria:
Context: A transaction processing session is initiated
Applied to: Get Current System Date
Action: The system needs to establish the current processing date
Logic Flow:
IF A transaction processing session is initiated
AND The system needs to establish the current processing date
THEN:
• The system retrieves the current machine date from the operating system
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when system date has been retrieved from the machine.
Trigger Criteria:
Context: A system date has been retrieved from the machine
Applied to: Validate Date Format
Action: The date format needs to be validated for business processing
Logic Flow:
IF A system date has been retrieved from the machine
AND The date format needs to be validated for business processing
THEN:
• The system checks if the date format matches the required business date structure
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when system date has been retrieved and format validated.
Trigger Criteria:
Context: A system date has been retrieved and format validated
Applied to: Date Valid?
Action: The system evaluates the date validity
Logic Flow:
IF A system date has been retrieved and format validated
AND The system evaluates the date validity
THEN:
• If the date is valid, proceed with normal processing, otherwise initiate error handling procedures
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when valid system date in external format.
Trigger Criteria:
Context: A valid system date in external format
Applied to: Convert to Internal Format
Action: The date needs to be used for internal business processing
Logic Flow:
IF A valid system date in external format
AND The date needs to be used for internal business processing
THEN:
• The system converts the date to the required internal format for business operations
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when machine date has been converted to internal format.
Trigger Criteria:
Context: A machine date has been converted to internal format
Applied to: Set Machine Date Fields
Action: Business processing requires date context
Logic Flow:
IF A machine date has been converted to internal format
AND Business processing requires date context
THEN:
• The system assigns the converted date to appropriate business date fields
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when machine date fields have been set for business processing.
Trigger Criteria:
Context: Machine date fields have been set for business processing
Applied to: Update Transaction Timestamp
Action: A transaction requires timestamp recording
Logic Flow:
IF Machine date fields have been set for business processing
AND A transaction requires timestamp recording
THEN:
• The system updates the transaction timestamp with the current processing date and time
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when invalid or corrupted system date has been detected.
Trigger Criteria:
Context: An invalid or corrupted system date has been detected
Applied to: Handle Date Error
Action: Normal date processing cannot proceed
Logic Flow:
IF An invalid or corrupted system date has been detected
AND Normal date processing cannot proceed
THEN:
• The system initiates error handling procedures to manage the date processing failure
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when machine date is invalid or unavailable.
Trigger Criteria:
Context: The machine date is invalid or unavailable
Applied to: Set Default Date
Action: Business processing requires a date value to continue
Logic Flow:
IF The machine date is invalid or unavailable
AND Business processing requires a date value to continue
THEN:
• The system assigns a predetermined default date to ensure processing continuity
Business Justification: Establishes the required business protocol to be followed when system needs to read messages from ims queues. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: The system needs to read messages from IMS queues
Applied to: Initialize MQ Connection Parameters
Action: Queue reading process is initiated
Logic Flow:
IF The system needs to read messages from IMS queues
AND Queue reading process is initiated
THEN:
• MQ connection parameters are initialized with proper values for queue access
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when mq connection parameters are initialized.
Trigger Criteria:
Context: MQ connection parameters are initialized
Applied to: Set Queue Name and Options
Action: Queue configuration is required
Logic Flow:
IF MQ connection parameters are initialized
AND Queue configuration is required
THEN:
• Queue name and processing options are set according to business requirements
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when queue name and options are properly configured.
Trigger Criteria:
Context: Queue name and options are properly configured
Applied to: Open MQ Queue for Reading
Action: Queue opening is attempted
Logic Flow:
IF Queue name and options are properly configured
AND Queue opening is attempted
THEN:
• MQ queue is opened for reading with appropriate access permissions
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when queue opening operation has been attempted.
Trigger Criteria:
Context: Queue opening operation has been attempted
Applied to: Queue Open Successful?
Action: Queue open status is evaluated
Logic Flow:
IF Queue opening operation has been attempted
AND Queue open status is evaluated
THEN:
• If queue opened successfully, proceed to message reading; otherwise handle queue open error
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when mq queue is successfully opened for reading.
Trigger Criteria:
Context: MQ queue is successfully opened for reading
Applied to: Get Message from Queue
Action: Message retrieval is requested
Logic Flow:
IF MQ queue is successfully opened for reading
AND Message retrieval is requested
THEN:
• System attempts to get the next message from the queue
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when message retrieval has been attempted from the queue.
Trigger Criteria:
Context: Message retrieval has been attempted from the queue
Applied to: Message Available?
Action: Message availability is checked
Logic Flow:
IF Message retrieval has been attempted from the queue
AND Message availability is checked
THEN:
• If message is available, proceed to process message; if no message available, close queue and complete processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when message is available and retrieved from the queue.
Trigger Criteria:
Context: A message is available and retrieved from the queue
Applied to: Calculate Message Length
Action: Message length calculation is performed
Logic Flow:
IF A message is available and retrieved from the queue
AND Message length calculation is performed
THEN:
• Message length is calculated and stored for subsequent processing steps
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when message length has been calculated.
Trigger Criteria:
Context: Message length has been calculated
Applied to: Determine Entry Count
Action: Entry count determination is required
Logic Flow:
IF Message length has been calculated
AND Entry count determination is required
THEN:
• Number of entries in the message is calculated based on message structure and length
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when message length and entry count have been determined.
Trigger Criteria:
Context: Message length and entry count have been determined
Applied to: Validate Message Structure
Action: Message structure validation is performed
Logic Flow:
IF Message length and entry count have been determined
AND Message structure validation is performed
THEN:
• Message structure is validated against expected format requirements
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when message structure validation has been completed.
Trigger Criteria:
Context: Message structure validation has been completed
Applied to: Message Valid?
Action: Message validity is evaluated
Logic Flow:
IF Message structure validation has been completed
AND Message validity is evaluated
THEN:
• If message is valid, store in array and update counter; if invalid, handle message error and continue to next message
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when message has passed all validation checks.
Trigger Criteria:
Context: Message has passed all validation checks
Applied to: Store Message in Array
Action: Message storage is required
Logic Flow:
IF Message has passed all validation checks
AND Message storage is required
THEN:
• Valid message is stored in the message processing array
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when valid message has been stored in processing array.
Trigger Criteria:
Context: Valid message has been stored in processing array
Applied to: Update Message Counter
Action: Message counter update is required
Logic Flow:
IF Valid message has been stored in processing array
AND Message counter update is required
THEN:
• Message processing counter is incremented to reflect successful message storage
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when current message has been processed (stored or error handled).
Trigger Criteria:
Context: Current message has been processed (stored or error handled)
Applied to: More Messages?
Action: Additional message check is performed
Logic Flow:
IF Current message has been processed (stored or error handled)
AND Additional message check is performed
THEN:
• If more messages exist, continue reading from queue; if no more messages, proceed to close queue
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when all available messages have been processed or no messages are available.
Trigger Criteria:
Context: All available messages have been processed or no messages are available
Applied to: Close MQ Queue
Action: Queue closure is required
Logic Flow:
IF All available messages have been processed or no messages are available
AND Queue closure is required
THEN:
• MQ queue is properly closed to release system resources
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when mq queue has been closed after message processing.
Trigger Criteria:
Context: MQ queue has been closed after message processing
Applied to: Set Processing Complete Flag
Action: Processing completion status is required
Logic Flow:
IF MQ queue has been closed after message processing
AND Processing completion status is required
THEN:
• Processing complete flag is set to indicate successful completion of queue reading
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when queue opening operation has failed.
Trigger Criteria:
Context: Queue opening operation has failed
Applied to: Handle Queue Open Error
Action: Queue open error handling is required
Logic Flow:
IF Queue opening operation has failed
AND Queue open error handling is required
THEN:
• Queue open error is handled and appropriate error logging is initiated
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when queue open error has been detected.
Trigger Criteria:
Context: Queue open error has been detected
Applied to: Log Queue Error
Action: Error logging is required
Logic Flow:
IF Queue open error has been detected
AND Error logging is required
THEN:
• Queue error details are logged and processing is terminated
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when message has failed validation checks.
Trigger Criteria:
Context: Message has failed validation checks
Applied to: Handle Message Error
Action: Message error handling is required
Logic Flow:
IF Message has failed validation checks
AND Message error handling is required
THEN:
• Message error is handled and processing continues with next available message
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when message error handling has been initiated.
Trigger Criteria:
Context: Message error handling has been initiated
Applied to: Log Message Error
Action: Error logging is required
Logic Flow:
IF Message error handling has been initiated
AND Error logging is required
THEN:
• Message error details are logged and processing continues to check for more messages
Business Justification: Ensures correct system behavior and process compliance when edi message has been read from mq queue. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: An EDI message has been read from MQ queue
Applied to: Calculate Message Length
Action: The system needs to determine message structure for array initialization
Logic Flow:
IF An EDI message has been read from MQ queue
AND The system needs to determine message structure for array initialization
THEN:
• The message length is calculated by subtracting 4 from the total message buffer length
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when edi message length has been calculated.
Trigger Criteria:
Context: The EDI message length has been calculated
Applied to: Calculate Number of EDI Segment Entries
Action: The system needs to initialize the message array structure
Logic Flow:
IF The EDI message length has been calculated
AND The system needs to initialize the message array structure
THEN:
• The number of EDI segment entries is calculated by dividing message length by 80
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when number of edi segment entries has been calculated.
Trigger Criteria:
Context: The number of EDI segment entries has been calculated
Applied to: Set Array Entry Count
Action: The message array structure needs to be configured
Logic Flow:
IF The number of EDI segment entries has been calculated
AND The message array structure needs to be configured
THEN:
• The array entry count is set to the calculated number of EDI segment entries
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when message array structure has been configured with entry count.
Trigger Criteria:
Context: The message array structure has been configured with entry count
Applied to: Validate Array Initialization
Action: The system needs to verify successful initialization
Logic Flow:
IF The message array structure has been configured with entry count
AND The system needs to verify successful initialization
THEN:
• The array initialization is validated to ensure it is ready for EDI segment processing
Business Justification: Establishes the required business protocol to be followed when train message is received for processing.
Trigger Criteria:
Context: A train message is received for processing
Applied to: Message Source?
Action: The system evaluates the message source type
Logic Flow:
IF A train message is received for processing
AND The system evaluates the message source type
THEN:
• The system identifies whether the message comes from MQ Queue or Direct Input source
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when train message is identified as coming from mq queue source.
Trigger Criteria:
Context: A train message is identified as coming from MQ Queue source
Applied to: Initialize MQ Message Arrays
Action: The system processes the queue-based message
Logic Flow:
IF A train message is identified as coming from MQ Queue source
AND The system processes the queue-based message
THEN:
• The system initializes MQ message arrays for train and cargo processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when train message requires processing.
Trigger Criteria:
Context: A train message requires processing
Applied to: Set Train Operation Flags
Action: The system prepares for train operations
Logic Flow:
IF A train message requires processing
AND The system prepares for train operations
THEN:
• The system sets appropriate train operation flags for the current processing session
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when train operation flags are configured.
Trigger Criteria:
Context: Train operation flags are configured
Applied to: Load M10 Manifest Segment
Action: The system processes train manifest data
Logic Flow:
IF Train operation flags are configured
AND The system processes train manifest data
THEN:
• The system loads M10 segment with train identification and manifest details
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when m10 manifest segment is loaded.
Trigger Criteria:
Context: M10 manifest segment is loaded
Applied to: Load V9 Event Detail Segment
Action: The system processes train event data
Logic Flow:
IF M10 manifest segment is loaded
AND The system processes train event data
THEN:
• The system loads V9 segment with event details and status change information
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when v9 event detail segment is loaded with event codes.
Trigger Criteria:
Context: V9 event detail segment is loaded with event codes
Applied to: Train Arrival Message?
Action: The system evaluates the event type in the V9 segment
Logic Flow:
IF V9 event detail segment is loaded with event codes
AND The system evaluates the event type in the V9 segment
THEN:
• The system identifies whether the message indicates a train arrival event (POD or AAD codes)
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when train arrival message is detected.
Trigger Criteria:
Context: A train arrival message is detected
Applied to: Set Arrival Processing Mode
Action: The system prepares for arrival processing
Logic Flow:
IF A train arrival message is detected
AND The system prepares for arrival processing
THEN:
• The system sets arrival processing mode flags and configures arrival-specific processing parameters
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when arrival processing mode is activated.
Trigger Criteria:
Context: Arrival processing mode is activated
Applied to: Initialize Train Arrival Arrays
Action: The system prepares arrival data structures
Logic Flow:
IF Arrival processing mode is activated
AND The system prepares arrival data structures
THEN:
• The system initializes train arrival arrays for processing arrival-related cargo and equipment data
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when message is not a train arrival message and v9 event detail segment contains event codes.
Trigger Criteria:
Context: The message is not a train arrival message and V9 event detail segment contains event codes
Applied to: Train Cancellation Message?
Action: The system evaluates the event type for cancellation indicators
Logic Flow:
IF The message is not a train arrival message and V9 event detail segment contains event codes
AND The system evaluates the event type for cancellation indicators
THEN:
• The system identifies whether the message indicates a train cancellation event (COC code)
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when train cancellation message is detected.
Trigger Criteria:
Context: A train cancellation message is detected
Applied to: Set Cancellation Processing Mode
Action: The system prepares for cancellation processing
Logic Flow:
IF A train cancellation message is detected
AND The system prepares for cancellation processing
THEN:
• The system sets cancellation processing mode flags and configures cancellation-specific processing parameters
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cancellation processing mode is activated.
Trigger Criteria:
Context: Cancellation processing mode is activated
Applied to: Initialize Cancellation Arrays
Action: The system prepares cancellation data structures
Logic Flow:
IF Cancellation processing mode is activated
AND The system prepares cancellation data structures
THEN:
• The system initializes cancellation arrays for processing cancellation-related cargo and equipment data
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when message is neither a train arrival nor cancellation message.
Trigger Criteria:
Context: The message is neither a train arrival nor cancellation message
Applied to: Set Default Train Processing Mode
Action: The system prepares for standard train processing
Logic Flow:
IF The message is neither a train arrival nor cancellation message
AND The system prepares for standard train processing
THEN:
• The system sets default train processing mode for standard train operations
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when default train processing mode is configured.
Trigger Criteria:
Context: Default train processing mode is configured
Applied to: Initialize Standard Train Arrays
Action: The system prepares standard train data structures
Logic Flow:
IF Default train processing mode is configured
AND The system prepares standard train data structures
THEN:
• The system initializes standard train arrays for processing general train operations and cargo data
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when train arrays are initialized for the appropriate processing mode.
Trigger Criteria:
Context: Train arrays are initialized for the appropriate processing mode
Applied to: Validate Message Structure
Action: The system validates the train message structure
Logic Flow:
IF Train arrays are initialized for the appropriate processing mode
AND The system validates the train message structure
THEN:
• The system checks for required segments, proper formatting, and data completeness in the train message
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when train message structure validation is completed.
Trigger Criteria:
Context: Train message structure validation is completed
Applied to: Message Valid?
Action: The system evaluates validation results
Logic Flow:
IF Train message structure validation is completed
AND The system evaluates validation results
THEN:
• The system determines whether the message structure is valid and contains all required data elements
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when train message structure validation is successful.
Trigger Criteria:
Context: Train message structure validation is successful
Applied to: Set Message Ready Flag
Action: The system confirms message validity
Logic Flow:
IF Train message structure validation is successful
AND The system confirms message validity
THEN:
• The system sets message ready flag to indicate the train message is prepared for business processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when message ready flag is set for a valid train message.
Trigger Criteria:
Context: Message ready flag is set for a valid train message
Applied to: Log Train Message Initialization
Action: The system completes train message initialization
Logic Flow:
IF Message ready flag is set for a valid train message
AND The system completes train message initialization
THEN:
• The system logs the successful initialization with message details and processing mode information
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when train message structure validation fails.
Trigger Criteria:
Context: Train message structure validation fails
Applied to: Generate Error Message
Action: The system detects invalid message structure or missing required data
Logic Flow:
IF Train message structure validation fails
AND The system detects invalid message structure or missing required data
THEN:
• The system generates appropriate error message describing the validation failure
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when error message is generated for invalid train message.
Trigger Criteria:
Context: Error message is generated for invalid train message
Applied to: Set Error Flag
Action: The system handles validation failure
Logic Flow:
IF Error message is generated for invalid train message
AND The system handles validation failure
THEN:
• The system sets error flag to prevent further business processing of the invalid train message
Business Justification: Dictates the expected operational logic and validation steps when message is available for processing from the message queue.
Trigger Criteria:
Context: A message is available for processing from the message queue
Applied to: Message Type?
Action: The system evaluates the message type and processing requirements
Logic Flow:
IF A message is available for processing from the message queue
AND The system evaluates the message type and processing requirements
THEN:
• The message is classified as multi-manifest, train operations, or standard processing based on message characteristics
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when message has been classified for processing.
Trigger Criteria:
Context: A message has been classified for processing
Applied to: Multi-manifest Processing Required
Action: The message contains lead manifest information with associated follower manifests
Logic Flow:
IF A message has been classified for processing
AND The message contains lead manifest information with associated follower manifests
THEN:
• The system initiates multi-manifest processing workflow
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when message has been classified for processing.
Trigger Criteria:
Context: A message has been classified for processing
Applied to: Standard Message Processing Required
Action: The message is neither multi-manifest nor train operations type
Logic Flow:
IF A message has been classified for processing
AND The message is neither multi-manifest nor train operations type
THEN:
• The system routes the message to standard processing workflow
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when message has been classified as train operations.
Trigger Criteria:
Context: A message has been classified as train operations
Applied to: Train Message Processing Required
Action: The message contains train arrival, cancellation, or status change information
Logic Flow:
IF A message has been classified as train operations
AND The message contains train arrival, cancellation, or status change information
THEN:
• The system routes the message to train-specific processing workflow
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when lead manifest requires multi-manifest processing.
Trigger Criteria:
Context: A lead manifest requires multi-manifest processing
Applied to: Identify Follower Manifests
Action: The system searches for related follower manifests using the lead manifest CCN key
Logic Flow:
IF A lead manifest requires multi-manifest processing
AND The system searches for related follower manifests using the lead manifest CCN key
THEN:
• All associated follower manifests are identified and queued for processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when follower manifests have been identified for processing.
Trigger Criteria:
Context: Follower manifests have been identified for processing
Applied to: Format EDI 350 Message for Each Follower
Action: The system prepares transaction messages for each follower
Logic Flow:
IF Follower manifests have been identified for processing
AND The system prepares transaction messages for each follower
THEN:
• Each follower manifest gets an EDI 350 message with action code '350', disposition code, quantity, and entry number from the X4 segment
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when train operations message requires processing.
Trigger Criteria:
Context: A train operations message requires processing
Applied to: Prepare Train Arrival/Cancellation Message
Action: The system prepares train arrival or cancellation parameters
Logic Flow:
IF A train operations message requires processing
AND The system prepares train arrival or cancellation parameters
THEN:
• Train message parameters are formatted with vessel name, event codes, and timing information
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when message requires transaction spawning.
Trigger Criteria:
Context: A message requires transaction spawning
Applied to: Initialize Message Array Parameters
Action: The system initializes message array parameters
Logic Flow:
IF A message requires transaction spawning
AND The system initializes message array parameters
THEN:
• Message array is populated with message segments, processing flags, and transaction identifiers
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when message processing parameters have been prepared.
Trigger Criteria:
Context: Message processing parameters have been prepared
Applied to: Set Transaction Parameters
Action: The system sets transaction parameters for GCT0161E spawning
Logic Flow:
IF Message processing parameters have been prepared
AND The system sets transaction parameters for GCT0161E spawning
THEN:
• Transaction parameters are configured with message type, processing mode, and target transaction identifier
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when transaction parameters have been configured.
Trigger Criteria:
Context: Transaction parameters have been configured
Applied to: Spawn GCT0161E Transaction
Action: The system attempts to spawn GCT0161E transaction
Logic Flow:
IF Transaction parameters have been configured
AND The system attempts to spawn GCT0161E transaction
THEN:
• GCT0161E transaction is spawned with the prepared message parameters and processing begins
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when gct0161e transaction spawning has been attempted.
Trigger Criteria:
Context: GCT0161E transaction spawning has been attempted
Applied to: Transaction Successfully Spawned
Action: The transaction spawning completes successfully
Logic Flow:
IF GCT0161E transaction spawning has been attempted
AND The transaction spawning completes successfully
THEN:
• The system confirms successful spawning and continues with next processing step
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when gct0161e transaction spawning has been attempted.
Trigger Criteria:
Context: GCT0161E transaction spawning has been attempted
Applied to: Error in Transaction Spawning
Action: The transaction spawning fails due to system or resource constraints
Logic Flow:
IF GCT0161E transaction spawning has been attempted
AND The transaction spawning fails due to system or resource constraints
THEN:
• The system captures the error condition and routes to error handling process
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when manifest has been successfully processed in multi-manifest mode.
Trigger Criteria:
Context: A manifest has been successfully processed in multi-manifest mode
Applied to: More Manifests to Process?
Action: The system checks for additional unprocessed follower manifests
Logic Flow:
IF A manifest has been successfully processed in multi-manifest mode
AND The system checks for additional unprocessed follower manifests
THEN:
• If more manifests exist, processing continues; otherwise, multi-manifest processing completes
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when transaction spawning error has occurred.
Trigger Criteria:
Context: A transaction spawning error has occurred
Applied to: Log Error and Continue
Action: The system processes the error condition
Logic Flow:
IF A transaction spawning error has occurred
AND The system processes the error condition
THEN:
• The error is logged with appropriate details and processing continues with the next message
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when current message processing has completed successfully or error has been handled.
Trigger Criteria:
Context: Current message processing has completed successfully or error has been handled
Applied to: Continue with Next Message
Action: The system is ready to process the next message
Logic Flow:
IF Current message processing has completed successfully or error has been handled
AND The system is ready to process the next message
THEN:
• Processing continues with the next available message from the queue
Business Justification: Dictates the expected operational logic and validation steps when edi message is available in the message queue.
Trigger Criteria:
Context: An EDI message is available in the message queue
Applied to: Receive EDI Shipment Request
Action: The system processes the message queue
Logic Flow:
IF An EDI message is available in the message queue
AND The system processes the message queue
THEN:
• The EDI shipment request is received and made available for processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when edi shipment request has been received.
Trigger Criteria:
Context: An EDI shipment request has been received
Applied to: Extract Shipment Root ID from EDI Message
Action: The system processes the EDI message content
Logic Flow:
IF An EDI shipment request has been received
AND The system processes the EDI message content
THEN:
• The shipment root ID is extracted from the message and made available for database lookup
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when shipment root id has been extracted from the edi message.
Trigger Criteria:
Context: A shipment root ID has been extracted from the EDI message
Applied to: Query Shipment Database
Action: The system performs a database lookup
Logic Flow:
IF A shipment root ID has been extracted from the EDI message
AND The system performs a database lookup
THEN:
• The system searches for the corresponding shipment root record in the database
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when database query has been performed for the shipment root id.
Trigger Criteria:
Context: A database query has been performed for the shipment root ID
Applied to: Shiproot Record Exists?
Action: The system evaluates the query results
Logic Flow:
IF A database query has been performed for the shipment root ID
AND The system evaluates the query results
THEN:
• The system determines if a valid shipment root record exists and proceeds with appropriate validation or rejection flow
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when shipment root record exists in the database.
Trigger Criteria:
Context: A shipment root record exists in the database
Applied to: Validate Shiproot Status
Action: The system checks the shipment root status
Logic Flow:
IF A shipment root record exists in the database
AND The system checks the shipment root status
THEN:
• The system validates that the shiproot is active and eligible for EDI processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when shipment root status has been retrieved from the database.
Trigger Criteria:
Context: The shipment root status has been retrieved from the database
Applied to: Shiproot Active and Valid?
Action: The system evaluates the status and validation criteria
Logic Flow:
IF The shipment root status has been retrieved from the database
AND The system evaluates the status and validation criteria
THEN:
• The system determines if the shiproot is active and valid, allowing EDI processing to continue or triggering rejection
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when shipment root record exists and has active, valid status.
Trigger Criteria:
Context: The shipment root record exists and has active, valid status
Applied to: Allow EDI Processing to Continue
Action: All validation checks pass successfully
Logic Flow:
IF The shipment root record exists and has active, valid status
AND All validation checks pass successfully
THEN:
• The system allows EDI processing to continue with the validated shipment root
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when edi processing has been authorized to continue.
Trigger Criteria:
Context: EDI processing has been authorized to continue
Applied to: Create U1 Segment with In-Bond Information
Action: The system processes the validated shipment root
Logic Flow:
IF EDI processing has been authorized to continue
AND The system processes the validated shipment root
THEN:
• A U1 segment is created with appropriate in-bond information for the shipment
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when shipment root validation has completed successfully.
Trigger Criteria:
Context: Shipment root validation has completed successfully
Applied to: Log Shiproot Validation Success
Action: The U1 segment has been created
Logic Flow:
IF Shipment root validation has completed successfully
AND The U1 segment has been created
THEN:
• The system logs the successful validation event with appropriate details
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when shipment root validation has failed due to non-existent record or invalid status.
Trigger Criteria:
Context: Shipment root validation has failed due to non-existent record or invalid status
Applied to: Reject EDI Processing Request
Action: The system determines the shipment cannot be processed
Logic Flow:
IF Shipment root validation has failed due to non-existent record or invalid status
AND The system determines the shipment cannot be processed
THEN:
• The EDI processing request is rejected and error handling is initiated
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when edi processing has been rejected due to validation failure.
Trigger Criteria:
Context: EDI processing has been rejected due to validation failure
Applied to: Generate Shiproot Not Found Error
Action: The shipment root record does not exist or has invalid status
Logic Flow:
IF EDI processing has been rejected due to validation failure
AND The shipment root record does not exist or has invalid status
THEN:
• The system generates a shiproot not found error message with relevant details
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when shiproot not found error has been generated.
Trigger Criteria:
Context: A shiproot not found error has been generated
Applied to: Log Validation Failure
Action: The system processes the validation failure
Logic Flow:
IF A shiproot not found error has been generated
AND The system processes the validation failure
THEN:
• The validation failure is logged with error details and shipment information
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when validation failure has been logged.
Trigger Criteria:
Context: Validation failure has been logged
Applied to: Send Error Notification
Action: The system completes error processing
Logic Flow:
IF Validation failure has been logged
AND The system completes error processing
THEN:
• An error notification is sent to the appropriate recipients with failure details
Business Justification: Ensures correct system behavior and process compliance when shipminu segment requires processing.
Trigger Criteria:
Context: A SHIPMINU segment requires processing
Applied to: Verify Shiproot Existence
Action: The system attempts to verify shiproot existence
Logic Flow:
IF A SHIPMINU segment requires processing
AND The system attempts to verify shiproot existence
THEN:
• The system should validate shiproot record exists and is accessible for processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when shiproot record has been retrieved for validation.
Trigger Criteria:
Context: A shiproot record has been retrieved for validation
Applied to: Shiproot Valid?
Action: The system evaluates shiproot validity
Logic Flow:
IF A shiproot record has been retrieved for validation
AND The system evaluates shiproot validity
THEN:
• If shiproot is valid, proceed to retrieve in-bond information, otherwise handle shiproot error
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when valid shiproot record exists.
Trigger Criteria:
Context: A valid shiproot record exists
Applied to: Retrieve In-Bond Information
Action: The system needs to create U1 segment with in-bond information
Logic Flow:
IF A valid shiproot record exists
AND The system needs to create U1 segment with in-bond information
THEN:
• The system should retrieve all required in-bond transportation details from the shipment record
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when in-bond information contains cprail type codes.
Trigger Criteria:
Context: In-bond information contains CPRAIL type codes
Applied to: Map CPRAIL Type Codes to EDI 309 Values
Action: The system processes type codes for U1 segment creation
Logic Flow:
IF In-bond information contains CPRAIL type codes
AND The system processes type codes for U1 segment creation
THEN:
• The system should map each CPRAIL type code to its corresponding EDI 309 standard value using the type code translation table
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when mapped edi 309 values are available.
Trigger Criteria:
Context: Mapped EDI 309 values are available
Applied to: Create U1 Segment Structure
Action: The system creates U1 segment structure
Logic Flow:
IF Mapped EDI 309 values are available
AND The system creates U1 segment structure
THEN:
• The system should initialize U1 segment with proper field structure and data formatting requirements
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when u1 segment structure is created and in-bond information is available.
Trigger Criteria:
Context: U1 segment structure is created and in-bond information is available
Applied to: Populate In-Bond Details
Action: The system populates in-bond details into U1 segment
Logic Flow:
IF U1 segment structure is created and in-bond information is available
AND The system populates in-bond details into U1 segment
THEN:
• The system should populate all required in-bond fields including mapped type codes, transportation details, and reference information
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when u1 segment is populated with in-bond details.
Trigger Criteria:
Context: U1 segment is populated with in-bond details
Applied to: Insert/Replace U1 Segment in Database
Action: The system stores U1 segment in database
Logic Flow:
IF U1 segment is populated with in-bond details
AND The system stores U1 segment in database
THEN:
• The system should insert new U1 segment if none exists or replace existing U1 segment with updated information
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when u1 segment has been successfully stored in database.
Trigger Criteria:
Context: U1 segment has been successfully stored in database
Applied to: Update Shipment Record
Action: The system updates the shipment record
Logic Flow:
IF U1 segment has been successfully stored in database
AND The system updates the shipment record
THEN:
• The system should update shipment record status to indicate U1 segment processing completion
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when u1 segment processing and shipment record update are complete.
Trigger Criteria:
Context: U1 segment processing and shipment record update are complete
Applied to: Log Segment Processing
Action: The system logs segment processing
Logic Flow:
IF U1 segment processing and shipment record update are complete
AND The system logs segment processing
THEN:
• The system should create audit log entry documenting successful SHIPMINU segment processing with relevant details
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when shiproot validation has failed.
Trigger Criteria:
Context: Shiproot validation has failed
Applied to: Handle Shiproot Error
Action: The system handles shiproot error
Logic Flow:
IF Shiproot validation has failed
AND The system handles shiproot error
THEN:
• The system should log error condition, set appropriate error status, and terminate SHIPMINU processing gracefully
Business Justification: Ensures correct system behavior and process compliance when location processing request is received.
Trigger Criteria:
Context: A location processing request is received
Applied to: Location ID Available?
Action: The system evaluates the location ID field
Logic Flow:
IF A location processing request is received
AND The system evaluates the location ID field
THEN:
• If location ID is available, proceed to DS table lookup, otherwise set default location name
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when valid location id is available.
Trigger Criteria:
Context: A valid location ID is available
Applied to: Lookup DS Table
Action: The system searches the DS table using the location ID
Logic Flow:
IF A valid location ID is available
AND The system searches the DS table using the location ID
THEN:
• Retrieve station record from GCSTBRT DS table for further processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when ds table lookup has been performed.
Trigger Criteria:
Context: DS table lookup has been performed
Applied to: DS Record Found?
Action: The system checks the lookup result
Logic Flow:
IF DS table lookup has been performed
AND The system checks the lookup result
THEN:
• If DS record is found, extract station name, otherwise attempt KS table lookup
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when ds table lookup did not find a matching record.
Trigger Criteria:
Context: DS table lookup did not find a matching record
Applied to: Lookup KS Table
Action: The system searches the KS table using the location ID
Logic Flow:
IF DS table lookup did not find a matching record
AND The system searches the KS table using the location ID
THEN:
• Retrieve location record from GCSTBRT KS table as fallback option
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when ks table lookup has been performed after ds lookup failure.
Trigger Criteria:
Context: KS table lookup has been performed after DS lookup failure
Applied to: KS Record Found?
Action: The system checks the KS lookup result
Logic Flow:
IF KS table lookup has been performed after DS lookup failure
AND The system checks the KS lookup result
THEN:
• If KS record is found, extract location description, otherwise set default location name
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when ds record has been found in the station table.
Trigger Criteria:
Context: A DS record has been found in the station table
Applied to: Extract Station Name
Action: The system processes the DS record data
Logic Flow:
IF A DS record has been found in the station table
AND The system processes the DS record data
THEN:
• Extract the station name field for location information combination
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when ks record has been found in the location table.
Trigger Criteria:
Context: A KS record has been found in the location table
Applied to: Extract Location Description
Action: The system processes the KS record data
Logic Flow:
IF A KS record has been found in the location table
AND The system processes the KS record data
THEN:
• Extract the location description field for location information combination
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when either station name from ds table or location description from ks table has been extracted.
Trigger Criteria:
Context: Either station name from DS table or location description from KS table has been extracted
Applied to: Combine Location Information
Action: The system processes the extracted location data
Logic Flow:
IF Either station name from DS table or location description from KS table has been extracted
AND The system processes the extracted location data
THEN:
• Combine the location information into a complete location reference for cargo record update
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when either no location id is available or both ds and ks table lookups have failed.
Trigger Criteria:
Context: Either no location ID is available or both DS and KS table lookups have failed
Applied to: Set Default Location Name
Action: The system cannot resolve location information from tables
Logic Flow:
IF Either no location ID is available or both DS and KS table lookups have failed
AND The system cannot resolve location information from tables
THEN:
• Set a default location name to ensure cargo record has location information
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when location information has been resolved through table lookups or default assignment.
Trigger Criteria:
Context: Location information has been resolved through table lookups or default assignment
Applied to: Update Cargo Record with Location Info
Action: The system updates the cargo record
Logic Flow:
IF Location information has been resolved through table lookups or default assignment
AND The system updates the cargo record
THEN:
• Store the location information in the GCCC-CARGO-ROOT record for future reference
Business Justification: Governs the functional prerequisites and system routing when request for n9 reference processing is initiated.
Trigger Criteria:
Context: A request for N9 reference processing is initiated
Applied to: Secondary Cargo Records Available?
Action: The system checks for available secondary cargo records in GCSA2RT
Logic Flow:
IF A request for N9 reference processing is initiated
AND The system checks for available secondary cargo records in GCSA2RT
THEN:
• The system proceeds to access secondary records if available, otherwise completes processing without N9 references
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when secondary cargo records are available.
Trigger Criteria:
Context: Secondary cargo records are available
Applied to: Access GCSA2RT Secondary Records
Action: The system needs to retrieve N9 reference information
Logic Flow:
IF Secondary cargo records are available
AND The system needs to retrieve N9 reference information
THEN:
• The system accesses GCSA2RT secondary records database
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when gcsa2rt secondary records are accessed.
Trigger Criteria:
Context: GCSA2RT secondary records are accessed
Applied to: Search for N9 Reference Segments
Action: The system searches for N9 reference segments within the records
Logic Flow:
IF GCSA2RT secondary records are accessed
AND The system searches for N9 reference segments within the records
THEN:
• The system identifies and locates all N9 reference segments present in the secondary records
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when search for n9 reference segments has been completed.
Trigger Criteria:
Context: A search for N9 reference segments has been completed
Applied to: N9 Segments Found?
Action: The system evaluates the search results
Logic Flow:
IF A search for N9 reference segments has been completed
AND The system evaluates the search results
THEN:
• The system proceeds to extract reference information if N9 segments are found, otherwise completes processing without references
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when search for n9 reference segments has been completed.
Trigger Criteria:
Context: A search for N9 reference segments has been completed
Applied to: No N9 References Found
Action: No N9 segments are found in the secondary cargo records
Logic Flow:
IF A search for N9 reference segments has been completed
AND No N9 segments are found in the secondary cargo records
THEN:
• The system completes processing without updating cargo records with reference information
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when n9 reference segments have been found in secondary cargo records.
Trigger Criteria:
Context: N9 reference segments have been found in secondary cargo records
Applied to: Extract Reference Information
Action: The system processes the N9 segments
Logic Flow:
IF N9 reference segments have been found in secondary cargo records
AND The system processes the N9 segments
THEN:
• The system extracts all reference information contained within the N9 segments
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when reference information has been extracted from n9 segments.
Trigger Criteria:
Context: Reference information has been extracted from N9 segments
Applied to: Validate Reference Data
Action: The system validates the extracted reference data
Logic Flow:
IF Reference information has been extracted from N9 segments
AND The system validates the extracted reference data
THEN:
• The system verifies that the reference data meets required format and completeness criteria
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when reference data has been validated.
Trigger Criteria:
Context: Reference data has been validated
Applied to: Reference Data Valid?
Action: The system evaluates validation results
Logic Flow:
IF Reference data has been validated
AND The system evaluates validation results
THEN:
• The system proceeds to store valid reference information or handles invalid data error
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when reference data has been validated as correct.
Trigger Criteria:
Context: Reference data has been validated as correct
Applied to: Store Reference Information
Action: The system processes valid reference information
Logic Flow:
IF Reference data has been validated as correct
AND The system processes valid reference information
THEN:
• The system stores the reference information in temporary storage for cargo record updating
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when valid reference information has been stored.
Trigger Criteria:
Context: Valid reference information has been stored
Applied to: Update Cargo Record with References
Action: The system updates the cargo record
Logic Flow:
IF Valid reference information has been stored
AND The system updates the cargo record
THEN:
• The system applies all N9 reference information to the appropriate fields in the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record has been updated with reference information.
Trigger Criteria:
Context: Cargo record has been updated with reference information
Applied to: Log Reference Processing
Action: The system completes reference processing
Logic Flow:
IF Cargo record has been updated with reference information
AND The system completes reference processing
THEN:
• The system creates log entries documenting the N9 reference processing activities
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when reference data has been extracted from n9 segments.
Trigger Criteria:
Context: Reference data has been extracted from N9 segments
Applied to: Invalid Reference Data Error
Action: The extracted reference data fails validation requirements
Logic Flow:
IF Reference data has been extracted from N9 segments
AND The extracted reference data fails validation requirements
THEN:
• The system handles the invalid data error and completes processing without updating cargo records
Business Justification: Dictates the expected operational logic and validation steps when database i/o operation request is received.
Trigger Criteria:
Context: A database I/O operation request is received
Applied to: Operation Type?
Action: The system evaluates the operation type
Logic Flow:
IF A database I/O operation request is received
AND The system evaluates the operation type
THEN:
• The system routes to insert, replace, or retrieve operation based on the operation type specified
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when database operation is being processed.
Trigger Criteria:
Context: A database operation is being processed
Applied to: Segment Type?
Action: The system evaluates the segment type
Logic Flow:
IF A database operation is being processed
AND The system evaluates the segment type
THEN:
• The system routes to appropriate segment handler for S09 Status, Cargo Root, Table Data, Secondary, Shipment, or Transmission segments
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when database operation involves s09 status segments.
Trigger Criteria:
Context: A database operation involves S09 status segments
Applied to: Status Segments - S09
Action: The system processes the S09 segment type
Logic Flow:
IF A database operation involves S09 status segments
AND The system processes the S09 segment type
THEN:
• The system accesses the GCSUSS09 database for status segment operations
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when database operation involves cargo root segments.
Trigger Criteria:
Context: A database operation involves cargo root segments
Applied to: Cargo Root Segments
Action: The system processes the cargo root segment type
Logic Flow:
IF A database operation involves cargo root segments
AND The system processes the cargo root segment type
THEN:
• The system accesses the GCCC-CARGO-ROOT database for cargo segment operations
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when database operation involves table segments.
Trigger Criteria:
Context: A database operation involves table segments
Applied to: Table Segments - GCSTBRT
Action: The system processes the GCSTBRT segment type
Logic Flow:
IF A database operation involves table segments
AND The system processes the GCSTBRT segment type
THEN:
• The system accesses the GCSTBRT database for table segment operations
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when database operation involves secondary segments.
Trigger Criteria:
Context: A database operation involves secondary segments
Applied to: Secondary Segments - GCSA2RT
Action: The system processes the GCSA2RT segment type
Logic Flow:
IF A database operation involves secondary segments
AND The system processes the GCSA2RT segment type
THEN:
• The system accesses the GCSA2RT database for secondary segment operations
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when database operation involves u1 shipment segments.
Trigger Criteria:
Context: A database operation involves U1 shipment segments
Applied to: Shipment Segments - U1
Action: The system processes the U1 segment type
Logic Flow:
IF A database operation involves U1 shipment segments
AND The system processes the U1 segment type
THEN:
• The system accesses the appropriate database for shipment segment operations
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when database operation involves transmission segments.
Trigger Criteria:
Context: A database operation involves transmission segments
Applied to: Transmission Segments - A9RT/A9DP
Action: The system processes A9RT or A9DP segment types
Logic Flow:
IF A database operation involves transmission segments
AND The system processes A9RT or A9DP segment types
THEN:
• The system accesses the A9RT/A9DP database for transmission segment operations
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when database operation requires a segment key.
Trigger Criteria:
Context: A database operation requires a segment key
Applied to: Key Valid?
Action: The system validates the segment key
Logic Flow:
IF A database operation requires a segment key
AND The system validates the segment key
THEN:
• The system proceeds with database operation if key is valid, otherwise handles database error
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when database operation has been executed.
Trigger Criteria:
Context: A database operation has been executed
Applied to: Operation Successful?
Action: The system checks the operation result
Logic Flow:
IF A database operation has been executed
AND The system checks the operation result
THEN:
• The system updates working storage and logs operation if successful, otherwise handles database error
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when insert operation is being performed.
Trigger Criteria:
Context: An insert operation is being performed
Applied to: Initialize New Segment
Action: The system initializes a new segment
Logic Flow:
IF An insert operation is being performed
AND The system initializes a new segment
THEN:
• The system sets default values and prepares segment data before executing database call
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when new segment is being initialized for insert.
Trigger Criteria:
Context: A new segment is being initialized for insert
Applied to: Set Default Values
Action: The system sets default values
Logic Flow:
IF A new segment is being initialized for insert
AND The system sets default values
THEN:
• The system prepares segment data with appropriate default values before database insertion
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when replace operation is being performed. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: A replace operation is being performed
Applied to: Replace Existing Segment
Action: The system replaces an existing segment
Logic Flow:
IF A replace operation is being performed
AND The system replaces an existing segment
THEN:
• The system executes the database call to update the existing segment
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when retrieve operation is being performed.
Trigger Criteria:
Context: A retrieve operation is being performed
Applied to: Fetch Segment by Key
Action: The system fetches a segment by key
Logic Flow:
IF A retrieve operation is being performed
AND The system fetches a segment by key
THEN:
• The system loads the segment into working storage and validates retrieved data
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when data has been retrieved from the database.
Trigger Criteria:
Context: Data has been retrieved from the database
Applied to: Validate Retrieved Data
Action: The system validates the retrieved data
Logic Flow:
IF Data has been retrieved from the database
AND The system validates the retrieved data
THEN:
• The system updates working storage if data is valid
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when database operation has failed or segment key is invalid.
Trigger Criteria:
Context: A database operation has failed or segment key is invalid
Applied to: Handle Database Error
Action: The system handles the database error
Logic Flow:
IF A database operation has failed or segment key is invalid
AND The system handles the database error
THEN:
• The system logs error details and returns error status
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when database operation has completed successfully and working storage is updated.
Trigger Criteria:
Context: A database operation has completed successfully and working storage is updated
Applied to: Log Operation
Action: The system logs the operation
Logic Flow:
IF A database operation has completed successfully and working storage is updated
AND The system logs the operation
THEN:
• The system returns success status
R-GCX016-cbl-01896 (+4)File: GCX016.cblBusiness Rule: Canadian Cargo Database Access
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when us cargo equipment id is provided for canadian cargo lookup.
Trigger Criteria:
Context: A US cargo equipment ID is provided for Canadian cargo lookup
Applied to: Search Canadian Cargo Database
Action: The system searches the Canadian cargo database using the equipment ID
Logic Flow:
IF A US cargo equipment ID is provided for Canadian cargo lookup
AND The system searches the Canadian cargo database using the equipment ID
THEN:
• The system retrieves matching Canadian cargo records if they exist
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when canadian cargo records are found in the database.
Trigger Criteria:
Context: Canadian cargo records are found in the database
Applied to: Validate Canadian Record Status
Action: The system checks the record status and deletion flags
Logic Flow:
IF Canadian cargo records are found in the database
AND The system checks the record status and deletion flags
THEN:
• Only non-deleted and valid status records are accepted for processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when canadian cargo records are retrieved from the database.
Trigger Criteria:
Context: Canadian cargo records are retrieved from the database
Applied to: Record Valid for Processing?
Action: The system evaluates record deletion status and bond creation flags
Logic Flow:
IF Canadian cargo records are retrieved from the database
AND The system evaluates record deletion status and bond creation flags
THEN:
• Deleted records and new bond created records are filtered out from processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when valid canadian cargo records are found and us cargo equipment id is available.
Trigger Criteria:
Context: Valid Canadian cargo records are found and US cargo equipment ID is available
Applied to: Establish Cross-Border Link
Action: The system matches equipment IDs between US and Canadian systems
Logic Flow:
IF Valid Canadian cargo records are found and US cargo equipment ID is available
AND The system matches equipment IDs between US and Canadian systems
THEN:
• A cross-border coordination link is established between the cargo records
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cross-border cargo coordination is performed.
Trigger Criteria:
Context: Cross-border cargo coordination is performed
Applied to: Log Cross-Border Coordination
Action: Canadian cargo information is retrieved and linked with US cargo
Logic Flow:
IF Cross-border cargo coordination is performed
AND Canadian cargo information is retrieved and linked with US cargo
THEN:
• The coordination activity is logged with cargo details and timestamp
R-GCX016-cbl-01901 (+12)File: GCX016.cblBusiness Rule: Car ID Matching for Canadian Cargo
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when us cargo record exists with equipment information.
Trigger Criteria:
Context: A US cargo record exists with equipment information
Applied to: Extract Equipment ID from US Cargo Record
Action: The system processes the cargo record for Canadian matching
Logic Flow:
IF A US cargo record exists with equipment information
AND The system processes the cargo record for Canadian matching
THEN:
• The equipment ID is extracted and made available for Canadian system lookup
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when equipment id has been extracted from us cargo record.
Trigger Criteria:
Context: An equipment ID has been extracted from US cargo record
Applied to: Format Equipment ID for Canadian System Lookup
Action: The system prepares to search Canadian cargo database
Logic Flow:
IF An equipment ID has been extracted from US cargo record
AND The system prepares to search Canadian cargo database
THEN:
• The equipment ID is formatted according to Canadian system requirements
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when formatted equipment id is available for lookup.
Trigger Criteria:
Context: A formatted equipment ID is available for lookup
Applied to: Search Canadian Cargo Database by Equipment ID
Action: The system searches the Canadian cargo database
Logic Flow:
IF A formatted equipment ID is available for lookup
AND The system searches the Canadian cargo database
THEN:
• Canadian cargo records matching the equipment ID are retrieved
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when search has been performed in the canadian cargo database.
Trigger Criteria:
Context: A search has been performed in the Canadian cargo database
Applied to: Canadian Cargo Found?
Action: The system evaluates the search results
Logic Flow:
IF A search has been performed in the Canadian cargo database
AND The system evaluates the search results
THEN:
• The system determines if Canadian cargo records were found or not found
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when canadian cargo records have been found for the equipment id.
Trigger Criteria:
Context: Canadian cargo records have been found for the equipment ID
Applied to: Validate Canadian Cargo Record Status
Action: The system validates the record status
Logic Flow:
IF Canadian cargo records have been found for the equipment ID
AND The system validates the record status
THEN:
• The system determines if the Canadian record is valid for processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when canadian cargo record status has been validated.
Trigger Criteria:
Context: Canadian cargo record status has been validated
Applied to: Canadian Record Valid?
Action: The system evaluates the validation results
Logic Flow:
IF Canadian cargo record status has been validated
AND The system evaluates the validation results
THEN:
• The system determines if the record is valid or invalid/deleted
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when valid canadian cargo record exists for the equipment id.
Trigger Criteria:
Context: A valid Canadian cargo record exists for the equipment ID
Applied to: Match US and Canadian Cargo Records
Action: The system processes the matching logic
Logic Flow:
IF A valid Canadian cargo record exists for the equipment ID
AND The system processes the matching logic
THEN:
• US and Canadian cargo records are matched and linked
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when us and canadian cargo records have been successfully matched.
Trigger Criteria:
Context: US and Canadian cargo records have been successfully matched
Applied to: Store Cross-Reference Information
Action: The system stores the match information
Logic Flow:
IF US and Canadian cargo records have been successfully matched
AND The system stores the match information
THEN:
• Cross-reference data is saved for cross-border coordination
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cross-reference information has been stored successfully.
Trigger Criteria:
Context: Cross-reference information has been stored successfully
Applied to: Log Successful Match for Cross-Border Coordination
Action: The system completes the matching process
Logic Flow:
IF Cross-reference information has been stored successfully
AND The system completes the matching process
THEN:
• A successful match is logged for cross-border coordination tracking
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when no canadian cargo records were found for the equipment id.
Trigger Criteria:
Context: No Canadian cargo records were found for the equipment ID
Applied to: Log No Canadian Match Found
Action: The system processes the no-match condition
Logic Flow:
IF No Canadian cargo records were found for the equipment ID
AND The system processes the no-match condition
THEN:
• The absence of Canadian match is logged for tracking purposes
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when canadian cargo record exists but has invalid or deleted status.
Trigger Criteria:
Context: Canadian cargo record exists but has invalid or deleted status
Applied to: Mark Canadian Record as Invalid/Deleted
Action: The system processes the invalid record
Logic Flow:
IF Canadian cargo record exists but has invalid or deleted status
AND The system processes the invalid record
THEN:
• The Canadian record is marked as invalid/deleted and excluded from matching
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when no canadian cargo match is found or canadian record is invalid.
Trigger Criteria:
Context: No Canadian cargo match is found or Canadian record is invalid
Applied to: Continue Processing Without Canadian Match
Action: The system continues with cargo processing
Logic Flow:
IF No Canadian cargo match is found or Canadian record is invalid
AND The system continues with cargo processing
THEN:
• Processing continues without Canadian cross-reference information
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when successful match has been logged for cross-border coordination.
Trigger Criteria:
Context: Successful match has been logged for cross-border coordination
Applied to: Continue with Cross-Border Processing
Action: The system continues processing
Logic Flow:
IF Successful match has been logged for cross-border coordination
AND The system continues processing
THEN:
• Cross-border processing proceeds with linked cargo information
R-GCX016-cbl-01914 (+5)File: GCX016.cblBusiness Rule: Canadian Status Validation
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when canadian cargo record retrieval operation is performed.
Trigger Criteria:
Context: A Canadian cargo record retrieval operation is performed
Applied to: Record Exists?
Action: The system attempts to access the Canadian cargo record
Logic Flow:
IF A Canadian cargo record retrieval operation is performed
AND The system attempts to access the Canadian cargo record
THEN:
• The system determines if the record exists and either proceeds to status validation or excludes the record from processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when canadian cargo record exists in the system.
Trigger Criteria:
Context: A Canadian cargo record exists in the system
Applied to: Record Deleted?
Action: The record's deletion status is evaluated
Logic Flow:
IF A Canadian cargo record exists in the system
AND The record's deletion status is evaluated
THEN:
• If the record is marked as deleted, it is excluded from processing, otherwise status validation continues
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when canadian cargo record exists and is not deleted.
Trigger Criteria:
Context: A Canadian cargo record exists and is not deleted
Applied to: Record Unusable?
Action: The record's usability status is evaluated
Logic Flow:
IF A Canadian cargo record exists and is not deleted
AND The record's usability status is evaluated
THEN:
• If the record is marked as unusable, it is excluded from processing, otherwise the record is marked as valid for processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when canadian cargo record exists, is not deleted, and is not unusable.
Trigger Criteria:
Context: A Canadian cargo record exists, is not deleted, and is not unusable
Applied to: Mark Record as Valid for Processing
Action: All validation checks are completed successfully
Logic Flow:
IF A Canadian cargo record exists, is not deleted, and is not unusable
AND All validation checks are completed successfully
THEN:
• The record is marked as valid and available for subsequent business processing operations
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when canadian cargo record fails one or more validation checks (non-existent, deleted, or unusable).
Trigger Criteria:
Context: A Canadian cargo record fails one or more validation checks (non-existent, deleted, or unusable)
Applied to: Exclude Record from Processing
Action: The validation failure is detected
Logic Flow:
IF A Canadian cargo record fails one or more validation checks (non-existent, deleted, or unusable)
AND The validation failure is detected
THEN:
• The record is excluded from processing and the exclusion reason is logged
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when canadian cargo record has been excluded from processing.
Trigger Criteria:
Context: A Canadian cargo record has been excluded from processing
Applied to: Log Exclusion Reason
Action: The exclusion decision is made
Logic Flow:
IF A Canadian cargo record has been excluded from processing
AND The exclusion decision is made
THEN:
• The system logs the specific reason for exclusion (non-existent, deleted, or unusable status)
Business Justification: Defines the strict business conditions required to proceed when us cargo has been released and cargo status has been updated to a release state.
Trigger Criteria:
Context: US cargo has been released and cargo status has been updated to a release state
Applied to: Canadian Coordination Required?
Action: the system evaluates cargo for Canadian coordination requirements
Logic Flow:
IF US cargo has been released and cargo status has been updated to a release state
AND the system evaluates cargo for Canadian coordination requirements
THEN:
• Canadian coordination is required if cargo status indicates manual release processing is needed
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when canadian coordination is required for released us cargo and equipment id is available.
Trigger Criteria:
Context: Canadian coordination is required for released US cargo and equipment ID is available
Applied to: Search for Matching Canadian Manifests
Action: the system searches for matching Canadian manifest records
Logic Flow:
IF Canadian coordination is required for released US cargo and equipment ID is available
AND the system searches for matching Canadian manifest records
THEN:
• system queries Canadian cargo records using equipment ID as the primary search key
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when canadian manifest search has been initiated with equipment id.
Trigger Criteria:
Context: Canadian manifest search has been initiated with equipment ID
Applied to: Match by Equipment ID
Action: the system performs equipment ID matching
Logic Flow:
IF Canadian manifest search has been initiated with equipment ID
AND the system performs equipment ID matching
THEN:
• system looks up Canadian waybill records using the equipment ID from the US cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when equipment id lookup has been performed against canadian cargo records.
Trigger Criteria:
Context: equipment ID lookup has been performed against Canadian cargo records
Applied to: Canadian Manifest Found?
Action: the system checks for Canadian manifest existence
Logic Flow:
IF equipment ID lookup has been performed against Canadian cargo records
AND the system checks for Canadian manifest existence
THEN:
• Canadian manifest is found if matching records exist and are not marked as deleted
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when canadian manifest records have been found for the equipment id.
Trigger Criteria:
Context: Canadian manifest records have been found for the equipment ID
Applied to: Canadian Record Valid?
Action: the system validates Canadian record status
Logic Flow:
IF Canadian manifest records have been found for the equipment ID
AND the system validates Canadian record status
THEN:
• Canadian record is valid if it is not deleted and not marked as new bond created record
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when valid canadian manifest records have been identified for released us cargo.
Trigger Criteria:
Context: valid Canadian manifest records have been identified for released US cargo
Applied to: Create Cross-border Log Message
Action: the system creates cross-border log message
Logic Flow:
IF valid Canadian manifest records have been identified for released US cargo
AND the system creates cross-border log message
THEN:
• system generates log message containing cargo release details, equipment information, and cross-border coordination status
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cross-border log message has been created for valid canadian records.
Trigger Criteria:
Context: cross-border log message has been created for valid Canadian records
Applied to: Update Canadian System Notification
Action: the system updates Canadian system notification
Logic Flow:
IF cross-border log message has been created for valid Canadian records
AND the system updates Canadian system notification
THEN:
• system calls GCX105 logging system to record cargo release information for Canadian coordination
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when canadian system notification has been successfully updated.
Trigger Criteria:
Context: Canadian system notification has been successfully updated
Applied to: Generate Audit Trail
Action: the system generates audit trail
Logic Flow:
IF Canadian system notification has been successfully updated
AND the system generates audit trail
THEN:
• system creates complete audit record of cross-border coordination process including timestamps, cargo details, and processing results
R-GCX016-cbl-01928 (+8)File: GCX016.cblBusiness Rule: System Time Management
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when business transaction requires timestamping.
Trigger Criteria:
Context: A business transaction requires timestamping
Applied to: Capture Current System Date
Action: The system needs to capture the current date
Logic Flow:
IF A business transaction requires timestamping
AND The system needs to capture the current date
THEN:
• The system date is retrieved and stored for transaction processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when business transaction requires precise timing.
Trigger Criteria:
Context: A business transaction requires precise timing
Applied to: Capture Current System Time
Action: The system needs to capture the current time
Logic Flow:
IF A business transaction requires precise timing
AND The system needs to capture the current time
THEN:
• The system time is retrieved and stored for transaction processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when system date has been captured.
Trigger Criteria:
Context: A system date has been captured
Applied to: Convert Date to Julian Format
Action: The date needs to be converted to Julian format
Logic Flow:
IF A system date has been captured
AND The date needs to be converted to Julian format
THEN:
• The date is converted to Julian format for standardized processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when date conversion to julian format has been attempted.
Trigger Criteria:
Context: A date conversion to Julian format has been attempted
Applied to: Date Conversion Successful?
Action: The system checks if the conversion was successful
Logic Flow:
IF A date conversion to Julian format has been attempted
AND The system checks if the conversion was successful
THEN:
• If conversion is successful, proceed with timestamp formatting, otherwise handle the conversion error
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when system date and time have been successfully captured and date converted to julian format.
Trigger Criteria:
Context: System date and time have been successfully captured and date converted to Julian format
Applied to: Format Timestamp for Transaction
Action: A formatted timestamp is required for transaction processing
Logic Flow:
IF System date and time have been successfully captured and date converted to Julian format
AND A formatted timestamp is required for transaction processing
THEN:
• The date and time are formatted into a standardized timestamp for business use
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when formatted timestamp is available.
Trigger Criteria:
Context: A formatted timestamp is available
Applied to: Apply Timestamp to Business Transaction
Action: A business transaction is being processed
Logic Flow:
IF A formatted timestamp is available
AND A business transaction is being processed
THEN:
• The timestamp is applied to the transaction for tracking and audit trail purposes
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when business transaction has been timestamped.
Trigger Criteria:
Context: A business transaction has been timestamped
Applied to: Store Timestamp in Transaction Log
Action: The transaction needs to be logged for audit purposes
Logic Flow:
IF A business transaction has been timestamped
AND The transaction needs to be logged for audit purposes
THEN:
• The timestamp is stored in the transaction log for compliance and tracking
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when date conversion to julian format has failed.
Trigger Criteria:
Context: A date conversion to Julian format has failed
Applied to: Handle Date Conversion Error
Action: The system detects the conversion error
Logic Flow:
IF A date conversion to Julian format has failed
AND The system detects the conversion error
THEN:
• The error is handled appropriately to allow transaction processing to continue
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when date and time processing has completed either successfully or with error handling.
Trigger Criteria:
Context: Date and time processing has completed either successfully or with error handling
Applied to: Timestamp Ready for Use
Action: The system needs to confirm timestamp availability
Logic Flow:
IF Date and time processing has completed either successfully or with error handling
AND The system needs to confirm timestamp availability
THEN:
• The timestamp is marked as ready for use in business transactions
R-GCX016-cbl-01937 (+9)File: GCX016.cblBusiness Rule: Broker Name Lookup for KCSM
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo processing request is being handled.
Trigger Criteria:
Context: A cargo processing request is being handled
Applied to: KCSM Processing Required?
Action: The system evaluates whether KCSM processing is needed
Logic Flow:
IF A cargo processing request is being handled
AND The system evaluates whether KCSM processing is needed
THEN:
• The system should proceed to broker lookup if KCSM processing is required, otherwise continue with standard processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when kcsm processing is required.
Trigger Criteria:
Context: KCSM processing is required
Applied to: Access Broker Tables
Action: The system needs to lookup broker information
Logic Flow:
IF KCSM processing is required
AND The system needs to lookup broker information
THEN:
• The system should access the GCSTBRT broker tables to retrieve broker data
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when broker tables are accessible.
Trigger Criteria:
Context: Broker tables are accessible
Applied to: Retrieve Broker Information
Action: The system performs broker lookup
Logic Flow:
IF Broker tables are accessible
AND The system performs broker lookup
THEN:
• The system should retrieve broker information from BK Table (Broker Master) and B1 Table (Broker Details)
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when broker lookup has been performed.
Trigger Criteria:
Context: A broker lookup has been performed
Applied to: Broker Found?
Action: The system checks the lookup results
Logic Flow:
IF A broker lookup has been performed
AND The system checks the lookup results
THEN:
• The system should determine if broker information was found and proceed accordingly
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when broker lookup has been performed.
Trigger Criteria:
Context: A broker lookup has been performed
Applied to: Log Broker Not Found Error
Action: No broker information is found in the lookup tables
Logic Flow:
IF A broker lookup has been performed
AND No broker information is found in the lookup tables
THEN:
• The system should log a broker not found error for tracking purposes
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when broker information has been found in the lookup tables.
Trigger Criteria:
Context: Broker information has been found in the lookup tables
Applied to: Extract Broker Short Name
Action: The system processes the broker data
Logic Flow:
IF Broker information has been found in the lookup tables
AND The system processes the broker data
THEN:
• The system should extract the broker short name for KCSM processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when broker short name has been extracted.
Trigger Criteria:
Context: Broker short name has been extracted
Applied to: Format Broker Data for KCSM
Action: The system prepares data for KCSM processing
Logic Flow:
IF Broker short name has been extracted
AND The system prepares data for KCSM processing
THEN:
• The system should format the broker data according to KCSM specifications
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when broker data has been formatted for kcsm.
Trigger Criteria:
Context: Broker data has been formatted for KCSM
Applied to: Store Broker Information
Action: The system needs to preserve broker information
Logic Flow:
IF Broker data has been formatted for KCSM
AND The system needs to preserve broker information
THEN:
• The system should store the broker information for use in KCSM processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when broker lookup has failed and error has been logged.
Trigger Criteria:
Context: Broker lookup has failed and error has been logged
Applied to: Use Default Broker Information
Action: The system needs to continue processing
Logic Flow:
IF Broker lookup has failed and error has been logged
AND The system needs to continue processing
THEN:
• The system should use default broker information to allow processing to continue
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when broker information is available (either found or default).
Trigger Criteria:
Context: Broker information is available (either found or default)
Applied to: Continue KCSM Processing
Action: All broker lookup processing is complete
Logic Flow:
IF Broker information is available (either found or default)
AND All broker lookup processing is complete
THEN:
• The system should continue with the main KCSM processing workflow
Business Justification: Establishes the required business protocol to be followed when new edi transmission needs to be created.
Trigger Criteria:
Context: A new EDI transmission needs to be created
Applied to: Initialize Transmission Control Parameters
Action: The system begins transmission root segment creation process
Logic Flow:
IF A new EDI transmission needs to be created
AND The system begins transmission root segment creation process
THEN:
• All transmission control parameters are initialized to default values and prepared for message processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when transmission control parameters are initialized.
Trigger Criteria:
Context: Transmission control parameters are initialized
Applied to: Set EDI Message Tracking Information
Action: The system sets up EDI message tracking
Logic Flow:
IF Transmission control parameters are initialized
AND The system sets up EDI message tracking
THEN:
• Message tracking information is established with unique identifiers and control data
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when edi message tracking information is set.
Trigger Criteria:
Context: EDI message tracking information is set
Applied to: Assign Transmission Sequence Number
Action: The system assigns transmission sequence number
Logic Flow:
IF EDI message tracking information is set
AND The system assigns transmission sequence number
THEN:
• A unique sequential number is assigned to identify this specific transmission
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when transmission sequence number is assigned.
Trigger Criteria:
Context: Transmission sequence number is assigned
Applied to: Set Message Type and Format
Action: The system sets message type and format
Logic Flow:
IF Transmission sequence number is assigned
AND The system sets message type and format
THEN:
• Message type and format are defined according to EDI standards and business requirements
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when message type and format are set.
Trigger Criteria:
Context: Message type and format are set
Applied to: Establish Sender/Receiver Information
Action: The system establishes sender and receiver information
Logic Flow:
IF Message type and format are set
AND The system establishes sender and receiver information
THEN:
• Valid sender and receiver identifiers are set for message routing and delivery
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when sender and receiver information is established.
Trigger Criteria:
Context: Sender and receiver information is established
Applied to: Set Transmission Date and Time
Action: The system sets transmission date and time
Logic Flow:
IF Sender and receiver information is established
AND The system sets transmission date and time
THEN:
• Current system date and time are recorded as transmission timestamp
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when all transmission control data is prepared including date, time, sender, receiver, and sequence information.
Trigger Criteria:
Context: All transmission control data is prepared including date, time, sender, receiver, and sequence information
Applied to: Create A9RT Transmission Root Segment
Action: The system creates A9RT transmission root segment
Logic Flow:
IF All transmission control data is prepared including date, time, sender, receiver, and sequence information
AND The system creates A9RT transmission root segment
THEN:
• A9RT segment is created with complete transmission control information ready for database storage
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when a9rt transmission root segment is created.
Trigger Criteria:
Context: A9RT transmission root segment is created
Applied to: Validate Transmission Control Data
Action: The system validates transmission control data
Logic Flow:
IF A9RT transmission root segment is created
AND The system validates transmission control data
THEN:
• All required fields are validated for completeness, format, and business rule compliance
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when transmission control data validation is successful.
Trigger Criteria:
Context: Transmission control data validation is successful
Applied to: Store Root Segment to Database
Action: The system stores root segment to database
Logic Flow:
IF Transmission control data validation is successful
AND The system stores root segment to database
THEN:
• A9RT transmission root segment is successfully stored in the database with all control information
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when root segment is successfully stored to database.
Trigger Criteria:
Context: Root segment is successfully stored to database
Applied to: Update Transmission Status
Action: The system updates transmission status
Logic Flow:
IF Root segment is successfully stored to database
AND The system updates transmission status
THEN:
• Transmission status is updated to indicate successful root segment creation and storage
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when transmission status is updated successfully.
Trigger Criteria:
Context: Transmission status is updated successfully
Applied to: Log Transmission Creation
Action: The system logs transmission creation
Logic Flow:
IF Transmission status is updated successfully
AND The system logs transmission creation
THEN:
• Transmission creation event is logged with relevant details for audit and monitoring purposes
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when transmission creation is logged successfully.
Trigger Criteria:
Context: Transmission creation is logged successfully
Applied to: Return Success Status
Action: The system returns success status
Logic Flow:
IF Transmission creation is logged successfully
AND The system returns success status
THEN:
• Success status is returned to calling process indicating successful transmission root segment creation
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when transmission control data validation fails.
Trigger Criteria:
Context: Transmission control data validation fails
Applied to: Handle Validation Error
Action: The system handles validation error
Logic Flow:
IF Transmission control data validation fails
AND The system handles validation error
THEN:
• Validation error is processed and appropriate error handling procedures are initiated
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when validation error is handled.
Trigger Criteria:
Context: Validation error is handled
Applied to: Log Error Information
Action: The system logs error information
Logic Flow:
IF Validation error is handled
AND The system logs error information
THEN:
• Detailed error information is logged including validation failure reasons and relevant data
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when error information is logged.
Trigger Criteria:
Context: Error information is logged
Applied to: Return Error Status
Action: The system returns error status
Logic Flow:
IF Error information is logged
AND The system returns error status
THEN:
• Error status is returned to calling process indicating failed transmission root segment creation with error details
Business Justification: Establishes the required business protocol to be followed when transmission dependent segment creation process is initiated.
Trigger Criteria:
Context: A transmission dependent segment creation process is initiated
Applied to: Initialize Dependent Segment Structure
Action: The system begins creating dependent segments
Logic Flow:
IF A transmission dependent segment creation process is initiated
AND The system begins creating dependent segments
THEN:
• The dependent segment structure must be initialized with default values and cleared of any previous data
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when dependent segment structure is initialized. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: A dependent segment structure is initialized
Applied to: Set Transmission Control Information
Action: Transmission control information needs to be established
Logic Flow:
IF A dependent segment structure is initialized
AND Transmission control information needs to be established
THEN:
• The system must copy transmission control data including interchange control numbers and functional group identifiers to the dependent segment
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when transmission control information is set and edi 350 message data is available. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: Transmission control information is set and EDI 350 message data is available
Applied to: Copy EDI 350 Message Data
Action: The system processes EDI 350 message content
Logic Flow:
IF Transmission control information is set and EDI 350 message data is available
AND The system processes EDI 350 message content
THEN:
• All relevant EDI 350 message data must be copied to the dependent segment maintaining data integrity and format
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when edi 350 message data is copied to the segment.
Trigger Criteria:
Context: EDI 350 message data is copied to the segment
Applied to: Format Segment Header Information
Action: Segment header formatting is required
Logic Flow:
IF EDI 350 message data is copied to the segment
AND Segment header formatting is required
THEN:
• The system must format segment header with proper segment identifier, element separator, and component separator according to EDI standards
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when segment header information is formatted.
Trigger Criteria:
Context: Segment header information is formatted
Applied to: Set Dependent Segment Key
Action: A dependent segment key needs to be established
Logic Flow:
IF Segment header information is formatted
AND A dependent segment key needs to be established
THEN:
• The system must generate and assign a unique key combining transmission control information and segment identifiers
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when dependent segment key is established.
Trigger Criteria:
Context: A dependent segment key is established
Applied to: Set Segment Sequence Number
Action: Segment sequence numbering is required
Logic Flow:
IF A dependent segment key is established
AND Segment sequence numbering is required
THEN:
• The system must assign sequential numbers to dependent segments starting from 1 and incrementing for each additional segment
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when segment sequence number is set. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: Segment sequence number is set
Applied to: Copy Message Content to Segment
Action: Message content needs to be stored in the segment
Logic Flow:
IF Segment sequence number is set
AND Message content needs to be stored in the segment
THEN:
• The system must copy the complete message content including all data elements and segments to the dependent segment structure
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when message content is copied to the segment.
Trigger Criteria:
Context: Message content is copied to the segment
Applied to: Set Segment Length Information
Action: Segment length calculation is required
Logic Flow:
IF Message content is copied to the segment
AND Segment length calculation is required
THEN:
• The system must calculate and store the actual length of the message content in the segment length field
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when segment length information is set.
Trigger Criteria:
Context: Segment length information is set
Applied to: Validate Segment Structure
Action: Segment structure validation is performed
Logic Flow:
IF Segment length information is set
AND Segment structure validation is performed
THEN:
• The system must verify that all required fields are populated, segment length is valid, and structure conforms to EDI standards
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when segment structure validation is successful.
Trigger Criteria:
Context: Segment structure validation is successful
Applied to: Write Dependent Segment to A9DP
Action: The dependent segment is ready for storage
Logic Flow:
IF Segment structure validation is successful
AND The dependent segment is ready for storage
THEN:
• The system must write the dependent segment to the A9DP database with all populated fields and proper key structure
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when dependent segment is successfully written to a9dp.
Trigger Criteria:
Context: A dependent segment is successfully written to A9DP
Applied to: Update Transmission Control Counters
Action: Transmission control counter update is required
Logic Flow:
IF A dependent segment is successfully written to A9DP
AND Transmission control counter update is required
THEN:
• The system must increment the segment count and update transmission control counters to reflect the new segment
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when transmission control counters are updated.
Trigger Criteria:
Context: Transmission control counters are updated
Applied to: Increment Segment Sequence
Action: Preparation for next segment is required
Logic Flow:
IF Transmission control counters are updated
AND Preparation for next segment is required
THEN:
• The system must increment the segment sequence number by 1 to ensure proper ordering of subsequent segments
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when segment sequence is incremented and more edi data may exist. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: Segment sequence is incremented and more EDI data may exist
Applied to: More EDI Data to Process?
Action: The system checks for additional EDI data to process
Logic Flow:
IF Segment sequence is incremented and more EDI data may exist
AND The system checks for additional EDI data to process
THEN:
• If more EDI data exists, the system must return to copy EDI 350 message data step, otherwise proceed to completion
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when segment structure validation fails.
Trigger Criteria:
Context: Segment structure validation fails
Applied to: Handle Validation Error
Action: A validation error is detected
Logic Flow:
IF Segment structure validation fails
AND A validation error is detected
THEN:
• The system must handle the validation error by setting appropriate error flags and preparing error information for logging
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when validation error is handled.
Trigger Criteria:
Context: A validation error is handled
Applied to: Log Error Information
Action: Error logging is required
Logic Flow:
IF A validation error is handled
AND Error logging is required
THEN:
• The system must log detailed error information including segment data, validation failure reason, and transmission context
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when all edi data is processed or an error is logged.
Trigger Criteria:
Context: All EDI data is processed or an error is logged
Applied to: Complete Dependent Segment Creation
Action: The dependent segment creation process reaches completion
Logic Flow:
IF All EDI data is processed or an error is logged
AND The dependent segment creation process reaches completion
THEN:
• The system must complete the process by setting final status indicators and returning control to the calling process
R-GCX016-cbl-01978 (+14)File: GCX016.cblBusiness Rule: EDI Transaction Spawning for KCSM
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code is being processed for cargo release.
Trigger Criteria:
Context: A disposition code is being processed for cargo release
Applied to: Check Disposition Code for KCSM
Action: The system evaluates if KCSM EDI transmission is required for the disposition code
Logic Flow:
IF A disposition code is being processed for cargo release
AND The system evaluates if KCSM EDI transmission is required for the disposition code
THEN:
• The system should determine whether to proceed with KCSM EDI transaction spawning or skip KCSM processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when kcsm edi transmission is required and broker identification is available.
Trigger Criteria:
Context: KCSM EDI transmission is required and broker identification is available
Applied to: Retrieve KCSM Broker Information
Action: The system needs to retrieve broker details for EDI message formatting
Logic Flow:
IF KCSM EDI transmission is required and broker identification is available
AND The system needs to retrieve broker details for EDI message formatting
THEN:
• The system should fetch broker information from GCSTBRT broker tables and make it available for transmission setup
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when kcsm broker information has been retrieved successfully.
Trigger Criteria:
Context: KCSM broker information has been retrieved successfully
Applied to: Create Transmission Root Segment
Action: The system needs to establish the EDI message structure foundation
Logic Flow:
IF KCSM broker information has been retrieved successfully
AND The system needs to establish the EDI message structure foundation
THEN:
• The system should create an A9RT transmission root segment with proper identification and control parameters
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when transmission root segment has been created for the edi message.
Trigger Criteria:
Context: A transmission root segment has been created for the EDI message
Applied to: Set Transmission Control Parameters
Action: The system needs to configure transmission control settings
Logic Flow:
IF A transmission root segment has been created for the EDI message
AND The system needs to configure transmission control settings
THEN:
• The system should set appropriate transmission control parameters including message type, sequence numbers, and processing flags
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when transmission control parameters have been established.
Trigger Criteria:
Context: Transmission control parameters have been established
Applied to: Create Dependent Segments with EDI Data
Action: The system needs to populate EDI message content with cargo and disposition data
Logic Flow:
IF Transmission control parameters have been established
AND The system needs to populate EDI message content with cargo and disposition data
THEN:
• The system should create A9DP dependent segments containing formatted EDI data including cargo details, disposition codes, and transaction information
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when n7 equipment segments are available and dependent segments are being created.
Trigger Criteria:
Context: N7 equipment segments are available and dependent segments are being created
Applied to: Format Equipment Details from N7 Segments
Action: The system needs to include equipment details in the EDI transmission
Logic Flow:
IF N7 equipment segments are available and dependent segments are being created
AND The system needs to include equipment details in the EDI transmission
THEN:
• The system should extract and format equipment information from N7 segments including car numbers, equipment types, and related identifiers
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when all edi segments have been created and equipment details have been formatted. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: All EDI segments have been created and equipment details have been formatted
Applied to: Build Complete EDI 350 Message Copy
Action: The system needs to create the final EDI message structure
Logic Flow:
IF All EDI segments have been created and equipment details have been formatted
AND The system needs to create the final EDI message structure
THEN:
• The system should build a complete EDI 350 message copy containing all root segments, dependent segments, and formatted data ready for transmission
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when complete edi 350 message has been assembled.
Trigger Criteria:
Context: A complete EDI 350 message has been assembled
Applied to: Set KCSM Transmission Parameters
Action: The system needs to configure KCSM-specific transmission settings
Logic Flow:
IF A complete EDI 350 message has been assembled
AND The system needs to configure KCSM-specific transmission settings
THEN:
• The system should set KCSM transmission parameters using AECWRKTB work table including destination routing, priority settings, and integration flags
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when kcsm transmission parameters have been configured and edi message is ready.
Trigger Criteria:
Context: KCSM transmission parameters have been configured and EDI message is ready
Applied to: Spawn GCT1091E Transaction
Action: The system needs to initiate the actual EDI transmission process
Logic Flow:
IF KCSM transmission parameters have been configured and EDI message is ready
AND The system needs to initiate the actual EDI transmission process
THEN:
• The system should spawn GCT1091E transaction with the prepared EDI message and transmission parameters
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when gct1091e transaction spawn has been attempted.
Trigger Criteria:
Context: GCT1091E transaction spawn has been attempted
Applied to: Transaction Spawn Successful?
Action: The system needs to verify the spawn operation result
Logic Flow:
IF GCT1091E transaction spawn has been attempted
AND The system needs to verify the spawn operation result
THEN:
• The system should check the spawn status and determine whether to proceed with successful processing or handle spawn errors
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when gct1091e transaction spawn was successful.
Trigger Criteria:
Context: GCT1091E transaction spawn was successful
Applied to: Log Transmission Details
Action: The system needs to record transmission activity
Logic Flow:
IF GCT1091E transaction spawn was successful
AND The system needs to record transmission activity
THEN:
• The system should log transmission details including message identifiers, timestamps, broker information, and processing status
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when transmission details have been logged successfully.
Trigger Criteria:
Context: Transmission details have been logged successfully
Applied to: Queue EDI Message for KCSM
Action: The system needs to queue the message for KCSM delivery
Logic Flow:
IF Transmission details have been logged successfully
AND The system needs to queue the message for KCSM delivery
THEN:
• The system should place the EDI message in the appropriate queue for KCSM system processing with proper routing and priority
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when edi message has been queued for kcsm successfully.
Trigger Criteria:
Context: EDI message has been queued for KCSM successfully
Applied to: Update Transaction Status
Action: The system needs to update processing status
Logic Flow:
IF EDI message has been queued for KCSM successfully
AND The system needs to update processing status
THEN:
• The system should update transaction status to indicate successful KCSM EDI integration completion
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when gct1091e transaction spawn has failed.
Trigger Criteria:
Context: GCT1091E transaction spawn has failed
Applied to: Handle Spawn Error
Action: The system encounters a spawn error condition
Logic Flow:
IF GCT1091E transaction spawn has failed
AND The system encounters a spawn error condition
THEN:
• The system should initiate error handling procedures to manage the failed spawn operation
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when transaction spawn error is being handled.
Trigger Criteria:
Context: A transaction spawn error is being handled
Applied to: Log Error Details
Action: The system needs to record error information
Logic Flow:
IF A transaction spawn error is being handled
AND The system needs to record error information
THEN:
• The system should log detailed error information including error codes, failure reasons, message content, and system state for troubleshooting purposes
R-GCX016-cbl-01993 (+13)File: GCX016.cblBusiness Rule: Message Queue Management for KCSM
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code is provided for kcsm processing.
Trigger Criteria:
Context: A disposition code is provided for KCSM processing
Applied to: Validate KCSM Disposition Code
Action: The system validates the disposition code against AECWRKTB configuration table
Logic Flow:
IF A disposition code is provided for KCSM processing
AND The system validates the disposition code against AECWRKTB configuration table
THEN:
• The disposition code must be found in the KCSM authorized codes list to proceed with message queuing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when edi 350 message exists with multiple segments. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: An EDI 350 message exists with multiple segments
Applied to: Copy EDI 350 Message Segments
Action: The system prepares the message for KCSM transmission
Logic Flow:
IF An EDI 350 message exists with multiple segments
AND The system prepares the message for KCSM transmission
THEN:
• All message segments must be copied to the transmission buffer maintaining segment structure and data integrity
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when a9rt transmission segment data is available.
Trigger Criteria:
Context: A9RT transmission segment data is available
Applied to: Create Transmission Root Segment
Action: The system creates the transmission root segment
Logic Flow:
IF A9RT transmission segment data is available
AND The system creates the transmission root segment
THEN:
• The root segment must be formatted with proper transmission identifiers and control information from A9RT data
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when a9dp dependent segment data is available.
Trigger Criteria:
Context: A9DP dependent segment data is available
Applied to: Create Transmission Dependent Segments
Action: The system creates transmission dependent segments
Logic Flow:
IF A9DP dependent segment data is available
AND The system creates transmission dependent segments
THEN:
• All dependent segments must be created with proper sequencing and data from A9DP segments
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when root and dependent segments are created.
Trigger Criteria:
Context: Root and dependent segments are created
Applied to: Format EDI Message for KCSM
Action: The system formats the EDI message for KCSM
Logic Flow:
IF Root and dependent segments are created
AND The system formats the EDI message for KCSM
THEN:
• The message must be formatted according to KCSM EDI standards with proper segment delimiters and structure
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when formatted edi message is ready for transmission.
Trigger Criteria:
Context: A formatted EDI message is ready for transmission
Applied to: Prepare Message Queue Entry
Action: The system prepares the message queue entry
Logic Flow:
IF A formatted EDI message is ready for transmission
AND The system prepares the message queue entry
THEN:
• The queue entry must include message data, transmission parameters, and routing information
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when message queue entry is prepared. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: A message queue entry is prepared
Applied to: Call WRITMSGL to Queue Message
Action: The system calls WRITMSGL to queue the message
Logic Flow:
IF A message queue entry is prepared
AND The system calls WRITMSGL to queue the message
THEN:
• WRITMSGL must be invoked with the prepared message data and queue parameters
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when writmsgl has been called to queue a message.
Trigger Criteria:
Context: WRITMSGL has been called to queue a message
Applied to: Queue Operation Successful?
Action: The system checks the queue operation result
Logic Flow:
IF WRITMSGL has been called to queue a message
AND The system checks the queue operation result
THEN:
• If the operation is successful, proceed to logging; if failed, initiate error handling
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when message has been successfully queued.
Trigger Criteria:
Context: A message has been successfully queued
Applied to: Log Transmission Parameters
Action: The system logs transmission parameters
Logic Flow:
IF A message has been successfully queued
AND The system logs transmission parameters
THEN:
• Transmission details including message ID, timestamp, and routing information must be logged
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when transmission parameters have been logged.
Trigger Criteria:
Context: Transmission parameters have been logged
Applied to: Update Transmission Status
Action: The system updates transmission status
Logic Flow:
IF Transmission parameters have been logged
AND The system updates transmission status
THEN:
• The status must be updated to indicate successful queuing and readiness for transmission
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when message queuing operation has failed.
Trigger Criteria:
Context: A message queuing operation has failed
Applied to: Handle Queue Error
Action: The system handles the queue error
Logic Flow:
IF A message queuing operation has failed
AND The system handles the queue error
THEN:
• Error details must be captured and retry logic must be initiated
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when queue error has been handled.
Trigger Criteria:
Context: A queue error has been handled
Applied to: Retry Queue Operation
Action: The system retries the queue operation
Logic Flow:
IF A queue error has been handled
AND The system retries the queue operation
THEN:
• The same message must be resubmitted to the queue with identical parameters
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when queue operation has been retried.
Trigger Criteria:
Context: A queue operation has been retried
Applied to: Retry Successful?
Action: The system checks the retry operation result
Logic Flow:
IF A queue operation has been retried
AND The system checks the retry operation result
THEN:
• If retry is successful, proceed to logging; if retry fails, log the failure and continue processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when queue retry operation has failed.
Trigger Criteria:
Context: A queue retry operation has failed
Applied to: Log Queue Failure
Action: The system logs the queue failure
Logic Flow:
IF A queue retry operation has failed
AND The system logs the queue failure
THEN:
• Failure details including error codes, message data, and retry attempts must be logged for troubleshooting
R-GCX016-cbl-02007 (+13)File: GCX016.cblBusiness Rule: Transaction Logging for KCSM
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo processing transaction is being executed.
Trigger Criteria:
Context: A cargo processing transaction is being executed
Applied to: KCSM Processing Required?
Action: The system evaluates if KCSM logging is needed
Logic Flow:
IF A cargo processing transaction is being executed
AND The system evaluates if KCSM logging is needed
THEN:
• KCSM processing is required if broker is configured for KCSM transmission and message type requires logging
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when kcsm processing is required for a transaction.
Trigger Criteria:
Context: KCSM processing is required for a transaction
Applied to: Retrieve KCSM Broker Information
Action: The system needs broker information for transmission setup
Logic Flow:
IF KCSM processing is required for a transaction
AND The system needs broker information for transmission setup
THEN:
• Broker KCSM configuration data is retrieved from broker master records
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when kcsm broker information has been retrieved.
Trigger Criteria:
Context: KCSM broker information has been retrieved
Applied to: Create Transmission Root Segment
Action: A transmission root segment needs to be created
Logic Flow:
IF KCSM broker information has been retrieved
AND A transmission root segment needs to be created
THEN:
• A9RT transmission root segment is created with transmission ID, broker ID, and timestamp
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when transmission root segment has been created.
Trigger Criteria:
Context: A transmission root segment has been created
Applied to: Log Transmission Parameters
Action: Transmission parameters need to be logged
Logic Flow:
IF A transmission root segment has been created
AND Transmission parameters need to be logged
THEN:
• Transmission parameters including broker configuration, message type, and processing flags are recorded in A9RT segment
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when transmission parameters have been logged.
Trigger Criteria:
Context: Transmission parameters have been logged
Applied to: Create Transmission Dependent Segment
Action: Detailed transmission information needs to be stored
Logic Flow:
IF Transmission parameters have been logged
AND Detailed transmission information needs to be stored
THEN:
• A9DP transmission dependent segment is created with message details and cargo information
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when transmission dependent segment has been created.
Trigger Criteria:
Context: A transmission dependent segment has been created
Applied to: Log EDI Message Details
Action: EDI message details need to be logged
Logic Flow:
IF A transmission dependent segment has been created
AND EDI message details need to be logged
THEN:
• Message content, structure, and cargo details are recorded in A9DP segment
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when edi message details have been logged.
Trigger Criteria:
Context: EDI message details have been logged
Applied to: Prepare GCT1091E Transaction
Action: KCSM transmission transaction needs to be prepared
Logic Flow:
IF EDI message details have been logged
AND KCSM transmission transaction needs to be prepared
THEN:
• GCT1091E transaction is prepared with transmission segments, broker information, and message data
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when gct1091e transaction has been prepared.
Trigger Criteria:
Context: GCT1091E transaction has been prepared
Applied to: Log Transaction Spawn Parameters
Action: Transaction spawn parameters need to be logged
Logic Flow:
IF GCT1091E transaction has been prepared
AND Transaction spawn parameters need to be logged
THEN:
• Spawn parameters including transaction ID, broker ID, and message parameters are recorded in AECWRKTB work table
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when transaction spawn parameters have been logged.
Trigger Criteria:
Context: Transaction spawn parameters have been logged
Applied to: Execute KCSM Transaction Spawn
Action: KCSM transaction needs to be executed
Logic Flow:
IF Transaction spawn parameters have been logged
AND KCSM transaction needs to be executed
THEN:
• GCT1091E transaction is spawned to process KCSM transmission
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when kcsm transaction has been executed.
Trigger Criteria:
Context: KCSM transaction has been executed
Applied to: Transaction Successful?
Action: Transaction completion status needs to be evaluated
Logic Flow:
IF KCSM transaction has been executed
AND Transaction completion status needs to be evaluated
THEN:
• Transaction is successful if return code indicates normal completion without errors
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when kcsm transaction completed successfully.
Trigger Criteria:
Context: KCSM transaction completed successfully
Applied to: Log Success Status
Action: Success status needs to be logged
Logic Flow:
IF KCSM transaction completed successfully
AND Success status needs to be logged
THEN:
• Success status and completion timestamp are recorded in transmission records
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when kcsm transaction failed to complete successfully.
Trigger Criteria:
Context: KCSM transaction failed to complete successfully
Applied to: Log Error Status and Details
Action: Error status and details need to be logged
Logic Flow:
IF KCSM transaction failed to complete successfully
AND Error status and details need to be logged
THEN:
• Error status, error codes, and failure details are recorded in transmission records
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when transaction completion status has been logged.
Trigger Criteria:
Context: Transaction completion status has been logged
Applied to: Update Transmission Status
Action: Transmission status needs to be updated
Logic Flow:
IF Transaction completion status has been logged
AND Transmission status needs to be updated
THEN:
• Overall transmission status is updated to reflect success or failure in A9RT and A9DP segments
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when transmission status has been updated.
Trigger Criteria:
Context: Transmission status has been updated
Applied to: Log Final Transmission Status
Action: Final transmission status needs to be logged
Logic Flow:
IF Transmission status has been updated
AND Final transmission status needs to be logged
THEN:
• Final status, completion timestamp, and summary information are recorded for audit trail
R-GCX016-cbl-02021File: GCX016.cblBusiness Rule: Database Transaction Control
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when system requires database transaction control for ims database transaction purging cleanup operations.
Trigger Criteria:
Context: The system requires database transaction control for IMS database transaction purging cleanup operations
Applied to: Database Transaction Control - Manage IMS database transaction purging for cleanup operations
Action: Business process 162 is referenced or called
Logic Flow:
IF The system requires database transaction control for IMS database transaction purging cleanup operations
AND Business process 162 is referenced or called
THEN:
• The system indicates that no source code is available for this functionality in the provided program summary
R-GCX016-cbl-02022 (+14)File: GCX016.cblBusiness Rule: Train Equipment Hold Processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when hmi train hold disposition code has been processed. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: An HMI train hold disposition code has been processed
Applied to: VID Segments Available?
Action: The system checks for available VID segments in the message
Logic Flow:
IF An HMI train hold disposition code has been processed
AND The system checks for available VID segments in the message
THEN:
• If VID segments are available, proceed to read VID segments, otherwise complete equipment hold processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when vid segments are available for processing. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: VID segments are available for processing
Applied to: Read Next VID Segment
Action: The system processes VID segments sequentially
Logic Flow:
IF VID segments are available for processing
AND The system processes VID segments sequentially
THEN:
• Read the next VID segment from the message queue
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when vid segment has been read from the message. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: A VID segment has been read from the message
Applied to: Extract Equipment ID from VID Segment
Action: The system processes the VID segment content
Logic Flow:
IF A VID segment has been read from the message
AND The system processes the VID segment content
THEN:
• Extract the equipment ID information from the VID segment data
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when equipment id has been extracted from the vid segment. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: Equipment ID has been extracted from the VID segment
Applied to: Format Equipment ID using GCCCARFM
Action: The system needs to format the equipment ID for validation
Logic Flow:
IF Equipment ID has been extracted from the VID segment
AND The system needs to format the equipment ID for validation
THEN:
• Call GCCCARFM to format the equipment ID into standard format
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when equipment id has been formatted using gcccarfm.
Trigger Criteria:
Context: Equipment ID has been formatted using GCCCARFM
Applied to: Equipment ID Valid?
Action: The system validates the equipment ID
Logic Flow:
IF Equipment ID has been formatted using GCCCARFM
AND The system validates the equipment ID
THEN:
• If equipment ID is valid, proceed to hold the equipment, otherwise skip this equipment and continue to next VID segment
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when equipment id has been validated as valid.
Trigger Criteria:
Context: Equipment ID has been validated as valid
Applied to: Hold Specific Equipment on Train
Action: The system processes the equipment hold request
Logic Flow:
IF Equipment ID has been validated as valid
AND The system processes the equipment hold request
THEN:
• Apply hold status to the specific equipment on the train
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when specific equipment has been successfully held on the train.
Trigger Criteria:
Context: Specific equipment has been successfully held on the train
Applied to: Increment Held Equipment Counter
Action: The system updates hold statistics
Logic Flow:
IF Specific equipment has been successfully held on the train
AND The system updates hold statistics
THEN:
• Increment the held equipment counter by one
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when equipment has been held and counter has been incremented.
Trigger Criteria:
Context: Equipment has been held and counter has been incremented
Applied to: Log Equipment Hold Action
Action: The system completes the hold action
Logic Flow:
IF Equipment has been held and counter has been incremented
AND The system completes the hold action
THEN:
• Log the equipment hold action with equipment ID and timestamp
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when current vid segment has been processed (either held or skipped).
Trigger Criteria:
Context: Current VID segment has been processed (either held or skipped)
Applied to: More VID Segments?
Action: The system checks for remaining VID segments
Logic Flow:
IF Current VID segment has been processed (either held or skipped)
AND The system checks for remaining VID segments
THEN:
• If more VID segments exist, continue processing next segment, otherwise proceed to update train hold status
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when equipment id has been validated and found invalid.
Trigger Criteria:
Context: Equipment ID has been validated and found invalid
Applied to: Skip Invalid Equipment ID
Action: The system encounters an invalid equipment ID
Logic Flow:
IF Equipment ID has been validated and found invalid
AND The system encounters an invalid equipment ID
THEN:
• Skip hold processing for this equipment and continue to check for more VID segments
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when all vid segments have been processed.
Trigger Criteria:
Context: All VID segments have been processed
Applied to: Update Train Hold Status
Action: The system finalizes equipment hold processing
Logic Flow:
IF All VID segments have been processed
AND The system finalizes equipment hold processing
THEN:
• Update the train hold status based on the number of equipment units held
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when train hold status has been updated with held equipment count.
Trigger Criteria:
Context: Train hold status has been updated with held equipment count
Applied to: All Equipment Held?
Action: The system evaluates the completeness of equipment holds
Logic Flow:
IF Train hold status has been updated with held equipment count
AND The system evaluates the completeness of equipment holds
THEN:
• If all equipment on train is held, set complete train hold status, otherwise set partial train hold status
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when all equipment on the train has been successfully held.
Trigger Criteria:
Context: All equipment on the train has been successfully held
Applied to: Set Complete Train Hold Status
Action: The system sets the final train hold status
Logic Flow:
IF All equipment on the train has been successfully held
AND The system sets the final train hold status
THEN:
• Set the train status to complete hold
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when only some equipment on the train has been held (not all equipment).
Trigger Criteria:
Context: Only some equipment on the train has been held (not all equipment)
Applied to: Set Partial Train Hold Status
Action: The system sets the final train hold status
Logic Flow:
IF Only some equipment on the train has been held (not all equipment)
AND The system sets the final train hold status
THEN:
• Set the train status to partial hold
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when train hold status has been set (either complete or partial hold).
Trigger Criteria:
Context: Train hold status has been set (either complete or partial hold)
Applied to: Equipment Hold Processing Complete
Action: The system finalizes equipment hold processing
Logic Flow:
IF Train hold status has been set (either complete or partial hold)
AND The system finalizes equipment hold processing
Business Justification: Governs the functional prerequisites and system routing when message contains hre disposition code followed by vid segments.
Trigger Criteria:
Context: A message contains HRE disposition code followed by VID segments
Applied to: VID Segment Following HRE Code Detected
Action: The system processes the message segments in sequence
Logic Flow:
IF A message contains HRE disposition code followed by VID segments
AND The system processes the message segments in sequence
THEN:
• VID segments following HRE codes are identified for equipment release processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when vid segment contains equipment identification data.
Trigger Criteria:
Context: A VID segment contains equipment identification data
Applied to: Extract Equipment ID from VID Segment
Action: The system processes the VID segment
Logic Flow:
IF A VID segment contains equipment identification data
AND The system processes the VID segment
THEN:
• Equipment ID is extracted from the VID segment for further processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when equipment id has been extracted from vid segment.
Trigger Criteria:
Context: An equipment ID has been extracted from VID segment
Applied to: Format Equipment ID using GCCCARFM
Action: The system needs to format the equipment ID
Logic Flow:
IF An equipment ID has been extracted from VID segment
AND The system needs to format the equipment ID
THEN:
• GCCCARFM utility is called to format the equipment ID to standard format
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when equipment id has been formatted.
Trigger Criteria:
Context: An equipment ID has been formatted
Applied to: Equipment ID Valid?
Action: The system validates the equipment ID
Logic Flow:
IF An equipment ID has been formatted
AND The system validates the equipment ID
THEN:
• Equipment ID is accepted if valid or rejected if invalid with appropriate error logging
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when valid equipment id exists.
Trigger Criteria:
Context: A valid equipment ID exists
Applied to: Get Train Record from GCWTL-TRAIN-LIST
Action: The system needs to process equipment release
Logic Flow:
IF A valid equipment ID exists
AND The system needs to process equipment release
THEN:
• Train record is retrieved from GCWTL-TRAIN-LIST database
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when train record lookup has been performed.
Trigger Criteria:
Context: A train record lookup has been performed
Applied to: Train Found?
Action: The system checks the lookup result
Logic Flow:
IF A train record lookup has been performed
AND The system checks the lookup result
THEN:
• Processing continues if train is found or error is logged if train is not found
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when train record exists and equipment id is valid.
Trigger Criteria:
Context: A train record exists and equipment ID is valid
Applied to: Search for Equipment in Train's Held Equipment List
Action: The system searches for equipment in the train's held equipment list
Logic Flow:
IF A train record exists and equipment ID is valid
AND The system searches for equipment in the train's held equipment list
THEN:
• Equipment is located in the held list or not found status is determined
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when equipment search in held list has been completed.
Trigger Criteria:
Context: Equipment search in held list has been completed
Applied to: Equipment Found in Held List?
Action: The system checks if equipment was found in held list
Logic Flow:
IF Equipment search in held list has been completed
AND The system checks if equipment was found in held list
THEN:
• Equipment release proceeds if found or error is logged if not found in held list
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when equipment is found in the train's held equipment list.
Trigger Criteria:
Context: Equipment is found in the train's held equipment list
Applied to: Remove Equipment from Held Equipment List
Action: Equipment release is authorized
Logic Flow:
IF Equipment is found in the train's held equipment list
AND Equipment release is authorized
THEN:
• Equipment is removed from the held equipment list
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when equipment has been removed from held equipment list.
Trigger Criteria:
Context: Equipment has been removed from held equipment list
Applied to: Decrement Train's Held Equipment Count
Action: The system updates train statistics
Logic Flow:
IF Equipment has been removed from held equipment list
AND The system updates train statistics
THEN:
• Train's held equipment count is decremented by one
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when equipment has been released and count has been decremented.
Trigger Criteria:
Context: Equipment has been released and count has been decremented
Applied to: Any Equipment Still Held on Train?
Action: The system checks remaining held equipment count
Logic Flow:
IF Equipment has been released and count has been decremented
AND The system checks remaining held equipment count
THEN:
• Train status is determined based on whether any equipment remains held
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when no equipment remains held on the train.
Trigger Criteria:
Context: No equipment remains held on the train
Applied to: Update Train Status to Released
Action: The system updates train status
Logic Flow:
IF No equipment remains held on the train
AND The system updates train status
THEN:
• Train status is updated to released
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when train record has been modified with equipment release information.
Trigger Criteria:
Context: Train record has been modified with equipment release information
Applied to: Update Train Record in Database
Action: The system commits changes
Logic Flow:
IF Train record has been modified with equipment release information
AND The system commits changes
THEN:
• Train record is updated in the database with current status and equipment information
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when equipment has been successfully released from hold.
Trigger Criteria:
Context: Equipment has been successfully released from hold
Applied to: Log Equipment Release Action
Action: The system completes the release process
Logic Flow:
IF Equipment has been successfully released from hold
AND The system completes the release process
THEN:
• Equipment release action is logged with relevant details for audit purposes
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when equipment id formatting fails.
Trigger Criteria:
Context: Equipment ID formatting fails
Applied to: Log Equipment ID Format Error
Action: The system encounters invalid equipment ID format
Logic Flow:
IF Equipment ID formatting fails
AND The system encounters invalid equipment ID format
THEN:
• Equipment ID format error is logged and processing continues with next VID segment
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when train record lookup fails.
Trigger Criteria:
Context: Train record lookup fails
Applied to: Log Train Not Found Error
Action: The system cannot find the train in the database
Logic Flow:
IF Train record lookup fails
AND The system cannot find the train in the database
THEN:
• Train not found error is logged and processing continues with next VID segment
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when equipment search in held list returns no results.
Trigger Criteria:
Context: Equipment search in held list returns no results
Applied to: Log Equipment Not Found in Held List
Action: The system cannot locate equipment in held list
Logic Flow:
IF Equipment search in held list returns no results
AND The system cannot locate equipment in held list
THEN:
• Equipment not found in held list error is logged and processing continues with next VID segment
Business Justification: Dictates the expected operational logic and validation steps when sei disposition code has been processed for a train.
Trigger Criteria:
Context: A SEI disposition code has been processed for a train
Applied to: VID Segment Available?
Action: The system checks for VID segments in the message
Logic Flow:
IF A SEI disposition code has been processed for a train
AND The system checks for VID segments in the message
THEN:
• If VID segments are present, proceed to extract equipment information, otherwise complete seizure processing without equipment-specific actions
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when vid segment is available in the message.
Trigger Criteria:
Context: A VID segment is available in the message
Applied to: Extract Equipment ID from VID Segment
Action: The system processes the VID segment
Logic Flow:
IF A VID segment is available in the message
AND The system processes the VID segment
THEN:
• Extract the equipment ID from the VID segment data for validation and seizure processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when equipment id has been extracted from a vid segment.
Trigger Criteria:
Context: An equipment ID has been extracted from a VID segment
Applied to: Validate Equipment ID Format
Action: The system validates the equipment ID format
Logic Flow:
IF An equipment ID has been extracted from a VID segment
AND The system validates the equipment ID format
THEN:
• Verify the equipment ID conforms to standard format requirements for train equipment identification
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when equipment id has been validated for format compliance.
Trigger Criteria:
Context: An equipment ID has been validated for format compliance
Applied to: Equipment ID Valid?
Action: The system evaluates the validation results
Logic Flow:
IF An equipment ID has been validated for format compliance
AND The system evaluates the validation results
THEN:
• If the equipment ID is valid, proceed with seizure marking, otherwise skip the invalid equipment and log an error
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when valid equipment id has been identified for seizure.
Trigger Criteria:
Context: A valid equipment ID has been identified for seizure
Applied to: Mark Equipment as Seized
Action: The system processes the seizure action
Logic Flow:
IF A valid equipment ID has been identified for seizure
AND The system processes the seizure action
THEN:
• Mark the equipment as seized and update its status in the system
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when equipment has been marked as seized.
Trigger Criteria:
Context: Equipment has been marked as seized
Applied to: Update Equipment Seizure Status
Action: The system updates equipment records
Logic Flow:
IF Equipment has been marked as seized
AND The system updates equipment records
THEN:
• Update the equipment seizure status in the database with current seizure information
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when equipment seizure status has been updated.
Trigger Criteria:
Context: Equipment seizure status has been updated
Applied to: Increment Train Seized Equipment Count
Action: The system processes the seizure count
Logic Flow:
IF Equipment seizure status has been updated
AND The system processes the seizure count
THEN:
• Increment the train's seized equipment counter by one
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when one vid segment has been processed for equipment seizure.
Trigger Criteria:
Context: One VID segment has been processed for equipment seizure
Applied to: Check if More VID Segments
Action: The system checks for additional VID segments
Logic Flow:
IF One VID segment has been processed for equipment seizure
AND The system checks for additional VID segments
THEN:
• Determine if more VID segments are available for processing additional equipment seizures
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when system has checked for additional vid segments.
Trigger Criteria:
Context: The system has checked for additional VID segments
Applied to: More VID Segments?
Action: The system evaluates VID segment availability
Logic Flow:
IF The system has checked for additional VID segments
AND The system evaluates VID segment availability
THEN:
• If more VID segments exist, continue processing them, otherwise proceed to update overall train seizure status
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when all vid segments have been processed for equipment seizure.
Trigger Criteria:
Context: All VID segments have been processed for equipment seizure
Applied to: Update Train Seizure Status
Action: The system updates train seizure status
Logic Flow:
IF All VID segments have been processed for equipment seizure
AND The system updates train seizure status
THEN:
• Update the train's overall seizure status based on the number of equipment items seized
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when train seizure status has been updated with seized equipment count.
Trigger Criteria:
Context: Train seizure status has been updated with seized equipment count
Applied to: All Equipment Seized?
Action: The system evaluates total seizure coverage
Logic Flow:
IF Train seizure status has been updated with seized equipment count
AND The system evaluates total seizure coverage
THEN:
• If all equipment on the train is seized, set train as fully seized, otherwise set as partially seized
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when all equipment on the train has been seized.
Trigger Criteria:
Context: All equipment on the train has been seized
Applied to: Set Train as Fully Seized
Action: The system sets the train seizure status
Logic Flow:
IF All equipment on the train has been seized
AND The system sets the train seizure status
THEN:
• Set the train status to fully seized indicating complete seizure of all equipment
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when some but not all equipment on the train has been seized.
Trigger Criteria:
Context: Some but not all equipment on the train has been seized
Applied to: Set Train as Partially Seized
Action: The system sets the train seizure status
Logic Flow:
IF Some but not all equipment on the train has been seized
AND The system sets the train seizure status
THEN:
• Set the train status to partially seized indicating incomplete seizure of equipment
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when equipment has been successfully seized and status updated.
Trigger Criteria:
Context: Equipment has been successfully seized and status updated
Applied to: Log Equipment Seizure Action
Action: The system performs logging operations
Logic Flow:
IF Equipment has been successfully seized and status updated
AND The system performs logging operations
THEN:
• Log the equipment seizure action with equipment ID, seizure timestamp, and related details
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when equipment id has failed validation checks.
Trigger Criteria:
Context: An equipment ID has failed validation checks
Applied to: Skip Invalid Equipment ID
Action: The system processes the invalid equipment ID
Logic Flow:
IF An equipment ID has failed validation checks
AND The system processes the invalid equipment ID
THEN:
• Skip seizure processing for the invalid equipment ID and continue with next VID segment
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when invalid equipment id has been skipped.
Trigger Criteria:
Context: An invalid equipment ID has been skipped
Applied to: Log Equipment ID Error
Action: The system performs error logging
Logic Flow:
IF An invalid equipment ID has been skipped
AND The system performs error logging
THEN:
• Log the equipment ID error with details about the validation failure and continue processing
Business Justification: Ensures correct system behavior and process compliance when ser disposition code has been processed for a train.
Trigger Criteria:
Context: A SER disposition code has been processed for a train
Applied to: VID Segments Available?
Action: The system checks for available VID segments to process equipment seizure release
Logic Flow:
IF A SER disposition code has been processed for a train
AND The system checks for available VID segments to process equipment seizure release
THEN:
• If VID segments are available, proceed to process equipment seizure release, otherwise complete the seizure release process
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when vid segment is available for processing.
Trigger Criteria:
Context: A VID segment is available for processing
Applied to: Extract Equipment ID from VID Segment
Action: The system processes the VID segment
Logic Flow:
IF A VID segment is available for processing
AND The system processes the VID segment
THEN:
• Extract the equipment ID from the VID segment data
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when equipment id has been extracted from a vid segment.
Trigger Criteria:
Context: An equipment ID has been extracted from a VID segment
Applied to: Equipment ID Valid?
Action: The system validates the equipment ID format
Logic Flow:
IF An equipment ID has been extracted from a VID segment
AND The system validates the equipment ID format
THEN:
• If the equipment ID format is valid, proceed to find equipment in seized list, otherwise skip this invalid equipment ID
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when valid equipment id has been extracted from vid segment.
Trigger Criteria:
Context: A valid equipment ID has been extracted from VID segment
Applied to: Equipment Found in Seized List?
Action: The system searches for the equipment in the train's seized equipment list
Logic Flow:
IF A valid equipment ID has been extracted from VID segment
AND The system searches for the equipment in the train's seized equipment list
THEN:
• If equipment is found in the seized list, proceed to release it from seizure, otherwise no action is required as equipment is not currently seized
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when equipment is found in the train's seized equipment list.
Trigger Criteria:
Context: Equipment is found in the train's seized equipment list
Applied to: Remove Equipment from Seized Status
Action: The system processes the seizure release
Logic Flow:
IF Equipment is found in the train's seized equipment list
AND The system processes the seizure release
THEN:
• Remove the equipment from seized status and update the equipment seizure flag to released
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when equipment has been successfully removed from seized status.
Trigger Criteria:
Context: Equipment has been successfully removed from seized status
Applied to: Decrement Train Seized Equipment Count
Action: The system updates train seizure statistics
Logic Flow:
IF Equipment has been successfully removed from seized status
AND The system updates train seizure statistics
THEN:
• Decrement the train's total seized equipment count by one
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when one vid segment has been processed for equipment seizure release.
Trigger Criteria:
Context: One VID segment has been processed for equipment seizure release
Applied to: More VID Segments?
Action: The system checks for additional VID segments
Logic Flow:
IF One VID segment has been processed for equipment seizure release
AND The system checks for additional VID segments
THEN:
• If more VID segments exist, continue processing the next VID segment, otherwise proceed to check train overall seizure status
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when all vid segments have been processed for equipment seizure release.
Trigger Criteria:
Context: All VID segments have been processed for equipment seizure release
Applied to: Any Equipment Still Seized?
Action: The system evaluates the train's overall seizure status
Logic Flow:
IF All VID segments have been processed for equipment seizure release
AND The system evaluates the train's overall seizure status
THEN:
• If any equipment is still seized, keep train in seized status, otherwise release train from seizure status
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when train's overall seizure status has been determined.
Trigger Criteria:
Context: Train's overall seizure status has been determined
Applied to: Update Train Seizure Status in Database
Action: The system updates the database
Logic Flow:
IF Train's overall seizure status has been determined
AND The system updates the database
THEN:
• Update the train seizure status in the database to reflect current seizure state
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when equipment seizure release processing has been completed.
Trigger Criteria:
Context: Equipment seizure release processing has been completed
Applied to: Log Equipment Seizure Release Activity
Action: The system performs activity logging
Logic Flow:
IF Equipment seizure release processing has been completed
AND The system performs activity logging
THEN:
• Log all equipment seizure release activities including equipment IDs, timestamps, and status changes
R-GCX016-cbl-02080 (+14)File: GCX016.cblBusiness Rule: Equipment Hold Count Management
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when vid segment is received after an hmi event code and the disposition code is hmi.
Trigger Criteria:
Context: A VID segment is received after an HMI event code AND the disposition code is HMI
Applied to: HMI - Hold Equipment
Action: The system processes the HMI disposition code for equipment hold
Logic Flow:
IF A VID segment is received after an HMI event code AND the disposition code is HMI
AND The system processes the HMI disposition code for equipment hold
THEN:
• The equipment is added to the hold list AND the held equipment counter is incremented AND the train status is set to HELD
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when vid segment is received after an hre event code and the disposition code is hre.
Trigger Criteria:
Context: A VID segment is received after an HRE event code AND the disposition code is HRE
Applied to: HRE - Release Equipment
Action: The system processes the HRE disposition code for equipment release
Logic Flow:
IF A VID segment is received after an HRE event code AND the disposition code is HRE
AND The system processes the HRE disposition code for equipment release
THEN:
• The equipment is removed from the hold list AND the held equipment counter is decremented
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when vid segment contains equipment information.
Trigger Criteria:
Context: A VID segment contains equipment information
Applied to: Extract Equipment ID from VID Segment
Action: The system processes the VID segment for equipment hold or release
Logic Flow:
IF A VID segment contains equipment information
AND The system processes the VID segment for equipment hold or release
THEN:
• The equipment ID is extracted from the VID segment data
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when equipment id has been extracted from a vid segment.
Trigger Criteria:
Context: An equipment ID has been extracted from a VID segment
Applied to: Format Equipment ID Using GCCCARFM
Action: The system needs to format the equipment ID for processing
Logic Flow:
IF An equipment ID has been extracted from a VID segment
AND The system needs to format the equipment ID for processing
THEN:
• The GCCCARFM program is called to format the equipment ID
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when equipment id has been formatted using gcccarfm.
Trigger Criteria:
Context: An equipment ID has been formatted using GCCCARFM
Applied to: Equipment ID Valid?
Action: The system validates the equipment ID
Logic Flow:
IF An equipment ID has been formatted using GCCCARFM
AND The system validates the equipment ID
THEN:
• IF the equipment ID is valid THEN continue with hold/release processing ELSE skip the invalid equipment
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when equipment id is valid and disposition code is hmi.
Trigger Criteria:
Context: Equipment ID is valid AND disposition code is HMI
Applied to: Add Equipment to Hold List
Action: The system processes the equipment hold request
Logic Flow:
IF Equipment ID is valid AND disposition code is HMI
AND The system processes the equipment hold request
THEN:
• The equipment is added to the train's equipment hold list
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when equipment has been added to the hold list.
Trigger Criteria:
Context: Equipment has been added to the hold list
Applied to: Increment Held Equipment Counter
Action: The system updates the held equipment count
Logic Flow:
IF Equipment has been added to the hold list
AND The system updates the held equipment count
THEN:
• The held equipment counter is incremented by one
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when equipment id is valid and disposition code is hre.
Trigger Criteria:
Context: Equipment ID is valid AND disposition code is HRE
Applied to: Remove Equipment from Hold List
Action: The system processes the equipment release request
Logic Flow:
IF Equipment ID is valid AND disposition code is HRE
AND The system processes the equipment release request
THEN:
• The equipment is removed from the train's equipment hold list
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when equipment has been removed from the hold list.
Trigger Criteria:
Context: Equipment has been removed from the hold list
Applied to: Decrement Held Equipment Counter
Action: The system updates the held equipment count
Logic Flow:
IF Equipment has been removed from the hold list
AND The system updates the held equipment count
THEN:
• The held equipment counter is decremented by one
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when held equipment counter has been updated.
Trigger Criteria:
Context: The held equipment counter has been updated
Applied to: Any Equipment Still Held?
Action: The system determines the train's overall hold status
Logic Flow:
IF The held equipment counter has been updated
AND The system determines the train's overall hold status
THEN:
• IF any equipment is still held THEN set train status to HELD ELSE set train status to RELEASED
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when equipment has been added to hold list or equipment still remains on hold list after release processing.
Trigger Criteria:
Context: Equipment has been added to hold list OR equipment still remains on hold list after release processing
Applied to: HELD
Action: The system updates the train status
Logic Flow:
IF Equipment has been added to hold list OR equipment still remains on hold list after release processing
AND The system updates the train status
THEN:
• The train status is set to HELD
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when no equipment remains on the hold list after release processing.
Trigger Criteria:
Context: No equipment remains on the hold list after release processing
Applied to: RELEASED
Action: The system updates the train status
Logic Flow:
IF No equipment remains on the hold list after release processing
AND The system updates the train status
THEN:
• The train status is set to RELEASED
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when train status has been determined as held or released.
Trigger Criteria:
Context: The train status has been determined as HELD or RELEASED
Applied to: Update Train Hold Status in Database
Action: The system updates the database
Logic Flow:
IF The train status has been determined as HELD or RELEASED
AND The system updates the database
THEN:
• The train hold status is updated in the GCWTL-TRAIN-LIST database AND the train status database
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when equipment hold or release processing has been completed.
Trigger Criteria:
Context: Equipment hold or release processing has been completed
Applied to: Log Equipment Hold/Release Action
Action: The system logs the action
Logic Flow:
IF Equipment hold or release processing has been completed
AND The system logs the action
THEN:
• The equipment hold or release action is logged with equipment ID and action type
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when equipment id validation fails.
Trigger Criteria:
Context: Equipment ID validation fails
Applied to: Skip Invalid Equipment
Action: The system encounters invalid equipment
Logic Flow:
IF Equipment ID validation fails
AND The system encounters invalid equipment
THEN:
• The invalid equipment is skipped AND processing continues with the next VID segment
Business Justification: Ensures correct system behavior and process compliance when vid segment is received with sei disposition code.
Trigger Criteria:
Context: A VID segment is received with SEI disposition code
Applied to: VID Segment with SEI Disposition Code Received
Action: The system processes the VID segment
Logic Flow:
IF A VID segment is received with SEI disposition code
AND The system processes the VID segment
THEN:
• The equipment ID is extracted from the VID segment and seizure processing is initiated
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when vid segment contains equipment information.
Trigger Criteria:
Context: A VID segment contains equipment information
Applied to: Extract Equipment ID from VID Segment
Action: The system processes the VID segment
Logic Flow:
IF A VID segment contains equipment information
AND The system processes the VID segment
THEN:
• The equipment ID is extracted from the VID segment data
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when equipment id has been extracted from vid segment.
Trigger Criteria:
Context: An equipment ID has been extracted from VID segment
Applied to: Validate Equipment ID Format
Action: The system validates the equipment ID format
Logic Flow:
IF An equipment ID has been extracted from VID segment
AND The system validates the equipment ID format
THEN:
• The equipment ID format is checked against validation criteria
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when equipment id has been validated for format.
Trigger Criteria:
Context: An equipment ID has been validated for format
Applied to: Equipment ID Valid?
Action: The system checks equipment ID validity
Logic Flow:
IF An equipment ID has been validated for format
AND The system checks equipment ID validity
THEN:
• If equipment ID is valid, proceed with seizure processing, otherwise generate error for invalid equipment ID
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when equipment id is valid for seizure processing.
Trigger Criteria:
Context: Equipment ID is valid for seizure processing
Applied to: Mark Equipment as Seized
Action: The system processes SEI disposition code
Logic Flow:
IF Equipment ID is valid for seizure processing
AND The system processes SEI disposition code
THEN:
• The equipment is marked as seized in the system
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when equipment has been marked as seized.
Trigger Criteria:
Context: Equipment has been marked as seized
Applied to: Increment Train Seized Equipment Count
Action: The system updates train seizure statistics
Logic Flow:
IF Equipment has been marked as seized
AND The system updates train seizure statistics
THEN:
• The train seized equipment count is incremented by one
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when train seized equipment count has been incremented.
Trigger Criteria:
Context: Train seized equipment count has been incremented
Applied to: Update Train Seizure Status
Action: The system evaluates train seizure status
Logic Flow:
IF Train seized equipment count has been incremented
AND The system evaluates train seizure status
THEN:
• The train seizure status is updated based on seized equipment count
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when train seizure status has been updated.
Trigger Criteria:
Context: Train seizure status has been updated
Applied to: All Equipment on Train Seized?
Action: The system checks if all equipment on train is seized
Logic Flow:
IF Train seizure status has been updated
AND The system checks if all equipment on train is seized
THEN:
• If all equipment is seized, set train to fully seized status, otherwise set to partially seized status
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when all equipment on the train has been seized.
Trigger Criteria:
Context: All equipment on the train has been seized
Applied to: Set Train Status to Fully Seized
Action: The system updates train status
Logic Flow:
IF All equipment on the train has been seized
AND The system updates train status
THEN:
• The train status is set to fully seized
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when some equipment on the train has been seized but not all equipment.
Trigger Criteria:
Context: Some equipment on the train has been seized but not all equipment
Applied to: Set Train Status to Partially Seized
Action: The system updates train status
Logic Flow:
IF Some equipment on the train has been seized but not all equipment
AND The system updates train status
THEN:
• The train status is set to partially seized
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when vid segment is received with ser disposition code.
Trigger Criteria:
Context: A VID segment is received with SER disposition code
Applied to: VID Segment with SER Disposition Code Received
Action: The system processes the VID segment
Logic Flow:
IF A VID segment is received with SER disposition code
AND The system processes the VID segment
THEN:
• The equipment ID is extracted from the VID segment and seizure release processing is initiated
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when equipment id has been validated for format during release processing.
Trigger Criteria:
Context: An equipment ID has been validated for format during release processing
Applied to: Equipment ID Valid?
Action: The system checks equipment ID validity for release
Logic Flow:
IF An equipment ID has been validated for format during release processing
AND The system checks equipment ID validity for release
THEN:
• If equipment ID is valid, proceed with seizure release processing, otherwise generate error for invalid equipment ID
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when equipment id is valid for seizure release processing.
Trigger Criteria:
Context: Equipment ID is valid for seizure release processing
Applied to: Remove Seizure Status from Equipment
Action: The system processes SER disposition code
Logic Flow:
IF Equipment ID is valid for seizure release processing
AND The system processes SER disposition code
THEN:
• The seizure status is removed from the equipment in the system
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when equipment seizure status has been removed.
Trigger Criteria:
Context: Equipment seizure status has been removed
Applied to: Decrement Train Seized Equipment Count
Action: The system updates train seizure statistics
Logic Flow:
IF Equipment seizure status has been removed
AND The system updates train seizure statistics
THEN:
• The train seized equipment count is decremented by one
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when train seized equipment count has been decremented.
Trigger Criteria:
Context: Train seized equipment count has been decremented
Applied to: Update Train Seizure Status
Action: The system evaluates train seizure status
Logic Flow:
IF Train seized equipment count has been decremented
AND The system evaluates train seizure status
THEN:
• The train seizure status is updated based on remaining seized equipment count
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when train seizure status has been updated after equipment release.
Trigger Criteria:
Context: Train seizure status has been updated after equipment release
Applied to: Any Equipment Still Seized?
Action: The system checks if any equipment on train is still seized
Logic Flow:
IF Train seizure status has been updated after equipment release
AND The system checks if any equipment on train is still seized
THEN:
• If any equipment remains seized, set train to partially seized status, otherwise set to not seized status
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when no equipment on the train remains seized.
Trigger Criteria:
Context: No equipment on the train remains seized
Applied to: Set Train Status to Not Seized
Action: The system updates train status after release
Logic Flow:
IF No equipment on the train remains seized
AND The system updates train status after release
THEN:
• The train status is set to not seized
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when equipment has been marked as seized and train status updated.
Trigger Criteria:
Context: Equipment has been marked as seized and train status updated
Applied to: Log Equipment Seizure Action
Action: The system completes seizure processing
Logic Flow:
IF Equipment has been marked as seized and train status updated
AND The system completes seizure processing
THEN:
• The equipment seizure action is logged in the system
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when equipment seizure has been released and train status updated.
Trigger Criteria:
Context: Equipment seizure has been released and train status updated
Applied to: Log Equipment Seizure Release Action
Action: The system completes seizure release processing
Logic Flow:
IF Equipment seizure has been released and train status updated
AND The system completes seizure release processing
THEN:
• The equipment seizure release action is logged in the system
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when equipment id format validation has failed.
Trigger Criteria:
Context: Equipment ID format validation has failed
Applied to: Invalid Equipment ID
Action: The system encounters invalid equipment ID
Logic Flow:
IF Equipment ID format validation has failed
AND The system encounters invalid equipment ID
THEN:
• An error is generated for invalid equipment ID and processing stops
R-GCX016-cbl-02115 (+14)File: GCX016.cblBusiness Rule: Train Pre
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when train processing request is received with train information.
Trigger Criteria:
Context: A train processing request is received with train information
Applied to: Is Train Export Manifest?
Action: The system evaluates the train type and manifest designation
Logic Flow:
IF A train processing request is received with train information
AND The system evaluates the train type and manifest designation
THEN:
• The system identifies whether the train is an export manifest train and proceeds with appropriate processing path
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when export manifest train is being processed.
Trigger Criteria:
Context: An export manifest train is being processed
Applied to: Is Port Configured for Export Processing?
Action: The system checks the destination port configuration in the port tables
Logic Flow:
IF An export manifest train is being processed
AND The system checks the destination port configuration in the port tables
THEN:
• The system determines if the port is authorized and configured for export processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when m10 segment containing train manifest information is received.
Trigger Criteria:
Context: An M10 segment containing train manifest information is received
Applied to: Validate Train Information from M10 Segment
Action: The system processes the M10 segment data
Logic Flow:
IF An M10 segment containing train manifest information is received
AND The system processes the M10 segment data
THEN:
• The system validates train name, route, and other essential train information for completeness and accuracy
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when train information has been validated from the m10 segment.
Trigger Criteria:
Context: Train information has been validated from the M10 segment
Applied to: Check Train Existence in GCWTL-TRAIN-LIST
Action: The system searches the GCWTL-TRAIN-LIST table using the train identifier
Logic Flow:
IF Train information has been validated from the M10 segment
AND The system searches the GCWTL-TRAIN-LIST table using the train identifier
THEN:
• The system confirms whether the train exists in the master train registry
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when system has searched for the train in gcwtl-train-list.
Trigger Criteria:
Context: The system has searched for the train in GCWTL-TRAIN-LIST
Applied to: Train Found?
Action: The search results are evaluated
Logic Flow:
IF The system has searched for the train in GCWTL-TRAIN-LIST
AND The search results are evaluated
THEN:
• If train is found, proceed with pre-arrival processing; if not found, generate error message
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when export manifest train has been found in the master train list.
Trigger Criteria:
Context: An export manifest train has been found in the master train list
Applied to: Set Pre-arrival Status
Action: The system processes the train for pre-arrival
Logic Flow:
IF An export manifest train has been found in the master train list
AND The system processes the train for pre-arrival
THEN:
• The system sets the train status to pre-arrival state for export processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when train has been assigned pre-arrival status.
Trigger Criteria:
Context: A train has been assigned pre-arrival status
Applied to: Update Train Status to Pre-arrived
Action: The system updates the train status record
Logic Flow:
IF A train has been assigned pre-arrival status
AND The system updates the train status record
THEN:
• The train status is changed to 'Pre-arrived' in the train status records
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when p4 segment containing port information is available.
Trigger Criteria:
Context: A P4 segment containing port information is available
Applied to: Process Port Information from P4 Segment
Action: The system processes the P4 segment data
Logic Flow:
IF A P4 segment containing port information is available
AND The system processes the P4 segment data
THEN:
• The system extracts port codes, locations, and routing information for export processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when port information has been extracted from the p4 segment.
Trigger Criteria:
Context: Port information has been extracted from the P4 segment
Applied to: Validate Export Port Configuration
Action: The system checks the port configuration in GCSTBRT port tables
Logic Flow:
IF Port information has been extracted from the P4 segment
AND The system checks the port configuration in GCSTBRT port tables
THEN:
• The system validates that the port is configured with proper export processing capabilities
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when port configuration has been validated against export requirements.
Trigger Criteria:
Context: Port configuration has been validated against export requirements
Applied to: Port Valid for Export?
Action: The system evaluates the port's export processing capabilities
Logic Flow:
IF Port configuration has been validated against export requirements
AND The system evaluates the port's export processing capabilities
THEN:
• If port is valid for export, continue with export pre-arrival processing; otherwise skip processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when train is at a port that is valid for export processing.
Trigger Criteria:
Context: A train is at a port that is valid for export processing
Applied to: Set Export Pre-arrival Flag
Action: The system processes the export pre-arrival requirements
Logic Flow:
IF A train is at a port that is valid for export processing
AND The system processes the export pre-arrival requirements
THEN:
• The system sets the export pre-arrival flag to indicate the train is ready for export processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when export pre-arrival flag has been set for a train.
Trigger Criteria:
Context: The export pre-arrival flag has been set for a train
Applied to: Log Pre-arrival Status Change
Action: The system completes the status change process
Logic Flow:
IF The export pre-arrival flag has been set for a train
AND The system completes the status change process
THEN:
• The system creates a log entry documenting the pre-arrival status change with timestamp and train details
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when train has been successfully set to pre-arrival status and logged.
Trigger Criteria:
Context: A train has been successfully set to pre-arrival status and logged
Applied to: Prepare for Arrival Processing
Action: The system prepares for the next processing phase
Logic Flow:
IF A train has been successfully set to pre-arrival status and logged
AND The system prepares for the next processing phase
THEN:
• The system sets up the train record with necessary flags and data for arrival processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when train search in gcwtl-train-list returns no results.
Trigger Criteria:
Context: A train search in GCWTL-TRAIN-LIST returns no results
Applied to: Send Train Not Found Error
Action: The system processes the train not found condition
Logic Flow:
IF A train search in GCWTL-TRAIN-LIST returns no results
AND The system processes the train not found condition
THEN:
• The system generates and sends an error message indicating the train was not found in the system
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when train is either not an export manifest train or the port is not configured for export processing.
Trigger Criteria:
Context: A train is either not an export manifest train or the port is not configured for export processing
Applied to: Skip Pre-arrival Processing
Action: The system evaluates the processing requirements
Logic Flow:
IF A train is either not an export manifest train or the port is not configured for export processing
AND The system evaluates the processing requirements
THEN:
• The system skips pre-arrival processing and proceeds to completion
R-GCX016-cbl-02130 (+7)File: GCX016.cblBusiness Rule: Export Manifest Port Validation
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when train arrival event has been received with m10 manifest segment data.
Trigger Criteria:
Context: A train arrival event has been received with M10 manifest segment data
Applied to: Extract Train Arrival Port from M10 Segment
Action: The system processes the M10 segment to extract port information
Logic Flow:
IF A train arrival event has been received with M10 manifest segment data
AND The system processes the M10 segment to extract port information
THEN:
• The train arrival port code is extracted and made available for port configuration lookup
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when train arrival port code has been extracted from the m10 segment.
Trigger Criteria:
Context: A train arrival port code has been extracted from the M10 segment
Applied to: Lookup Port Configuration in System Tables
Action: The system looks up the port configuration in GCSTBRT port configuration tables
Logic Flow:
IF A train arrival port code has been extracted from the M10 segment
AND The system looks up the port configuration in GCSTBRT port configuration tables
THEN:
• The port configuration settings are retrieved and made available for export processing determination
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when port configuration settings have been retrieved from system tables.
Trigger Criteria:
Context: Port configuration settings have been retrieved from system tables
Applied to: Is Port Configured for Export Manifest Processing?
Action: The system evaluates the port configuration for export manifest processing capability
Logic Flow:
IF Port configuration settings have been retrieved from system tables
AND The system evaluates the port configuration for export manifest processing capability
THEN:
• The system determines if the port is configured for export manifest processing (Yes) or standard import processing (No)
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when port is determined to be configured for export manifest processing.
Trigger Criteria:
Context: The port is determined to be configured for export manifest processing
Applied to: Set Export Manifest Processing Flag
Action: The system processes an export-enabled port
Logic Flow:
IF The port is determined to be configured for export manifest processing
AND The system processes an export-enabled port
THEN:
• The export manifest processing flag is set to enable export-specific business rules
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when export manifest processing flag has been set for an export-configured port.
Trigger Criteria:
Context: The export manifest processing flag has been set for an export-configured port
Applied to: Apply Export Manifest Business Rules
Action: The system applies export manifest business rules
Logic Flow:
IF The export manifest processing flag has been set for an export-configured port
AND The system applies export manifest business rules
THEN:
• Export-specific processing logic is executed including special validation and status handling
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when export manifest business rules have been applied for an export-configured port.
Trigger Criteria:
Context: Export manifest business rules have been applied for an export-configured port
Applied to: Set Pre-arrival Status for Export Trains
Action: The system sets the train status for export processing
Logic Flow:
IF Export manifest business rules have been applied for an export-configured port
AND The system sets the train status for export processing
THEN:
• The train is assigned pre-arrival status appropriate for export manifest processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when port is determined to not be configured for export manifest processing.
Trigger Criteria:
Context: The port is determined to not be configured for export manifest processing
Applied to: Continue with Standard Import Processing
Action: The system processes a standard import port
Logic Flow:
IF The port is determined to not be configured for export manifest processing
AND The system processes a standard import port
THEN:
• Standard import processing logic is applied without export-specific rules
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when port configuration decision has been made (either export or import processing).
Trigger Criteria:
Context: The port configuration decision has been made (either export or import processing)
Applied to: Log Port Configuration Decision
Action: The system completes the port configuration evaluation
Logic Flow:
IF The port configuration decision has been made (either export or import processing)
AND The system completes the port configuration evaluation
THEN:
• The port configuration decision is logged with relevant port and processing type information
Business Justification: Defines the strict business conditions required to proceed when v9 segment is received with pod or aad disposition code for train arrival.
Trigger Criteria:
Context: A V9 segment is received with POD or AAD disposition code for train arrival
Applied to: Validate Train Exists in System
Action: The system validates the train name against the train list
Logic Flow:
IF A V9 segment is received with POD or AAD disposition code for train arrival
AND The system validates the train name against the train list
THEN:
• If train is not found in GCWTL-TRAIN-LIST, generate train not found error and route to operations
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when train information has been successfully retrieved from the system.
Trigger Criteria:
Context: Train information has been successfully retrieved from the system
Applied to: Is Import Manifest?
Action: The system checks the manifest type
Logic Flow:
IF Train information has been successfully retrieved from the system
AND The system checks the manifest type
THEN:
• If manifest is import type, continue with import arrival processing, otherwise skip arrival processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when import manifest requires arrival processing.
Trigger Criteria:
Context: An import manifest requires arrival processing
Applied to: Port Configured for Import Manifests?
Action: The system checks port configuration for import processing capability
Logic Flow:
IF An import manifest requires arrival processing
AND The system checks port configuration for import processing capability
THEN:
• If port is not configured for import manifests, generate port configuration error and route to system administrator
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when train exists in system and port is configured for import processing.
Trigger Criteria:
Context: Train exists in system and port is configured for import processing
Applied to: Update Train Status to Arrived
Action: The arrival processing begins
Logic Flow:
IF Train exists in system and port is configured for import processing
AND The arrival processing begins
THEN:
• Update the train status to arrived in the system
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when train status has been updated to arrived.
Trigger Criteria:
Context: Train status has been updated to arrived
Applied to: Set Train Arrival Date and Time
Action: The system processes the arrival timestamp
Logic Flow:
IF Train status has been updated to arrived
AND The system processes the arrival timestamp
THEN:
• Set the train arrival date and time from the V9 segment or system timestamp
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when equipment on the arriving train has existing hold status.
Trigger Criteria:
Context: Equipment on the arriving train has existing hold status
Applied to: Maintain Equipment Hold Status
Action: The system processes equipment during train arrival
Logic Flow:
IF Equipment on the arriving train has existing hold status
AND The system processes equipment during train arrival
THEN:
• Maintain the existing equipment hold status and do not automatically release holds
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when train arrival status has been updated and auto-unlock is configured.
Trigger Criteria:
Context: Train arrival status has been updated and auto-unlock is configured
Applied to: Remove Train Lock Status
Action: The system evaluates auto-unlock requirements
Logic Flow:
IF Train arrival status has been updated and auto-unlock is configured
AND The system evaluates auto-unlock requirements
THEN:
• Remove the train lock status to allow normal operations
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when train arrival processing is complete and train lock has been removed if required.
Trigger Criteria:
Context: Train arrival processing is complete and train lock has been removed if required
Applied to: Generate AEI Arrival Notification
Action: The system prepares external notifications
Logic Flow:
IF Train arrival processing is complete and train lock has been removed if required
AND The system prepares external notifications
THEN:
• Generate AEI arrival notification message for transmission to external systems
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when aei arrival notification has been generated.
Trigger Criteria:
Context: AEI arrival notification has been generated
Applied to: Update Cargo Arrival Status for All Cargo on Train
Action: The system processes cargo on the train
Logic Flow:
IF AEI arrival notification has been generated
AND The system processes cargo on the train
THEN:
• Update the arrival status for all cargo records associated with the train
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo arrival status has been updated for all cargo on train.
Trigger Criteria:
Context: Cargo arrival status has been updated for all cargo on train
Applied to: Set Border Arrival Date for In-Bond Cargo
Action: The system identifies in-bond cargo on the train
Logic Flow:
IF Cargo arrival status has been updated for all cargo on train
AND The system identifies in-bond cargo on the train
THEN:
• Set the border arrival date for all in-bond cargo to the train arrival date
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when border arrival date has been set for in-bond cargo.
Trigger Criteria:
Context: Border arrival date has been set for in-bond cargo
Applied to: Update Destination Arrival for Final Destination Cargo
Action: The system identifies cargo at final destination on the train
Logic Flow:
IF Border arrival date has been set for in-bond cargo
AND The system identifies cargo at final destination on the train
THEN:
• Update the destination arrival status for cargo reaching final destination
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when all cargo arrival statuses have been updated.
Trigger Criteria:
Context: All cargo arrival statuses have been updated
Applied to: Log Train Arrival Transaction
Action: The system completes arrival processing
Logic Flow:
IF All cargo arrival statuses have been updated
AND The system completes arrival processing
THEN:
• Log the train arrival transaction with all relevant details for audit trail
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when train arrival transaction has been logged.
Trigger Criteria:
Context: Train arrival transaction has been logged
Applied to: Send Arrival Confirmation Message
Action: The system prepares confirmation notifications
Logic Flow:
IF Train arrival transaction has been logged
AND The system prepares confirmation notifications
THEN:
• Send arrival confirmation message to appropriate stakeholders and systems
Business Justification: Defines the strict business conditions required to proceed when v9 event segment is received for train arrival processing.
Trigger Criteria:
Context: A V9 event segment is received for train arrival processing
Applied to: Disposition Code?
Action: The system evaluates the disposition code in the V9 segment
Logic Flow:
IF A V9 event segment is received for train arrival processing
AND The system evaluates the disposition code in the V9 segment
THEN:
• The system identifies POD (Port of Discharge) or AAD (Arrived at Destination) codes as valid train arrival events and routes to appropriate processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when train arrival event (pod or aad) is being processed.
Trigger Criteria:
Context: A train arrival event (POD or AAD) is being processed
Applied to: Train Found?
Action: The system validates the train name against the train list database
Logic Flow:
IF A train arrival event (POD or AAD) is being processed
AND The system validates the train name against the train list database
THEN:
• If the train exists, proceed with equipment processing; if not found, generate train not found error and terminate AEI processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when train arrival event (pod or aad) is being processed.
Trigger Criteria:
Context: A train arrival event (POD or AAD) is being processed
Applied to: Send Train Not Found Error
Action: The train validation fails because the train is not found in the train list database
Logic Flow:
IF A train arrival event (POD or AAD) is being processed
AND The train validation fails because the train is not found in the train list database
THEN:
• The system generates a train not found error message and terminates AEI processing for this arrival event
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when valid train has been confirmed as arrived (pod or aad).
Trigger Criteria:
Context: A valid train has been confirmed as arrived (POD or AAD)
Applied to: Get Train Equipment List
Action: The system processes the train for AEI notification generation
Logic Flow:
IF A valid train has been confirmed as arrived (POD or AAD)
AND The system processes the train for AEI notification generation
THEN:
• The system retrieves the complete equipment list associated with the train from the equipment records database
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when train's equipment list has been retrieved and train arrival is confirmed.
Trigger Criteria:
Context: A train's equipment list has been retrieved and train arrival is confirmed
Applied to: Generate AEI Equipment Notification
Action: The system processes each individual equipment/car on the train
Logic Flow:
IF A train's equipment list has been retrieved and train arrival is confirmed
AND The system processes each individual equipment/car on the train
THEN:
• The system generates an AEI notification including car ID, equipment details, arrival date and time for each piece of equipment
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when aei notifications have been generated for all equipment on the train.
Trigger Criteria:
Context: AEI notifications have been generated for all equipment on the train
Applied to: Update Train Status to Arrived
Action: The system completes individual equipment notification processing
Logic Flow:
IF AEI notifications have been generated for all equipment on the train
AND The system completes individual equipment notification processing
THEN:
• The system updates the train status to 'Arrived' with the corresponding arrival date and time
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when aei notifications have been generated with complete equipment details and arrival information.
Trigger Criteria:
Context: AEI notifications have been generated with complete equipment details and arrival information
Applied to: Send AEI Notification to Systems
Action: The system is ready to distribute the notifications
Logic Flow:
IF AEI notifications have been generated with complete equipment details and arrival information
AND The system is ready to distribute the notifications
THEN:
• The system sends the AEI notifications to designated external AEI systems for equipment tracking and monitoring
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when aei notifications have been successfully transmitted to external systems.
Trigger Criteria:
Context: AEI notifications have been successfully transmitted to external systems
Applied to: Log AEI Notification Activity
Action: The system completes the notification transmission process
Logic Flow:
IF AEI notifications have been successfully transmitted to external systems
AND The system completes the notification transmission process
THEN:
• The system logs the AEI notification activity including train ID, equipment details, notification timestamp, and transmission status
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when system is processing equipment on an arrived train for aei notifications.
Trigger Criteria:
Context: The system is processing equipment on an arrived train for AEI notifications
Applied to: More Equipment?
Action: The system completes processing for one piece of equipment
Logic Flow:
IF The system is processing equipment on an arrived train for AEI notifications
AND The system completes processing for one piece of equipment
THEN:
• If more equipment exists on the train, continue processing the next equipment; if no more equipment, complete the AEI train arrival process
R-GCX016-cbl-02160 (+14)File: GCX016.cblBusiness Rule: Train Unlock on Arrival
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when v9 event segment is received in the message queue.
Trigger Criteria:
Context: A V9 event segment is received in the message queue
Applied to: Train Arrival Event Detected
Action: The system processes the V9 segment for event details
Logic Flow:
IF A V9 event segment is received in the message queue
AND The system processes the V9 segment for event details
THEN:
• The train arrival event is identified and flagged for processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when v9 event segment contains a disposition code.
Trigger Criteria:
Context: A V9 event segment contains a disposition code
Applied to: Check Disposition Code
Action: The disposition code is evaluated for arrival processing
Logic Flow:
IF A V9 event segment contains a disposition code
AND The disposition code is evaluated for arrival processing
THEN:
• The system determines if it is POD (Proof of Delivery) or AAD (Arrival at Destination) event
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when v9 segment has disposition code 'pod'.
Trigger Criteria:
Context: A V9 segment has disposition code 'POD'
Applied to: POD - Proof of Delivery
Action: The POD event is processed
Logic Flow:
IF A V9 segment has disposition code 'POD'
AND The POD event is processed
THEN:
• The system initiates train arrival processing workflow
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when v9 segment has disposition code 'aad'.
Trigger Criteria:
Context: A V9 segment has disposition code 'AAD'
Applied to: AAD - Arrival at Destination
Action: The AAD event is processed
Logic Flow:
IF A V9 segment has disposition code 'AAD'
AND The AAD event is processed
THEN:
• The system initiates train arrival processing workflow
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when train arrival event is being processed with a vessel name.
Trigger Criteria:
Context: A train arrival event is being processed with a vessel name
Applied to: Validate Train Exists in System
Action: The system validates the train existence
Logic Flow:
IF A train arrival event is being processed with a vessel name
AND The system validates the train existence
THEN:
• The system checks the train list to confirm the train is registered in the system
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when train existence validation has been performed.
Trigger Criteria:
Context: Train existence validation has been performed
Applied to: Train Found?
Action: The validation result is evaluated
Logic Flow:
IF Train existence validation has been performed
AND The validation result is evaluated
THEN:
• If train is found, proceed with arrival processing; if not found, generate error
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when valid train has been found in the system for arrival processing.
Trigger Criteria:
Context: A valid train has been found in the system for arrival processing
Applied to: Update Train Status to Arrived
Action: The train status is updated
Logic Flow:
IF A valid train has been found in the system for arrival processing
AND The train status is updated
THEN:
• The train status is set to 'Arrived' and arrival timestamp is recorded
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when train has arrived and status has been updated to arrived.
Trigger Criteria:
Context: A train has arrived and status has been updated to arrived
Applied to: Check Current Train Lock Status
Action: The system checks the current lock status of the train
Logic Flow:
IF A train has arrived and status has been updated to arrived
AND The system checks the current lock status of the train
THEN:
• The system retrieves the current lock status from train records
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when train lock status has been retrieved.
Trigger Criteria:
Context: Train lock status has been retrieved
Applied to: Train Currently Locked?
Action: The lock status is evaluated
Logic Flow:
IF Train lock status has been retrieved
AND The lock status is evaluated
THEN:
• If train is locked, proceed with automatic unlock; if not locked, skip unlock process
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when train has arrived at destination and is currently in locked status.
Trigger Criteria:
Context: A train has arrived at destination and is currently in locked status
Applied to: Automatically Unlock Train
Action: The automatic unlock process is triggered
Logic Flow:
IF A train has arrived at destination and is currently in locked status
AND The automatic unlock process is triggered
THEN:
• The system removes the lock restriction from the train
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when train has been automatically unlocked upon arrival.
Trigger Criteria:
Context: A train has been automatically unlocked upon arrival
Applied to: Update Train Lock Status to Unlocked
Action: The lock status is updated in the system
Logic Flow:
IF A train has been automatically unlocked upon arrival
AND The lock status is updated in the system
THEN:
• The train lock status is set to 'Unlocked' and timestamp is recorded
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when train has been automatically unlocked upon arrival.
Trigger Criteria:
Context: A train has been automatically unlocked upon arrival
Applied to: Log Train Unlock Action
Action: The unlock action is logged
Logic Flow:
IF A train has been automatically unlocked upon arrival
AND The unlock action is logged
THEN:
• The system records the unlock event with timestamp, train ID, and reason code
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when train has successfully arrived and any required unlock processing is complete.
Trigger Criteria:
Context: A train has successfully arrived and any required unlock processing is complete
Applied to: Send Arrival Notification
Action: Arrival notifications are sent
Logic Flow:
IF A train has successfully arrived and any required unlock processing is complete
AND Arrival notifications are sent
THEN:
• The system sends arrival messages to relevant stakeholders and systems
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when train arrival event references a train that does not exist in the system.
Trigger Criteria:
Context: A train arrival event references a train that does not exist in the system
Applied to: Generate Train Not Found Error
Action: Train validation fails
Logic Flow:
IF A train arrival event references a train that does not exist in the system
AND Train validation fails
THEN:
• The system generates a 'Train Not Found' error with relevant train identifier
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when train not found error has been generated.
Trigger Criteria:
Context: A train not found error has been generated
Applied to: Send Error Notification
Action: Error notifications are sent
Logic Flow:
IF A train not found error has been generated
AND Error notifications are sent
THEN:
• The system sends error messages to relevant stakeholders with details about the failed train lookup
Business Justification: Defines the strict business conditions required to proceed when x4 segment with disposition code is received.
Trigger Criteria:
Context: An X4 segment with disposition code is received
Applied to: Is Port = Laredo?
Action: The system checks the port location in the message
Logic Flow:
IF An X4 segment with disposition code is received
AND The system checks the port location in the message
THEN:
• If port equals 'Laredo', proceed to KCSM disposition code lookup, otherwise skip KCSM processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when port location is laredo and disposition code is present.
Trigger Criteria:
Context: Port location is Laredo and disposition code is present
Applied to: Search AECWRKTB Table
Action: System searches AECWRKTB table for the disposition code
Logic Flow:
IF Port location is Laredo and disposition code is present
AND System searches AECWRKTB table for the disposition code
THEN:
• Return found or not found status for the disposition code in KCSM table
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when aecwrktb table lookup has been performed for the disposition code.
Trigger Criteria:
Context: AECWRKTB table lookup has been performed for the disposition code
Applied to: Disposition Code Found in KCSM Table?
Action: The disposition code lookup result is evaluated
Logic Flow:
IF AECWRKTB table lookup has been performed for the disposition code
AND The disposition code lookup result is evaluated
THEN:
• If disposition code is found in KCSM table, proceed to create transmission file, otherwise skip KCSM processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code is found in kcsm table and requires kcsm processing. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: Disposition code is found in KCSM table and requires KCSM processing
Applied to: Copy EDI 350 to Transmission File
Action: System initiates transmission file creation process
Logic Flow:
IF Disposition code is found in KCSM table and requires KCSM processing
AND System initiates transmission file creation process
THEN:
• Copy the complete EDI 350 message content to the transmission file
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when edi 350 message has been copied to transmission file.
Trigger Criteria:
Context: EDI 350 message has been copied to transmission file
Applied to: Create Transmission Root Segment A9RT
Action: System creates transmission control structures
Logic Flow:
IF EDI 350 message has been copied to transmission file
AND System creates transmission control structures
THEN:
• Generate A9RT transmission root segment with appropriate control information
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when a9rt transmission root segment has been created.
Trigger Criteria:
Context: A9RT transmission root segment has been created
Applied to: Create Transmission Dependent Segment A9DP
Action: System creates dependent transmission segments
Logic Flow:
IF A9RT transmission root segment has been created
AND System creates dependent transmission segments
THEN:
• Generate A9DP transmission dependent segment with EDI message content
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when transmission segments a9rt and a9dp have been successfully created.
Trigger Criteria:
Context: Transmission segments A9RT and A9DP have been successfully created
Applied to: Set KCSM Processing Flag
Action: System completes KCSM transmission file preparation
Logic Flow:
IF Transmission segments A9RT and A9DP have been successfully created
AND System completes KCSM transmission file preparation
THEN:
• Set KCSM processing flag to indicate successful KCSM integration completion
R-GCX016-cbl-02182 (+19)File: GCX016.cblBusiness Rule: EDI 350 Message Copying for KCSM
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when edi 350 message with a disposition code is received for processing.
Trigger Criteria:
Context: An EDI 350 message with a disposition code is received for processing
Applied to: Check Disposition Code for KCSM Processing
Action: The system checks if the disposition code requires KCSM transmission
Logic Flow:
IF An EDI 350 message with a disposition code is received for processing
AND The system checks if the disposition code requires KCSM transmission
THEN:
• The system validates the disposition code against the KCSM configuration table to determine processing requirements
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code needs to be validated for kcsm processing.
Trigger Criteria:
Context: A disposition code needs to be validated for KCSM processing
Applied to: Validate Disposition Code in KCSM Table
Action: The system performs a lookup in the AECWRKTB KCSM configuration table
Logic Flow:
IF A disposition code needs to be validated for KCSM processing
AND The system performs a lookup in the AECWRKTB KCSM configuration table
THEN:
• The system determines if the disposition code is configured for KCSM transmission
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code has been validated against the kcsm configuration table.
Trigger Criteria:
Context: The disposition code has been validated against the KCSM configuration table
Applied to: Code Configured for KCSM?
Action: The system evaluates if the code is configured for KCSM processing
Logic Flow:
IF The disposition code has been validated against the KCSM configuration table
AND The system evaluates if the code is configured for KCSM processing
THEN:
• If configured, proceed with KCSM message copying; if not configured, skip KCSM processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code is not configured for kcsm processing in the configuration table.
Trigger Criteria:
Context: The disposition code is not configured for KCSM processing in the configuration table
Applied to: Skip KCSM Processing
Action: The system determines KCSM processing is not required
Logic Flow:
IF The disposition code is not configured for KCSM processing in the configuration table
AND The system determines KCSM processing is not required
THEN:
• The system skips all KCSM message copying activities and continues with normal processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code is configured for kcsm processing. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: The disposition code is configured for KCSM processing
Applied to: Initialize EDI Message Copy Process
Action: The system begins the KCSM message copying process
Logic Flow:
IF The disposition code is configured for KCSM processing
AND The system begins the KCSM message copying process
THEN:
• The system initializes all necessary structures and variables for EDI message duplication
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when kcsm message copy process has been initialized. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: The KCSM message copy process has been initialized
Applied to: Copy Original EDI 350 Message Structure
Action: The system begins copying the original EDI 350 message
Logic Flow:
IF The KCSM message copy process has been initialized
AND The system begins copying the original EDI 350 message
THEN:
• The system creates an exact structural copy of the original message for KCSM processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when edi message structure has been copied.
Trigger Criteria:
Context: The EDI message structure has been copied
Applied to: Create Transmission Root Segment
Action: The system creates the transmission control structure
Logic Flow:
IF The EDI message structure has been copied
AND The system creates the transmission control structure
THEN:
• The system generates a transmission root segment using A9RT data for KCSM message identification and control
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when transmission root segment has been created.
Trigger Criteria:
Context: The transmission root segment has been created
Applied to: Create Transmission Dependent Segments
Action: The system creates dependent transmission segments
Logic Flow:
IF The transmission root segment has been created
AND The system creates dependent transmission segments
THEN:
• The system generates transmission dependent segments using A9DP data for proper KCSM message structure
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when transmission segments have been created. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: The transmission segments have been created
Applied to: Copy ST Transaction Header
Action: The system copies EDI transaction segments
Logic Flow:
IF The transmission segments have been created
AND The system copies EDI transaction segments
THEN:
• The system copies the ST transaction header segment maintaining all original data for KCSM transmission
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when st transaction header has been copied. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: The ST transaction header has been copied
Applied to: Copy M10 Manifest Information
Action: The system copies manifest data segments
Logic Flow:
IF The ST transaction header has been copied
AND The system copies manifest data segments
THEN:
• The system copies the M10 manifest information segment preserving all manifest details for KCSM transmission
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when m10 manifest information has been copied. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: The M10 manifest information has been copied
Applied to: Copy P4 Port Information
Action: The system copies port data segments
Logic Flow:
IF The M10 manifest information has been copied
AND The system copies port data segments
THEN:
• The system copies the P4 port information segment maintaining all port details for KCSM transmission
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when p4 port information has been copied. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: The P4 port information has been copied
Applied to: Copy V9 Event Details
Action: The system copies event data segments
Logic Flow:
IF The P4 port information has been copied
AND The system copies event data segments
THEN:
• The system copies the V9 event details segment preserving all event information for KCSM transmission
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when v9 event details have been copied. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: The V9 event details have been copied
Applied to: Copy X4 Customs Release Information
Action: The system copies customs release data segments
Logic Flow:
IF The V9 event details have been copied
AND The system copies customs release data segments
THEN:
• The system copies the X4 customs release information segment maintaining all customs data for KCSM transmission
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when x4 customs release information has been copied. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: The X4 customs release information has been copied
Applied to: Copy N7 Equipment Details
Action: The system copies equipment data segments
Logic Flow:
IF The X4 customs release information has been copied
AND The system copies equipment data segments
THEN:
• The system copies the N7 equipment details segment preserving all equipment information for KCSM transmission
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when n7 equipment details have been copied. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: The N7 equipment details have been copied
Applied to: Copy K1 Remarks
Action: The system copies remarks data segments
Logic Flow:
IF The N7 equipment details have been copied
AND The system copies remarks data segments
THEN:
• The system copies the K1 remarks segment maintaining all remark information for KCSM transmission
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when k1 remarks have been copied. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: The K1 remarks have been copied
Applied to: Copy SE Transaction Trailer
Action: The system copies transaction trailer segments
Logic Flow:
IF The K1 remarks have been copied
AND The system copies transaction trailer segments
THEN:
• The system copies the SE transaction trailer segment completing the EDI message structure for KCSM transmission
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when all edi segments have been copied to the kcsm message structure.
Trigger Criteria:
Context: All EDI segments have been copied to the KCSM message structure
Applied to: Format Message for KCSM Transmission
Action: The system formats the message for KCSM transmission
Logic Flow:
IF All EDI segments have been copied to the KCSM message structure
AND The system formats the message for KCSM transmission
THEN:
• The system applies KCSM-specific formatting rules and transmission standards to the copied message
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when edi message has been formatted for kcsm transmission.
Trigger Criteria:
Context: The EDI message has been formatted for KCSM transmission
Applied to: Queue Message for KCSM System
Action: The system queues the message for KCSM delivery
Logic Flow:
IF The EDI message has been formatted for KCSM transmission
AND The system queues the message for KCSM delivery
THEN:
• The system places the formatted message in the KCSM transmission queue for delivery to the KCSM system
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when message has been queued for kcsm transmission.
Trigger Criteria:
Context: The message has been queued for KCSM transmission
Applied to: Log KCSM Transmission Details
Action: The system logs the transmission activity
Logic Flow:
IF The message has been queued for KCSM transmission
AND The system logs the transmission activity
THEN:
• The system records KCSM transmission details including message identification, timestamp, and disposition code for audit tracking
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when kcsm transmission has been logged. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: The KCSM transmission has been logged
Applied to: Complete KCSM Message Copy
Action: The system completes the KCSM message copying process
Logic Flow:
IF The KCSM transmission has been logged
AND The system completes the KCSM message copying process
THEN:
• The system finalizes all KCSM processing activities and returns control to the main EDI 350 message processing workflow
Business Justification: Governs the functional prerequisites and system routing when disposition code is being processed for customs release.
Trigger Criteria:
Context: A disposition code is being processed for customs release
Applied to: Disposition Code Requires KCSM?
Action: The system evaluates the disposition code configuration
Logic Flow:
IF A disposition code is being processed for customs release
AND The system evaluates the disposition code configuration
THEN:
• The system determines whether KCSM transmission processing is required for this disposition code
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code needs to be processed.
Trigger Criteria:
Context: A disposition code needs to be processed
Applied to: Retrieve Disposition Code from DC Table
Action: The system looks up the disposition code in the DC table
Logic Flow:
IF A disposition code needs to be processed
AND The system looks up the disposition code in the DC table
THEN:
• The system retrieves disposition code details including KCSM processing requirements and Merlin message configuration
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when disposition code requires kcsm processing.
Trigger Criteria:
Context: A disposition code requires KCSM processing
Applied to: Check KCSM Configuration at Laredo Port
Action: The system checks the port configuration for KCSM integration
Logic Flow:
IF A disposition code requires KCSM processing
AND The system checks the port configuration for KCSM integration
THEN:
• The system validates that KCSM processing is enabled and configured for the Laredo port
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code and port configuration have been validated.
Trigger Criteria:
Context: Disposition code and port configuration have been validated
Applied to: KCSM Processing Required?
Action: The system evaluates all KCSM processing requirements
Logic Flow:
IF Disposition code and port configuration have been validated
AND The system evaluates all KCSM processing requirements
THEN:
• The system decides whether to proceed with KCSM transmission file creation or skip processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when kcsm processing is required for the disposition code.
Trigger Criteria:
Context: KCSM processing is required for the disposition code
Applied to: Create Transmission Root Segment A9RT
Action: The system creates the transmission file structure
Logic Flow:
IF KCSM processing is required for the disposition code
AND The system creates the transmission file structure
THEN:
• The system creates an A9RT root segment with transmission control information and unique identifiers
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when transmission root segment a9rt has been created.
Trigger Criteria:
Context: A transmission root segment A9RT has been created
Applied to: Set Transmission Control Information
Action: The system sets up transmission control parameters
Logic Flow:
IF A transmission root segment A9RT has been created
AND The system sets up transmission control parameters
THEN:
• The system assigns transmission sequence numbers, control codes, and identification information for KCSM processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when transmission control information has been established.
Trigger Criteria:
Context: Transmission control information has been established
Applied to: Initialize Transmission Parameters
Action: The system initializes transmission parameters
Logic Flow:
IF Transmission control information has been established
AND The system initializes transmission parameters
THEN:
• The system sets up EDI message parameters, transmission dates, and processing configuration for KCSM integration
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when transmission parameters have been initialized. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: Transmission parameters have been initialized
Applied to: Copy EDI 350 Message Segments
Action: The system processes the original EDI 350 message
Logic Flow:
IF Transmission parameters have been initialized
AND The system processes the original EDI 350 message
THEN:
• The system copies relevant message segments including X4, N7, and other required segments to the KCSM transmission structure
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when edi 350 message segments have been copied.
Trigger Criteria:
Context: EDI 350 message segments have been copied
Applied to: Create Transmission Dependent Segment A9DP
Action: The system creates transmission dependent segments
Logic Flow:
IF EDI 350 message segments have been copied
AND The system creates transmission dependent segments
THEN:
• The system creates A9DP segments containing the copied EDI segment data with proper sequencing and linkage to the root segment
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when transmission dependent segments a9dp have been created.
Trigger Criteria:
Context: Transmission dependent segments A9DP have been created
Applied to: Store EDI Segment Data
Action: The system stores EDI segment data
Logic Flow:
IF Transmission dependent segments A9DP have been created
AND The system stores EDI segment data
THEN:
• The system stores each EDI segment with proper sequence numbers and maintains data integrity for KCSM processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when edi segment data has been stored in transmission segments.
Trigger Criteria:
Context: EDI segment data has been stored in transmission segments
Applied to: Set Transmission File Properties
Action: The system sets transmission file properties
Logic Flow:
IF EDI segment data has been stored in transmission segments
AND The system sets transmission file properties
THEN:
• The system configures file status, creation timestamps, processing indicators, and other metadata required for KCSM integration
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when transmission file properties have been configured.
Trigger Criteria:
Context: Transmission file properties have been configured
Applied to: Write Transmission Segments to Database
Action: The system writes transmission segments to the database
Logic Flow:
IF Transmission file properties have been configured
AND The system writes transmission segments to the database
THEN:
• The system stores the A9RT root segment and all A9DP dependent segments to the database with proper relationships and indexing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when transmission segments have been written to the database.
Trigger Criteria:
Context: Transmission segments have been written to the database
Applied to: Prepare KCSM Integration Message
Action: The system prepares KCSM integration message
Logic Flow:
IF Transmission segments have been written to the database
AND The system prepares KCSM integration message
THEN:
• The system creates notification message containing transmission file identifiers and processing instructions for KCSM system
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when kcsm integration message has been prepared.
Trigger Criteria:
Context: KCSM integration message has been prepared
Applied to: Queue Message for KCSM System
Action: The system queues the message for KCSM system
Logic Flow:
IF KCSM integration message has been prepared
AND The system queues the message for KCSM system
THEN:
• The system places the message in the appropriate queue for KCSM system processing with proper priority and routing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when message has been queued for kcsm system.
Trigger Criteria:
Context: Message has been queued for KCSM system
Applied to: Log Transmission Details
Action: The system logs transmission details
Logic Flow:
IF Message has been queued for KCSM system
AND The system logs transmission details
THEN:
• The system records transmission file creation details including timestamps, segment counts, and processing status for audit trail
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code is being evaluated for kcsm processing.
Trigger Criteria:
Context: A disposition code is being evaluated for KCSM processing
Applied to: Skip KCSM Processing
Action: The disposition code does not require KCSM processing OR KCSM is not configured for the port
Logic Flow:
IF A disposition code is being evaluated for KCSM processing
AND The disposition code does not require KCSM processing OR KCSM is not configured for the port
THEN:
• The system bypasses KCSM transmission file creation and continues with normal customs release processing
R-GCX016-cbl-02222 (+9)File: GCX016.cblBusiness Rule: K1 Remarks Processing for Train Operations
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when k1 segment is received for train operations.
Trigger Criteria:
Context: A K1 segment is received for train operations
Applied to: Train Context Available?
Action: The system checks for available train context
Logic Flow:
IF A K1 segment is received for train operations
AND The system checks for available train context
THEN:
• Processing continues if train context exists, otherwise an error is logged
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when k1 segment is received for train operations.
Trigger Criteria:
Context: A K1 segment is received for train operations
Applied to: Log Error - No Train Context
Action: No train context is available
Logic Flow:
IF A K1 segment is received for train operations
AND No train context is available
THEN:
• An error is logged indicating missing train context
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when valid k1 segment with train context available.
Trigger Criteria:
Context: A valid K1 segment with train context available
Applied to: Extract K1 Free-form Comment Text
Action: The system processes the K1 segment
Logic Flow:
IF A valid K1 segment with train context available
AND The system processes the K1 segment
THEN:
• The free-form comment text is extracted from the K1 segment
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when k1 free-form comment text has been extracted.
Trigger Criteria:
Context: K1 free-form comment text has been extracted
Applied to: Validate Comment Length and Format
Action: The system validates the comment
Logic Flow:
IF K1 free-form comment text has been extracted
AND The system validates the comment
THEN:
• The comment is checked for proper length and format constraints
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when k1 comment has been validated for length and format.
Trigger Criteria:
Context: K1 comment has been validated for length and format
Applied to: Comment Valid?
Action: The system evaluates comment validity
Logic Flow:
IF K1 comment has been validated for length and format
AND The system evaluates comment validity
THEN:
• Processing continues if valid, otherwise the segment is skipped
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when valid k1 comment has been validated.
Trigger Criteria:
Context: A valid K1 comment has been validated
Applied to: Associate Comment with Train ID
Action: The system processes the comment for train operations
Logic Flow:
IF A valid K1 comment has been validated
AND The system processes the comment for train operations
THEN:
• The comment is associated with the current train ID
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when k1 comment has been associated with train id.
Trigger Criteria:
Context: K1 comment has been associated with train ID
Applied to: Log K1 Remark with Train Information
Action: The system logs the remark
Logic Flow:
IF K1 comment has been associated with train ID
AND The system logs the remark
THEN:
• The K1 remark is logged with complete train information
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when k1 remark has been logged with train information.
Trigger Criteria:
Context: K1 remark has been logged with train information
Applied to: Store Train-level Comment in System
Action: The system stores the comment
Logic Flow:
IF K1 remark has been logged with train information
AND The system stores the comment
THEN:
• The comment is stored as a train-level remark in the system
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when train-level comment has been stored in the system.
Trigger Criteria:
Context: Train-level comment has been stored in the system
Applied to: Generate Audit Trail Entry
Action: The system completes the storage process
Logic Flow:
IF Train-level comment has been stored in the system
AND The system completes the storage process
THEN:
• An audit trail entry is generated for the K1 train remark
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when k1 comment has failed validation checks.
Trigger Criteria:
Context: A K1 comment has failed validation checks
Applied to: Skip Invalid K1 Segment
Action: The system determines the comment is invalid
Logic Flow:
IF A K1 comment has failed validation checks
AND The system determines the comment is invalid
THEN:
• The invalid K1 segment is skipped and processing continues
R-GCX016-cbl-02232 (+9)File: GCX016.cblBusiness Rule: K1 Remarks Processing for Cargo Operations
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when k1 remarks segment is received in the message queue.
Trigger Criteria:
Context: A K1 remarks segment is received in the message queue
Applied to: Is K1 Associated with X4 Segment?
Action: The system checks if the K1 segment is associated with an X4 customs release segment
Logic Flow:
IF A K1 remarks segment is received in the message queue
AND The system checks if the K1 segment is associated with an X4 customs release segment
THEN:
• The K1 segment is processed for cargo remarks if associated with X4, otherwise it is skipped as non-cargo related
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when k1 remarks segment associated with an x4 segment.
Trigger Criteria:
Context: A K1 remarks segment associated with an X4 segment
Applied to: K1 Format Valid?
Action: The system validates the K1 segment format and structure
Logic Flow:
IF A K1 remarks segment associated with an X4 segment
AND The system validates the K1 segment format and structure
THEN:
• The K1 segment is accepted for comment extraction if format is valid, otherwise it is rejected with invalid format error
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when valid k1 remarks segment associated with an x4 segment.
Trigger Criteria:
Context: A valid K1 remarks segment associated with an X4 segment
Applied to: Extract Free-form Comment Text
Action: The system extracts the free-form comment text from the K1 segment
Logic Flow:
IF A valid K1 remarks segment associated with an X4 segment
AND The system extracts the free-form comment text from the K1 segment
THEN:
• The comment text is extracted and prepared for storage in the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when free-form comment extracted from a k1 segment for an x4 segment.
Trigger Criteria:
Context: A free-form comment extracted from a K1 segment for an X4 segment
Applied to: Comment Count < 4?
Action: The system checks if the current comment count is less than 4 for the X4 segment
Logic Flow:
IF A free-form comment extracted from a K1 segment for an X4 segment
AND The system checks if the current comment count is less than 4 for the X4 segment
THEN:
• The comment is accepted for storage if count is less than 4, otherwise it is rejected with maximum comments exceeded error
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when valid comment extracted from k1 segment with comment count less than 4.
Trigger Criteria:
Context: A valid comment extracted from K1 segment with comment count less than 4
Applied to: Store Comment in Cargo Record
Action: The system stores the comment in the cargo record
Logic Flow:
IF A valid comment extracted from K1 segment with comment count less than 4
AND The system stores the comment in the cargo record
THEN:
• The comment is successfully stored in the cargo record and associated with the X4 segment
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when comment has been successfully stored in the cargo record.
Trigger Criteria:
Context: A comment has been successfully stored in the cargo record
Applied to: Increment Comment Counter
Action: The system increments the comment counter for the X4 segment
Logic Flow:
IF A comment has been successfully stored in the cargo record
AND The system increments the comment counter for the X4 segment
THEN:
• The comment counter is increased by 1 to reflect the new comment count
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when k1 segment has been processed for an x4 segment.
Trigger Criteria:
Context: A K1 segment has been processed for an X4 segment
Applied to: More K1 Segments?
Action: The system checks if there are more K1 segments to process
Logic Flow:
IF A K1 segment has been processed for an X4 segment
AND The system checks if there are more K1 segments to process
THEN:
• Processing continues with the next K1 segment if available, otherwise proceeds to associate all comments with the X4 segment
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when all k1 segments for an x4 segment have been processed.
Trigger Criteria:
Context: All K1 segments for an X4 segment have been processed
Applied to: Associate Comments with X4 Segment
Action: The system associates the collected comments with the X4 segment
Logic Flow:
IF All K1 segments for an X4 segment have been processed
AND The system associates the collected comments with the X4 segment
THEN:
• All comments are linked to the X4 segment for cargo record updates
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when comments have been associated with an x4 segment.
Trigger Criteria:
Context: Comments have been associated with an X4 segment
Applied to: Update Cargo Record with Remarks
Action: The system updates the cargo record with the remarks
Logic Flow:
IF Comments have been associated with an X4 segment
AND The system updates the cargo record with the remarks
THEN:
• The cargo record is updated with all K1 remarks for future reference and processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when k1 segment processing has completed (successfully or with errors).
Trigger Criteria:
Context: K1 segment processing has completed (successfully or with errors)
Applied to: Log K1 Processing Complete
Action: The system logs the completion of K1 processing
Logic Flow:
IF K1 segment processing has completed (successfully or with errors)
AND The system logs the completion of K1 processing
THEN:
• A log entry is created indicating the completion status of K1 remarks processing
Business Justification: Governs the functional prerequisites and system routing when x4 segment is received with a disposition code and the system has access to port configuration and kcsm configuration table.
Trigger Criteria:
Context: An X4 segment is received with a disposition code and the system has access to port configuration and KCSM configuration table
Applied to: Check if disposition codes are configured for KCSM system processing at Laredo port
Action: The system processes the X4 segment disposition code
Logic Flow:
IF An X4 segment is received with a disposition code and the system has access to port configuration and KCSM configuration table
AND The system processes the X4 segment disposition code
THEN:
• The system extracts the disposition code, checks if the current port is Laredo, searches the KCSM configuration table for the disposition code, and sets KCSM integration flag if found, otherwise continues with standard processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when system has extracted a disposition code from an x4 segment and needs to determine processing requirements.
Trigger Criteria:
Context: The system has extracted a disposition code from an X4 segment and needs to determine processing requirements
Applied to: Is Port = Laredo?
Action: The system checks the current port location
Logic Flow:
IF The system has extracted a disposition code from an X4 segment and needs to determine processing requirements
AND The system checks the current port location
THEN:
• If the port equals Laredo, the system proceeds to KCSM configuration validation, otherwise it skips KCSM integration and continues with standard processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when port location is laredo and a disposition code has been extracted from the x4 segment.
Trigger Criteria:
Context: The port location is Laredo and a disposition code has been extracted from the X4 segment
Applied to: Search for Disposition Code in KCSM Table
Action: The system accesses the KCSM configuration table and searches for the disposition code
Logic Flow:
IF The port location is Laredo and a disposition code has been extracted from the X4 segment
AND The system accesses the KCSM configuration table and searches for the disposition code
THEN:
• The system returns whether the disposition code is found in the KCSM configuration table
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code is found in the kcsm configuration table and the port is laredo.
Trigger Criteria:
Context: The disposition code is found in the KCSM configuration table and the port is Laredo
Applied to: Set KCSM Integration Flag
Action: The system confirms KCSM processing is required
Logic Flow:
IF The disposition code is found in the KCSM configuration table and the port is Laredo
AND The system confirms KCSM processing is required
THEN:
• The system marks the cargo for KCSM processing and sets the KCSM integration flag to enable downstream KCSM system integration
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when kcsm validation process has completed either with kcsm integration enabled or standard processing continuation.
Trigger Criteria:
Context: The KCSM validation process has completed either with KCSM integration enabled or standard processing continuation
Applied to: Log KCSM Validation Result
Action: The system completes the KCSM validation workflow
Logic Flow:
IF The KCSM validation process has completed either with KCSM integration enabled or standard processing continuation
AND The system completes the KCSM validation workflow
THEN:
• The system logs the KCSM validation result indicating whether KCSM integration was enabled or standard processing was selected
R-GCX016-cbl-02247 (+11)File: GCX016.cblBusiness Rule: KCSM EDI Message Transmission
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when x4 segment with a disposition code is received.
Trigger Criteria:
Context: An X4 segment with a disposition code is received
Applied to: Check Disposition Code in AECWRKTB Table
Action: The system checks the disposition code configuration in AECWRKTB table
Logic Flow:
IF An X4 segment with a disposition code is received
AND The system checks the disposition code configuration in AECWRKTB table
THEN:
• The system determines if the disposition code is configured for KCSM transmission
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code is configured for kcsm transmission.
Trigger Criteria:
Context: A disposition code is configured for KCSM transmission
Applied to: Port is Laredo?
Action: The system validates the port location
Logic Flow:
IF A disposition code is configured for KCSM transmission
AND The system validates the port location
THEN:
• KCSM processing continues only if the port is Laredo, otherwise processing is skipped
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code is configured for kcsm and the port is laredo. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: The disposition code is configured for KCSM and the port is Laredo
Applied to: Copy EDI 350 Message to Transmission File
Action: The system processes the EDI message for transmission
Logic Flow:
IF The disposition code is configured for KCSM and the port is Laredo
AND The system processes the EDI message for transmission
THEN:
• The EDI 350 message data is copied to the transmission file
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when edi 350 message data has been copied to transmission file.
Trigger Criteria:
Context: EDI 350 message data has been copied to transmission file
Applied to: Create Transmission Root Segment A9RT
Action: The system creates transmission control structures
Logic Flow:
IF EDI 350 message data has been copied to transmission file
AND The system creates transmission control structures
THEN:
• An A9RT transmission root segment is created with appropriate control information
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when a9rt transmission root segment has been created.
Trigger Criteria:
Context: A9RT transmission root segment has been created
Applied to: Set Transmission Control Information
Action: The system configures transmission parameters
Logic Flow:
IF A9RT transmission root segment has been created
AND The system configures transmission parameters
THEN:
• Transmission control information including identifiers and parameters are set
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when transmission control information has been set.
Trigger Criteria:
Context: Transmission control information has been set
Applied to: Create Transmission Dependent Segment A9DP
Action: The system creates dependent data structures
Logic Flow:
IF Transmission control information has been set
AND The system creates dependent data structures
THEN:
• An A9DP transmission dependent segment is created to contain EDI segment data
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when a9dp transmission dependent segment has been created. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: A9DP transmission dependent segment has been created
Applied to: Copy EDI Segment Data to A9DP
Action: The system populates the segment with message data
Logic Flow:
IF A9DP transmission dependent segment has been created
AND The system populates the segment with message data
THEN:
• EDI segment data is copied into the A9DP segment for transmission
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when edi segment data has been copied to a9dp segment.
Trigger Criteria:
Context: EDI segment data has been copied to A9DP segment
Applied to: Lookup KCSM Broker Information
Action: The system requires broker information for transmission
Logic Flow:
IF EDI segment data has been copied to A9DP segment
AND The system requires broker information for transmission
THEN:
• KCSM broker information is retrieved from GCSTBRT broker tables
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when kcsm broker information has been retrieved.
Trigger Criteria:
Context: KCSM broker information has been retrieved
Applied to: Set Transmission Parameters
Action: The system configures transmission settings
Logic Flow:
IF KCSM broker information has been retrieved
AND The system configures transmission settings
THEN:
• Transmission parameters are set according to KCSM processing requirements
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when transmission parameters have been configured.
Trigger Criteria:
Context: Transmission parameters have been configured
Applied to: Spawn GCT1091E Transaction for KCSM
Action: The system initiates KCSM processing transaction
Logic Flow:
IF Transmission parameters have been configured
AND The system initiates KCSM processing transaction
THEN:
• GCT1091E transaction is spawned for KCSM message transmission
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when gct1091e transaction has been spawned.
Trigger Criteria:
Context: GCT1091E transaction has been spawned
Applied to: Queue Message for KCSM Transmission
Action: The system queues the message for transmission
Logic Flow:
IF GCT1091E transaction has been spawned
AND The system queues the message for transmission
THEN:
• The message is queued for KCSM transmission processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when message has been queued for kcsm transmission.
Trigger Criteria:
Context: Message has been queued for KCSM transmission
Applied to: Log Transmission Details
Action: The system completes transmission setup
Logic Flow:
IF Message has been queued for KCSM transmission
AND The system completes transmission setup
THEN:
• Transmission details are logged for audit and tracking purposes
Business Justification: Ensures correct system behavior and process compliance when message queue contains edi 350 messages for processing.
Trigger Criteria:
Context: A message queue contains EDI 350 messages for processing
Applied to: Retrieve EDI 350 Message Data
Action: The system initiates KCSM transmission dependent segment creation
Logic Flow:
IF A message queue contains EDI 350 messages for processing
AND The system initiates KCSM transmission dependent segment creation
THEN:
• The system retrieves EDI 350 message data from the message queue and loads it into the message array for processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when edi 350 message data has been retrieved.
Trigger Criteria:
Context: EDI 350 message data has been retrieved
Applied to: Initialize Dependent Segment Structure
Action: The system begins creating dependent segments
Logic Flow:
IF EDI 350 message data has been retrieved
AND The system begins creating dependent segments
THEN:
• The system initializes the A9DP dependent segment structure with default values and prepares it for data population
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when edi 350 message contains st segment data.
Trigger Criteria:
Context: EDI 350 message contains ST segment data
Applied to: Extract Transaction Set Header ST
Action: The system processes message segments sequentially
Logic Flow:
IF EDI 350 message contains ST segment data
AND The system processes message segments sequentially
THEN:
• The system extracts ST segment information and sets header found flag for subsequent processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when edi 350 message contains m10 segment with manifest information.
Trigger Criteria:
Context: EDI 350 message contains M10 segment with manifest information
Applied to: Extract Manifest Information M10
Action: The system encounters M10 segment during processing
Logic Flow:
IF EDI 350 message contains M10 segment with manifest information
AND The system encounters M10 segment during processing
THEN:
• The system extracts manifest information, validates train name, and performs train lookup if vessel name does not start with 'TRAIN'
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when edi 350 message contains p4 segment with port information.
Trigger Criteria:
Context: EDI 350 message contains P4 segment with port information
Applied to: Extract Port Information P4
Action: The system encounters P4 segment during processing
Logic Flow:
IF EDI 350 message contains P4 segment with port information
AND The system encounters P4 segment during processing
THEN:
• The system extracts port information and processes it for customs release procedures
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when edi 350 message contains v9 segment with event codes.
Trigger Criteria:
Context: EDI 350 message contains V9 segment with event codes
Applied to: Extract Event Details V9
Action: The system encounters V9 segment during processing
Logic Flow:
IF EDI 350 message contains V9 segment with event codes
AND The system encounters V9 segment during processing
THEN:
• The system evaluates event codes (HMI, HRE, POD, AAD, RC, OCA, COC, LCK, ULC, SEI, SER) and applies corresponding train or cargo status changes
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when edi 350 message contains n7 segment with equipment information.
Trigger Criteria:
Context: EDI 350 message contains N7 segment with equipment information
Applied to: Extract Equipment Information N7
Action: The system encounters N7 segment during processing
Logic Flow:
IF EDI 350 message contains N7 segment with equipment information
AND The system encounters N7 segment during processing
THEN:
• The system extracts equipment details, updates car ID information in cargo records, and handles multiple N7 segments per message
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when edi 350 message contains x4 segment with customs release information.
Trigger Criteria:
Context: EDI 350 message contains X4 segment with customs release information
Applied to: Extract Customs Release Information X4
Action: The system encounters X4 segment during processing
Logic Flow:
IF EDI 350 message contains X4 segment with customs release information
AND The system encounters X4 segment during processing
THEN:
• The system validates disposition codes, determines processing type (by bond, by car/waybill, or individual), and processes cargo status changes based on disposition code rules
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when edi 350 message contains k1 segment with remarks.
Trigger Criteria:
Context: EDI 350 message contains K1 segment with remarks
Applied to: Extract Remarks K1
Action: The system encounters K1 segment during processing
Logic Flow:
IF EDI 350 message contains K1 segment with remarks
AND The system encounters K1 segment during processing
THEN:
• The system extracts remarks information, processes broker data, and includes remarks in Merlin messages when applicable
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when edi segment data has been extracted from all applicable segments.
Trigger Criteria:
Context: EDI segment data has been extracted from all applicable segments
Applied to: Format Dependent Segment Data
Action: The system prepares to create dependent segments
Logic Flow:
IF EDI segment data has been extracted from all applicable segments
AND The system prepares to create dependent segments
THEN:
• The system formats the extracted data according to A9DP dependent segment specifications and ensures proper data structure
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when dependent segment data has been formatted.
Trigger Criteria:
Context: Dependent segment data has been formatted
Applied to: Set Segment Length and Type
Action: The system creates the dependent segment structure
Logic Flow:
IF Dependent segment data has been formatted
AND The system creates the dependent segment structure
THEN:
• The system calculates and sets the segment length based on data content and assigns the appropriate segment type identifier
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when segment length and type have been configured.
Trigger Criteria:
Context: Segment length and type have been configured
Applied to: Create A9DP Dependent Segment
Action: The system finalizes dependent segment creation
Logic Flow:
IF Segment length and type have been configured
AND The system finalizes dependent segment creation
THEN:
• The system creates the A9DP dependent segment structure with all formatted EDI data and proper segment identifiers
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when a9dp dependent segment has been created.
Trigger Criteria:
Context: A9DP dependent segment has been created
Applied to: Link to Transmission Root Segment
Action: The system establishes segment relationships
Logic Flow:
IF A9DP dependent segment has been created
AND The system establishes segment relationships
THEN:
• The system links the dependent segment to the corresponding A9RT transmission root segment to maintain proper hierarchical structure
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when dependent segment has been linked to transmission root segment.
Trigger Criteria:
Context: Dependent segment has been linked to transmission root segment
Applied to: Store Dependent Segment in Database
Action: The system persists segment data
Logic Flow:
IF Dependent segment has been linked to transmission root segment
AND The system persists segment data
THEN:
• The system stores the A9DP dependent segment in the database with proper key relationships and data integrity
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when one edi segment has been processed and stored.
Trigger Criteria:
Context: One EDI segment has been processed and stored
Applied to: More EDI Segments?
Action: The system checks for additional segments in the message array
Logic Flow:
IF One EDI segment has been processed and stored
AND The system checks for additional segments in the message array
THEN:
• If more EDI segments exist, the system continues processing from segment extraction; otherwise, it proceeds to validation
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when all edi segments have been processed and stored.
Trigger Criteria:
Context: All EDI segments have been processed and stored
Applied to: Validate Segment Creation
Action: The system performs final validation
Logic Flow:
IF All EDI segments have been processed and stored
AND The system performs final validation
THEN:
• The system verifies that all required dependent segments have been created with proper data integrity and linkages
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when dependent segment creation has been validated successfully.
Trigger Criteria:
Context: Dependent segment creation has been validated successfully
Applied to: Update Transmission Status
Action: The system finalizes the transmission process
Logic Flow:
IF Dependent segment creation has been validated successfully
AND The system finalizes the transmission process
THEN:
• The system updates the transmission status to indicate successful completion of dependent segment creation for KCSM transmission
R-GCX016-cbl-02290 (+13)File: GCX016.cblBusiness Rule: Equipment Information Processing for KCSM
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when n7 equipment segment is received in the message.
Trigger Criteria:
Context: An N7 equipment segment is received in the message
Applied to: Extract Equipment ID from N7 Segment
Action: The system processes the N7 segment
Logic Flow:
IF An N7 equipment segment is received in the message
AND The system processes the N7 segment
THEN:
• Equipment ID information is extracted from the N7 segment data
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when equipment id has been extracted from n7 segment.
Trigger Criteria:
Context: Equipment ID has been extracted from N7 segment
Applied to: Format Equipment ID using GCCCARFM Utility
Action: The system needs to format the equipment ID
Logic Flow:
IF Equipment ID has been extracted from N7 segment
AND The system needs to format the equipment ID
THEN:
• GCCCARFM utility is called to standardize the equipment ID format
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when equipment id has been formatted using gcccarfm utility.
Trigger Criteria:
Context: Equipment ID has been formatted using GCCCARFM utility
Applied to: Equipment ID Valid?
Action: The system validates the equipment ID
Logic Flow:
IF Equipment ID has been formatted using GCCCARFM utility
AND The system validates the equipment ID
THEN:
• Equipment ID is confirmed as valid or invalid based on business validation rules
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when equipment id has been formatted using gcccarfm utility.
Trigger Criteria:
Context: Equipment ID has been formatted using GCCCARFM utility
Applied to: Equipment ID Validation Error
Action: Equipment ID validation fails
Logic Flow:
IF Equipment ID has been formatted using GCCCARFM utility
AND Equipment ID validation fails
THEN:
• System handles validation error and proceeds to equipment processing completion
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when equipment id has been validated as valid.
Trigger Criteria:
Context: Equipment ID has been validated as valid
Applied to: Update Car ID Information in Cargo Records
Action: The system processes cargo records associated with the equipment
Logic Flow:
IF Equipment ID has been validated as valid
AND The system processes cargo records associated with the equipment
THEN:
• Car ID information is updated in the relevant cargo records
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when equipment id information has been processed and cargo records updated.
Trigger Criteria:
Context: Equipment ID information has been processed and cargo records updated
Applied to: KCSM Processing Required?
Action: The system evaluates KCSM transmission requirements
Logic Flow:
IF Equipment ID information has been processed and cargo records updated
AND The system evaluates KCSM transmission requirements
THEN:
• System determines whether KCSM processing is required for this equipment
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when kcsm processing has been determined as required.
Trigger Criteria:
Context: KCSM processing has been determined as required
Applied to: Check Disposition Code for KCSM Integration
Action: The system checks the disposition code associated with the equipment
Logic Flow:
IF KCSM processing has been determined as required
AND The system checks the disposition code associated with the equipment
THEN:
• Disposition code is evaluated to determine specific KCSM integration actions
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code indicates kcsm integration is required.
Trigger Criteria:
Context: Disposition code indicates KCSM integration is required
Applied to: Extract Equipment Details for KCSM
Action: The system extracts equipment details
Logic Flow:
IF Disposition code indicates KCSM integration is required
AND The system extracts equipment details
THEN:
• All necessary equipment information is extracted for KCSM transmission
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when equipment details have been extracted for kcsm processing. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: Equipment details have been extracted for KCSM processing
Applied to: Include N7 Segment in EDI 350 Message Copy
Action: The system creates EDI 350 message copy
Logic Flow:
IF Equipment details have been extracted for KCSM processing
AND The system creates EDI 350 message copy
THEN:
• N7 segment information is included in the EDI 350 message copy
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when n7 segment has been included in edi 350 message copy. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: N7 segment has been included in EDI 350 message copy
Applied to: Add Equipment Information to Transmission File
Action: The system processes transmission file updates
Logic Flow:
IF N7 segment has been included in EDI 350 message copy
AND The system processes transmission file updates
THEN:
• Equipment information is added to the KCSM transmission file
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when equipment information has been added to transmission file.
Trigger Criteria:
Context: Equipment information has been added to transmission file
Applied to: Create Transmission Dependent Segment with Equipment Data
Action: The system creates transmission dependent segments
Logic Flow:
IF Equipment information has been added to transmission file
AND The system creates transmission dependent segments
THEN:
• Dependent segments are created with equipment data for KCSM transmission
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when transmission dependent segments have been created with equipment data.
Trigger Criteria:
Context: Transmission dependent segments have been created with equipment data
Applied to: Queue Equipment Data for KCSM Transmission
Action: The system queues data for KCSM transmission
Logic Flow:
IF Transmission dependent segments have been created with equipment data
AND The system queues data for KCSM transmission
THEN:
• Equipment data is queued for transmission to KCSM system
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when equipment data has been queued for kcsm transmission.
Trigger Criteria:
Context: Equipment data has been queued for KCSM transmission
Applied to: Log Equipment Processing for KCSM
Action: The system completes equipment processing
Logic Flow:
IF Equipment data has been queued for KCSM transmission
AND The system completes equipment processing
THEN:
• Equipment processing activities are logged for KCSM audit trail
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when kcsm processing requirement check has been completed.
Trigger Criteria:
Context: KCSM processing requirement check has been completed
Applied to: Skip KCSM Processing
Action: KCSM processing is determined as not required
Logic Flow:
IF KCSM processing requirement check has been completed
AND KCSM processing is determined as not required
THEN:
• System skips KCSM processing and proceeds to completion
R-GCX016-cbl-02304 (+32)File: GCX016.cblBusiness Rule: Cargo Processing by Bond Number
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when x4 customs release segment is being processed.
Trigger Criteria:
Context: An X4 customs release segment is being processed
Applied to: Extract Bond Control Number from X4 Segment
Action: The system needs to process cargo by bond number
Logic Flow:
IF An X4 customs release segment is being processed
AND The system needs to process cargo by bond number
THEN:
• The bond control number is extracted from the X4 segment and stored for cargo lookup operations
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when x4 customs release segment is being processed.
Trigger Criteria:
Context: An X4 customs release segment is being processed
Applied to: Extract Bond Control Number from X4 Segment
Action: The system processes the X4 segment for bond number information
Logic Flow:
IF An X4 customs release segment is being processed
AND The system processes the X4 segment for bond number information
THEN:
• The bond control number is extracted from the X4 segment and made available for cargo grouping operations
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when bond control number has been extracted from the x4 segment.
Trigger Criteria:
Context: A bond control number has been extracted from the X4 segment
Applied to: Validate Bond Number Format
Action: The system validates the bond number format
Logic Flow:
IF A bond control number has been extracted from the X4 segment
AND The system validates the bond number format
THEN:
• The bond number must be non-blank and meet format requirements to proceed with processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when bond control number has been extracted from the x4 segment.
Trigger Criteria:
Context: A bond control number has been extracted from the X4 segment
Applied to: Validate Bond Number Format
Action: The system validates the bond number format against customs requirements
Logic Flow:
IF A bond control number has been extracted from the X4 segment
AND The system validates the bond number format against customs requirements
THEN:
• Processing continues to cargo search if format is valid, otherwise bond number error processing is triggered
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when valid bond control number has been identified.
Trigger Criteria:
Context: A valid bond control number has been identified
Applied to: Set Bond Processing Flag
Action: The system prepares for bond-based processing
Logic Flow:
IF A valid bond control number has been identified
AND The system prepares for bond-based processing
THEN:
• The bond processing flag is set to enable group processing mode
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when bond processing mode has been activated.
Trigger Criteria:
Context: Bond processing mode has been activated
Applied to: Initialize Cargo Counter
Action: The system begins processing cargo records for a bond
Logic Flow:
IF Bond processing mode has been activated
AND The system begins processing cargo records for a bond
THEN:
• The cargo counter is initialized to zero to track processing progress
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when valid bond control number is available for processing.
Trigger Criteria:
Context: A valid bond control number is available for processing
Applied to: Fetch First Cargo Record by Bond Number
Action: The system searches for cargo records associated with the bond
Logic Flow:
IF A valid bond control number is available for processing
AND The system searches for cargo records associated with the bond
THEN:
• The first cargo record matching the bond number is retrieved from the GCCC-CARGO-ROOT database
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when database search for cargo records by bond number has been executed.
Trigger Criteria:
Context: A database search for cargo records by bond number has been executed
Applied to: Cargo Found?
Action: The system evaluates the search results
Logic Flow:
IF A database search for cargo records by bond number has been executed
AND The system evaluates the search results
THEN:
• If cargo records are found, processing continues; if no cargo records exist, bond processing is completed
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record has been found for the current bond number.
Trigger Criteria:
Context: A cargo record has been found for the current bond number
Applied to: Load Cargo Record Details
Action: The system prepares to process the cargo record
Logic Flow:
IF A cargo record has been found for the current bond number
AND The system prepares to process the cargo record
THEN:
• All cargo record details and associated status segments are loaded into working storage
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record has been loaded for processing within a bond group.
Trigger Criteria:
Context: A cargo record has been loaded for processing within a bond group
Applied to: Process Current Cargo Record
Action: The system processes the individual cargo record
Logic Flow:
IF A cargo record has been loaded for processing within a bond group
AND The system processes the individual cargo record
THEN:
• The cargo record is processed according to the disposition code rules and business logic
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record is being processed and a disposition code is available from the x4 segment.
Trigger Criteria:
Context: A cargo record is being processed and a disposition code is available from the X4 segment
Applied to: Apply Disposition Code to Cargo
Action: The system applies the disposition code to the cargo
Logic Flow:
IF A cargo record is being processed and a disposition code is available from the X4 segment
AND The system applies the disposition code to the cargo
THEN:
• The disposition code is processed according to customs rules and the appropriate action is determined for the cargo
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when disposition code has been applied to a cargo record.
Trigger Criteria:
Context: A disposition code has been applied to a cargo record
Applied to: Update Cargo Status
Action: The system updates the cargo status
Logic Flow:
IF A disposition code has been applied to a cargo record
AND The system updates the cargo status
THEN:
• The cargo status is updated in the GCSUSS09 status segments and the cargo record is saved to the database
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record has been successfully processed within a bond group.
Trigger Criteria:
Context: A cargo record has been successfully processed within a bond group
Applied to: Increment Cargo Counter
Action: The system updates processing statistics
Logic Flow:
IF A cargo record has been successfully processed within a bond group
AND The system updates processing statistics
THEN:
• The cargo counter is incremented by one to reflect the completed processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record has been processed and more records may exist for the same bond.
Trigger Criteria:
Context: A cargo record has been processed and more records may exist for the same bond
Applied to: Fetch Next Cargo Record with Same Bond
Action: The system searches for the next cargo record with the same bond number
Logic Flow:
IF A cargo record has been processed and more records may exist for the same bond
AND The system searches for the next cargo record with the same bond number
THEN:
• The next cargo record matching the bond number is retrieved from the database if it exists
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when system has attempted to retrieve the next cargo record for a bond number.
Trigger Criteria:
Context: The system has attempted to retrieve the next cargo record for a bond number
Applied to: More Cargo Records?
Action: The system evaluates if more cargo records exist
Logic Flow:
IF The system has attempted to retrieve the next cargo record for a bond number
AND The system evaluates if more cargo records exist
THEN:
• If more cargo records exist, processing continues with the next record; if no more records exist, bond processing moves to completion
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when all cargo records for a bond number have been processed.
Trigger Criteria:
Context: All cargo records for a bond number have been processed
Applied to: Log Bond Processing Summary
Action: The system completes bond processing
Logic Flow:
IF All cargo records for a bond number have been processed
AND The system completes bond processing
THEN:
• A summary log entry is created showing the bond number, cargo count processed, and processing results
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when bond processing has been completed and summary logged.
Trigger Criteria:
Context: Bond processing has been completed and summary logged
Applied to: Generate Bond Processing Report
Action: The system generates processing reports
Logic Flow:
IF Bond processing has been completed and summary logged
AND The system generates processing reports
THEN:
• A detailed bond processing report is created containing all cargo records processed and their final status
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when all cargo records for a bond have been processed and reports generated.
Trigger Criteria:
Context: All cargo records for a bond have been processed and reports generated
Applied to: Complete Bond Processing
Action: The system completes bond processing
Logic Flow:
IF All cargo records for a bond have been processed and reports generated
AND The system completes bond processing
THEN:
• Bond processing is marked as complete and system resources are cleaned up
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when bond number validation has failed.
Trigger Criteria:
Context: Bond number validation has failed
Applied to: Log Bond Validation Error
Action: The system handles the validation error
Logic Flow:
IF Bond number validation has failed
AND The system handles the validation error
THEN:
• An error log entry is created documenting the invalid bond number and validation failure reason
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when bond validation error has been logged.
Trigger Criteria:
Context: A bond validation error has been logged
Applied to: Generate Error Message
Action: The system generates error notifications
Logic Flow:
IF A bond validation error has been logged
AND The system generates error notifications
THEN:
• An error message is created indicating bond number validation failure and appropriate corrective actions
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when bond number validation has failed and error messages have been generated.
Trigger Criteria:
Context: Bond number validation has failed and error messages have been generated
Applied to: Skip Bond Processing
Action: The system determines next processing steps
Logic Flow:
IF Bond number validation has failed and error messages have been generated
AND The system determines next processing steps
THEN:
• Bond processing is skipped and the system continues with other available processing options
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when x4 segment has been processed for bond number extraction.
Trigger Criteria:
Context: An X4 segment has been processed for bond number extraction
Applied to: Bond Number Present?
Action: The system checks for the presence of a bond control number
Logic Flow:
IF An X4 segment has been processed for bond number extraction
AND The system checks for the presence of a bond control number
THEN:
• Processing continues to bond validation if bond number exists, otherwise bond number error processing is triggered
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when valid bond control number has been extracted and validated.
Trigger Criteria:
Context: A valid bond control number has been extracted and validated
Applied to: Search All Cargo Records with Same Bond Number
Action: The system searches the cargo database using the bond control number as the key
Logic Flow:
IF A valid bond control number has been extracted and validated
AND The system searches the cargo database using the bond control number as the key
THEN:
• All cargo records with matching bond numbers are retrieved for disposition code processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when search has been performed for cargo records with a specific bond number.
Trigger Criteria:
Context: A search has been performed for cargo records with a specific bond number
Applied to: Cargo Records Found?
Action: The system evaluates the search results
Logic Flow:
IF A search has been performed for cargo records with a specific bond number
AND The system evaluates the search results
THEN:
• Processing continues to cargo processing if records are found, otherwise no cargo found message is generated
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo records with matching bond numbers have been found.
Trigger Criteria:
Context: Cargo records with matching bond numbers have been found
Applied to: Process Each Cargo Record with Bond Number
Action: The system processes each cargo record individually
Logic Flow:
IF Cargo records with matching bond numbers have been found
AND The system processes each cargo record individually
THEN:
• Each cargo record is prepared for disposition code application and status updates
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo records with matching bond numbers are being processed and a disposition code exists in the x4 segment.
Trigger Criteria:
Context: Cargo records with matching bond numbers are being processed and a disposition code exists in the X4 segment
Applied to: Apply Disposition Code to All Bond Cargo
Action: The system applies the disposition code to each cargo record in the bond group
Logic Flow:
IF Cargo records with matching bond numbers are being processed and a disposition code exists in the X4 segment
AND The system applies the disposition code to each cargo record in the bond group
THEN:
• All cargo records in the bond group receive the same disposition code treatment for consistent processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition codes have been applied to all cargo records in a bond group.
Trigger Criteria:
Context: Disposition codes have been applied to all cargo records in a bond group
Applied to: Update Status Arrays for All Bond Cargo
Action: The system updates the status arrays for each cargo record
Logic Flow:
IF Disposition codes have been applied to all cargo records in a bond group
AND The system updates the status arrays for each cargo record
THEN:
• All cargo records in the bond group have their status arrays updated to reflect the new disposition code status
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition codes have been applied and status arrays updated for bond cargo.
Trigger Criteria:
Context: Disposition codes have been applied and status arrays updated for bond cargo
Applied to: Validate Disposition Code Against Bond Cargo
Action: The system validates the disposition code against each cargo record's current status and characteristics
Logic Flow:
IF Disposition codes have been applied and status arrays updated for bond cargo
AND The system validates the disposition code against each cargo record's current status and characteristics
THEN:
• The disposition code application is confirmed as valid for each cargo record or validation errors are identified
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record in the bond group has been processed.
Trigger Criteria:
Context: A cargo record in the bond group has been processed
Applied to: More Cargo Records?
Action: The system checks if more cargo records in the bond group need processing
Logic Flow:
IF A cargo record in the bond group has been processed
AND The system checks if more cargo records in the bond group need processing
THEN:
• Processing continues with the next cargo record if more exist, otherwise proceeds to message generation
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when all cargo records in the bond group have been processed.
Trigger Criteria:
Context: All cargo records in the bond group have been processed
Applied to: Generate Bond Processing Messages
Action: The system generates processing messages for the bond operation
Logic Flow:
IF All cargo records in the bond group have been processed
AND The system generates processing messages for the bond operation
THEN:
• Messages are created documenting the disposition code application results for all cargo in the bond group
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when bond processing messages have been generated.
Trigger Criteria:
Context: Bond processing messages have been generated
Applied to: Log Bond Processing Results
Action: The system logs the bond processing results
Logic Flow:
IF Bond processing messages have been generated
AND The system logs the bond processing results
THEN:
• All bond processing activities and results are recorded in the system logs for audit trail purposes
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when bond number validation has failed or no bond number is present.
Trigger Criteria:
Context: Bond number validation has failed or no bond number is present
Applied to: Generate Bond Number Error Message
Action: The system generates an error message for the bond number issue
Logic Flow:
IF Bond number validation has failed or no bond number is present
AND The system generates an error message for the bond number issue
THEN:
• An appropriate error message is created indicating the specific bond number validation failure
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when search for cargo records by bond number has returned no results.
Trigger Criteria:
Context: A search for cargo records by bond number has returned no results
Applied to: Generate No Cargo Found Message
Action: The system generates a no cargo found message
Logic Flow:
IF A search for cargo records by bond number has returned no results
AND The system generates a no cargo found message
THEN:
• A message is created indicating that no cargo records exist for the specified bond number
R-GCX016-cbl-02323 (+37)File: GCX016.cblBusiness Rule: Cargo Processing by Car and Waybill
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo processing request by car and waybill combination is initiated.
Trigger Criteria:
Context: A cargo processing request by car and waybill combination is initiated
Applied to: Car ID Available?
Action: The system checks for car ID availability in the N7 segment data
Logic Flow:
IF A cargo processing request by car and waybill combination is initiated
AND The system checks for car ID availability in the N7 segment data
THEN:
• If car ID is not available, log 'No Car ID Available' and proceed to alternative cargo retrieval method
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when car id is available for cargo processing.
Trigger Criteria:
Context: Car ID is available for cargo processing
Applied to: Waybill Number Available?
Action: The system checks for waybill number availability in the X4 segment data
Logic Flow:
IF Car ID is available for cargo processing
AND The system checks for waybill number availability in the X4 segment data
THEN:
• If waybill number is not available, log 'No Waybill Available' and proceed to alternative cargo retrieval method
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when car id is available from n7 segment.
Trigger Criteria:
Context: Car ID is available from N7 segment
Applied to: Validate Car ID Format
Action: The system validates the car ID format for proper structure and length
Logic Flow:
IF Car ID is available from N7 segment
AND The system validates the car ID format for proper structure and length
THEN:
• Car ID must meet required format specifications to proceed with cargo search
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when waybill number is available from x4 segment.
Trigger Criteria:
Context: Waybill number is available from X4 segment
Applied to: Validate Waybill Number Format
Action: The system validates the waybill number format for proper structure and length
Logic Flow:
IF Waybill number is available from X4 segment
AND The system validates the waybill number format for proper structure and length
THEN:
• Waybill number must meet required format specifications to proceed with cargo search
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when valid car id and waybill number are available.
Trigger Criteria:
Context: Valid car ID and waybill number are available
Applied to: Search Cargo by Car ID and Waybill Combination
Action: The system performs cargo database search using car ID and waybill combination
Logic Flow:
IF Valid car ID and waybill number are available
AND The system performs cargo database search using car ID and waybill combination
THEN:
• System retrieves all cargo records matching the exact car ID and waybill number combination
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when valid car id and waybill number are available.
Trigger Criteria:
Context: Valid car ID and waybill number are available
Applied to: Build Car-Waybill Key
Action: The system needs to search for cargo records by car and waybill
Logic Flow:
IF Valid car ID and waybill number are available
AND The system needs to search for cargo records by car and waybill
THEN:
• A composite key is built combining the car ID and waybill number for database search operations
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo search by car id and waybill has been executed.
Trigger Criteria:
Context: Cargo search by car ID and waybill has been executed
Applied to: Cargo Records Found?
Action: The system evaluates the search results
Logic Flow:
IF Cargo search by car ID and waybill has been executed
AND The system evaluates the search results
THEN:
• If no cargo records are found, log 'No Cargo Found for Car/Waybill' and proceed to alternative cargo retrieval method
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo records exist for the specified car id and waybill combination.
Trigger Criteria:
Context: Cargo records exist for the specified car ID and waybill combination
Applied to: Retrieve All Matching Cargo Records
Action: The system retrieves matching cargo records from the database
Logic Flow:
IF Cargo records exist for the specified car ID and waybill combination
AND The system retrieves matching cargo records from the database
THEN:
• All cargo records matching the car ID and waybill combination are loaded for individual processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when multiple cargo records are retrieved for a car and waybill combination.
Trigger Criteria:
Context: Multiple cargo records are retrieved for a car and waybill combination
Applied to: Process Each Cargo Record
Action: The system iterates through each cargo record
Logic Flow:
IF Multiple cargo records are retrieved for a car and waybill combination
AND The system iterates through each cargo record
THEN:
• Each cargo record is processed individually with the same disposition code and processing parameters
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record is being processed.
Trigger Criteria:
Context: A cargo record is being processed
Applied to: Update Cargo Status Information
Action: The system applies disposition codes and business rules to the cargo
Logic Flow:
IF A cargo record is being processed
AND The system applies disposition codes and business rules to the cargo
THEN:
• Cargo status information is updated to reflect the current processing state and any status changes
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo records are being processed with a specific disposition code.
Trigger Criteria:
Context: Cargo records are being processed with a specific disposition code
Applied to: Apply Disposition Codes to Cargo
Action: The system applies the disposition code to each cargo record
Logic Flow:
IF Cargo records are being processed with a specific disposition code
AND The system applies the disposition code to each cargo record
THEN:
• The disposition code is processed according to its type (hold, release, status info) and applied to the cargo's status array
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition codes are applied to cargo records in a car and waybill group.
Trigger Criteria:
Context: Disposition codes are applied to cargo records in a car and waybill group
Applied to: Calculate Release Quantities
Action: The system processes quantity-affecting disposition codes
Logic Flow:
IF Disposition codes are applied to cargo records in a car and waybill group
AND The system processes quantity-affecting disposition codes
THEN:
• Release quantities are calculated by adding or subtracting quantities based on disposition code action, ensuring quantities do not go below zero
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo records have been processed with updated status and quantities.
Trigger Criteria:
Context: Cargo records have been processed with updated status and quantities
Applied to: Update Cargo Database Records
Action: The system commits changes to the cargo database
Logic Flow:
IF Cargo records have been processed with updated status and quantities
AND The system commits changes to the cargo database
THEN:
• All cargo records in the car and waybill group are updated in the database with new status, quantities, and processing timestamps
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo records in a car and waybill group have been successfully processed.
Trigger Criteria:
Context: Cargo records in a car and waybill group have been successfully processed
Applied to: Generate Processing Messages
Action: The system generates processing messages
Logic Flow:
IF Cargo records in a car and waybill group have been successfully processed
AND The system generates processing messages
THEN:
• Appropriate messages are generated including Merlin notifications, broker notifications, and status change messages for the entire car and waybill group
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when car and waybill processing cannot proceed due to missing car id, missing waybill, or no cargo found.
Trigger Criteria:
Context: Car and waybill processing cannot proceed due to missing car ID, missing waybill, or no cargo found
Applied to: Try Alternative Cargo Retrieval Method
Action: The system invokes alternative cargo retrieval methods
Logic Flow:
IF Car and waybill processing cannot proceed due to missing car ID, missing waybill, or no cargo found
AND The system invokes alternative cargo retrieval methods
THEN:
• System attempts to process cargo using individual cargo processing method or by bond number method as alternatives
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when n7 equipment segment is available in the message.
Trigger Criteria:
Context: An N7 equipment segment is available in the message
Applied to: Extract Car ID from N7 Segment
Action: The system processes the N7 segment for car identification
Logic Flow:
IF An N7 equipment segment is available in the message
AND The system processes the N7 segment for car identification
THEN:
• The car initial and car number are extracted and combined to form the complete car ID
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when x4 customs release segment contains waybill information.
Trigger Criteria:
Context: An X4 customs release segment contains waybill information
Applied to: Extract Waybill Number from X4 Segment
Action: The system processes the X4 segment for waybill identification
Logic Flow:
IF An X4 customs release segment contains waybill information
AND The system processes the X4 segment for waybill identification
THEN:
• The waybill number is extracted from the X4 segment data
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when car initial and car number have been extracted from n7 segment.
Trigger Criteria:
Context: Car initial and car number have been extracted from N7 segment
Applied to: Format Equipment ID using GCCCARFM
Action: The system needs to format the equipment ID for database operations
Logic Flow:
IF Car initial and car number have been extracted from N7 segment
AND The system needs to format the equipment ID for database operations
THEN:
• The GCCCARFM formatting routine is called to standardize the equipment ID format
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when car id and waybill number have been extracted from message segments.
Trigger Criteria:
Context: Car ID and waybill number have been extracted from message segments
Applied to: Car ID and Waybill Valid?
Action: The system validates the car-waybill combination
Logic Flow:
IF Car ID and waybill number have been extracted from message segments
AND The system validates the car-waybill combination
THEN:
• Processing continues if both values are valid, otherwise error handling is triggered
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when car-waybill composite key has been constructed.
Trigger Criteria:
Context: A car-waybill composite key has been constructed
Applied to: Search Cargo Database by Car-Waybill Index
Action: The system searches the cargo database using the car-waybill index
Logic Flow:
IF A car-waybill composite key has been constructed
AND The system searches the cargo database using the car-waybill index
THEN:
• All cargo records matching the car-waybill combination are identified
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when database search has been performed using car-waybill key.
Trigger Criteria:
Context: A database search has been performed using car-waybill key
Applied to: Cargo Records Found?
Action: The system evaluates the search results
Logic Flow:
IF A database search has been performed using car-waybill key
AND The system evaluates the search results
THEN:
• If cargo records are found, processing continues with record retrieval, otherwise error handling is initiated
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo records exist for the car-waybill combination.
Trigger Criteria:
Context: Cargo records exist for the car-waybill combination
Applied to: Retrieve All Matching Cargo Records
Action: The system retrieves matching cargo records
Logic Flow:
IF Cargo records exist for the car-waybill combination
AND The system retrieves matching cargo records
THEN:
• All cargo records associated with the car-waybill combination are loaded for processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo records have been retrieved from the database.
Trigger Criteria:
Context: Cargo records have been retrieved from the database
Applied to: Validate Cargo Record Status
Action: The system validates each cargo record status
Logic Flow:
IF Cargo records have been retrieved from the database
AND The system validates each cargo record status
THEN:
• Only cargo records with valid processing status are included in subsequent operations
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when valid cargo records have been retrieved and validated.
Trigger Criteria:
Context: Valid cargo records have been retrieved and validated
Applied to: Multiple Records Found?
Action: The system counts the number of valid cargo records
Logic Flow:
IF Valid cargo records have been retrieved and validated
AND The system counts the number of valid cargo records
THEN:
• If multiple records exist, batch processing is initiated, otherwise single record processing is performed
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when multiple valid cargo records exist for the car-waybill combination.
Trigger Criteria:
Context: Multiple valid cargo records exist for the car-waybill combination
Applied to: Process Each Cargo Record Individually
Action: The system processes the cargo records
Logic Flow:
IF Multiple valid cargo records exist for the car-waybill combination
AND The system processes the cargo records
THEN:
• Each cargo record is processed individually with the same disposition code and business rules applied
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when only one valid cargo record exists for the car-waybill combination.
Trigger Criteria:
Context: Only one valid cargo record exists for the car-waybill combination
Applied to: Apply Disposition Code to Single Record
Action: The system applies the disposition code
Logic Flow:
IF Only one valid cargo record exists for the car-waybill combination
AND The system applies the disposition code
THEN:
• The disposition code from the X4 segment is applied to the single cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition codes have been applied to cargo records.
Trigger Criteria:
Context: Disposition codes have been applied to cargo records
Applied to: Update Cargo Status Arrays
Action: The system updates cargo status information
Logic Flow:
IF Disposition codes have been applied to cargo records
AND The system updates cargo status information
THEN:
• Cargo status arrays are updated with new disposition codes, release quantities, and status flags
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo records have been processed for the current car-waybill combination.
Trigger Criteria:
Context: Cargo records have been processed for the current car-waybill combination
Applied to: Check for Related Equipment
Action: The system checks for related equipment
Logic Flow:
IF Cargo records have been processed for the current car-waybill combination
AND The system checks for related equipment
THEN:
• Any additional cars or equipment associated with the cargo are identified for potential processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when current car processing is complete and related equipment has been checked.
Trigger Criteria:
Context: Current car processing is complete and related equipment has been checked
Applied to: Process All Cars in Consist?
Action: The system evaluates whether additional cars need processing
Logic Flow:
IF Current car processing is complete and related equipment has been checked
AND The system evaluates whether additional cars need processing
THEN:
• If additional cars require processing, the system moves to the next car, otherwise it proceeds to release validation
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when additional cars in the consist require processing.
Trigger Criteria:
Context: Additional cars in the consist require processing
Applied to: Move to Next Car in Consist
Action: The system moves to the next car
Logic Flow:
IF Additional cars in the consist require processing
AND The system moves to the next car
THEN:
• Processing continues with the next car ID extraction and cargo record processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when all cars in the consist have been processed.
Trigger Criteria:
Context: All cars in the consist have been processed
Applied to: Validate Release Eligibility Across All Cars
Action: The system validates release eligibility across all cars
Logic Flow:
IF All cars in the consist have been processed
AND The system validates release eligibility across all cars
THEN:
• Release eligibility is confirmed for all cargo records before proceeding with release message generation
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when all cargo records have been validated for release eligibility.
Trigger Criteria:
Context: All cargo records have been validated for release eligibility
Applied to: Generate Multi-Cargo Release Messages
Action: The system generates release messages
Logic Flow:
IF All cargo records have been validated for release eligibility
AND The system generates release messages
THEN:
• Appropriate release messages are created for all eligible cargo records in the car-waybill group
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when release messages have been generated for eligible cargo.
Trigger Criteria:
Context: Release messages have been generated for eligible cargo
Applied to: Update All Related Cargo Records
Action: The system updates cargo records
Logic Flow:
IF Release messages have been generated for eligible cargo
AND The system updates cargo records
THEN:
• All related cargo records are updated with final status, disposition codes, and processing timestamps
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when all cargo records have been updated with final status.
Trigger Criteria:
Context: All cargo records have been updated with final status
Applied to: Complete Car-Waybill Processing
Action: The system completes car-waybill processing
Logic Flow:
IF All cargo records have been updated with final status
AND The system completes car-waybill processing
THEN:
• Processing is marked as complete and the system prepares for result logging
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when car-waybill processing has been completed.
Trigger Criteria:
Context: Car-waybill processing has been completed
Applied to: Log Processing Results
Action: The system logs processing results
Logic Flow:
IF Car-waybill processing has been completed
AND The system logs processing results
THEN:
• Processing statistics, success counts, error counts, and audit information are recorded in system logs
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when no cargo records exist for the car-waybill combination.
Trigger Criteria:
Context: No cargo records exist for the car-waybill combination
Applied to: Handle Cargo Not Found Error
Action: The system handles the cargo not found condition
Logic Flow:
IF No cargo records exist for the car-waybill combination
AND The system handles the cargo not found condition
THEN:
• Error messages are generated and the system may create new cargo records or foreign bill records as appropriate
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo not found error has been triggered and foreign bill creation is required.
Trigger Criteria:
Context: Cargo not found error has been triggered and foreign bill creation is required
Applied to: Create Foreign Bill Record
Action: The system creates a foreign bill record
Logic Flow:
IF Cargo not found error has been triggered and foreign bill creation is required
AND The system creates a foreign bill record
THEN:
• A new foreign bill record is created with car-waybill information for subsequent processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when foreign bill record has been created or new cargo initialization is required.
Trigger Criteria:
Context: A foreign bill record has been created or new cargo initialization is required
Applied to: Initialize New Cargo with Car-Waybill Data
Action: The system initializes new cargo with car-waybill data
Logic Flow:
IF A foreign bill record has been created or new cargo initialization is required
AND The system initializes new cargo with car-waybill data
THEN:
• New cargo records are created and populated with available car ID, waybill number, and disposition code information
R-GCX016-cbl-02337 (+8)File: GCX016.cblBusiness Rule: Bond Number Validation for Cargo Processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when x4 segment is received for cargo processing.
Trigger Criteria:
Context: An X4 segment is received for cargo processing
Applied to: Bond Number Present?
Action: The system checks for bond control number presence in the X4 segment
Logic Flow:
IF An X4 segment is received for cargo processing
AND The system checks for bond control number presence in the X4 segment
THEN:
• If bond control number is empty or spaces, log bond validation error and skip bond-based processing, otherwise proceed to bond format validation
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when bond control number is present in the x4 segment.
Trigger Criteria:
Context: A bond control number is present in the X4 segment
Applied to: Valid Bond Format?
Action: The system validates the bond number format against system requirements
Logic Flow:
IF A bond control number is present in the X4 segment
AND The system validates the bond number format against system requirements
THEN:
• If bond format is invalid, log invalid bond format error and skip bond-based processing, otherwise proceed to search cargo records by bond number
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when valid bond control number format is confirmed.
Trigger Criteria:
Context: A valid bond control number format is confirmed
Applied to: Cargo Records Found with Bond?
Action: The system searches cargo records using the bond control number as search criteria
Logic Flow:
IF A valid bond control number format is confirmed
AND The system searches cargo records using the bond control number as search criteria
THEN:
• If no cargo records are found with the bond number, generate bond not found message and skip bond-based processing, otherwise proceed to validate bond number against system tables
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo records are found with the bond control number.
Trigger Criteria:
Context: Cargo records are found with the bond control number
Applied to: Bond Number Exists in System?
Action: The system validates the bond number against authorized bond system tables
Logic Flow:
IF Cargo records are found with the bond control number
AND The system validates the bond number against authorized bond system tables
THEN:
• If bond number does not exist in system tables, log bond validation error and skip bond-based processing, otherwise mark bond as valid for processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when bond number exists in system tables and cargo records are found.
Trigger Criteria:
Context: Bond number exists in system tables and cargo records are found
Applied to: Mark Bond as Valid for Processing
Action: The system completes bond validation successfully
Logic Flow:
IF Bond number exists in system tables and cargo records are found
AND The system completes bond validation successfully
THEN:
• Mark bond as valid for processing and proceed to bond-based cargo processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when bond validation fails due to missing bond number or bond not found in system.
Trigger Criteria:
Context: Bond validation fails due to missing bond number or bond not found in system
Applied to: Log Bond Validation Error
Action: The system encounters bond validation failure
Logic Flow:
IF Bond validation fails due to missing bond number or bond not found in system
AND The system encounters bond validation failure
THEN:
• Log bond validation error with appropriate error details and skip bond-based processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when no cargo records are found with the provided bond control number.
Trigger Criteria:
Context: No cargo records are found with the provided bond control number
Applied to: Generate Bond Not Found Message
Action: The system completes cargo record search with no results
Logic Flow:
IF No cargo records are found with the provided bond control number
AND The system completes cargo record search with no results
THEN:
• Generate bond not found message and skip bond-based processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when bond control number is present but format validation fails.
Trigger Criteria:
Context: Bond control number is present but format validation fails
Applied to: Log Invalid Bond Format Error
Action: The system validates bond number format
Logic Flow:
IF Bond control number is present but format validation fails
AND The system validates bond number format
THEN:
• Log invalid bond format error and skip bond-based processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when bond number is validated and marked as valid for processing.
Trigger Criteria:
Context: Bond number is validated and marked as valid for processing
Applied to: Proceed to Bond-based Cargo Processing
Action: The system completes bond validation successfully
Logic Flow:
IF Bond number is validated and marked as valid for processing
AND The system completes bond validation successfully
THEN:
• Proceed to bond-based cargo processing for all cargo records with the same bond control number
R-GCX016-cbl-02346 (+14)File: GCX016.cblBusiness Rule: Car and Waybill Validation for Cargo Processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when car id is received from n7 segment.
Trigger Criteria:
Context: A car ID is received from N7 segment
Applied to: Format Car ID using GCCCARFM Utility
Action: The system formats the car ID using GCCCARFM utility
Logic Flow:
IF A car ID is received from N7 segment
AND The system formats the car ID using GCCCARFM utility
THEN:
• The car ID is standardized to proper format for validation
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when car id has been formatted using gcccarfm utility.
Trigger Criteria:
Context: A car ID has been formatted using GCCCARFM utility
Applied to: Car ID Valid Format?
Action: The system checks if the car ID format is valid
Logic Flow:
IF A car ID has been formatted using GCCCARFM utility
AND The system checks if the car ID format is valid
THEN:
• The system proceeds to waybill extraction if valid, or logs format error if invalid
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when car id format is valid.
Trigger Criteria:
Context: Car ID format is valid
Applied to: Extract Waybill Number from Entry
Action: The system extracts waybill number from X4 segment entry
Logic Flow:
IF Car ID format is valid
AND The system extracts waybill number from X4 segment entry
THEN:
• The waybill number is available for presence validation
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when waybill number has been extracted from entry.
Trigger Criteria:
Context: Waybill number has been extracted from entry
Applied to: Waybill Number Present?
Action: The system checks if waybill number is present
Logic Flow:
IF Waybill number has been extracted from entry
AND The system checks if waybill number is present
THEN:
• The system proceeds to car ID length validation if present, or logs missing waybill error if absent
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when waybill number is present.
Trigger Criteria:
Context: Waybill number is present
Applied to: Car ID Length Valid?
Action: The system validates car ID length and characters
Logic Flow:
IF Waybill number is present
AND The system validates car ID length and characters
THEN:
• The system proceeds to standards check if length is valid, or logs invalid length error if not valid
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when car id length is valid.
Trigger Criteria:
Context: Car ID length is valid
Applied to: Car ID Meets Standards?
Action: The system checks car ID against system standards
Logic Flow:
IF Car ID length is valid
AND The system checks car ID against system standards
THEN:
• The system proceeds to waybill format validation if standards are met, or logs standards error if not met
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when car id meets system standards.
Trigger Criteria:
Context: Car ID meets system standards
Applied to: Waybill Format Valid?
Action: The system validates waybill number format
Logic Flow:
IF Car ID meets system standards
AND The system validates waybill number format
THEN:
• The system sets validation success flag if format is valid, or logs format error if invalid
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when waybill format is valid.
Trigger Criteria:
Context: Waybill format is valid
Applied to: Set Validation Success Flag
Action: The system sets validation success flag
Logic Flow:
IF Waybill format is valid
AND The system sets validation success flag
THEN:
• The system proceeds to cargo processing by car and waybill
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when car id format is invalid.
Trigger Criteria:
Context: Car ID format is invalid
Applied to: Log Car ID Format Error
Action: The system logs car ID format error
Logic Flow:
IF Car ID format is invalid
AND The system logs car ID format error
THEN:
• The system sets validation failure flag and skips cargo processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when waybill number is not present.
Trigger Criteria:
Context: Waybill number is not present
Applied to: Log Missing Waybill Error
Action: The system logs missing waybill error
Logic Flow:
IF Waybill number is not present
AND The system logs missing waybill error
THEN:
• The system sets validation failure flag and skips cargo processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when car id length is invalid.
Trigger Criteria:
Context: Car ID length is invalid
Applied to: Log Invalid Car ID Length Error
Action: The system logs invalid car ID length error
Logic Flow:
IF Car ID length is invalid
AND The system logs invalid car ID length error
THEN:
• The system sets validation failure flag and skips cargo processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when car id does not meet system standards.
Trigger Criteria:
Context: Car ID does not meet system standards
Applied to: Log Car ID Standards Error
Action: The system logs car ID standards error
Logic Flow:
IF Car ID does not meet system standards
AND The system logs car ID standards error
THEN:
• The system sets validation failure flag and skips cargo processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when waybill format is invalid.
Trigger Criteria:
Context: Waybill format is invalid
Applied to: Log Waybill Format Error
Action: The system logs waybill format error
Logic Flow:
IF Waybill format is invalid
AND The system logs waybill format error
THEN:
• The system sets validation failure flag and skips cargo processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when any validation error has been logged.
Trigger Criteria:
Context: Any validation error has been logged
Applied to: Set Validation Failure Flag
Action: The system sets validation failure flag
Logic Flow:
IF Any validation error has been logged
AND The system sets validation failure flag
THEN:
• The system skips cargo processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when validation failure flag is set.
Trigger Criteria:
Context: Validation failure flag is set
Applied to: Skip Cargo Processing
Action: The system encounters validation failure
Logic Flow:
IF Validation failure flag is set
AND The system encounters validation failure
THEN:
• The system skips cargo processing and does not proceed with car and waybill operations
R-GCX016-cbl-02361 (+7)File: GCX016.cblBusiness Rule: Equipment ID Formatting and Validation
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when equipment identifier is received from n7 segment. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: An equipment identifier is received from N7 segment
Applied to: Call GCCCARFM Utility
Action: The system calls GCCCARFM utility to validate the equipment ID format
Logic Flow:
IF An equipment identifier is received from N7 segment
AND The system calls GCCCARFM utility to validate the equipment ID format
THEN:
• The system determines if the equipment ID format is valid or invalid
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when equipment identifier has passed initial format validation.
Trigger Criteria:
Context: An equipment identifier has passed initial format validation
Applied to: Standardize Equipment ID Format
Action: The system processes the equipment ID through standardization
Logic Flow:
IF An equipment identifier has passed initial format validation
AND The system processes the equipment ID through standardization
THEN:
• The equipment ID is converted to standard format for further processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when equipment identifier has been standardized.
Trigger Criteria:
Context: An equipment identifier has been standardized
Applied to: Validate Equipment ID Structure
Action: The system validates the equipment ID structure
Logic Flow:
IF An equipment identifier has been standardized
AND The system validates the equipment ID structure
THEN:
• The system determines if the structure validation passes or fails
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when equipment identifier has passed both format and structure validation.
Trigger Criteria:
Context: An equipment identifier has passed both format and structure validation
Applied to: Update Cargo Record with Formatted Car ID
Action: The system updates the cargo record
Logic Flow:
IF An equipment identifier has passed both format and structure validation
AND The system updates the cargo record
THEN:
• The cargo record is updated with the formatted car ID
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record has been updated with formatted car id.
Trigger Criteria:
Context: A cargo record has been updated with formatted car ID
Applied to: Set Equipment ID in Working Storage
Action: The system sets the equipment ID in working storage
Logic Flow:
IF A cargo record has been updated with formatted car ID
AND The system sets the equipment ID in working storage
THEN:
• The equipment ID is available for further processing operations
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when equipment identifier fails format validation.
Trigger Criteria:
Context: An equipment identifier fails format validation
Applied to: Log Format Error
Action: The system encounters a format error
Logic Flow:
IF An equipment identifier fails format validation
AND The system encounters a format error
THEN:
• The system logs the format error and uses the original equipment ID
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when equipment identifier fails structure validation.
Trigger Criteria:
Context: An equipment identifier fails structure validation
Applied to: Log Validation Warning
Action: The system encounters a validation failure
Logic Flow:
IF An equipment identifier fails structure validation
AND The system encounters a validation failure
THEN:
• The system logs a validation warning and uses the original equipment ID
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when equipment identifier formatting or validation has failed.
Trigger Criteria:
Context: Equipment identifier formatting or validation has failed
Applied to: Use Original Equipment ID
Action: The system needs to continue processing
Logic Flow:
IF Equipment identifier formatting or validation has failed
AND The system needs to continue processing
THEN:
• The system uses the original equipment ID and continues processing
R-GCX016-cbl-02369 (+12)File: GCX016.cblBusiness Rule: Cargo Fetching by Car Index
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when equipment information contains car identification data.
Trigger Criteria:
Context: Equipment information contains car identification data
Applied to: Extract Car ID from Equipment Information
Action: System needs to search for cargo using car ID
Logic Flow:
IF Equipment information contains car identification data
AND System needs to search for cargo using car ID
THEN:
• Car ID is extracted from equipment information and formatted using GCCCARFM utility for standardized format
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when car id has been extracted and formatted from equipment information.
Trigger Criteria:
Context: Car ID has been extracted and formatted from equipment information
Applied to: Car ID Valid?
Action: System validates the car ID for search operations
Logic Flow:
IF Car ID has been extracted and formatted from equipment information
AND System validates the car ID for search operations
THEN:
• If car ID is invalid, mark cargo as not found and log the search attempt, otherwise proceed with car index search
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when car id has been validated as valid.
Trigger Criteria:
Context: Car ID has been validated as valid
Applied to: Build Car ID Index Key
Action: System prepares to search cargo database using car ID
Logic Flow:
IF Car ID has been validated as valid
AND System prepares to search cargo database using car ID
THEN:
• Car ID index key is constructed with proper format for database query
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when car id index key has been constructed. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: Car ID index key has been constructed
Applied to: Call GCCUSIO with Car Index
Action: System searches for cargo using the car ID index
Logic Flow:
IF Car ID index key has been constructed
AND System searches for cargo using the car ID index
THEN:
• GCCUSIO is called with car index parameters to retrieve matching cargo records
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when database search by car id has been completed.
Trigger Criteria:
Context: Database search by car ID has been completed
Applied to: Cargo Found by Car ID?
Action: System evaluates search results
Logic Flow:
IF Database search by car ID has been completed
AND System evaluates search results
THEN:
• If cargo is found, proceed to validate cargo record status, otherwise attempt broader search without US-CCN
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record has been found using car id search.
Trigger Criteria:
Context: Cargo record has been found using car ID search
Applied to: Validate Cargo Record Status
Action: System validates the cargo record
Logic Flow:
IF Cargo record has been found using car ID search
AND System validates the cargo record
THEN:
• Cargo record status and attributes are checked against business validation criteria
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record status has been validated.
Trigger Criteria:
Context: Cargo record status has been validated
Applied to: Cargo Record Valid?
Action: System evaluates validation results
Logic Flow:
IF Cargo record status has been validated
AND System evaluates validation results
THEN:
• If cargo record is valid, return found cargo record, otherwise try broader search without US-CCN
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when initial car id search failed to find valid cargo or cargo record validation failed.
Trigger Criteria:
Context: Initial car ID search failed to find valid cargo OR cargo record validation failed
Applied to: Try Broader Search Without US-CCN
Action: System attempts broader search strategy
Logic Flow:
IF Initial car ID search failed to find valid cargo OR cargo record validation failed
AND System attempts broader search strategy
THEN:
• Search parameters are expanded to exclude US-CCN restrictions for wider cargo matching
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when broader search without us-ccn has been initiated.
Trigger Criteria:
Context: Broader search without US-CCN has been initiated
Applied to: Search All Cargo with Matching Car ID
Action: System performs comprehensive car ID search
Logic Flow:
IF Broader search without US-CCN has been initiated
AND System performs comprehensive car ID search
THEN:
• All cargo records matching the car ID are retrieved regardless of US-CCNor other restrictive criteria
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when comprehensive car id search has been completed.
Trigger Criteria:
Context: Comprehensive car ID search has been completed
Applied to: Any Matching Cargo?
Action: System evaluates search results
Logic Flow:
IF Comprehensive car ID search has been completed
AND System evaluates search results
THEN:
• If matching cargo is found, select best match based on criteria, otherwise mark as cargo not found
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when multiple cargo records match the car id.
Trigger Criteria:
Context: Multiple cargo records match the car ID
Applied to: Select Best Match Based on Criteria
Action: System selects the best match
Logic Flow:
IF Multiple cargo records match the car ID
AND System selects the best match
THEN:
• Business criteria are applied to determine the most appropriate cargo record for processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when all car id search methods have failed to locate valid cargo or car id is invalid.
Trigger Criteria:
Context: All car ID search methods have failed to locate valid cargo OR car ID is invalid
Applied to: Mark as Cargo Not Found
Action: System processes cargo not found condition
Logic Flow:
IF All car ID search methods have failed to locate valid cargo OR car ID is invalid
AND System processes cargo not found condition
THEN:
• Cargo status is marked as not found for appropriate business handling
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when car id search process has completed regardless of success or failure.
Trigger Criteria:
Context: Car ID search process has completed regardless of success or failure
Applied to: Log Car ID Search Attempt
Action: System logs the search attempt
Logic Flow:
IF Car ID search process has completed regardless of success or failure
AND System logs the search attempt
THEN:
• Search attempt details are recorded including car ID used and search outcome
R-GCX016-cbl-02382 (+7)File: GCX016.cblBusiness Rule: Detour and Special Manifest Processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when lead manifest is being processed and the lead manifest ccn matches the saved ccn.
Trigger Criteria:
Context: A lead manifest is being processed AND the lead manifest CCN matches the saved CCN
Applied to: Retrieve Follower Manifests
Action: The system processes multi-cargo records
Logic Flow:
IF A lead manifest is being processed AND the lead manifest CCN matches the saved CCN
AND The system processes multi-cargo records
THEN:
• The system spawns GCT0161E for each follower cargo record AND sets follower end-of-database flag when no more records exist
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when follower manifest is being prepared for processing.
Trigger Criteria:
Context: A follower manifest is being prepared for processing
Applied to: Process Each Follower Manifest
Action: The system prepares the message for cargo processing
Logic Flow:
IF A follower manifest is being prepared for processing
AND The system prepares the message for cargo processing
THEN:
• The system sets special action code to '350' AND copies disposition code, quantity, and entry number from X4 segment
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo has been released and canadian manifest records exist for the same waybill.
Trigger Criteria:
Context: Cargo has been released AND Canadian manifest records exist for the same waybill
Applied to: Coordinate Cross-Border Requirements
Action: The system processes Canadian manifest coordination
Logic Flow:
IF Cargo has been released AND Canadian manifest records exist for the same waybill
AND The system processes Canadian manifest coordination
THEN:
• The system searches for Canadian manifest records by waybill AND logs cargo release information to GCX105 system AND filters out deleted records and new bond created records
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when manifest is detected for special processing.
Trigger Criteria:
Context: A manifest is detected for special processing
Applied to: Manifest Type Check
Action: The system evaluates the manifest type
Logic Flow:
IF A manifest is detected for special processing
AND The system evaluates the manifest type
THEN:
• The system identifies the manifest as either a detour manifest requiring lead manifest identification OR a special manifest requiring direct special processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when detour manifest is being processed.
Trigger Criteria:
Context: A detour manifest is being processed
Applied to: Identify Lead Manifest
Action: The system identifies the lead manifest
Logic Flow:
IF A detour manifest is being processed
AND The system identifies the lead manifest
THEN:
• The system uses the manifest CCN to determine lead status AND establishes the relationship for follower manifest processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when follower manifests have been retrieved for a lead manifest.
Trigger Criteria:
Context: Follower manifests have been retrieved for a lead manifest
Applied to: Validate Manifest Relationships
Action: The system validates manifest relationships
Logic Flow:
IF Follower manifests have been retrieved for a lead manifest
AND The system validates manifest relationships
THEN:
• The system verifies that follower manifest CCNs are properly linked to the lead manifest CCN AND ensures data integrity across the manifest group
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when canadian manifest is involved in processing.
Trigger Criteria:
Context: A Canadian manifest is involved in processing
Applied to: Map US Port to Canadian Port
Action: The system performs port mapping
Logic Flow:
IF A Canadian manifest is involved in processing
AND The system performs port mapping
THEN:
• The system uses GCSTBRT table to map US port codes to Canadian port codes AND establishes proper cross-border routing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when special or detour processing has been completed.
Trigger Criteria:
Context: Special or detour processing has been completed
Applied to: Update Cargo Records
Action: The system updates cargo records
Logic Flow:
IF Special or detour processing has been completed
AND The system updates cargo records
THEN:
• The system updates cargo status to reflect special processing AND maintains audit trail of changes AND ensures data consistency across related cargo records
R-GCX016-cbl-02390 (+7)File: GCX016.cblBusiness Rule: Disposition Code 95 Bond Clearing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when x4 segment is received with a disposition code.
Trigger Criteria:
Context: An X4 segment is received with a disposition code
Applied to: Validate Disposition Code 95
Action: The disposition code is evaluated for bond clearing eligibility
Logic Flow:
IF An X4 segment is received with a disposition code
AND The disposition code is evaluated for bond clearing eligibility
THEN:
• The system validates the code is '95' and proceeds with bond clearing or rejects invalid codes
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when x4 segment is received with a disposition code.
Trigger Criteria:
Context: An X4 segment is received with a disposition code
Applied to: Invalid Disposition Code
Action: The disposition code is not '95' or is improperly formatted
Logic Flow:
IF An X4 segment is received with a disposition code
AND The disposition code is not '95' or is improperly formatted
THEN:
• An error is generated and the transaction continues with standard processing without bond clearing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when valid disposition code 95 has been confirmed.
Trigger Criteria:
Context: A valid disposition code 95 has been confirmed
Applied to: Retrieve Current Cargo Record
Action: The system needs to access cargo data for bond clearing
Logic Flow:
IF A valid disposition code 95 has been confirmed
AND The system needs to access cargo data for bond clearing
THEN:
• The current cargo record is retrieved using the CCN key from the X4 segment
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record has been retrieved for disposition code 95 processing.
Trigger Criteria:
Context: A cargo record has been retrieved for disposition code 95 processing
Applied to: Clear Bond Control Number
Action: Bond clearing operations are initiated
Logic Flow:
IF A cargo record has been retrieved for disposition code 95 processing
AND Bond clearing operations are initiated
THEN:
• The bond control number field is cleared from the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when bond control number has been cleared from the cargo record.
Trigger Criteria:
Context: The bond control number has been cleared from the cargo record
Applied to: Clear Broker Entry Number
Action: Continuing with disposition code 95 bond clearing process
Logic Flow:
IF The bond control number has been cleared from the cargo record
AND Continuing with disposition code 95 bond clearing process
THEN:
• The broker entry number field is cleared from the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when bond control number and broker entry number have been cleared.
Trigger Criteria:
Context: Bond control number and broker entry number have been cleared
Applied to: Clear Related Bond Data Fields
Action: Finalizing the bond clearing operation for disposition code 95
Logic Flow:
IF Bond control number and broker entry number have been cleared
AND Finalizing the bond clearing operation for disposition code 95
THEN:
• All related bond data fields including bond dates and references are cleared from the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when all bond-related fields have been cleared from the cargo record.
Trigger Criteria:
Context: All bond-related fields have been cleared from the cargo record
Applied to: Update Cargo Record Status
Action: Completing the disposition code 95 processing
Logic Flow:
IF All bond-related fields have been cleared from the cargo record
AND Completing the disposition code 95 processing
THEN:
• The cargo record status is updated to reflect the bond clearing action
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record has been updated with cleared bond information.
Trigger Criteria:
Context: The cargo record has been updated with cleared bond information
Applied to: Log Bond Clearing Action
Action: Finalizing the disposition code 95 transaction
Logic Flow:
IF The cargo record has been updated with cleared bond information
AND Finalizing the disposition code 95 transaction
THEN:
• A log entry is created documenting the bond clearing action with timestamp and cargo details
Business Justification: Ensures correct system behavior and process compliance when cargo entry is being processed.
Trigger Criteria:
Context: A cargo entry is being processed
Applied to: Entry Type Code = '00'?
Action: The entry type code equals '00'
Logic Flow:
IF A cargo entry is being processed
AND The entry type code equals '00'
THEN:
• The system identifies this as a border entry requiring special processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo entry is being processed.
Trigger Criteria:
Context: A cargo entry is being processed
Applied to: Process as Regular Entry
Action: The entry type code is not equal to '00'
Logic Flow:
IF A cargo entry is being processed
AND The entry type code is not equal to '00'
THEN:
• The cargo is processed through the regular entry processing path without border-specific modifications
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo entry has entry type code '00'.
Trigger Criteria:
Context: A cargo entry has entry type code '00'
Applied to: Identify as Border Entry
Action: The system processes the entry type
Logic Flow:
IF A cargo entry has entry type code '00'
AND The system processes the entry type
THEN:
• The cargo is classified as a border entry
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo entry is classified as border entry with type code '00'.
Trigger Criteria:
Context: A cargo entry is classified as border entry with type code '00'
Applied to: Clear Bond Control Number & Clear Broker Entry Number & Clear Related Bond Data & Set Border Entry Flag
Action: The system processes the border entry
Logic Flow:
IF A cargo entry is classified as border entry with type code '00'
AND The system processes the border entry
THEN:
• The bond control number field is cleared to spaces
• The broker entry number field is cleared to spaces
• All related bond data fields including bond number, bond type, and bond status are cleared
• The border entry flag is set to indicate border processing mode
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo entry has been processed as border entry with cleared bond data and set border flag.
Trigger Criteria:
Context: A cargo entry has been processed as border entry with cleared bond data and set border flag
Applied to: Update Cargo Record with Border Status
Action: The system updates the cargo record
Logic Flow:
IF A cargo entry has been processed as border entry with cleared bond data and set border flag
AND The system updates the cargo record
THEN:
• The cargo record is updated with border entry status and all border processing indicators
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo entry has been processed as border entry with updated status.
Trigger Criteria:
Context: A cargo entry has been processed as border entry with updated status
Applied to: Log Border Entry Processing
Action: The system completes border entry processing
Logic Flow:
IF A cargo entry has been processed as border entry with updated status
AND The system completes border entry processing
THEN:
• The border entry processing is logged with entry details and processing timestamp
R-GCX016-cbl-02425 (+13)File: GCX016.cblBusiness Rule: Canadian Border Location Mapping
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record is being processed.
Trigger Criteria:
Context: A cargo record is being processed
Applied to: Cross-Border Shipment Detected
Action: The system evaluates the shipment for cross-border requirements
Logic Flow:
IF A cargo record is being processed
AND The system evaluates the shipment for cross-border requirements
THEN:
• The system detects if cross-border processing is needed and initiates port mapping workflow
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cross-border shipment has been detected.
Trigger Criteria:
Context: A cross-border shipment has been detected
Applied to: US Port Code Present?
Action: The system checks for US port code in the cargo record
Logic Flow:
IF A cross-border shipment has been detected
AND The system checks for US port code in the cargo record
THEN:
• The system either proceeds with port code extraction if present or completes mapping process if absent
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when us port code is present in the cargo record.
Trigger Criteria:
Context: A US port code is present in the cargo record
Applied to: Extract US Port Code from Cargo Record
Action: The system extracts the port code information
Logic Flow:
IF A US port code is present in the cargo record
AND The system extracts the port code information
THEN:
• The US port code is retrieved and prepared for DS table lookup
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when us port code has been extracted from the cargo record.
Trigger Criteria:
Context: A US port code has been extracted from the cargo record
Applied to: Access DS Table for Port Mapping
Action: The system accesses the DS table for port mapping lookup
Logic Flow:
IF A US port code has been extracted from the cargo record
AND The system accesses the DS table for port mapping lookup
THEN:
• The DS table is queried using the US port code as the search key
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when ds table has been accessed with a us port code.
Trigger Criteria:
Context: The DS table has been accessed with a US port code
Applied to: Canadian Port Found in DS Table?
Action: The system searches for a matching Canadian port entry
Logic Flow:
IF The DS table has been accessed with a US port code
AND The system searches for a matching Canadian port entry
THEN:
• The system either retrieves the Canadian port name if found or uses default port name if not found
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when canadian port entry exists in the ds table for the us port code.
Trigger Criteria:
Context: A Canadian port entry exists in the DS table for the US port code
Applied to: Retrieve Canadian Port Name
Action: The system retrieves the Canadian port information
Logic Flow:
IF A Canadian port entry exists in the DS table for the US port code
AND The system retrieves the Canadian port information
THEN:
• The Canadian port name is extracted from the DS table record
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when no canadian port entry exists in the ds table for the us port code.
Trigger Criteria:
Context: No Canadian port entry exists in the DS table for the US port code
Applied to: Use Default Canadian Port Name
Action: The system cannot find a matching port mapping
Logic Flow:
IF No Canadian port entry exists in the DS table for the US port code
AND The system cannot find a matching port mapping
THEN:
• The system assigns a default Canadian port name for the shipment
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when no canadian port mapping was found for the us port code.
Trigger Criteria:
Context: No Canadian port mapping was found for the US port code
Applied to: Log Mapping Error
Action: The system uses a default Canadian port name
Logic Flow:
IF No Canadian port mapping was found for the US port code
AND The system uses a default Canadian port name
THEN:
• The system logs a port mapping error for audit and troubleshooting purposes
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when canadian port name has been determined (either from ds table or default).
Trigger Criteria:
Context: A Canadian port name has been determined (either from DS table or default)
Applied to: Update Cargo Record with Canadian Port Name
Action: The system updates the cargo record
Logic Flow:
IF A Canadian port name has been determined (either from DS table or default)
AND The system updates the cargo record
THEN:
• The cargo record is updated with the Canadian port name information
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record has been updated with canadian port information.
Trigger Criteria:
Context: The cargo record has been updated with Canadian port information
Applied to: Set Cross-Border Flag
Action: The system sets processing flags
Logic Flow:
IF The cargo record has been updated with Canadian port information
AND The system sets processing flags
THEN:
• The cross-border flag is set to indicate special cross-border processing requirements
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cross-border flag has been set for the shipment.
Trigger Criteria:
Context: The cross-border flag has been set for the shipment
Applied to: Log Port Mapping for Audit Trail
Action: The system creates audit trail entries
Logic Flow:
IF The cross-border flag has been set for the shipment
AND The system creates audit trail entries
THEN:
• The port mapping operation is logged with source port, destination port, and mapping status
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when one port mapping operation has been completed.
Trigger Criteria:
Context: One port mapping operation has been completed
Applied to: Additional Port Codes?
Action: The system checks for additional port codes to process
Logic Flow:
IF One port mapping operation has been completed
AND The system checks for additional port codes to process
THEN:
• The system either processes the next port code if available or completes the mapping process
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when additional port codes exist in the cargo record.
Trigger Criteria:
Context: Additional port codes exist in the cargo record
Applied to: Process Next Port Code
Action: The system processes the next port code
Logic Flow:
IF Additional port codes exist in the cargo record
AND The system processes the next port code
THEN:
• The system returns to port code extraction for the next US port code
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when all port codes have been processed or no port codes exist.
Trigger Criteria:
Context: All port codes have been processed or no port codes exist
Applied to: Port Mapping Complete
Action: The port mapping workflow reaches completion
Logic Flow:
IF All port codes have been processed or no port codes exist
AND The port mapping workflow reaches completion
THEN:
• The system finalizes the port mapping process and the cargo record is ready for further processing
R-GCX016-cbl-02439 (+11)File: GCX016.cblBusiness Rule: FDA Reference Number Processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when n9 segment is received with reference qualifier and reference number data.
Trigger Criteria:
Context: An N9 segment is received with reference qualifier and reference number data
Applied to: FDA Reference Qualifier?
Action: The system processes the N9 segment qualifier code
Logic Flow:
IF An N9 segment is received with reference qualifier and reference number data
AND The system processes the N9 segment qualifier code
THEN:
• The system determines if the qualifier indicates an FDA-related reference number
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when n9 segment has been identified as containing fda reference information.
Trigger Criteria:
Context: An N9 segment has been identified as containing FDA reference information
Applied to: Extract FDA Reference Number
Action: The system processes the N9 reference number field
Logic Flow:
IF An N9 segment has been identified as containing FDA reference information
AND The system processes the N9 reference number field
THEN:
• The FDA reference number is extracted and prepared for validation
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when fda reference number has been extracted from an n9 segment.
Trigger Criteria:
Context: An FDA reference number has been extracted from an N9 segment
Applied to: Valid FDA Format?
Action: The system validates the reference number format
Logic Flow:
IF An FDA reference number has been extracted from an N9 segment
AND The system validates the reference number format
THEN:
• The system determines if the reference number meets FDA formatting requirements
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when fda reference number has been validated as properly formatted.
Trigger Criteria:
Context: An FDA reference number has been validated as properly formatted
Applied to: Store FDA Reference in Cargo Record
Action: The system updates the cargo record
Logic Flow:
IF An FDA reference number has been validated as properly formatted
AND The system updates the cargo record
THEN:
• The FDA reference number is stored in the cargo record for future compliance processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when fda reference information has been stored in the primary cargo record.
Trigger Criteria:
Context: FDA reference information has been stored in the primary cargo record
Applied to: Link to Secondary Cargo Records
Action: Secondary cargo records exist for the same shipment
Logic Flow:
IF FDA reference information has been stored in the primary cargo record
AND Secondary cargo records exist for the same shipment
THEN:
• The FDA reference information is linked to all related secondary cargo records
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when fda reference information has been processed and linked to cargo records.
Trigger Criteria:
Context: FDA reference information has been processed and linked to cargo records
Applied to: A1/A3 Disposition Code Present?
Action: The system evaluates disposition codes associated with the cargo
Logic Flow:
IF FDA reference information has been processed and linked to cargo records
AND The system evaluates disposition codes associated with the cargo
THEN:
• The system determines if A1 or A3 disposition codes are present requiring FDA compliance actions
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when a1 or a3 disposition codes are present with fda reference information.
Trigger Criteria:
Context: A1 or A3 disposition codes are present with FDA reference information
Applied to: Process FDA Compliance Requirements
Action: The system processes FDA compliance requirements
Logic Flow:
IF A1 or A3 disposition codes are present with FDA reference information
AND The system processes FDA compliance requirements
THEN:
• Special FDA compliance processing is initiated including notifications and status updates
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when fda compliance requirements have been processed.
Trigger Criteria:
Context: FDA compliance requirements have been processed
Applied to: Update FDA Status in Status Array
Action: The system updates the cargo status array
Logic Flow:
IF FDA compliance requirements have been processed
AND The system updates the cargo status array
THEN:
• FDA-related status codes are added to the GCSUSS09 status segments
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when fda status has been updated in the status array.
Trigger Criteria:
Context: FDA status has been updated in the status array
Applied to: Generate FDA Hold if Required
Action: FDA compliance requirements indicate a hold is necessary
Logic Flow:
IF FDA status has been updated in the status array
AND FDA compliance requirements indicate a hold is necessary
THEN:
• An FDA hold is generated and applied to the cargo preventing release
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when fda reference processing has been completed.
Trigger Criteria:
Context: FDA reference processing has been completed
Applied to: Log FDA Reference Processing
Action: The system performs logging operations
Logic Flow:
IF FDA reference processing has been completed
AND The system performs logging operations
THEN:
• All FDA reference processing activities are logged including reference numbers, status changes, and compliance actions
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when n9 segment is received with a reference qualifier.
Trigger Criteria:
Context: An N9 segment is received with a reference qualifier
Applied to: Skip Non-FDA Reference
Action: The qualifier does not indicate FDA-related reference information
Logic Flow:
IF An N9 segment is received with a reference qualifier
AND The qualifier does not indicate FDA-related reference information
THEN:
• The system skips FDA processing and continues to the next N9 segment
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when error occurs during fda reference processing.
Trigger Criteria:
Context: An error occurs during FDA reference processing
Applied to: FDA Processing Error
Action: The system encounters invalid FDA reference formats or processing failures
Logic Flow:
IF An error occurs during FDA reference processing
AND The system encounters invalid FDA reference formats or processing failures
THEN:
• The error is logged and processing continues to the next N9 segment without stopping the entire transaction
R-GCX016-cbl-02489 (+7)File: GCX016.cblBusiness Rule: Equipment ID Formatting and Standardization
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when n7 equipment segment is received with equipment data.
Trigger Criteria:
Context: An N7 equipment segment is received with equipment data
Applied to: Extract Equipment ID from N7-01
Action: The system processes the N7 segment
Logic Flow:
IF An N7 equipment segment is received with equipment data
AND The system processes the N7 segment
THEN:
• The equipment ID is extracted from the N7-01 field for further processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when equipment id has been extracted from the n7 segment. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: An equipment ID has been extracted from the N7 segment
Applied to: Call GCCCARFM Utility for Formatting
Action: The system needs to format the equipment ID
Logic Flow:
IF An equipment ID has been extracted from the N7 segment
AND The system needs to format the equipment ID
THEN:
• The GCCCARFM utility is called to format and validate the equipment identifier
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when equipment id has been processed through the gcccarfm formatting utility.
Trigger Criteria:
Context: An equipment ID has been processed through the GCCCARFM formatting utility
Applied to: Equipment ID Valid?
Action: The system checks the validity of the formatted equipment ID
Logic Flow:
IF An equipment ID has been processed through the GCCCARFM formatting utility
AND The system checks the validity of the formatted equipment ID
THEN:
• The equipment ID is determined to be either valid or invalid based on formatting standards
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when equipment id has been validated as correct.
Trigger Criteria:
Context: An equipment ID has been validated as correct
Applied to: Standardize Equipment Format
Action: The system standardizes the equipment format
Logic Flow:
IF An equipment ID has been validated as correct
AND The system standardizes the equipment format
THEN:
• The equipment ID is formatted according to standard specifications for consistent processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when equipment id has been standardized and validated.
Trigger Criteria:
Context: An equipment ID has been standardized and validated
Applied to: Update Cargo Record with Car ID
Action: The system updates the cargo record
Logic Flow:
IF An equipment ID has been standardized and validated
AND The system updates the cargo record
THEN:
• The cargo record is updated with the standardized car ID information from the N7 segment
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record has been successfully updated with equipment information.
Trigger Criteria:
Context: A cargo record has been successfully updated with equipment information
Applied to: Log Equipment Information
Action: The system completes equipment processing
Logic Flow:
IF A cargo record has been successfully updated with equipment information
AND The system completes equipment processing
THEN:
• Equipment information is logged for audit and tracking purposes
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when equipment id has failed validation checks.
Trigger Criteria:
Context: An equipment ID has failed validation checks
Applied to: Generate Equipment ID Error
Action: The system determines the equipment ID is invalid
Logic Flow:
IF An equipment ID has failed validation checks
AND The system determines the equipment ID is invalid
THEN:
• An equipment ID error is generated and the equipment update is skipped
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when equipment id error has been generated due to invalid equipment data.
Trigger Criteria:
Context: An equipment ID error has been generated due to invalid equipment data
Applied to: Skip Equipment Update
Action: The system processes the error condition
Logic Flow:
IF An equipment ID error has been generated due to invalid equipment data
AND The system processes the error condition
THEN:
• The equipment update is skipped and processing continues without updating cargo records
R-GCX016-cbl-02505 (+7)File: GCX016.cblBusiness Rule: Cargo Status Array Management
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record that does not have existing s09 status segments.
Trigger Criteria:
Context: A cargo record that does not have existing S09 status segments
Applied to: Status Array Initialization
Action: The system needs to create status tracking for the cargo
Logic Flow:
IF A cargo record that does not have existing S09 status segments
AND The system needs to create status tracking for the cargo
THEN:
• An empty S09A status array is created and initialized with default values
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record with existing s09 status segments in the database.
Trigger Criteria:
Context: A cargo record with existing S09 status segments in the database
Applied to: Status Array Population
Action: The system needs to load current status information
Logic Flow:
IF A cargo record with existing S09 status segments in the database
AND The system needs to load current status information
THEN:
• All S09 segments are fetched from GCSUSS09 IMS segment and loaded into the status array
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when s09 segments containing disposition codes, status flags, and quantity information.
Trigger Criteria:
Context: S09 segments containing disposition codes, status flags, and quantity information
Applied to: Status Array Population
Action: The system processes the fetched S09 segments
Logic Flow:
IF S09 segments containing disposition codes, status flags, and quantity information
AND The system processes the fetched S09 segments
THEN:
• Each disposition code is loaded into the S09A array with its status flags, quantities, and location information
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when new disposition code to be added to the status array.
Trigger Criteria:
Context: A new disposition code to be added to the status array
Applied to: Disposition Code Duplicate Prevention
Action: The system checks if the disposition code already exists in the array
Logic Flow:
IF A new disposition code to be added to the status array
AND The system checks if the disposition code already exists in the array
THEN:
• If the code already exists, skip adding it; if not, add the new code to the array
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when new disposition code that does not exist in the current status array.
Trigger Criteria:
Context: A new disposition code that does not exist in the current status array
Applied to: Disposition Code Duplicate Prevention
Action: The system adds the disposition code to the array
Logic Flow:
IF A new disposition code that does not exist in the current status array
AND The system adds the disposition code to the array
THEN:
• The code is added with its properties including status flags, location information, and quantity actions
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when status array that is approaching or at maximum capacity.
Trigger Criteria:
Context: A status array that is approaching or at maximum capacity
Applied to: Status Array Overflow Protection
Action: The system attempts to add additional disposition codes
Logic Flow:
IF A status array that is approaching or at maximum capacity
AND The system attempts to add additional disposition codes
THEN:
• The system prevents array overflow and maintains data integrity by rejecting additional entries
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when populated s09a status array with disposition codes and status information.
Trigger Criteria:
Context: A populated S09A status array with disposition codes and status information
Applied to: Status Array Persistence
Action: The system needs to persist the status information to the database
Logic Flow:
IF A populated S09A status array with disposition codes and status information
AND The system needs to persist the status information to the database
THEN:
• The array data is moved to S09 segments with proper sequencing and key structure
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when s09 segments containing updated status information from the status array.
Trigger Criteria:
Context: S09 segments containing updated status information from the status array
Applied to: Status Array Persistence
Action: The system persists the changes to the database
Logic Flow:
IF S09 segments containing updated status information from the status array
AND The system persists the changes to the database
THEN:
• The cargo records in GCCC-CARGO-ROOT IMS segment are updated with the new status information
R-GCX016-cbl-02513 (+15)File: GCX016.cblBusiness Rule: Cargo Record Retrieval by Car Index
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when n7 equipment segment contains car identification data.
Trigger Criteria:
Context: An N7 equipment segment contains car identification data
Applied to: Extract Car ID from Equipment Information
Action: The system needs to extract car ID for cargo lookup
Logic Flow:
IF An N7 equipment segment contains car identification data
AND The system needs to extract car ID for cargo lookup
THEN:
• The car initial and car number are extracted from the N7 segment and combined to form the complete car ID
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when car initial and car number have been extracted from equipment data.
Trigger Criteria:
Context: Car initial and car number have been extracted from equipment data
Applied to: Format Car ID Using GCCCARFM Utility
Action: The system needs to format the car ID for database lookup
Logic Flow:
IF Car initial and car number have been extracted from equipment data
AND The system needs to format the car ID for database lookup
THEN:
• The GCCCARFM utility is called to format the car ID into standardized format
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when car id has been formatted using the gcccarfm utility.
Trigger Criteria:
Context: A car ID has been formatted using the GCCCARFM utility
Applied to: Car ID Valid?
Action: The system validates the car ID for lookup operations
Logic Flow:
IF A car ID has been formatted using the GCCCARFM utility
AND The system validates the car ID for lookup operations
THEN:
• The car ID is considered valid if it is not spaces and meets format requirements, otherwise the lookup process terminates
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when valid car id has been confirmed.
Trigger Criteria:
Context: A valid car ID has been confirmed
Applied to: Build Car Index Search Key
Action: The system needs to search cargo records by car index
Logic Flow:
IF A valid car ID has been confirmed
AND The system needs to search cargo records by car index
THEN:
• The car index search key is built using the car ID as the primary search criterion
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when car index search key has been constructed.
Trigger Criteria:
Context: A car index search key has been constructed
Applied to: Search Cargo Database by Car Index
Action: The system searches the cargo database by car index
Logic Flow:
IF A car index search key has been constructed
AND The system searches the cargo database by car index
THEN:
• The system queries the GCCC-CARGO-ROOT database using the car ID index to find matching cargo records
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when car index search has been performed on the cargo database.
Trigger Criteria:
Context: A car index search has been performed on the cargo database
Applied to: Cargo Found by Car ID?
Action: The system evaluates the search results
Logic Flow:
IF A car index search has been performed on the cargo database
AND The system evaluates the search results
THEN:
• If cargo records are found, proceed with validation; if no cargo records are found, attempt broader search methods
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo records have been found using car id index search.
Trigger Criteria:
Context: Cargo records have been found using car ID index search
Applied to: Validate Cargo Record Status
Action: The system validates the cargo record status
Logic Flow:
IF Cargo records have been found using car ID index search
AND The system validates the cargo record status
THEN:
• Only cargo records that are not deleted and have valid processing status are considered acceptable for further operations
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record has been found and its status validated.
Trigger Criteria:
Context: A cargo record has been found and its status validated
Applied to: Cargo Record Valid?
Action: The system checks cargo record validity
Logic Flow:
IF A cargo record has been found and its status validated
AND The system checks cargo record validity
THEN:
• If the cargo record is valid, return it for processing; if invalid, attempt partial US-CCN key matching
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when exact car id match did not yield a valid cargo record.
Trigger Criteria:
Context: The exact car ID match did not yield a valid cargo record
Applied to: Attempt Partial US-CCN Key Matching
Action: The system attempts partial US-CCN key matching
Logic Flow:
IF The exact car ID match did not yield a valid cargo record
AND The system attempts partial US-CCN key matching
THEN:
• The system searches for cargo records using partial US-CCN key components combined with car ID information
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when partial us-ccn key matching has been attempted.
Trigger Criteria:
Context: Partial US-CCN key matching has been attempted
Applied to: Partial Match Found?
Action: The system evaluates the partial match results
Logic Flow:
IF Partial US-CCN key matching has been attempted
AND The system evaluates the partial match results
THEN:
• If a partial match is found, return the matched cargo record; if no partial match is found, attempt broader search without US-CCN
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when both exact car id match and partial us-ccn matching have failed.
Trigger Criteria:
Context: Both exact car ID match and partial US-CCN matching have failed
Applied to: Try Broader Search Without US-CCN
Action: The system performs broader search without US-CCN constraints
Logic Flow:
IF Both exact car ID match and partial US-CCN matching have failed
AND The system performs broader search without US-CCN constraints
THEN:
• The system searches cargo database using only car ID criteria to find any associated cargo records
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when broader search without us-ccn has been performed.
Trigger Criteria:
Context: A broader search without US-CCN has been performed
Applied to: Alternative Match Found?
Action: The system evaluates the alternative match results
Logic Flow:
IF A broader search without US-CCN has been performed
AND The system evaluates the alternative match results
THEN:
• If an alternative match is found, return the matched cargo record; if no match is found, log search results and return no cargo found status
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when all car id search methods have been exhausted without finding valid cargo.
Trigger Criteria:
Context: All car ID search methods have been exhausted without finding valid cargo
Applied to: Log Car ID Search Results
Action: The system logs the search results
Logic Flow:
IF All car ID search methods have been exhausted without finding valid cargo
AND The system logs the search results
THEN:
• The search attempts and results are recorded for audit purposes before returning no cargo found status
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when all car id search methods have failed to locate valid cargo records.
Trigger Criteria:
Context: All car ID search methods have failed to locate valid cargo records
Applied to: Return No Cargo Found Status
Action: The system completes the search process
Logic Flow:
IF All car ID search methods have failed to locate valid cargo records
AND The system completes the search process
THEN:
• A no cargo found status is returned to indicate that cargo lookup by car ID was unsuccessful
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when valid cargo record has been found through any of the car id search methods.
Trigger Criteria:
Context: A valid cargo record has been found through any of the car ID search methods
Applied to: Return Matched Cargo Record
Action: The system completes the successful search
Logic Flow:
IF A valid cargo record has been found through any of the car ID search methods
AND The system completes the successful search
THEN:
• The matched cargo record is returned with appropriate status for continued processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when valid cargo record has been successfully returned from car id search.
Trigger Criteria:
Context: A valid cargo record has been successfully returned from car ID search
Applied to: Proceed with Found Cargo
Action: The system proceeds with cargo processing
Logic Flow:
IF A valid cargo record has been successfully returned from car ID search
AND The system proceeds with cargo processing
THEN:
• The found cargo record is used for subsequent business operations and status updates
R-GCX016-cbl-02529 (+19)File: GCX016.cblBusiness Rule: Foreign Bill Creation
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when foreign bill does not exist in the system.
Trigger Criteria:
Context: A foreign bill does not exist in the system
Applied to: Initialize New Cargo Record
Action: The system needs to create a new cargo record
Logic Flow:
IF A foreign bill does not exist in the system
AND The system needs to create a new cargo record
THEN:
• Initialize a new cargo record structure and clear all fields to default values
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when new cargo record is being created.
Trigger Criteria:
Context: A new cargo record is being created
Applied to: Set Default CPRS/USCS Status
Action: The cargo type is CPRS
Logic Flow:
IF A new cargo record is being created
AND The cargo type is CPRS
THEN:
• Set cargo status to 'ERROR' with description 'ERROR'
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when new cargo record is being created.
Trigger Criteria:
Context: A new cargo record is being created
Applied to: Set Default CPRS/USCS Status
Action: The cargo type is not CPRS
Logic Flow:
IF A new cargo record is being created
AND The cargo type is not CPRS
THEN:
• Set cargo status to 'SENT' with description 'SENT'
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when new cargo record is being processed.
Trigger Criteria:
Context: A new cargo record is being processed
Applied to: Set Default Broker Information
Action: The current cargo status is blank or equals 'ACK-R'
Logic Flow:
IF A new cargo record is being processed
AND The current cargo status is blank or equals 'ACK-R'
THEN:
• Set the acknowledgment status to default value 'ACK' or 'ACK-R'
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when new cargo record with disposition codes '1j', '69', or '55'.
Trigger Criteria:
Context: A new cargo record with disposition codes '1J', '69', or '55'
Applied to: Check Entry Type Code
Action: The entry type code is '61', '62', '63', or '69'
Logic Flow:
IF A new cargo record with disposition codes '1J', '69', or '55'
AND The entry type code is '61', '62', '63', or '69'
THEN:
• Process as master in-bond entry requiring special customs handling
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when master in-bond cargo entry.
Trigger Criteria:
Context: A master in-bond cargo entry
Applied to: Map Transport Type Codes
Action: The entry type code is '61'
Logic Flow:
IF A master in-bond cargo entry
AND The entry type code is '61'
THEN:
• Set transport classification to immediate transport
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when master in-bond cargo entry.
Trigger Criteria:
Context: A master in-bond cargo entry
Applied to: Map Transport Type Codes
Action: The entry type code is '62'
Logic Flow:
IF A master in-bond cargo entry
AND The entry type code is '62'
THEN:
• Set transport classification to transport for export
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when master in-bond cargo entry.
Trigger Criteria:
Context: A master in-bond cargo entry
Applied to: Map Transport Type Codes
Action: The entry type code is '63'
Logic Flow:
IF A master in-bond cargo entry
AND The entry type code is '63'
THEN:
• Set transport classification to immediate export
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when master in-bond cargo entry.
Trigger Criteria:
Context: A master in-bond cargo entry
Applied to: Map Transport Type Codes
Action: The entry type code is '69'
Logic Flow:
IF A master in-bond cargo entry
AND The entry type code is '69'
THEN:
• Set transport classification to US-Canada-US movement
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when new cargo entry.
Trigger Criteria:
Context: A new cargo entry
Applied to: Process Border Entry Type Code 00
Action: The entry type code is '00'
Logic Flow:
IF A new cargo entry
AND The entry type code is '00'
THEN:
• Process as default border entry with standard customs handling
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when border entry with type code '00'.
Trigger Criteria:
Context: A border entry with type code '00'
Applied to: Clear Bond Information
Action: Processing the cargo record
Logic Flow:
IF A border entry with type code '00'
AND Processing the cargo record
THEN:
• Clear all bond-related fields and information
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record with an entry number.
Trigger Criteria:
Context: A cargo record with an entry number
Applied to: Build M10 Manifest Information
Action: The entry number starts with 'V'
Logic Flow:
IF A cargo record with an entry number
AND The entry number starts with 'V'
THEN:
• Place the entry number in the entry number field, otherwise place it in the in-bond control number field
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when new cargo record being created.
Trigger Criteria:
Context: A new cargo record being created
Applied to: Set SCAC Code
Action: Manifest information contains SCAC code
Logic Flow:
IF A new cargo record being created
AND Manifest information contains SCAC code
THEN:
• Set the cargo SCAC code from the manifest SCAC information
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when new cargo record being created.
Trigger Criteria:
Context: A new cargo record being created
Applied to: Set Transport Type
Action: Manifest information contains transport type
Logic Flow:
IF A new cargo record being created
AND Manifest information contains transport type
THEN:
• Set the cargo transport type from the manifest transport information
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when new cargo record being created.
Trigger Criteria:
Context: A new cargo record being created
Applied to: Set Country Code
Action: Manifest information contains country code
Logic Flow:
IF A new cargo record being created
AND Manifest information contains country code
THEN:
• Set the cargo country code from the manifest country information
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when new cargo record being created.
Trigger Criteria:
Context: A new cargo record being created
Applied to: Set Vessel/Flight Information
Action: Manifest information contains vessel or flight details
Logic Flow:
IF A new cargo record being created
AND Manifest information contains vessel or flight details
THEN:
• Set the cargo vessel/flight information from the manifest transportation details
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when new cargo record being created.
Trigger Criteria:
Context: A new cargo record being created
Applied to: Set Quantity Information
Action: Manifest information contains quantity details
Logic Flow:
IF A new cargo record being created
AND Manifest information contains quantity details
THEN:
• Set the cargo quantity information from the manifest quantity data
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when new cargo record being created.
Trigger Criteria:
Context: A new cargo record being created
Applied to: Set Manifest Type Code
Action: Processing manifest information
Logic Flow:
IF A new cargo record being created
AND Processing manifest information
THEN:
• Set the manifest type code based on the manifest classification
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when new cargo record being created.
Trigger Criteria:
Context: A new cargo record being created
Applied to: Set Condition Response Code
Action: Processing cargo conditions
Logic Flow:
IF A new cargo record being created
AND Processing cargo conditions
THEN:
• Set the condition response code based on cargo processing requirements
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when fully populated new cargo record.
Trigger Criteria:
Context: A fully populated new cargo record
Applied to: Store New Cargo Record
Action: All required information has been set
Logic Flow:
IF A fully populated new cargo record
AND All required information has been set
THEN:
• Insert the new cargo record into the system database
R-GCX016-cbl-02549 (+7)File: GCX016.cblBusiness Rule: Car ID Partial Matching
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when car id is received for cargo matching.
Trigger Criteria:
Context: A car ID is received for cargo matching
Applied to: Format Car ID using GCCCARFM Utility
Action: The system formats the car ID using GCCCARFM utility
Logic Flow:
IF A car ID is received for cargo matching
AND The system formats the car ID using GCCCARFM utility
THEN:
• The car ID format is validated and standardized for subsequent matching operations
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when formatted car id and complete us-ccn key are available.
Trigger Criteria:
Context: A formatted car ID and complete US-CCN key are available
Applied to: Attempt Exact Match with Full US-CCN Key
Action: The system searches for cargo using exact match criteria
Logic Flow:
IF A formatted car ID and complete US-CCN key are available
AND The system searches for cargo using exact match criteria
THEN:
• If an exact match is found, the corresponding cargo record is returned
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when no exact match was found using full us-ccn key.
Trigger Criteria:
Context: No exact match was found using full US-CCN key
Applied to: Attempt Partial Match without US-CCN Constraints
Action: The system performs partial matching without US-CCN constraints
Logic Flow:
IF No exact match was found using full US-CCN key
AND The system performs partial matching without US-CCN constraints
THEN:
• The system searches cargo database using car ID index with relaxed criteria
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when partial matching is required due to exact match failure.
Trigger Criteria:
Context: Partial matching is required due to exact match failure
Applied to: Search Cargo Database by Car ID Index
Action: The system searches the cargo database using car ID index
Logic Flow:
IF Partial matching is required due to exact match failure
AND The system searches the cargo database using car ID index
THEN:
• Potential cargo matches are identified based on car ID indexing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when partial match has been found in the cargo database.
Trigger Criteria:
Context: A partial match has been found in the cargo database
Applied to: Validate Matched Cargo Record
Action: The system validates the matched cargo record
Logic Flow:
IF A partial match has been found in the cargo database
AND The system validates the matched cargo record
THEN:
• If the cargo record is valid, it is accepted as a match, otherwise it is rejected
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when no valid cargo match was found using either exact or partial matching.
Trigger Criteria:
Context: No valid cargo match was found using either exact or partial matching
Applied to: Log Car ID Match Failure
Action: The system logs the car ID match failure
Logic Flow:
IF No valid cargo match was found using either exact or partial matching
AND The system logs the car ID match failure
THEN:
• The failure is recorded with relevant details for audit trail
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when car id fails format validation.
Trigger Criteria:
Context: A car ID fails format validation
Applied to: Log Invalid Car ID Format Error
Action: The system encounters an invalid car ID format
Logic Flow:
IF A car ID fails format validation
AND The system encounters an invalid car ID format
THEN:
• The invalid format error is logged for data quality monitoring
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when all matching attempts have failed or car id format is invalid.
Trigger Criteria:
Context: All matching attempts have failed or car ID format is invalid
Applied to: Return No Match Found Status
Action: The system completes the matching process without finding valid cargo
Logic Flow:
IF All matching attempts have failed or car ID format is invalid
AND The system completes the matching process without finding valid cargo
THEN:
• A no match found status is returned to the calling process
R-GCX016-cbl-02572 (+10)File: GCX016.cblBusiness Rule: Cargo Information Logging with Disposition Codes
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo processing transaction is being executed.
Trigger Criteria:
Context: A cargo processing transaction is being executed
Applied to: Prepare Log Message with Cargo Details
Action: The system needs to log cargo information for audit purposes
Logic Flow:
IF A cargo processing transaction is being executed
AND The system needs to log cargo information for audit purposes
THEN:
• The system shall prepare a log message containing cargo ID, current status, processing context, and transaction details
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo processing transaction is being executed.
Trigger Criteria:
Context: A cargo processing transaction is being executed
Applied to: Add Transaction Audit Trail Data
Action: The system needs to create complete audit trail information
Logic Flow:
IF A cargo processing transaction is being executed
AND The system needs to create complete audit trail information
THEN:
• The system shall add transaction type, source system, processing context, and related audit trail data to the log message
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo processing transaction involves disposition code changes.
Trigger Criteria:
Context: A cargo processing transaction involves disposition code changes
Applied to: Include Disposition Code Information
Action: The system is preparing audit log information
Logic Flow:
IF A cargo processing transaction involves disposition code changes
AND The system is preparing audit log information
THEN:
• The system shall include the disposition code, its description, and the associated processing action in the log message
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo processing involves quantity or status changes.
Trigger Criteria:
Context: Cargo processing involves quantity or status changes
Applied to: Add Cargo Quantities and Status
Action: The system is creating an audit log entry
Logic Flow:
IF Cargo processing involves quantity or status changes
AND The system is creating an audit log entry
THEN:
• The system shall include total quantities, released quantities, current cargo status, and any status changes in the log message
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo processing transaction is being logged.
Trigger Criteria:
Context: A cargo processing transaction is being logged
Applied to: Format Processing Timestamps
Action: The system needs to record timing information
Logic Flow:
IF A cargo processing transaction is being logged
AND The system needs to record timing information
THEN:
• The system shall format and include current processing timestamp, transaction start time, and any relevant date/time information in the log message
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when user is performing cargo processing operations.
Trigger Criteria:
Context: A user is performing cargo processing operations
Applied to: Include Security Information
Action: The system is creating audit log entries
Logic Flow:
IF A user is performing cargo processing operations
AND The system is creating audit log entries
THEN:
• The system shall include user identification, security context, and authorization level information in the log message
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when complete log message has been prepared with all required information.
Trigger Criteria:
Context: A complete log message has been prepared with all required information
Applied to: Set Log Message Parameters
Action: The system is ready to transmit the log message
Logic Flow:
IF A complete log message has been prepared with all required information
AND The system is ready to transmit the log message
THEN:
• The system shall set appropriate message parameters including priority level, destination queue, and formatting options
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when log message is prepared with all required parameters and cargo processing information.
Trigger Criteria:
Context: A log message is prepared with all required parameters and cargo processing information
Applied to: Spawn GCT1051E Logging Transaction
Action: The system needs to record the audit log entry
Logic Flow:
IF A log message is prepared with all required parameters and cargo processing information
AND The system needs to record the audit log entry
THEN:
• The system shall spawn GCT1051E logging transaction excluding disposition codes 54 and 55 from logging
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when gct1051e logging transaction has been invoked.
Trigger Criteria:
Context: The GCT1051E logging transaction has been invoked
Applied to: Logging Successful?
Action: The logging transaction completes execution
Logic Flow:
IF The GCT1051E logging transaction has been invoked
AND The logging transaction completes execution
THEN:
• The system shall verify if logging was successful and branch to appropriate processing path based on the result
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when gct1051e logging transaction completed successfully.
Trigger Criteria:
Context: The GCT1051E logging transaction completed successfully
Applied to: Update Audit Trail
Action: The system receives successful completion confirmation
Logic Flow:
IF The GCT1051E logging transaction completed successfully
AND The system receives successful completion confirmation
THEN:
• The system shall update internal audit trail records and continue with normal processing flow
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when gct1051e logging transaction failed to complete successfully.
Trigger Criteria:
Context: The GCT1051E logging transaction failed to complete successfully
Applied to: Log Error Message
Action: The system receives failure notification
Logic Flow:
IF The GCT1051E logging transaction failed to complete successfully
AND The system receives failure notification
THEN:
• The system shall record error information about the logging failure and continue processing
R-GCX016-cbl-02583 (+13)File: GCX016.cblBusiness Rule: K1 Remarks Logging for Cargo
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when k1 segment is received for processing.
Trigger Criteria:
Context: A K1 segment is received for processing
Applied to: K1 Segment Type?
Action: The system evaluates the segment context and operational scope
Logic Flow:
IF A K1 segment is received for processing
AND The system evaluates the segment context and operational scope
THEN:
• The K1 segment is classified as either train-level processing or cargo-level processing based on the current processing context
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when k1 segment has been classified for processing.
Trigger Criteria:
Context: A K1 segment has been classified for processing
Applied to: Extract Free-Form Comment Text
Action: The system processes the K1 segment content
Logic Flow:
IF A K1 segment has been classified for processing
AND The system processes the K1 segment content
THEN:
• The free-form comment text is extracted from the K1 segment data fields
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when free-form comment text has been extracted from k1 segment.
Trigger Criteria:
Context: Free-form comment text has been extracted from K1 segment
Applied to: Validate Comment Length
Action: The system validates the comment text length
Logic Flow:
IF Free-form comment text has been extracted from K1 segment
AND The system validates the comment text length
THEN:
• The comment is accepted if it meets length requirements or rejected if it exceeds maximum allowed length
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when k1 comment has undergone length validation.
Trigger Criteria:
Context: A K1 comment has undergone length validation
Applied to: Comment Valid?
Action: The system evaluates comment validity based on length and content criteria
Logic Flow:
IF A K1 comment has undergone length validation
AND The system evaluates comment validity based on length and content criteria
THEN:
• The comment is marked as valid for storage or invalid for rejection
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when k1 comment has been validated as acceptable.
Trigger Criteria:
Context: A K1 comment has been validated as acceptable
Applied to: Store K1 Comment in Array
Action: The system processes the valid comment for storage
Logic Flow:
IF A K1 comment has been validated as acceptable
AND The system processes the valid comment for storage
THEN:
• The K1 comment is stored in the comment array for later association with cargo records
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when k1 segment has been processed and stored.
Trigger Criteria:
Context: A K1 segment has been processed and stored
Applied to: More K1 Segments?
Action: The system checks for additional K1 segments in the message
Logic Flow:
IF A K1 segment has been processed and stored
AND The system checks for additional K1 segments in the message
THEN:
• Processing continues with next K1 segment if more exist, or proceeds to comment count validation if no more segments
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when all k1 segments have been processed and stored in array.
Trigger Criteria:
Context: All K1 segments have been processed and stored in array
Applied to: Check K1 Comment Count
Action: The system counts the total number of K1 comments collected
Logic Flow:
IF All K1 segments have been processed and stored in array
AND The system counts the total number of K1 comments collected
THEN:
• The comment count is evaluated against maximum allowed limit of 4 comments per cargo
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when k1 comment count has been determined.
Trigger Criteria:
Context: K1 comment count has been determined
Applied to: Count ≤ 4?
Action: The system evaluates if comment count is less than or equal to 4
Logic Flow:
IF K1 comment count has been determined
AND The system evaluates if comment count is less than or equal to 4
THEN:
• Comments are accepted for cargo association if count is 4 or less, or processing completes if limit exceeded
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when k1 comments have passed count validation (≤ 4).
Trigger Criteria:
Context: K1 comments have passed count validation (≤ 4)
Applied to: Add K1 Comment to Cargo Record
Action: The system processes comments for cargo association
Logic Flow:
IF K1 comments have passed count validation (≤ 4)
AND The system processes comments for cargo association
THEN:
• K1 comments are added to the cargo record for inclusion in disposition code processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when k1 comments have been added to cargo record.
Trigger Criteria:
Context: K1 comments have been added to cargo record
Applied to: Log K1 Remarks with Cargo Information
Action: The system processes cargo with associated K1 remarks
Logic Flow:
IF K1 comments have been added to cargo record
AND The system processes cargo with associated K1 remarks
THEN:
• K1 remarks are logged with cargo identification information for audit trail
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when k1 remarks have been logged with cargo information.
Trigger Criteria:
Context: K1 remarks have been logged with cargo information
Applied to: Associate K1 with Disposition Code
Action: The system processes disposition codes for the cargo
Logic Flow:
IF K1 remarks have been logged with cargo information
AND The system processes disposition codes for the cargo
THEN:
• K1 remarks are associated with the relevant disposition code for customs release processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when k1 remarks have been associated with disposition code.
Trigger Criteria:
Context: K1 remarks have been associated with disposition code
Applied to: Update Cargo Processing Log
Action: The system completes K1 processing for cargo
Logic Flow:
IF K1 remarks have been associated with disposition code
AND The system completes K1 processing for cargo
THEN:
• Cargo processing log is updated to record K1 remarks inclusion in disposition code processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when k1 comment has failed validation criteria.
Trigger Criteria:
Context: A K1 comment has failed validation criteria
Applied to: Reject Invalid Comment
Action: The system processes the invalid comment
Logic Flow:
IF A K1 comment has failed validation criteria
AND The system processes the invalid comment
THEN:
• The K1 comment is rejected and excluded from cargo processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when k1 comment has been rejected due to validation failure.
Trigger Criteria:
Context: A K1 comment has been rejected due to validation failure
Applied to: Log Error Message
Action: The system processes the rejection
Logic Flow:
IF A K1 comment has been rejected due to validation failure
AND The system processes the rejection
THEN:
• An error message is logged documenting the K1 comment validation failure for audit purposes
R-GCX016-cbl-02597 (+9)File: GCX016.cblBusiness Rule: CPRS Cargo Not Found Error Handling
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo lookup has failed and cargo record information is available.
Trigger Criteria:
Context: A cargo lookup has failed and cargo record information is available
Applied to: Is this CPRS Cargo?
Action: The system evaluates the cargo type to determine if it is CPRS cargo
Logic Flow:
IF A cargo lookup has failed and cargo record information is available
AND The system evaluates the cargo type to determine if it is CPRS cargo
THEN:
• The system routes to CPRS-specific error handling if cargo is CPRS type, otherwise skips specialized error processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cprs cargo record lookup has failed.
Trigger Criteria:
Context: A CPRS cargo record lookup has failed
Applied to: Generate CPRS Cargo Not Found Error Message
Action: The system needs to generate an error notification
Logic Flow:
IF A CPRS cargo record lookup has failed
AND The system needs to generate an error notification
THEN:
• The system creates a CPRS-specific 'cargo not found' error message and increments the error counter
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cprs cargo not found error needs to be reported.
Trigger Criteria:
Context: A CPRS cargo not found error needs to be reported
Applied to: Format Error Message with Cargo Details
Action: The system formats the error message content
Logic Flow:
IF A CPRS cargo not found error needs to be reported
AND The system formats the error message content
THEN:
• The system creates message format 'USCS *ERROR** DC:' + disposition code + CCN key + '*NotFound*'
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cprs error message is being formatted.
Trigger Criteria:
Context: A CPRS error message is being formatted
Applied to: Include Car ID and Waybill Information
Action: Car ID and waybill information is available from the cargo record
Logic Flow:
IF A CPRS error message is being formatted
AND Car ID and waybill information is available from the cargo record
THEN:
• The system includes the car identification and waybill number in the error message content
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cprs cargo not found error is being formatted.
Trigger Criteria:
Context: A CPRS cargo not found error is being formatted
Applied to: Add Disposition Code Information
Action: A disposition code was being processed for the missing cargo
Logic Flow:
IF A CPRS cargo not found error is being formatted
AND A disposition code was being processed for the missing cargo
THEN:
• The system includes the disposition code in the error message to identify what customs action was attempted
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cprs cargo not found error message has been formatted.
Trigger Criteria:
Context: A CPRS cargo not found error message has been formatted
Applied to: Set Error Message Type
Action: The system needs to classify the message for routing
Logic Flow:
IF A CPRS cargo not found error message has been formatted
AND The system needs to classify the message for routing
THEN:
• The system sets the message type as 'ERROR' to ensure proper handling and routing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cprs error message has been classified as error type.
Trigger Criteria:
Context: A CPRS error message has been classified as error type
Applied to: Route Error Message to Multiple Destinations
Action: The system routes the error message
Logic Flow:
IF A CPRS error message has been classified as error type
AND The system routes the error message
THEN:
• The system sends the message to both 'IN' destination and 'USERR' destination for comprehensive error notification
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cprs error message has been routed to destinations.
Trigger Criteria:
Context: A CPRS error message has been routed to destinations
Applied to: Log Error for Audit Trail
Action: The system completes error processing
Logic Flow:
IF A CPRS error message has been routed to destinations
AND The system completes error processing
THEN:
• The system logs the error occurrence for audit trail and sets the cargo not found flag for downstream processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cprs error processing has been completed or skipped.
Trigger Criteria:
Context: CPRS error processing has been completed or skipped
Applied to: Continue Processing Next Cargo
Action: The system finishes error handling for current cargo
Logic Flow:
IF CPRS error processing has been completed or skipped
AND The system finishes error handling for current cargo
THEN:
• The system continues processing the next cargo record in the queue
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo lookup has failed.
Trigger Criteria:
Context: A cargo lookup has failed
Applied to: Skip Error Generation
Action: The cargo is determined to be non-CPRS cargo type
Logic Flow:
IF A cargo lookup has failed
AND The cargo is determined to be non-CPRS cargo type
THEN:
• The system skips CPRS-specific error message generation and continues with standard processing
R-GCX016-cbl-02607 (+5)File: GCX016.cblBusiness Rule: Train Not Arrived Warning Generation
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when train processing request is received with train identification information.
Trigger Criteria:
Context: A train processing request is received with train identification information
Applied to: Check Train Status in System
Action: The system checks the train status in the USCS database
Logic Flow:
IF A train processing request is received with train identification information
AND The system checks the train status in the USCS database
THEN:
• The system determines if the train is properly arrived or not arrived and sets appropriate processing flags
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when train is found to be not arrived in the uscs system.
Trigger Criteria:
Context: A train is found to be not arrived in the USCS system
Applied to: Generate Train Not Arrived Warning Message
Action: The system needs to generate a warning notification
Logic Flow:
IF A train is found to be not arrived in the USCS system
AND The system needs to generate a warning notification
THEN:
• The system creates a warning message stating 'Re-arrive train or contact USCS' with train identification details
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when train not arrived warning needs to be generated.
Trigger Criteria:
Context: A train not arrived warning needs to be generated
Applied to: Format Warning with Train Details
Action: The system formats the warning message
Logic Flow:
IF A train not arrived warning needs to be generated
AND The system formats the warning message
THEN:
• The message includes train vessel name, manifest information, and disposition code details in a structured format
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when formatted train not arrived warning message is ready for distribution.
Trigger Criteria:
Context: A formatted train not arrived warning message is ready for distribution
Applied to: Route Warning to Operations Team
Action: The system routes the warning message
Logic Flow:
IF A formatted train not arrived warning message is ready for distribution
AND The system routes the warning message
THEN:
• The message is sent through the Merlin system to operational teams and logged for tracking purposes
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when train not arrived warning has been generated and routed.
Trigger Criteria:
Context: A train not arrived warning has been generated and routed
Applied to: Continue Processing with Warning Flag
Action: The system continues with cargo processing operations
Logic Flow:
IF A train not arrived warning has been generated and routed
AND The system continues with cargo processing operations
THEN:
• Processing continues with appropriate warning flags set to indicate the train arrival issue
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when train is found to be properly arrived in the uscs system.
Trigger Criteria:
Context: A train is found to be properly arrived in the USCS system
Applied to: Normal Train Processing
Action: The system processes the train request
Logic Flow:
IF A train is found to be properly arrived in the USCS system
AND The system processes the train request
THEN:
• Normal cargo processing operations proceed without generating warning messages
Business Justification: Defines the strict business conditions required to proceed when train arrival cancellation request is received with event code 'coc'.
Trigger Criteria:
Context: A train arrival cancellation request is received with event code 'COC'
Applied to: Train Arrival Cancellation Request Received
Action: The system processes the V9 segment with cancellation event code
Logic Flow:
IF A train arrival cancellation request is received with event code 'COC'
AND The system processes the V9 segment with cancellation event code
THEN:
• The system initiates train arrival cancellation processing workflow
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when train arrival cancellation request is being processed.
Trigger Criteria:
Context: A train arrival cancellation request is being processed
Applied to: Is Train Found in System?
Action: The system searches for the train using the vessel name from the manifest
Logic Flow:
IF A train arrival cancellation request is being processed
AND The system searches for the train using the vessel name from the manifest
THEN:
• The system determines if the train exists and sets appropriate processing flags
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when train exists in the system for the cancellation request.
Trigger Criteria:
Context: A train exists in the system for the cancellation request
Applied to: Retrieve Train Information
Action: The system retrieves train information using the vessel name
Logic Flow:
IF A train exists in the system for the cancellation request
AND The system retrieves train information using the vessel name
THEN:
• The system loads train details including current status and arrival information
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when train information has been retrieved from the system.
Trigger Criteria:
Context: Train information has been retrieved from the system
Applied to: Check Current Train Status
Action: The system examines the train's current operational status
Logic Flow:
IF Train information has been retrieved from the system
AND The system examines the train's current operational status
THEN:
• The system determines the train's arrival status for cancellation processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when train's current status has been assessed.
Trigger Criteria:
Context: The train's current status has been assessed
Applied to: Is Train Currently Arrived?
Action: The system checks if the train status indicates arrival has occurred
Logic Flow:
IF The train's current status has been assessed
AND The system checks if the train status indicates arrival has occurred
THEN:
• The system determines whether cancellation processing should proceed or complete
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when train is currently in arrived status and cancellation is requested.
Trigger Criteria:
Context: A train is currently in arrived status and cancellation is requested
Applied to: Generate Cancellation Warning Message
Action: The system processes the cancellation for an arrived train
Logic Flow:
IF A train is currently in arrived status and cancellation is requested
AND The system processes the cancellation for an arrived train
THEN:
• The system generates a cancellation warning message with appropriate details
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cancellation warning message needs to be generated.
Trigger Criteria:
Context: A cancellation warning message needs to be generated
Applied to: Format Warning with Train Details
Action: The system formats the warning message
Logic Flow:
IF A cancellation warning message needs to be generated
AND The system formats the warning message
THEN:
• The message includes train identification, arrival details, and cancellation context
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when warning message is being formatted for train arrival cancellation.
Trigger Criteria:
Context: A warning message is being formatted for train arrival cancellation
Applied to: Include Cancellation Reason Code
Action: The system includes the cancellation reason code
Logic Flow:
IF A warning message is being formatted for train arrival cancellation
AND The system includes the cancellation reason code
THEN:
• The message contains the specific reason code that triggered the cancellation
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cancellation warning message is being prepared.
Trigger Criteria:
Context: A cancellation warning message is being prepared
Applied to: Add CBP Reference Information
Action: The system adds CBP reference information
Logic Flow:
IF A cancellation warning message is being prepared
AND The system adds CBP reference information
THEN:
• The message includes instructions to contact CBP and relevant reference numbers
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when complete cancellation warning message has been prepared.
Trigger Criteria:
Context: A complete cancellation warning message has been prepared
Applied to: Route Warning to Operations Team
Action: The system routes the warning to the operations team
Logic Flow:
IF A complete cancellation warning message has been prepared
AND The system routes the warning to the operations team
THEN:
• The operations team receives notification of the train arrival cancellation
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when operations team has been notified of the cancellation.
Trigger Criteria:
Context: The operations team has been notified of the cancellation
Applied to: Send Notification to Manifest Control
Action: The system sends notification to manifest control
Logic Flow:
IF The operations team has been notified of the cancellation
AND The system sends notification to manifest control
THEN:
• Manifest control receives details of the cancelled train arrival for processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when all notifications have been sent for the train arrival cancellation.
Trigger Criteria:
Context: All notifications have been sent for the train arrival cancellation
Applied to: Update Train Status to Cancelled
Action: The system updates the train status
Logic Flow:
IF All notifications have been sent for the train arrival cancellation
AND The system updates the train status
THEN:
• The train status is changed to cancelled and arrival information is cleared
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when train status has been updated to cancelled.
Trigger Criteria:
Context: The train status has been updated to cancelled
Applied to: Log Cancellation Event
Action: The system logs the cancellation event
Logic Flow:
IF The train status has been updated to cancelled
AND The system logs the cancellation event
THEN:
• A complete audit record is created with cancellation details, timestamp, and reason code
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when train arrival cancellation request is received for a non-existent train.
Trigger Criteria:
Context: A train arrival cancellation request is received for a non-existent train
Applied to: Generate Error Message - Train Not Found
Action: The system cannot locate the train in the database
Logic Flow:
IF A train arrival cancellation request is received for a non-existent train
AND The system cannot locate the train in the database
THEN:
• An error message is generated indicating the train was not found
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when error has been generated for a train not found condition.
Trigger Criteria:
Context: An error has been generated for a train not found condition
Applied to: Route Error to System Administrator
Action: The system routes the error message
Logic Flow:
IF An error has been generated for a train not found condition
AND The system routes the error message
THEN:
• The system administrator receives the error for investigation and resolution
R-GCX016-cbl-02628 (+8)File: GCX016.cblBusiness Rule: Cargo Status Array Creation
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record is identified for status array creation.
Trigger Criteria:
Context: A cargo record is identified for status array creation
Applied to: Does Cargo Have Existing S09 Status Segments?
Action: The system checks for existing S09 status segments for the cargo
Logic Flow:
IF A cargo record is identified for status array creation
AND The system checks for existing S09 status segments for the cargo
THEN:
• The system identifies whether status segments exist or need to be created
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record has existing s09 status segments in the database.
Trigger Criteria:
Context: A cargo record has existing S09 status segments in the database
Applied to: Retrieve Existing S09 Segments from Database
Action: The system needs to work with cargo status information
Logic Flow:
IF A cargo record has existing S09 status segments in the database
AND The system needs to work with cargo status information
THEN:
• The system retrieves all existing S09 status segments for the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record does not have existing s09 status segments.
Trigger Criteria:
Context: A cargo record does not have existing S09 status segments
Applied to: Initialize Empty Status Array Structure
Action: The system needs to create status tracking for the cargo
Logic Flow:
IF A cargo record does not have existing S09 status segments
AND The system needs to create status tracking for the cargo
THEN:
• The system initializes an empty status array structure
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when new status array is being created for a cargo record.
Trigger Criteria:
Context: A new status array is being created for a cargo record
Applied to: Set Array Counter to Zero
Action: The system initializes the array structure
Logic Flow:
IF A new status array is being created for a cargo record
AND The system initializes the array structure
THEN:
• The array counter is set to zero to indicate no status entries exist
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when status array structure needs to be created.
Trigger Criteria:
Context: A status array structure needs to be created
Applied to: Allocate S09A Status Array Memory
Action: The system allocates memory for status tracking
Logic Flow:
IF A status array structure needs to be created
AND The system allocates memory for status tracking
THEN:
• S09A status array memory is allocated with proper structure
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when new status array has been allocated.
Trigger Criteria:
Context: A new status array has been allocated
Applied to: Set Default Array Parameters
Action: The system configures the array for use
Logic Flow:
IF A new status array has been allocated
AND The system configures the array for use
THEN:
• Default array parameters are set according to system standards
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when status array has been created and configured.
Trigger Criteria:
Context: A status array has been created and configured
Applied to: Mark Array as New/Empty
Action: The system needs to track the array state
Logic Flow:
IF A status array has been created and configured
AND The system needs to track the array state
THEN:
• The array is marked as new and empty for proper processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when status array has been created and marked as new.
Trigger Criteria:
Context: A status array has been created and marked as new
Applied to: Prepare Array for Disposition Code Processing
Action: The system prepares for disposition code processing
Logic Flow:
IF A status array has been created and marked as new
AND The system prepares for disposition code processing
THEN:
• The array is configured to accept and process disposition codes
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when status array has been created and prepared for disposition code processing.
Trigger Criteria:
Context: A status array has been created and prepared for disposition code processing
Applied to: Status Array Ready for Use
Action: The system completes array initialization
Logic Flow:
IF A status array has been created and prepared for disposition code processing
AND The system completes array initialization
THEN:
• The status array is ready for use in cargo status operations
R-GCX016-cbl-02637 (+17)File: GCX016.cblBusiness Rule: Cargo Status Array Replacement
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo status array (s09a-array) exists for processing.
Trigger Criteria:
Context: A cargo status array (S09A-ARRAY) exists for processing
Applied to: Status Array Has Data?
Action: The system checks if the status array has any data elements
Logic Flow:
IF A cargo status array (S09A-ARRAY) exists for processing
AND The system checks if the status array has any data elements
THEN:
• If the array is empty or has no valid entries, skip processing and complete the operation, otherwise proceed with status array processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when status array contains valid data elements to process.
Trigger Criteria:
Context: The status array contains valid data elements to process
Applied to: Initialize S09 Segment Counter
Action: Beginning the status array replacement process
Logic Flow:
IF The status array contains valid data elements to process
AND Beginning the status array replacement process
THEN:
• Set the S09 segment counter to zero to start tracking segment creation
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when status array with multiple elements exists.
Trigger Criteria:
Context: A status array with multiple elements exists
Applied to: More Array Elements?
Action: Processing status array elements sequentially
Logic Flow:
IF A status array with multiple elements exists
AND Processing status array elements sequentially
THEN:
• Continue processing if more array elements exist, otherwise proceed to update the cargo root record
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when valid status array element with disposition information.
Trigger Criteria:
Context: A valid status array element with disposition information
Applied to: Build S09 Segment from Array Element
Action: Building an S09 segment from the array element
Logic Flow:
IF A valid status array element with disposition information
AND Building an S09 segment from the array element
THEN:
• Initialize a new S09 segment structure with the cargo CCN key and appropriate sequence number
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when status array element contains a disposition code. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: A status array element contains a disposition code
Applied to: Set Disposition Code
Action: Building the S09 segment
Logic Flow:
IF A status array element contains a disposition code
AND Building the S09 segment
THEN:
• Copy the disposition code from the array element to the S09 segment disposition code field
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when status array element contains entry number information. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: A status array element contains entry number information
Applied to: Set Entry Number
Action: Building the S09 segment
Logic Flow:
IF A status array element contains entry number information
AND Building the S09 segment
THEN:
• Copy the entry number from the array element to the S09 segment entry number field
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when status array element contains quantity information. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: A status array element contains quantity information
Applied to: Set Quantity Information
Action: Building the S09 segment
Logic Flow:
IF A status array element contains quantity information
AND Building the S09 segment
THEN:
• Copy the quantity values from the array element to the S09 segment quantity fields
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when status array element contains release status information. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: A status array element contains release status information
Applied to: Set Release Status Flag
Action: Building the S09 segment
Logic Flow:
IF A status array element contains release status information
AND Building the S09 segment
THEN:
• Copy the release status flag from the array element to the S09 segment release flag field
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when status array element contains location information. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: A status array element contains location information
Applied to: Set Location Information
Action: Building the S09 segment
Logic Flow:
IF A status array element contains location information
AND Building the S09 segment
THEN:
• Copy the location data from the array element to the S09 segment location fields
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when status array element contains date and time information. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: A status array element contains date and time information
Applied to: Set Date/Time Stamps
Action: Building the S09 segment
Logic Flow:
IF A status array element contains date and time information
AND Building the S09 segment
THEN:
• Copy the date and time stamps from the array element to the S09 segment date/time fields
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when complete s09 segment has been constructed from status array data.
Trigger Criteria:
Context: A complete S09 segment has been constructed from status array data
Applied to: Insert S09 Segment to Database
Action: Inserting the S09 segment into the database
Logic Flow:
IF A complete S09 segment has been constructed from status array data
AND Inserting the S09 segment into the database
THEN:
• Write the S09 segment to the GCSUSS09 status segments database
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when s09 segment has been successfully created and inserted.
Trigger Criteria:
Context: An S09 segment has been successfully created and inserted
Applied to: Increment Segment Counter
Action: Tracking the number of segments created
Logic Flow:
IF An S09 segment has been successfully created and inserted
AND Tracking the number of segments created
THEN:
• Increment the segment counter by one to reflect the new segment
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when current status array element has been processed.
Trigger Criteria:
Context: The current status array element has been processed
Applied to: Move to Next Array Element
Action: Continuing array processing
Logic Flow:
IF The current status array element has been processed
AND Continuing array processing
THEN:
• Move the array pointer to the next element for subsequent processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when all status array elements have been processed and s09 segments created.
Trigger Criteria:
Context: All status array elements have been processed and S09 segments created
Applied to: Update Cargo Root with New Status Count
Action: Updating the cargo root record
Logic Flow:
IF All status array elements have been processed and S09 segments created
AND Updating the cargo root record
THEN:
• Set the status segment count in the cargo root to match the number of S09 segments created
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo root record has been updated with new status information.
Trigger Criteria:
Context: The cargo root record has been updated with new status information
Applied to: Replace Cargo Record in Database
Action: Replacing the cargo record in the database
Logic Flow:
IF The cargo root record has been updated with new status information
AND Replacing the cargo record in the database
THEN:
• Update the existing cargo record in the GCSUSRT cargo root database with the modified data
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record replacement operation has been attempted.
Trigger Criteria:
Context: A cargo record replacement operation has been attempted
Applied to: Database Update Successful?
Action: Checking the database update result
Logic Flow:
IF A cargo record replacement operation has been attempted
AND Checking the database update result
THEN:
• If the update was successful, proceed to logging, otherwise handle the database error
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record and s09 segments have been successfully updated in the database.
Trigger Criteria:
Context: The cargo record and S09 segments have been successfully updated in the database
Applied to: Log Status Array Update
Action: Completing the status array replacement process
Logic Flow:
IF The cargo record and S09 segments have been successfully updated in the database
AND Completing the status array replacement process
THEN:
• Create a log entry documenting the successful status array update operation
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when database update operation has failed.
Trigger Criteria:
Context: A database update operation has failed
Applied to: Handle Database Error
Action: Processing the database error
Logic Flow:
IF A database update operation has failed
AND Processing the database error
THEN:
• Execute appropriate error handling procedures and complete the operation with error status
R-GCX016-cbl-02672 (+7)File: GCX016.cblBusiness Rule: Status Array Initialization
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record has been identified for processing.
Trigger Criteria:
Context: A cargo record has been identified for processing
Applied to: S09 Status Segments Exist?
Action: The system checks for existing S09 status segments associated with the cargo record
Logic Flow:
IF A cargo record has been identified for processing
AND The system checks for existing S09 status segments associated with the cargo record
THEN:
• The system identifies whether S09 segments exist and routes processing accordingly
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when s09 status segments exist for the cargo record in the database.
Trigger Criteria:
Context: S09 status segments exist for the cargo record in the database
Applied to: Fetch Existing S09 Segments from Database
Action: The system needs to load existing status information
Logic Flow:
IF S09 status segments exist for the cargo record in the database
AND The system needs to load existing status information
THEN:
• The system fetches all S09 segments associated with the cargo record from GCSUSS09 IMS segment
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when no s09 status segments exist for the cargo record.
Trigger Criteria:
Context: No S09 status segments exist for the cargo record
Applied to: Initialize Empty S09A Status Array
Action: The system needs to create a new status array for processing
Logic Flow:
IF No S09 status segments exist for the cargo record
AND The system needs to create a new status array for processing
THEN:
• The system initializes an empty S09A status array structure
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when empty s09a status array has been initialized.
Trigger Criteria:
Context: An empty S09A status array has been initialized
Applied to: Set Array Element Count to Zero
Action: The system sets up the array structure properties
Logic Flow:
IF An empty S09A status array has been initialized
AND The system sets up the array structure properties
THEN:
• The array element count is set to zero to reflect no existing status entries
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when status array element count has been set to zero.
Trigger Criteria:
Context: The status array element count has been set to zero
Applied to: Allocate Array Memory Structure
Action: The system prepares the array for status processing operations
Logic Flow:
IF The status array element count has been set to zero
AND The system prepares the array for status processing operations
THEN:
• The system allocates the required memory structure for the status array
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when status array memory structure has been allocated.
Trigger Criteria:
Context: The status array memory structure has been allocated
Applied to: Set Default Array Properties
Action: The system configures the array for cargo status operations
Logic Flow:
IF The status array memory structure has been allocated
AND The system configures the array for cargo status operations
THEN:
• The system sets default properties and characteristics for the status array
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when status array has been initialized with default properties.
Trigger Criteria:
Context: The status array has been initialized with default properties
Applied to: Mark Array as Newly Created
Action: The system needs to track the origin of the status array
Logic Flow:
IF The status array has been initialized with default properties
AND The system needs to track the origin of the status array
THEN:
• The system marks the array as newly created for processing identification
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when status array has been either fetched from existing segments or newly initialized.
Trigger Criteria:
Context: The status array has been either fetched from existing segments or newly initialized
Applied to: Status Array Ready for Processing
Action: All array setup operations have been completed
Logic Flow:
IF The status array has been either fetched from existing segments or newly initialized
AND All array setup operations have been completed
THEN:
• The status array is ready for cargo status processing operations
R-GCX016-cbl-02680 (+10)File: GCX016.cblBusiness Rule: Status Array Population
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record requires status information to be loaded.
Trigger Criteria:
Context: A cargo record requires status information to be loaded
Applied to: Initialize S09A Array Counter to Zero
Action: The status array population process begins
Logic Flow:
IF A cargo record requires status information to be loaded
AND The status array population process begins
THEN:
• The S09A array counter is set to zero to start fresh population
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record exists in the system with potential status segments. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: A cargo record exists in the system with potential status segments
Applied to: Call GCCUSIO to Get First S09 Status Segment
Action: The system needs to load status information
Logic Flow:
IF A cargo record exists in the system with potential status segments
AND The system needs to load status information
THEN:
• The system calls GCCUSIO to retrieve the first S09 status segment for the cargo
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when request has been made to retrieve an s09 status segment. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: A request has been made to retrieve an S09 status segment
Applied to: S09 Segment Found?
Action: The database call completes
Logic Flow:
IF A request has been made to retrieve an S09 status segment
AND The database call completes
THEN:
• The system determines if a valid S09 segment was found and proceeds accordingly
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when valid s09 status segment has been retrieved from the database.
Trigger Criteria:
Context: A valid S09 status segment has been retrieved from the database
Applied to: Extract Status Information from S09 Segment
Action: The segment needs to be processed
Logic Flow:
IF A valid S09 status segment has been retrieved from the database
AND The segment needs to be processed
THEN:
• The system extracts status info code, entry number, quantity, released flag, location code, and status description from the segment
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when status information has been extracted from an s09 segment.
Trigger Criteria:
Context: Status information has been extracted from an S09 segment
Applied to: - Status Info Code - Entry Number - Quantity - Released Flag - Location Code - Status Description
Action: The array element needs to be populated
Logic Flow:
IF Status information has been extracted from an S09 segment
AND The array element needs to be populated
THEN:
• The system stores the status info code, entry number, quantity, released flag, location code, and status description in the current S09A array element
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when s09a array element has been successfully populated with status information.
Trigger Criteria:
Context: An S09A array element has been successfully populated with status information
Applied to: Increment Array Counter
Action: The element population is complete
Logic Flow:
IF An S09A array element has been successfully populated with status information
AND The element population is complete
THEN:
• The system increments the array counter by one to point to the next available array position
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when array counter has been incremented after populating an element.
Trigger Criteria:
Context: The array counter has been incremented after populating an element
Applied to: Array Counter < Maximum Limit?
Action: The system needs to determine if more elements can be added
Logic Flow:
IF The array counter has been incremented after populating an element
AND The system needs to determine if more elements can be added
THEN:
• The system checks if the array counter is less than the maximum limit and determines the next action
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when array has capacity for more elements and previous segments have been processed. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: The array has capacity for more elements and previous segments have been processed
Applied to: Call GCCUSIO to Get Next S09 Status Segment
Action: Additional status segments need to be retrieved
Logic Flow:
IF The array has capacity for more elements and previous segments have been processed
AND Additional status segments need to be retrieved
THEN:
• The system calls GCCUSIO to get the next S09 status segment for the same cargo
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when all available s09 segments have been processed or no segments were found.
Trigger Criteria:
Context: All available S09 segments have been processed or no segments were found
Applied to: Set Total Array Count
Action: The status array population process is complete
Logic Flow:
IF All available S09 segments have been processed or no segments were found
AND The status array population process is complete
THEN:
• The system sets the total array count to reflect the number of elements populated
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when array counter has reached or exceeded the maximum allowed limit.
Trigger Criteria:
Context: The array counter has reached or exceeded the maximum allowed limit
Applied to: Array Overflow - Log Warning
Action: Additional S09 segments are available but cannot be processed
Logic Flow:
IF The array counter has reached or exceeded the maximum allowed limit
AND Additional S09 segments are available but cannot be processed
THEN:
• The system logs a warning about array overflow and stops further population
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when all available s09 segments have been processed or array limits have been reached.
Trigger Criteria:
Context: All available S09 segments have been processed or array limits have been reached
Applied to: Status Array Population Complete
Action: The population process concludes
Logic Flow:
IF All available S09 segments have been processed or array limits have been reached
AND The population process concludes
THEN:
• The system marks the status array population as complete and the array is ready for use
R-GCX016-cbl-02691 (+11)File: GCX016.cblBusiness Rule: Status Array Persistence
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when status array processing has been completed.
Trigger Criteria:
Context: Status array processing has been completed
Applied to: Status Array Modified?
Action: The system checks if any modifications were made to the status array
Logic Flow:
IF Status array processing has been completed
AND The system checks if any modifications were made to the status array
THEN:
• If modifications exist, proceed with database update preparation, otherwise skip to next processing step
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when status array has been modified during processing.
Trigger Criteria:
Context: Status array has been modified during processing
Applied to: Prepare S09 Segment Update
Action: The system prepares to update the S09 segment
Logic Flow:
IF Status array has been modified during processing
AND The system prepares to update the S09 segment
THEN:
• Initialize S09 segment structure and prepare for data movement from status array
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when s09 segment update has been prepared.
Trigger Criteria:
Context: S09 segment update has been prepared
Applied to: Move S09A Array Data to Database Format
Action: The system moves data from S09A array to database format
Logic Flow:
IF S09 segment update has been prepared
AND The system moves data from S09A array to database format
THEN:
• Convert all status entries from array format to S09 segment structure maintaining proper sequence and occurrence numbers
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when status array data has been moved to database format.
Trigger Criteria:
Context: Status array data has been moved to database format
Applied to: Calculate Number of Status Entries
Action: The system calculates the number of status entries
Logic Flow:
IF Status array data has been moved to database format
AND The system calculates the number of status entries
THEN:
• Count all non-blank status entries in the array and set the total count for database operations
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when number of status entries has been calculated.
Trigger Criteria:
Context: Number of status entries has been calculated
Applied to: Status Entries Exist?
Action: The system checks if status entries exist
Logic Flow:
IF Number of status entries has been calculated
AND The system checks if status entries exist
THEN:
• If status entries exist, proceed with S09 segment replacement, otherwise proceed directly to cargo record update
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when status entries exist and have been formatted for database storage.
Trigger Criteria:
Context: Status entries exist and have been formatted for database storage
Applied to: Replace GCSUSS09 Segment with Updated Status
Action: The system replaces the GCSUSS09 segment
Logic Flow:
IF Status entries exist and have been formatted for database storage
AND The system replaces the GCSUSS09 segment
THEN:
• Update the database with new status information maintaining proper key structure and sequence numbers
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when s09 segment has been updated or no status entries exist.
Trigger Criteria:
Context: S09 segment has been updated or no status entries exist
Applied to: Update Cargo Root Record Status Flags
Action: The system updates cargo root record status flags
Logic Flow:
IF S09 segment has been updated or no status entries exist
AND The system updates cargo root record status flags
THEN:
• Set appropriate status flags in the cargo root record based on the final status array analysis
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo root record status flags have been updated.
Trigger Criteria:
Context: Cargo root record status flags have been updated
Applied to: Replace GCSUSRT Cargo Record
Action: The system replaces the GCSUSRT cargo record
Logic Flow:
IF Cargo root record status flags have been updated
AND The system replaces the GCSUSRT cargo record
THEN:
• Update the database cargo record with all modified fields including status, quantities, and processing flags
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record replacement has been attempted.
Trigger Criteria:
Context: Cargo record replacement has been attempted
Applied to: Database Update Successful?
Action: The system checks if the database update was successful
Logic Flow:
IF Cargo record replacement has been attempted
AND The system checks if the database update was successful
THEN:
• If successful, proceed to log changes, otherwise handle database error and retry operation
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when database update has been successful.
Trigger Criteria:
Context: Database update has been successful
Applied to: Log Status Array Changes
Action: The system logs status array changes
Logic Flow:
IF Database update has been successful
AND The system logs status array changes
THEN:
• Record all status modifications, timestamps, and processing details in the audit log
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when database update has failed.
Trigger Criteria:
Context: Database update has failed
Applied to: Handle Database Error
Action: The system handles the database error
Logic Flow:
IF Database update has failed
AND The system handles the database error
THEN:
• Log error details, determine if retry is appropriate, and implement error recovery procedures
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when database error has been handled.
Trigger Criteria:
Context: Database error has been handled
Applied to: Retry Database Operation
Action: The system retries the database operation
Logic Flow:
IF Database error has been handled
AND The system retries the database operation
THEN:
• Attempt the database update again with appropriate retry logic and error handling
Business Justification: Ensures correct system behavior and process compliance when new disposition code is received for processing.
Trigger Criteria:
Context: A new disposition code is received for processing
Applied to: Check Disposition Code Table for Counterpart Info
Action: The system checks the disposition code table for counterpart information
Logic Flow:
IF A new disposition code is received for processing
AND The system checks the disposition code table for counterpart information
THEN:
• The system identifies if the disposition code has a counterpart code defined
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code table has been checked for counterpart information.
Trigger Criteria:
Context: The disposition code table has been checked for counterpart information
Applied to: Has Counterpart Code?
Action: The system evaluates if a counterpart code exists for the current disposition code
Logic Flow:
IF The disposition code table has been checked for counterpart information
AND The system evaluates if a counterpart code exists for the current disposition code
THEN:
• The system either proceeds to search for counterpart codes in the status array or continues with normal processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when counterpart code exists for the current disposition code.
Trigger Criteria:
Context: A counterpart code exists for the current disposition code
Applied to: Search Status Array for Counterpart Codes
Action: The system searches through all entries in the cargo status array
Logic Flow:
IF A counterpart code exists for the current disposition code
AND The system searches through all entries in the cargo status array
THEN:
• The system identifies all occurrences of the counterpart disposition code in the array
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when status array has been searched for counterpart codes.
Trigger Criteria:
Context: The status array has been searched for counterpart codes
Applied to: Counterpart Found in Array?
Action: The system evaluates the search results
Logic Flow:
IF The status array has been searched for counterpart codes
AND The system evaluates the search results
THEN:
• The system either proceeds to validate matching criteria or continues without counterpart removal
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when counterpart code has been found in the status array.
Trigger Criteria:
Context: A counterpart code has been found in the status array
Applied to: Status Info Match?
Action: The system compares the status information flags of the counterpart code with the removal criteria
Logic Flow:
IF A counterpart code has been found in the status array
AND The system compares the status information flags of the counterpart code with the removal criteria
THEN:
• The system either removes the counterpart code immediately or checks additional matching criteria
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when status information flags do not match for counterpart removal.
Trigger Criteria:
Context: The status information flags do not match for counterpart removal
Applied to: Entry Number Match?
Action: The system compares the entry numbers of the counterpart code with the removal criteria
Logic Flow:
IF The status information flags do not match for counterpart removal
AND The system compares the entry numbers of the counterpart code with the removal criteria
THEN:
• The system either removes the counterpart code or checks quantity matching criteria
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when entry numbers do not match for counterpart removal.
Trigger Criteria:
Context: The entry numbers do not match for counterpart removal
Applied to: Quantity Match?
Action: The system compares the quantities of the counterpart code with the removal criteria
Logic Flow:
IF The entry numbers do not match for counterpart removal
AND The system compares the quantities of the counterpart code with the removal criteria
THEN:
• The system either removes the counterpart code or checks special code pattern matching
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when quantities do not match for counterpart removal.
Trigger Criteria:
Context: The quantities do not match for counterpart removal
Applied to: Special Code Pattern Match?
Action: The system evaluates special code patterns or business rules for the counterpart code
Logic Flow:
IF The quantities do not match for counterpart removal
AND The system evaluates special code patterns or business rules for the counterpart code
THEN:
• The system either removes the counterpart code or determines no removal is needed
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when counterpart code has been validated for removal based on matching criteria.
Trigger Criteria:
Context: A counterpart code has been validated for removal based on matching criteria
Applied to: Remove Counterpart Code from Array
Action: The system removes the counterpart code from the status array
Logic Flow:
IF A counterpart code has been validated for removal based on matching criteria
AND The system removes the counterpart code from the status array
THEN:
• The counterpart code entry is marked for deletion from the array
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when counterpart codes have been removed from the status array.
Trigger Criteria:
Context: Counterpart codes have been removed from the status array
Applied to: Compact Array Elements
Action: The system compacts the array to eliminate empty positions
Logic Flow:
IF Counterpart codes have been removed from the status array
AND The system compacts the array to eliminate empty positions
THEN:
• All remaining status entries are moved to fill gaps and maintain array integrity
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when status array has been compacted after counterpart code removal.
Trigger Criteria:
Context: The status array has been compacted after counterpart code removal
Applied to: Update Array Count
Action: The system recalculates the number of active entries in the array
Logic Flow:
IF The status array has been compacted after counterpart code removal
AND The system recalculates the number of active entries in the array
THEN:
• The array count is updated to reflect the current number of valid status entries
R-GCX016-cbl-02727 (+14)File: GCX016.cblBusiness Rule: Status Information Code Processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code is being processed for cargo status update.
Trigger Criteria:
Context: A disposition code is being processed for cargo status update
Applied to: Status Information Code Processing Start
Action: The system initiates status information code processing
Logic Flow:
IF A disposition code is being processed for cargo status update
AND The system initiates status information code processing
THEN:
• The system should begin evaluating the disposition code type and prepare for status array updates
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code has been received for processing.
Trigger Criteria:
Context: A disposition code has been received for processing
Applied to: Check Disposition Code Type
Action: The system checks the disposition code type against the DC table
Logic Flow:
IF A disposition code has been received for processing
AND The system checks the disposition code type against the DC table
THEN:
• The system should determine if the code is a valid status information code and proceed accordingly
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when disposition code needs to be processed.
Trigger Criteria:
Context: A disposition code needs to be processed
Applied to: Retrieve DC Table Information
Action: The system retrieves information from the GCSTBRT DC table
Logic Flow:
IF A disposition code needs to be processed
AND The system retrieves information from the GCSTBRT DC table
THEN:
• The system should obtain the disposition code details including status information flags and processing instructions
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code details have been retrieved from the dc table.
Trigger Criteria:
Context: Disposition code details have been retrieved from the DC table
Applied to: Is Status Info Code?
Action: The system evaluates whether the code is a status information type
Logic Flow:
IF Disposition code details have been retrieved from the DC table
AND The system evaluates whether the code is a status information type
THEN:
• The system should identify status information codes and route them for appropriate processing while skipping non-status codes
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when status information code is being processed.
Trigger Criteria:
Context: A status information code is being processed
Applied to: Has Counterpart Removal?
Action: The system checks if counterpart codes exist in the status array that should be removed
Logic Flow:
IF A status information code is being processed
AND The system checks if counterpart codes exist in the status array that should be removed
THEN:
• The system should identify any counterpart codes that conflict with the new status information and remove them first
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when status information code is being processed.
Trigger Criteria:
Context: A status information code is being processed
Applied to: Preserve Original Cargo Quantities
Action: The system processes the status update
Logic Flow:
IF A status information code is being processed
AND The system processes the status update
THEN:
• The system should maintain all original cargo quantities unchanged as status information codes are informational only
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when counterpart codes exist in the status array that conflict with the new status information code.
Trigger Criteria:
Context: Counterpart codes exist in the status array that conflict with the new status information code
Applied to: Remove Counterpart Codes First
Action: The system removes counterpart codes from the S09A status array
Logic Flow:
IF Counterpart codes exist in the status array that conflict with the new status information code
AND The system removes counterpart codes from the S09A status array
THEN:
• The system should successfully remove all conflicting counterpart codes and prepare the array for the new status information
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when status information code is ready to be added to the status array.
Trigger Criteria:
Context: A status information code is ready to be added to the status array
Applied to: Check for Duplicate in Status Array
Action: The system searches the S09A status array for existing instances of the same code
Logic Flow:
IF A status information code is ready to be added to the status array
AND The system searches the S09A status array for existing instances of the same code
THEN:
• The system should identify if the status code already exists and prevent duplicate entries
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when system has checked for duplicate status codes in the array.
Trigger Criteria:
Context: The system has checked for duplicate status codes in the array
Applied to: Already Exists?
Action: A duplicate status information code is found
Logic Flow:
IF The system has checked for duplicate status codes in the array
AND A duplicate status information code is found
THEN:
• The system should skip processing to avoid duplicate entries and continue to the next code
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when status information code already exists in the cargo status array.
Trigger Criteria:
Context: A status information code already exists in the cargo status array
Applied to: Skip Processing - No Duplicate Entry
Action: The system determines that duplicate processing should be skipped
Logic Flow:
IF A status information code already exists in the cargo status array
AND The system determines that duplicate processing should be skipped
THEN:
• The system should bypass the addition process and continue to the next disposition code processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when status information code does not exist in the cargo status array.
Trigger Criteria:
Context: A status information code does not exist in the cargo status array
Applied to: Add Status Info Code to Array
Action: The system adds the new status information code to the S09A array
Logic Flow:
IF A status information code does not exist in the cargo status array
AND The system adds the new status information code to the S09A array
THEN:
• The system should successfully insert the status code with appropriate sequence and occurrence numbers
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when status information code has been added to the status array.
Trigger Criteria:
Context: A status information code has been added to the status array
Applied to: Set Status Information Flag
Action: The system sets the status information flag
Logic Flow:
IF A status information code has been added to the status array
AND The system sets the status information flag
THEN:
• The system should mark the cargo record as having received status information updates
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when status information code needs to be recorded in the status array.
Trigger Criteria:
Context: A status information code needs to be recorded in the status array
Applied to: Update Status Array Element
Action: The system updates the S09A status array element
Logic Flow:
IF A status information code needs to be recorded in the status array
AND The system updates the S09A status array element
THEN:
• The system should populate the array element with the disposition code, sequence number, and occurrence details
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when status information code has been successfully added to the cargo status array.
Trigger Criteria:
Context: A status information code has been successfully added to the cargo status array
Applied to: Log Status Information Update
Action: The system logs the status information update
Logic Flow:
IF A status information code has been successfully added to the cargo status array
AND The system logs the status information update
THEN:
• The system should record the status change with timestamp and disposition code details for audit purposes
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when status information code processing has been completed.
Trigger Criteria:
Context: Status information code processing has been completed
Applied to: Continue to Next Code Processing
Action: The system continues to the next disposition code in the sequence
Logic Flow:
IF Status information code processing has been completed
AND The system continues to the next disposition code in the sequence
THEN:
• The system should move to the next code processing step and maintain the processing flow
Business Justification: Defines the strict business conditions required to proceed when new disposition code needs to be added to the s09a status array and the array contains existing disposition code entries.
Trigger Criteria:
Context: A new disposition code needs to be added to the S09A status array AND the array contains existing disposition code entries
Applied to: Search Array for Existing Code
Action: The system searches the status array for an existing entry that matches the new disposition code AND entry number AND quantity
Logic Flow:
IF A new disposition code needs to be added to the S09A status array AND the array contains existing disposition code entries
AND The system searches the status array for an existing entry that matches the new disposition code AND entry number AND quantity
THEN:
• IF an exact match is found THEN skip processing the duplicate code AND log the duplicate prevention action ELSE add the new disposition code to the array AND update the array element count
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when disposition code from the status array element and a new disposition code to be added.
Trigger Criteria:
Context: A disposition code from the status array element AND a new disposition code to be added
Applied to: Check Disposition Code Match
Action: The system compares the disposition code values
Logic Flow:
IF A disposition code from the status array element AND a new disposition code to be added
AND The system compares the disposition code values
THEN:
• IF the disposition codes match THEN proceed to check entry number match ELSE continue searching the next array element
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when entry number from the status array element and an entry number from the new disposition code.
Trigger Criteria:
Context: An entry number from the status array element AND an entry number from the new disposition code
Applied to: Check Entry Number Match
Action: The system compares the entry number values after disposition code match is confirmed
Logic Flow:
IF An entry number from the status array element AND an entry number from the new disposition code
AND The system compares the entry number values after disposition code match is confirmed
THEN:
• IF the entry numbers match THEN proceed to check quantity match ELSE continue searching for duplicates in remaining array elements
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when quantity value from the status array element and a quantity value from the new disposition code.
Trigger Criteria:
Context: A quantity value from the status array element AND a quantity value from the new disposition code
Applied to: Check Quantity Match
Action: The system compares the quantity values after both disposition code and entry number matches are confirmed
Logic Flow:
IF A quantity value from the status array element AND a quantity value from the new disposition code
AND The system compares the quantity values after both disposition code and entry number matches are confirmed
THEN:
• IF the quantities match THEN mark as exact duplicate found ELSE continue processing as non-duplicate entry
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when exact duplicate disposition code entry is found in the status array with matching disposition code and entry number and quantity.
Trigger Criteria:
Context: An exact duplicate disposition code entry is found in the status array with matching disposition code AND entry number AND quantity
Applied to: Skip Processing - Duplicate Exists
Action: The duplicate validation process confirms all three values match an existing array entry
Logic Flow:
IF An exact duplicate disposition code entry is found in the status array with matching disposition code AND entry number AND quantity
AND The duplicate validation process confirms all three values match an existing array entry
THEN:
• Skip adding the disposition code to the array AND proceed to log the duplicate prevention action
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when new disposition code that does not match any existing entries in the status array.
Trigger Criteria:
Context: A new disposition code that does not match any existing entries in the status array
Applied to: Add New Disposition Code to Array
Action: The duplicate validation process confirms no exact match exists
Logic Flow:
IF A new disposition code that does not match any existing entries in the status array
AND The duplicate validation process confirms no exact match exists
THEN:
• Add the new disposition code entry to the next available position in the status array
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when new disposition code entry has been successfully added to the status array.
Trigger Criteria:
Context: A new disposition code entry has been successfully added to the status array
Applied to: Update Array Element Count
Action: The array modification is complete
Logic Flow:
IF A new disposition code entry has been successfully added to the status array
AND The array modification is complete
THEN:
• Increment the array element count by one to reflect the new entry
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when duplicate disposition code entry was detected and prevented from being added to the status array.
Trigger Criteria:
Context: A duplicate disposition code entry was detected and prevented from being added to the status array
Applied to: Log Duplicate Prevention Action
Action: The duplicate prevention process is completed
Logic Flow:
IF A duplicate disposition code entry was detected and prevented from being added to the status array
AND The duplicate prevention process is completed
THEN:
• Create a log entry documenting the duplicate prevention action for audit purposes
R-GCX016-cbl-02750 (+12)File: GCX016.cblBusiness Rule: Release Code with Removal Processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code is received for processing.
Trigger Criteria:
Context: A disposition code is received for processing
Applied to: Lookup Disposition Code in DC Table
Action: The system looks up the disposition code in the DC table
Logic Flow:
IF A disposition code is received for processing
AND The system looks up the disposition code in the DC table
THEN:
• The system determines if the code exists and retrieves its processing attributes
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code has been found in the dc table.
Trigger Criteria:
Context: A disposition code has been found in the DC table
Applied to: Is Release Code with Removal?
Action: The system evaluates the code type and actions
Logic Flow:
IF A disposition code has been found in the DC table
AND The system evaluates the code type and actions
THEN:
• The system identifies if this is a release code with removal processing type
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code has been found in the dc table.
Trigger Criteria:
Context: A disposition code has been found in the DC table
Applied to: Skip Processing - Not Release with Removal
Action: The code is not a release code with removal type
Logic Flow:
IF A disposition code has been found in the DC table
AND The code is not a release code with removal type
THEN:
• The system skips release with removal processing and continues to next processing step
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when release code with removal type has been identified.
Trigger Criteria:
Context: A release code with removal type has been identified
Applied to: Search Status Array for Counterpart Codes
Action: The system searches the status array for counterpart codes
Logic Flow:
IF A release code with removal type has been identified
AND The system searches the status array for counterpart codes
THEN:
• The system identifies all matching counterpart codes that exist in the current status
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when counterpart codes have been found in the status array.
Trigger Criteria:
Context: Counterpart codes have been found in the status array
Applied to: Remove Matching Counterpart Codes from Array
Action: The system processes the removal of counterpart codes
Logic Flow:
IF Counterpart codes have been found in the status array
AND The system processes the removal of counterpart codes
THEN:
• All matching counterpart codes are removed from the status array
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when counterpart codes have been removed from the status array.
Trigger Criteria:
Context: Counterpart codes have been removed from the status array
Applied to: Compact Status Array After Removal
Action: The system compacts the array structure
Logic Flow:
IF Counterpart codes have been removed from the status array
AND The system compacts the array structure
THEN:
• The status array is reorganized without empty positions and maintains proper sequencing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when counterpart codes have been removed and the array has been compacted.
Trigger Criteria:
Context: Counterpart codes have been removed and the array has been compacted
Applied to: Add New Release Status Code to Array
Action: The system adds the new release status code
Logic Flow:
IF Counterpart codes have been removed and the array has been compacted
AND The system adds the new release status code
THEN:
• The release disposition code is added to the status array with appropriate sequencing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when release status code has been added to the array.
Trigger Criteria:
Context: A release status code has been added to the array
Applied to: Set Released Flag in Status Element
Action: The system sets the release flag in the status element
Logic Flow:
IF A release status code has been added to the array
AND The system sets the release flag in the status element
THEN:
• The status element is marked as released for cargo processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when release status code has been added and location information is available.
Trigger Criteria:
Context: A release status code has been added and location information is available
Applied to: Include Location Information if Available
Action: The system processes location information inclusion
Logic Flow:
IF A release status code has been added and location information is available
AND The system processes location information inclusion
THEN:
• Location details are included in the release status element
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when release status code has been processed with location information.
Trigger Criteria:
Context: A release status code has been processed with location information
Applied to: Set Quantity Action if Required
Action: The system determines if quantity action is required
Logic Flow:
IF A release status code has been processed with location information
AND The system determines if quantity action is required
THEN:
• Quantity action flags are set if the release code impacts cargo release quantities
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when all release code processing has been completed.
Trigger Criteria:
Context: All release code processing has been completed
Applied to: Update Status Array in Memory
Action: The system updates the status array in memory
Logic Flow:
IF All release code processing has been completed
AND The system updates the status array in memory
THEN:
• All changes to the status array are committed and available for further processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when status array has been updated in memory.
Trigger Criteria:
Context: Status array has been updated in memory
Applied to: Log Disposition Code Processing
Action: The system logs the disposition code processing
Logic Flow:
IF Status array has been updated in memory
AND The system logs the disposition code processing
THEN:
• Processing details are recorded for audit trail and system tracking
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code has been submitted for processing.
Trigger Criteria:
Context: A disposition code has been submitted for processing
Applied to: Generate Error - Code Not Found
Action: The disposition code is not found in the DC table
Logic Flow:
IF A disposition code has been submitted for processing
AND The disposition code is not found in the DC table
THEN:
• An error is generated indicating the code is not valid for processing
R-GCX016-cbl-02763 (+6)File: GCX016.cblBusiness Rule: Information Code with Removal Processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code is received for processing.
Trigger Criteria:
Context: A disposition code is received for processing
Applied to: Information Code with Removal Processing Start
Action: The disposition code is classified as an information code with removal type
Logic Flow:
IF A disposition code is received for processing
AND The disposition code is classified as an information code with removal type
THEN:
• The system should identify it as requiring information code with removal processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when information code with removal processing is being executed and a status array exists for the cargo.
Trigger Criteria:
Context: An information code with removal processing is being executed AND a status array exists for the cargo
Applied to: Search Status Array for Counterpart Codes
Action: The system searches for counterpart codes in the status array
Logic Flow:
IF An information code with removal processing is being executed AND a status array exists for the cargo
AND The system searches for counterpart codes in the status array
THEN:
• All matching counterpart codes should be identified and flagged for removal
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when counterpart codes have been removed from the status array.
Trigger Criteria:
Context: Counterpart codes have been removed from the status array
Applied to: Compact Status Array Elements
Action: The array contains gaps where codes were removed
Logic Flow:
IF Counterpart codes have been removed from the status array
AND The array contains gaps where codes were removed
THEN:
• The system should compact the array by moving remaining elements to fill gaps and maintain sequential order
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when counterpart codes have been processed and the status array has been compacted.
Trigger Criteria:
Context: Counterpart codes have been processed AND the status array has been compacted
Applied to: Add New Informational Status Code
Action: Adding the new informational status code to the array
Logic Flow:
IF Counterpart codes have been processed AND the status array has been compacted
AND Adding the new informational status code to the array
THEN:
• The system should insert the information code with appropriate status information flag set
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when new informational status code is being added to the cargo status array.
Trigger Criteria:
Context: A new informational status code is being added to the cargo status array
Applied to: Check for Existing Information Code
Action: The same information code already exists in the status array
Logic Flow:
IF A new informational status code is being added to the cargo status array
AND The same information code already exists in the status array
THEN:
• The system should skip adding the duplicate entry and maintain the existing code
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when informational disposition code is being added to the status array.
Trigger Criteria:
Context: An informational disposition code is being added to the status array
Applied to: Set Status Information Flag
Action: The code is inserted into the array
Logic Flow:
IF An informational disposition code is being added to the status array
AND The code is inserted into the array
THEN:
• The system should set the status information flag to indicate this is informational only and not an actionable status
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when informational status code has been successfully added to the cargo status array.
Trigger Criteria:
Context: An informational status code has been successfully added to the cargo status array
Applied to: Update Cargo Status Flags
Action: The processing is complete
Logic Flow:
IF An informational status code has been successfully added to the cargo status array
AND The processing is complete
THEN:
• The system should update the cargo status flags to reflect the current state including the new informational status
R-GCX016-cbl-02796 (+10)File: GCX016.cblBusiness Rule: Cargo Hold Status Determination
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record exists with s09a status array containing disposition codes.
Trigger Criteria:
Context: A cargo record exists with S09A status array containing disposition codes
Applied to: Analyze S09A Status Array
Action: The system processes the status array to determine hold conditions
Logic Flow:
IF A cargo record exists with S09A status array containing disposition codes
AND The system processes the status array to determine hold conditions
THEN:
• All disposition codes in the array are evaluated and hold/release flags are set based on code analysis
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when hold disposition code is found in the cargo status array.
Trigger Criteria:
Context: A hold disposition code is found in the cargo status array
Applied to: Identify Hold Location Code
Action: The system evaluates the disposition code to determine hold location
Logic Flow:
IF A hold disposition code is found in the cargo status array
AND The system evaluates the disposition code to determine hold location
THEN:
• The hold location is identified as either border hold or destination hold based on the specific disposition code
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when border hold disposition code is identified in the status array.
Trigger Criteria:
Context: A border hold disposition code is identified in the status array
Applied to: Set Border Hold Status
Action: The system processes the border hold code
Logic Flow:
IF A border hold disposition code is identified in the status array
AND The system processes the border hold code
THEN:
• The cargo border hold flag is set to true and border hold status is established
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when destination hold disposition code is identified in the status array.
Trigger Criteria:
Context: A destination hold disposition code is identified in the status array
Applied to: Set Destination Hold Status
Action: The system processes the destination hold code
Logic Flow:
IF A destination hold disposition code is identified in the status array
AND The system processes the destination hold code
THEN:
• The cargo destination hold flag is set to true and destination hold status is established
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when both border hold and destination hold disposition codes are found in the status array.
Trigger Criteria:
Context: Both border hold and destination hold disposition codes are found in the status array
Applied to: Set Combined Hold Status
Action: The system processes multiple hold locations
Logic Flow:
IF Both border hold and destination hold disposition codes are found in the status array
AND The system processes multiple hold locations
THEN:
• Both border hold and destination hold flags are set to true indicating cargo is held at multiple locations
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when both hold and release disposition codes exist for the same cargo in the status array.
Trigger Criteria:
Context: Both hold and release disposition codes exist for the same cargo in the status array
Applied to: Evaluate Release vs Hold Priority
Action: The system evaluates the priority between conflicting hold and release codes
Logic Flow:
IF Both hold and release disposition codes exist for the same cargo in the status array
AND The system evaluates the priority between conflicting hold and release codes
THEN:
• The release code overrides the hold code and the cargo hold status is cleared if release has higher priority
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when release disposition code has higher priority than an existing hold code.
Trigger Criteria:
Context: A release disposition code has higher priority than an existing hold code
Applied to: Clear Hold Status
Action: The system processes the release override condition
Logic Flow:
IF A release disposition code has higher priority than an existing hold code
AND The system processes the release override condition
THEN:
• All hold flags are set to false and the cargo hold status is cleared
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when hold disposition code has higher priority than a release code.
Trigger Criteria:
Context: A hold disposition code has higher priority than a release code
Applied to: Maintain Hold Status
Action: The system processes the hold priority condition
Logic Flow:
IF A hold disposition code has higher priority than a release code
AND The system processes the hold priority condition
THEN:
• The existing hold flags remain unchanged and hold status is maintained
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when fda-specific hold disposition code is found in the status array.
Trigger Criteria:
Context: An FDA-specific hold disposition code is found in the status array
Applied to: Set FDA Destination Hold
Action: The system processes the FDA hold code
Logic Flow:
IF An FDA-specific hold disposition code is found in the status array
AND The system processes the FDA hold code
THEN:
• The FDA destination hold flag is set to true and FDA hold status is established at destination
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when all disposition codes have been processed and hold/release flags have been evaluated.
Trigger Criteria:
Context: All disposition codes have been processed and hold/release flags have been evaluated
Applied to: Determine Final Hold Location
Action: The system determines the final hold status classification
Logic Flow:
IF All disposition codes have been processed and hold/release flags have been evaluated
AND The system determines the final hold status classification
THEN:
• The cargo is classified as either no hold, border hold only, destination hold only, or combined hold at both locations
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when final hold status has been determined for the cargo.
Trigger Criteria:
Context: The final hold status has been determined for the cargo
Applied to: Update Cargo Hold Flags
Action: The system updates the cargo record with hold information
Logic Flow:
IF The final hold status has been determined for the cargo
AND The system updates the cargo record with hold information
THEN:
• All relevant hold flags are updated in the cargo record and the hold location status is persisted
Business Justification: Establishes the required business protocol to be followed when cargo record exists with current release quantity and a disposition code is being processed.
Trigger Criteria:
Context: A cargo record exists with current release quantity and a disposition code is being processed
Applied to: Start Release Quantity Calculation
Action: The disposition code contains quantity action instructions
Logic Flow:
IF A cargo record exists with current release quantity and a disposition code is being processed
AND The disposition code contains quantity action instructions
THEN:
• The system initiates release quantity calculation process
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code is being processed for cargo release.
Trigger Criteria:
Context: A disposition code is being processed for cargo release
Applied to: Disposition Code Has Quantity Action?
Action: The system checks if the disposition code has quantity action defined
Logic Flow:
IF A disposition code is being processed for cargo release
AND The system checks if the disposition code has quantity action defined
THEN:
• If quantity action exists, proceed with quantity calculation, otherwise skip quantity processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record with existing release quantity information.
Trigger Criteria:
Context: A cargo record with existing release quantity information
Applied to: Get Current Release Quantity
Action: Quantity action processing is required
Logic Flow:
IF A cargo record with existing release quantity information
AND Quantity action processing is required
THEN:
• The system retrieves the current release quantity from the cargo status array
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code with quantity action instructions.
Trigger Criteria:
Context: A disposition code with quantity action instructions
Applied to: Get Disposition Code Quantity
Action: The system needs to perform quantity calculations
Logic Flow:
IF A disposition code with quantity action instructions
AND The system needs to perform quantity calculations
THEN:
• The system extracts the quantity value from the disposition code message
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code with quantity action and extracted quantity value.
Trigger Criteria:
Context: A disposition code with quantity action and extracted quantity value
Applied to: Quantity Action Type?
Action: The system evaluates the quantity action type
Logic Flow:
IF A disposition code with quantity action and extracted quantity value
AND The system evaluates the quantity action type
THEN:
• The system determines if the action is ADD_QUANTITY or SUBTRACT_QUANTITY
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when current release quantity and disposition code quantity with add_quantity action.
Trigger Criteria:
Context: Current release quantity and disposition code quantity with ADD_QUANTITY action
Applied to: Add Quantity to Release Amount
Action: The quantity action type is determined to be addition
Logic Flow:
IF Current release quantity and disposition code quantity with ADD_QUANTITY action
AND The quantity action type is determined to be addition
THEN:
• The system adds the disposition code quantity to the current release quantity
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when current release quantity and disposition code quantity with subtract_quantity action.
Trigger Criteria:
Context: Current release quantity and disposition code quantity with SUBTRACT_QUANTITY action
Applied to: Subtract Quantity from Release Amount
Action: The quantity action type is determined to be subtraction
Logic Flow:
IF Current release quantity and disposition code quantity with SUBTRACT_QUANTITY action
AND The quantity action type is determined to be subtraction
THEN:
• The system subtracts the disposition code quantity from the current release quantity
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when subtraction operation has been performed on release quantity.
Trigger Criteria:
Context: A subtraction operation has been performed on release quantity
Applied to: Result Would Be Negative?
Action: The result of the subtraction would be negative
Logic Flow:
IF A subtraction operation has been performed on release quantity
AND The result of the subtraction would be negative
THEN:
• The system identifies that the result would be negative and requires correction
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when quantity calculation that would result in a negative release quantity.
Trigger Criteria:
Context: A quantity calculation that would result in a negative release quantity
Applied to: Set Release Quantity to Zero
Action: The system detects the negative result condition
Logic Flow:
IF A quantity calculation that would result in a negative release quantity
AND The system detects the negative result condition
THEN:
• The system sets the release quantity to zero to prevent negative values
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when calculated release quantity that is valid and non-negative.
Trigger Criteria:
Context: A calculated release quantity that is valid and non-negative
Applied to: Update Release Quantity
Action: The quantity calculation is complete and validated
Logic Flow:
IF A calculated release quantity that is valid and non-negative
AND The quantity calculation is complete and validated
THEN:
• The system updates the release quantity with the calculated value
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when updated release quantity and total cargo quantity.
Trigger Criteria:
Context: An updated release quantity and total cargo quantity
Applied to: Validate Against Total Cargo Quantity
Action: The release quantity has been calculated and updated
Logic Flow:
IF An updated release quantity and total cargo quantity
AND The release quantity has been calculated and updated
THEN:
• The system validates the release quantity against the total cargo quantity
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when calculated release quantity and total cargo quantity.
Trigger Criteria:
Context: A calculated release quantity and total cargo quantity
Applied to: Release Quantity > Total Quantity?
Action: The system compares release quantity to total quantity
Logic Flow:
IF A calculated release quantity and total cargo quantity
AND The system compares release quantity to total quantity
THEN:
• If release quantity is greater than total quantity, the system identifies this as an excessive release condition
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when release quantity that exceeds the total cargo quantity.
Trigger Criteria:
Context: A release quantity that exceeds the total cargo quantity
Applied to: Cap Release Quantity at Total
Action: The system detects excessive release quantity condition
Logic Flow:
IF A release quantity that exceeds the total cargo quantity
AND The system detects excessive release quantity condition
THEN:
• The system caps the release quantity to equal the total cargo quantity
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when final validated release quantity that complies with all business rules.
Trigger Criteria:
Context: A final validated release quantity that complies with all business rules
Applied to: Store Updated Release Quantity in Status Array
Action: All quantity validations and calculations are complete
Logic Flow:
IF A final validated release quantity that complies with all business rules
AND All quantity validations and calculations are complete
THEN:
• The system stores the updated release quantity in the cargo status array
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when all release quantity calculations and validations are complete.
Trigger Criteria:
Context: All release quantity calculations and validations are complete
Applied to: End Release Quantity Calculation
Action: The release quantity has been successfully stored in the status array
Logic Flow:
IF All release quantity calculations and validations are complete
AND The release quantity has been successfully stored in the status array
THEN:
• The system completes the release quantity calculation process
R-GCX016-cbl-02822 (+13)File: GCX016.cblBusiness Rule: Hold Location Identification
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record with s09a status array containing disposition codes.
Trigger Criteria:
Context: A cargo record with S09A status array containing disposition codes
Applied to: Border Hold Detected?
Action: The system analyzes the status array for border hold indicators
Logic Flow:
IF A cargo record with S09A status array containing disposition codes
AND The system analyzes the status array for border hold indicators
THEN:
• The system sets border hold flag to true if border hold disposition codes are found in the array
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record with s09a status array containing disposition codes.
Trigger Criteria:
Context: A cargo record with S09A status array containing disposition codes
Applied to: Destination Hold Detected?
Action: The system analyzes the status array for destination hold indicators
Logic Flow:
IF A cargo record with S09A status array containing disposition codes
AND The system analyzes the status array for destination hold indicators
THEN:
• The system sets destination hold flag to true if destination hold disposition codes are found in the array
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record with border hold flag and destination hold flag both evaluated.
Trigger Criteria:
Context: A cargo record with border hold flag and destination hold flag both evaluated
Applied to: Both Border and Destination Holds?
Action: Both border hold flag and destination hold flag are set to true
Logic Flow:
IF A cargo record with border hold flag and destination hold flag both evaluated
AND Both border hold flag and destination hold flag are set to true
THEN:
• The system sets hold location to 'Both' indicating cargo is held at both border and destination
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record with border hold detected and no destination hold.
Trigger Criteria:
Context: A cargo record with border hold detected and no destination hold
Applied to: Set Hold Location = Border
Action: The border hold flag is true and destination hold flag is false
Logic Flow:
IF A cargo record with border hold detected and no destination hold
AND The border hold flag is true and destination hold flag is false
THEN:
• The system sets hold location to 'Border'
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record with destination hold detected and no border hold.
Trigger Criteria:
Context: A cargo record with destination hold detected and no border hold
Applied to: Set Hold Location = Destination
Action: The destination hold flag is true and border hold flag is false
Logic Flow:
IF A cargo record with destination hold detected and no border hold
AND The destination hold flag is true and border hold flag is false
THEN:
• The system sets hold location to 'Destination'
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record with both border and destination holds detected.
Trigger Criteria:
Context: A cargo record with both border and destination holds detected
Applied to: Set Hold Location = Both
Action: Both border hold flag and destination hold flag are true
Logic Flow:
IF A cargo record with both border and destination holds detected
AND Both border hold flag and destination hold flag are true
THEN:
• The system sets hold location to 'Both'
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record with current location information available.
Trigger Criteria:
Context: A cargo record with current location information available
Applied to: Cargo at Border?
Action: The system checks the cargo's current physical location
Logic Flow:
IF A cargo record with current location information available
AND The system checks the cargo's current physical location
THEN:
• The system returns true if cargo is currently at border location, false otherwise
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record with current location information available and cargo not at border.
Trigger Criteria:
Context: A cargo record with current location information available and cargo not at border
Applied to: Cargo at Destination?
Action: The system checks the cargo's current physical location
Logic Flow:
IF A cargo record with current location information available and cargo not at border
AND The system checks the cargo's current physical location
THEN:
• The system returns true if cargo is currently at destination location, false otherwise
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record with holds detected and cargo currently at border location.
Trigger Criteria:
Context: A cargo record with holds detected and cargo currently at border location
Applied to: Border Hold Message
Action: The cargo is physically at border and has hold conditions
Logic Flow:
IF A cargo record with holds detected and cargo currently at border location
AND The cargo is physically at border and has hold conditions
THEN:
• The system assigns priority to border hold message processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record with holds detected and cargo currently at destination location.
Trigger Criteria:
Context: A cargo record with holds detected and cargo currently at destination location
Applied to: Destination Hold Message
Action: The cargo is physically at destination and has hold conditions
Logic Flow:
IF A cargo record with holds detected and cargo currently at destination location
AND The cargo is physically at destination and has hold conditions
THEN:
• The system assigns priority to destination hold message processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record with hold location determined as 'border'.
Trigger Criteria:
Context: A cargo record with hold location determined as 'Border'
Applied to: Route to Border Processing
Action: The hold location equals 'Border'
Logic Flow:
IF A cargo record with hold location determined as 'Border'
AND The hold location equals 'Border'
THEN:
• The system routes the hold message to border processing workflow
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record with hold location determined as 'destination'.
Trigger Criteria:
Context: A cargo record with hold location determined as 'Destination'
Applied to: Route to Destination Processing
Action: The hold location equals 'Destination'
Logic Flow:
IF A cargo record with hold location determined as 'Destination'
AND The hold location equals 'Destination'
THEN:
• The system routes the hold message to destination processing workflow
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record with hold location determined as 'both'.
Trigger Criteria:
Context: A cargo record with hold location determined as 'Both'
Applied to: Route to Both Border and Destination
Action: The hold location equals 'Both'
Logic Flow:
IF A cargo record with hold location determined as 'Both'
AND The hold location equals 'Both'
THEN:
• The system routes the hold message to both border and destination processing workflows
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record with determined hold location and routing decisions made.
Trigger Criteria:
Context: A cargo record with determined hold location and routing decisions made
Applied to: Generate Hold Message with Location Details
Action: The system generates the hold message
Logic Flow:
IF A cargo record with determined hold location and routing decisions made
AND The system generates the hold message
THEN:
• The system creates a hold message containing specific location details, disposition codes, and routing information
Business Justification: Governs the functional prerequisites and system routing when disposition code is extracted from x4 segment.
Trigger Criteria:
Context: A disposition code is extracted from X4 segment
Applied to: Lookup Disposition Code in DC Table
Action: The system looks up the disposition code in the DC table
Logic Flow:
IF A disposition code is extracted from X4 segment
AND The system looks up the disposition code in the DC table
THEN:
• The system retrieves disposition code details and sets found flag if code exists in table
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code lookup has been performed against the dc table.
Trigger Criteria:
Context: A disposition code lookup has been performed against the DC table
Applied to: Disposition Code Found in System Tables?
Action: The disposition code is not found in the system tables
Logic Flow:
IF A disposition code lookup has been performed against the DC table
AND The disposition code is not found in the system tables
THEN:
• The system sets error flag indicating code not found and prepares for error handling
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code has been found in the dc table.
Trigger Criteria:
Context: A disposition code has been found in the DC table
Applied to: Proceed with Valid Disposition Code
Action: The system validates the disposition code successfully
Logic Flow:
IF A disposition code has been found in the DC table
AND The system validates the disposition code successfully
THEN:
• The system retrieves counterpart code information and processing instructions for normal processing flow
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code is not found in the dc table.
Trigger Criteria:
Context: A disposition code is not found in the DC table
Applied to: Generate Error Message for Invalid Code
Action: The system needs to report the invalid code error
Logic Flow:
IF A disposition code is not found in the DC table
AND The system needs to report the invalid code error
THEN:
• The system generates an error message containing the invalid disposition code details
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when invalid disposition code error has been detected and message generated.
Trigger Criteria:
Context: An invalid disposition code error has been detected and message generated
Applied to: Log Disposition Code Error Details
Action: The system needs to record the error for audit purposes
Logic Flow:
IF An invalid disposition code error has been detected and message generated
AND The system needs to record the error for audit purposes
THEN:
• The system logs the disposition code error details including the invalid code and context information
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code error has been logged and flagged.
Trigger Criteria:
Context: A disposition code error has been logged and flagged
Applied to: Continue Processing with Error Status
Action: The system needs to continue with the overall processing workflow
Logic Flow:
IF A disposition code error has been logged and flagged
AND The system needs to continue with the overall processing workflow
THEN:
• The system continues processing while maintaining the error status for downstream handling
R-GCX016-cbl-02842 (+10)File: GCX016.cblBusiness Rule: Status Array Overflow Protection
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when new disposition code needs to be added to the status array.
Trigger Criteria:
Context: A new disposition code needs to be added to the status array
Applied to: Check Current Array Count
Action: The system checks the current array count
Logic Flow:
IF A new disposition code needs to be added to the status array
AND The system checks the current array count
THEN:
• The current number of status entries in the array is determined and validated
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when current array count has been determined.
Trigger Criteria:
Context: The current array count has been determined
Applied to: Array Count < Maximum Limit?
Action: The array count is compared against the maximum allowed limit
Logic Flow:
IF The current array count has been determined
AND The array count is compared against the maximum allowed limit
THEN:
• If array count is less than maximum limit, proceed to space calculation, otherwise trigger overflow protection
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when array count is below maximum limit.
Trigger Criteria:
Context: The array count is below maximum limit
Applied to: Calculate Available Space
Action: The system calculates available space for new disposition code entry
Logic Flow:
IF The array count is below maximum limit
AND The system calculates available space for new disposition code entry
THEN:
• The remaining capacity is determined based on maximum limit minus current count
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when available space has been calculated.
Trigger Criteria:
Context: Available space has been calculated
Applied to: Space Available for New Code?
Action: The system checks if space is available for the new disposition code
Logic Flow:
IF Available space has been calculated
AND The system checks if space is available for the new disposition code
THEN:
• If space is available, proceed to add code, otherwise trigger overflow warning
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when space is available in the status array.
Trigger Criteria:
Context: Space is available in the status array
Applied to: Add Disposition Code to Array
Action: A new disposition code is added to the array
Logic Flow:
IF Space is available in the status array
AND A new disposition code is added to the array
THEN:
• The disposition code is stored in the next available array position
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code has been successfully added to the array.
Trigger Criteria:
Context: A disposition code has been successfully added to the array
Applied to: Update Array Count
Action: The array count is updated
Logic Flow:
IF A disposition code has been successfully added to the array
AND The array count is updated
THEN:
• The count is incremented by one to reflect the new entry
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when status array has reached maximum capacity or insufficient space exists.
Trigger Criteria:
Context: The status array has reached maximum capacity or insufficient space exists
Applied to: Log Array Overflow Warning
Action: An overflow condition is detected
Logic Flow:
IF The status array has reached maximum capacity or insufficient space exists
AND An overflow condition is detected
THEN:
• A warning message is logged indicating array overflow condition
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when array overflow warning has been logged.
Trigger Criteria:
Context: Array overflow warning has been logged
Applied to: Skip Adding New Code
Action: The system attempts to add a new disposition code
Logic Flow:
IF Array overflow warning has been logged
AND The system attempts to add a new disposition code
THEN:
• The addition operation is skipped to prevent array corruption
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when new code addition has been skipped due to overflow.
Trigger Criteria:
Context: New code addition has been skipped due to overflow
Applied to: Generate Error Message
Action: An error message is generated
Logic Flow:
IF New code addition has been skipped due to overflow
AND An error message is generated
THEN:
• The message indicates that disposition code could not be added due to array capacity limits
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when error message has been generated for array overflow.
Trigger Criteria:
Context: An error message has been generated for array overflow
Applied to: Set Overflow Flag
Action: The overflow flag is set
Logic Flow:
IF An error message has been generated for array overflow
AND The overflow flag is set
THEN:
• The flag indicates that subsequent processing should handle overflow condition
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when overflow flag has been set and new code addition was skipped.
Trigger Criteria:
Context: Overflow flag has been set and new code addition was skipped
Applied to: Continue with Existing Codes
Action: Processing continues
Logic Flow:
IF Overflow flag has been set and new code addition was skipped
AND Processing continues
THEN:
• The system proceeds using only the existing disposition codes in the array
Business Justification: Ensures correct system behavior and process compliance when new disposition code needs to be processed for cargo.
Trigger Criteria:
Context: A new disposition code needs to be processed for cargo
Applied to: Status Array Empty?
Action: The system accesses the current status array S09A
Logic Flow:
IF A new disposition code needs to be processed for cargo
AND The system accesses the current status array S09A
THEN:
• If the status array is empty, skip duplicate detection and proceed directly to add the new code
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when disposition code to be processed and a populated status array.
Trigger Criteria:
Context: A disposition code to be processed and a populated status array
Applied to: Code Already Exists?
Action: The system iterates through each element in the status array
Logic Flow:
IF A disposition code to be processed and a populated status array
AND The system iterates through each element in the status array
THEN:
• Compare the incoming disposition code with each existing code in the array to determine if it already exists
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when disposition code that already exists in the status array.
Trigger Criteria:
Context: A disposition code that already exists in the status array
Applied to: Entry Numbers Match?
Action: The system finds a matching disposition code
Logic Flow:
IF A disposition code that already exists in the status array
AND The system finds a matching disposition code
THEN:
• Compare the entry numbers between the incoming code and existing code to verify they match
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code and entry number that match an existing array element.
Trigger Criteria:
Context: A disposition code and entry number that match an existing array element
Applied to: Quantities Match?
Action: The system has confirmed disposition code and entry number matches
Logic Flow:
IF A disposition code and entry number that match an existing array element
AND The system has confirmed disposition code and entry number matches
THEN:
• Compare the quantities between the incoming code and existing code to determine if this is a complete duplicate
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when disposition code that completely matches an existing array element (code, entry number, and quantity).
Trigger Criteria:
Context: A disposition code that completely matches an existing array element (code, entry number, and quantity)
Applied to: Skip Processing - Prevent Duplicate
Action: The system has confirmed all matching criteria are met
Logic Flow:
IF A disposition code that completely matches an existing array element (code, entry number, and quantity)
AND The system has confirmed all matching criteria are met
THEN:
• Skip processing of the disposition code to prevent duplicate entries and maintain data integrity
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code that does not exist in the status array or does not completely match existing entries.
Trigger Criteria:
Context: A disposition code that does not exist in the status array or does not completely match existing entries
Applied to: Add New Code to Array
Action: The system has completed duplicate detection without finding a complete match
Logic Flow:
IF A disposition code that does not exist in the status array or does not completely match existing entries
AND The system has completed duplicate detection without finding a complete match
THEN:
• Add the new disposition code with its associated entry number and quantity to the status array
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when new disposition code has been added to the status array.
Trigger Criteria:
Context: A new disposition code has been added to the status array
Applied to: Update Status Array
Action: The system has successfully added the new code
Logic Flow:
IF A new disposition code has been added to the status array
AND The system has successfully added the new code
THEN:
• Update the status array structure and maintain proper indexing for future processing
R-GCX016-cbl-02860 (+8)File: GCX016.cblBusiness Rule: Counterpart Code Processing with Quantity Matching
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code is being processed for counterpart removal.
Trigger Criteria:
Context: A disposition code is being processed for counterpart removal
Applied to: Get Counterpart Code from DC Table
Action: The system looks up the counterpart code in the DC table
Logic Flow:
IF A disposition code is being processed for counterpart removal
AND The system looks up the counterpart code in the DC table
THEN:
• If counterpart code exists in DC table, proceed with counterpart processing, otherwise skip counterpart removal
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when valid counterpart code exists from the dc table.
Trigger Criteria:
Context: A valid counterpart code exists from the DC table
Applied to: Search Status Array for Matching Codes
Action: The system searches the status array for matching disposition codes
Logic Flow:
IF A valid counterpart code exists from the DC table
AND The system searches the status array for matching disposition codes
THEN:
• If matching codes are found in the status array, proceed with match validation, otherwise no action is required
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when counterpart code match is found in the status array.
Trigger Criteria:
Context: A counterpart code match is found in the status array
Applied to: Check Entry Number Match
Action: The system compares entry numbers between current disposition and counterpart code
Logic Flow:
IF A counterpart code match is found in the status array
AND The system compares entry numbers between current disposition and counterpart code
THEN:
• If entry numbers match, proceed to quantity validation, otherwise check status info match
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when entry numbers match between current disposition and counterpart code.
Trigger Criteria:
Context: Entry numbers match between current disposition and counterpart code
Applied to: Check Quantity Match
Action: The system compares quantities between current disposition and counterpart code
Logic Flow:
IF Entry numbers match between current disposition and counterpart code
AND The system compares quantities between current disposition and counterpart code
THEN:
• If quantities match, remove the counterpart code from array, otherwise check status info match
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when either entry numbers don't match or quantities don't match between current disposition and counterpart code.
Trigger Criteria:
Context: Either entry numbers don't match or quantities don't match between current disposition and counterpart code
Applied to: Check Status Info Match
Action: The system compares status info between current disposition and counterpart code
Logic Flow:
IF Either entry numbers don't match or quantities don't match between current disposition and counterpart code
AND The system compares status info between current disposition and counterpart code
THEN:
• If status info matches, remove the counterpart code from array, otherwise continue searching for more matches
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when counterpart code meets removal criteria (matching entry number and quantity, or matching status info).
Trigger Criteria:
Context: A counterpart code meets removal criteria (matching entry number and quantity, or matching status info)
Applied to: Remove Counterpart Code from Array
Action: The system removes the counterpart code from the status array
Logic Flow:
IF A counterpart code meets removal criteria (matching entry number and quantity, or matching status info)
AND The system removes the counterpart code from the status array
THEN:
• The counterpart code is deleted from the array and array elements are compacted
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when counterpart code has been removed from the status array.
Trigger Criteria:
Context: A counterpart code has been removed from the status array
Applied to: Compact Array Elements
Action: The system compacts the array elements
Logic Flow:
IF A counterpart code has been removed from the status array
AND The system compacts the array elements
THEN:
• All remaining array elements are shifted to eliminate gaps and maintain array integrity
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when counterpart code has been processed (either removed or skipped).
Trigger Criteria:
Context: A counterpart code has been processed (either removed or skipped)
Applied to: Continue Search for More Matches
Action: The system checks if more elements exist in the status array
Logic Flow:
IF A counterpart code has been processed (either removed or skipped)
AND The system checks if more elements exist in the status array
THEN:
• If more elements exist, continue searching for additional counterpart matches, otherwise update array element count
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when all counterpart code processing is complete for the status array.
Trigger Criteria:
Context: All counterpart code processing is complete for the status array
Applied to: Update Array Element Count
Action: The system updates the array element count
Logic Flow:
IF All counterpart code processing is complete for the status array
AND The system updates the array element count
THEN:
• The array element count reflects the current number of valid elements after removals
R-GCX016-cbl-02869 (+14)File: GCX016.cblBusiness Rule: ARL Auto Release Array Re
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when arl auto release request is received with a disposition code.
Trigger Criteria:
Context: An ARL auto release request is received with a disposition code
Applied to: Validate ARL Disposition Code
Action: The system validates the disposition code against the DC disposition code table
Logic Flow:
IF An ARL auto release request is received with a disposition code
AND The system validates the disposition code against the DC disposition code table
THEN:
• If the code is found and marked as ARL type, continue processing, otherwise skip auto release processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when valid arl disposition code has been validated.
Trigger Criteria:
Context: A valid ARL disposition code has been validated
Applied to: Access Current Cargo Status Array S09A
Action: The system needs to access current cargo status information
Logic Flow:
IF A valid ARL disposition code has been validated
AND The system needs to access current cargo status information
THEN:
• Retrieve the S09A status array from GCSUSS09 segments for the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when current cargo status array s09a has been accessed. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: The current cargo status array S09A has been accessed
Applied to: Preserve Current Array State
Action: The system prepares to re-evaluate the array for auto release
Logic Flow:
IF The current cargo status array S09A has been accessed
AND The system prepares to re-evaluate the array for auto release
THEN:
• Create a backup copy of the current array state to preserve original status information
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when current array state has been preserved.
Trigger Criteria:
Context: The current array state has been preserved
Applied to: Re-analyze Existing Disposition Codes
Action: The system re-analyzes existing disposition codes in the S09A array
Logic Flow:
IF The current array state has been preserved
AND The system re-analyzes existing disposition codes in the S09A array
THEN:
• Evaluate each existing disposition code for hold, release, and status conditions without inserting new ARL codes
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when existing disposition codes have been re-analyzed.
Trigger Criteria:
Context: Existing disposition codes have been re-analyzed
Applied to: Evaluate Hold Status at Border
Action: The system evaluates hold status at border location
Logic Flow:
IF Existing disposition codes have been re-analyzed
AND The system evaluates hold status at border location
THEN:
• If any border hold codes are found in the status array, mark cargo as held at border and prevent auto release
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when border hold status has been evaluated.
Trigger Criteria:
Context: Border hold status has been evaluated
Applied to: Evaluate Hold Status at Destination
Action: The system evaluates hold status at destination location
Logic Flow:
IF Border hold status has been evaluated
AND The system evaluates hold status at destination location
THEN:
• If any destination hold codes are found in the status array, mark cargo as held at destination and prevent auto release
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when hold status at both border and destination has been evaluated.
Trigger Criteria:
Context: Hold status at both border and destination has been evaluated
Applied to: Check PTT Permit to Transfer Status
Action: The system checks for PTT permit to transfer status
Logic Flow:
IF Hold status at both border and destination has been evaluated
AND The system checks for PTT permit to transfer status
THEN:
• If cargo has valid PTT status and meets quantity thresholds, allow auto release consideration, otherwise maintain current status
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when ptt status has been validated.
Trigger Criteria:
Context: PTT status has been validated
Applied to: Validate Release Quantities
Action: The system validates release quantities against total cargo quantities
Logic Flow:
IF PTT status has been validated
AND The system validates release quantities against total cargo quantities
THEN:
• If released quantity is less than total quantity, maintain partial release status, if equal or greater, allow full release consideration
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when all individual release conditions have been evaluated (holds, ptt, quantities).
Trigger Criteria:
Context: All individual release conditions have been evaluated (holds, PTT, quantities)
Applied to: All Release Conditions Met?
Action: The system determines overall auto release eligibility
Logic Flow:
IF All individual release conditions have been evaluated (holds, PTT, quantities)
AND The system determines overall auto release eligibility
THEN:
• If no holds exist AND PTT status is valid AND quantities are appropriate, approve auto release, otherwise deny auto release
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when all release conditions have been met for auto release.
Trigger Criteria:
Context: All release conditions have been met for auto release
Applied to: Set Auto Release Flag
Action: The system sets the auto release flag
Logic Flow:
IF All release conditions have been met for auto release
AND The system sets the auto release flag
THEN:
• Mark cargo as eligible for auto release and set appropriate processing flags for downstream systems
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when auto release flag has been set.
Trigger Criteria:
Context: Auto release flag has been set
Applied to: Update Cargo Status Flags
Action: The system updates cargo status flags
Logic Flow:
IF Auto release flag has been set
AND The system updates cargo status flags
THEN:
• Update release status, hold status, and processing flags to reflect auto release approval without modifying the disposition code array
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo status flags have been updated for auto release.
Trigger Criteria:
Context: Cargo status flags have been updated for auto release
Applied to: Trigger Release Processing
Action: The system triggers release processing
Logic Flow:
IF Cargo status flags have been updated for auto release
AND The system triggers release processing
THEN:
• Initiate standard cargo release procedures including broker notifications and system updates
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when release processing has been triggered.
Trigger Criteria:
Context: Release processing has been triggered
Applied to: Log Auto Release Decision
Action: The system logs the auto release decision
Logic Flow:
IF Release processing has been triggered
AND The system logs the auto release decision
THEN:
• Record auto release approval with timestamp, conditions evaluated, and decision rationale in system logs
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when auto release conditions are not met (holds exist, ptt invalid, or quantity issues).
Trigger Criteria:
Context: Auto release conditions are not met (holds exist, PTT invalid, or quantity issues)
Applied to: Maintain Current Hold Status
Action: The system maintains current hold status
Logic Flow:
IF Auto release conditions are not met (holds exist, PTT invalid, or quantity issues)
AND The system maintains current hold status
THEN:
• Preserve existing hold conditions and status array without modification, preventing auto release
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when auto release has been denied due to unmet conditions.
Trigger Criteria:
Context: Auto release has been denied due to unmet conditions
Applied to: Log Auto Release Denial
Action: The system logs the auto release denial
Logic Flow:
IF Auto release has been denied due to unmet conditions
AND The system logs the auto release denial
THEN:
• Record auto release denial with timestamp, specific blocking conditions (holds, PTT, quantities), and maintain audit trail
R-GCX016-cbl-02884 (+13)File: GCX016.cblBusiness Rule: Manual Release Processing for CPRS
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when manual release request is received for cargo.
Trigger Criteria:
Context: A manual release request is received for cargo
Applied to: Is Cargo CPRS?
Action: The system checks the cargo type in the cargo record
Logic Flow:
IF A manual release request is received for cargo
AND The system checks the cargo type in the cargo record
THEN:
• If cargo type is CPRS, processing continues; otherwise, the request is rejected with appropriate error message
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cprs cargo manual release request with mrl disposition code.
Trigger Criteria:
Context: A CPRS cargo manual release request with MRL disposition code
Applied to: Validate MRL Disposition Code
Action: The system validates the disposition code against the DC table
Logic Flow:
IF A CPRS cargo manual release request with MRL disposition code
AND The system validates the disposition code against the DC table
THEN:
• If MRL code is found and valid, processing continues; otherwise, an error is generated
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when validated cprs cargo with mrl disposition code.
Trigger Criteria:
Context: A validated CPRS cargo with MRL disposition code
Applied to: Check Current Cargo Status
Action: The system reads the current cargo status from cargo records and status segments
Logic Flow:
IF A validated CPRS cargo with MRL disposition code
AND The system reads the current cargo status from cargo records and status segments
THEN:
• The current status is retrieved and made available for hold status evaluation
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cprs cargo with current status information available.
Trigger Criteria:
Context: CPRS cargo with current status information available
Applied to: Cargo Currently Held?
Action: The system evaluates if cargo has any active hold conditions (border hold, destination hold, FDA hold, or other hold types)
Logic Flow:
IF CPRS cargo with current status information available
AND The system evaluates if cargo has any active hold conditions (border hold, destination hold, FDA hold, or other hold types)
THEN:
• If cargo is held, manual release processing continues; if not held, the request is rejected
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cprs cargo that is currently held and approved for manual release.
Trigger Criteria:
Context: CPRS cargo that is currently held and approved for manual release
Applied to: Clear Destination Index
Action: The system processes the manual release
Logic Flow:
IF CPRS cargo that is currently held and approved for manual release
AND The system processes the manual release
THEN:
• The destination index field is cleared to remove destination routing constraints
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cprs cargo with cleared destination index ready for release.
Trigger Criteria:
Context: CPRS cargo with cleared destination index ready for release
Applied to: Update Cargo Status to Released
Action: The system updates the cargo status
Logic Flow:
IF CPRS cargo with cleared destination index ready for release
AND The system updates the cargo status
THEN:
• Cargo status is changed to released, hold flags are cleared, and release quantities are updated appropriately
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cprs cargo that has been updated to released status.
Trigger Criteria:
Context: CPRS cargo that has been updated to released status
Applied to: Process Canadian Manifest Coordination
Action: The system searches for corresponding Canadian manifest records using waybill information
Logic Flow:
IF CPRS cargo that has been updated to released status
AND The system searches for corresponding Canadian manifest records using waybill information
THEN:
• Canadian manifest coordination is initiated to maintain cross-border cargo visibility
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when released cprs cargo requiring canadian manifest coordination.
Trigger Criteria:
Context: Released CPRS cargo requiring Canadian manifest coordination
Applied to: Canadian Manifest Found?
Action: The system searches Canadian manifest records by waybill and equipment information
Logic Flow:
IF Released CPRS cargo requiring Canadian manifest coordination
AND The system searches Canadian manifest records by waybill and equipment information
THEN:
• If Canadian manifest records are found, special logging is generated; otherwise, standard processing continues
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when released cprs cargo with corresponding canadian manifest records found.
Trigger Criteria:
Context: Released CPRS cargo with corresponding Canadian manifest records found
Applied to: Generate Canadian Log Message
Action: The system processes the Canadian manifest coordination
Logic Flow:
IF Released CPRS cargo with corresponding Canadian manifest records found
AND The system processes the Canadian manifest coordination
THEN:
• A specialized log message is generated to GCX105 system documenting the cross-border cargo release
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cprs cargo processed for manual release with or without canadian manifest coordination.
Trigger Criteria:
Context: CPRS cargo processed for manual release with or without Canadian manifest coordination
Applied to: Update Status Array without New Code
Action: The system updates the status array
Logic Flow:
IF CPRS cargo processed for manual release with or without Canadian manifest coordination
AND The system updates the status array
THEN:
• The status array is updated to reflect the release without adding MRL as a new disposition code entry
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cprs cargo with updated status array after manual release processing.
Trigger Criteria:
Context: CPRS cargo with updated status array after manual release processing
Applied to: Generate Special CPRS Logging
Action: The system generates audit logs
Logic Flow:
IF CPRS cargo with updated status array after manual release processing
AND The system generates audit logs
THEN:
• Special CPRS manual release logging is created with cargo details, release information, and processing timestamps
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cprs cargo with completed manual release processing and audit logging.
Trigger Criteria:
Context: CPRS cargo with completed manual release processing and audit logging
Applied to: Send Manual Release Notification
Action: The system sends notifications
Logic Flow:
IF CPRS cargo with completed manual release processing and audit logging
AND The system sends notifications
THEN:
• Manual release notifications are sent to configured recipients with cargo details and release confirmation
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when manual release request for cargo that is not cprs type.
Trigger Criteria:
Context: A manual release request for cargo that is not CPRS type
Applied to: Reject - Not CPRS Cargo
Action: The system validates the cargo type
Logic Flow:
IF A manual release request for cargo that is not CPRS type
AND The system validates the cargo type
THEN:
• The request is rejected with an error message indicating manual release is only available for CPRS cargo
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cprs cargo with valid mrl disposition code but no active hold status.
Trigger Criteria:
Context: CPRS cargo with valid MRL disposition code but no active hold status
Applied to: Reject - Cargo Not Held
Action: The system evaluates the hold status
Logic Flow:
IF CPRS cargo with valid MRL disposition code but no active hold status
AND The system evaluates the hold status
THEN:
• The request is rejected with an error message indicating cargo must be held to qualify for manual release
Business Justification: Governs the functional prerequisites and system routing when disposition code needs to be removed from the cargo status array and the s09a status array contains existing disposition codes.
Trigger Criteria:
Context: A disposition code needs to be removed from the cargo status array AND the S09A status array contains existing disposition codes
Applied to: Remove Code from Array
Action: The system searches for matching codes in the array AND finds a code that matches the entry number AND matches the quantity AND matches the status information
Logic Flow:
IF A disposition code needs to be removed from the cargo status array AND the S09A status array contains existing disposition codes
AND The system searches for matching codes in the array AND finds a code that matches the entry number AND matches the quantity AND matches the status information
THEN:
• The system marks the code for removal AND removes the code from the array AND compacts the remaining array elements
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition codes have been removed from the status array.
Trigger Criteria:
Context: Disposition codes have been removed from the status array
Applied to: Update Array Element Count
Action: The array compaction is complete
Logic Flow:
IF Disposition codes have been removed from the status array
AND The array compaction is complete
THEN:
• The system updates the array element count to reflect the current number of active status entries
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code removal request is being processed.
Trigger Criteria:
Context: A disposition code removal request is being processed
Applied to: Identify Counterpart Codes
Action: The system needs to identify related codes for removal
Logic Flow:
IF A disposition code removal request is being processed
AND The system needs to identify related codes for removal
THEN:
• The system identifies counterpart codes based on the disposition code table configuration
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code is found in the status array and entry number matching is required.
Trigger Criteria:
Context: A disposition code is found in the status array AND entry number matching is required
Applied to: Matches Entry Number?
Action: The system compares the entry numbers
Logic Flow:
IF A disposition code is found in the status array AND entry number matching is required
AND The system compares the entry numbers
THEN:
• The code is eligible for removal IF the entry numbers match OR no entry number validation is required
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code is found in the status array and quantity matching is required.
Trigger Criteria:
Context: A disposition code is found in the status array AND quantity matching is required
Applied to: Matches Quantity?
Action: The system compares the quantities
Logic Flow:
IF A disposition code is found in the status array AND quantity matching is required
AND The system compares the quantities
THEN:
• The code is eligible for removal IF the quantities match OR no quantity validation is required
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code is found in the status array and status information matching is required.
Trigger Criteria:
Context: A disposition code is found in the status array AND status information matching is required
Applied to: Matches Status Info?
Action: The system compares the status information
Logic Flow:
IF A disposition code is found in the status array AND status information matching is required
AND The system compares the status information
THEN:
• The code is eligible for removal IF the status information matches OR no status information validation is required
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition codes have been removed from the status array and the array has been compacted.
Trigger Criteria:
Context: Disposition codes have been removed from the status array AND the array has been compacted
Applied to: Replace S09 Segments in Database
Action: The system needs to persist the changes
Logic Flow:
IF Disposition codes have been removed from the status array AND the array has been compacted
AND The system needs to persist the changes
THEN:
• The system replaces the S09 segments in the database with the updated status array information
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition codes have been removed from the status array and the database has been updated.
Trigger Criteria:
Context: Disposition codes have been removed from the status array AND the database has been updated
Applied to: Update Cargo Record Status
Action: The cargo record needs to reflect the status changes
Logic Flow:
IF Disposition codes have been removed from the status array AND the database has been updated
AND The cargo record needs to reflect the status changes
THEN:
• The system updates the cargo record status based on the remaining disposition codes in the status array
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition codes have been successfully removed from the cargo status.
Trigger Criteria:
Context: Disposition codes have been successfully removed from the cargo status
Applied to: Log Removal Activity
Action: The removal processing is complete
Logic Flow:
IF Disposition codes have been successfully removed from the cargo status
AND The removal processing is complete
THEN:
• The system logs the removal activity including the codes removed AND the cargo identifier AND the timestamp
R-GCX016-cbl-02907 (+12)File: GCX016.cblBusiness Rule: Release Code with Counterpart Removal
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code is being processed for cargo release.
Trigger Criteria:
Context: A disposition code is being processed for cargo release
Applied to: Disposition Code Has Counterpart Removal?
Action: The system evaluates the disposition code configuration
Logic Flow:
IF A disposition code is being processed for cargo release
AND The system evaluates the disposition code configuration
THEN:
• The system identifies whether counterpart removal is required based on the disposition code type
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code requires counterpart removal and the cargo has an existing status array.
Trigger Criteria:
Context: A disposition code requires counterpart removal and the cargo has an existing status array
Applied to: Search Status Array for Counterpart Codes
Action: The system searches through all status entries in the array
Logic Flow:
IF A disposition code requires counterpart removal and the cargo has an existing status array
AND The system searches through all status entries in the array
THEN:
• The system identifies all counterpart codes that match the removal criteria for the current disposition code
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when system has searched the status array for counterpart codes.
Trigger Criteria:
Context: The system has searched the status array for counterpart codes
Applied to: Counterpart Code Found?
Action: The search process completes
Logic Flow:
IF The system has searched the status array for counterpart codes
AND The search process completes
THEN:
• The system determines whether any counterpart codes were found that require removal
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when counterpart disposition codes have been found in the status array.
Trigger Criteria:
Context: Counterpart disposition codes have been found in the status array
Applied to: Remove Counterpart Code from Array
Action: The system processes the removal request
Logic Flow:
IF Counterpart disposition codes have been found in the status array
AND The system processes the removal request
THEN:
• The system removes the counterpart codes from the status array and marks the positions for compaction
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when counterpart codes have been removed from the status array creating gaps.
Trigger Criteria:
Context: Counterpart codes have been removed from the status array creating gaps
Applied to: Compact Status Array
Action: The system performs array compaction
Logic Flow:
IF Counterpart codes have been removed from the status array creating gaps
AND The system performs array compaction
THEN:
• The system shifts remaining status entries to fill gaps and maintains proper array structure
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when one or more counterpart codes have been processed for removal.
Trigger Criteria:
Context: One or more counterpart codes have been processed for removal
Applied to: More Counterpart Codes?
Action: The system checks for remaining counterpart codes in the array
Logic Flow:
IF One or more counterpart codes have been processed for removal
AND The system checks for remaining counterpart codes in the array
THEN:
• The system determines whether additional counterpart codes exist that need to be removed
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when counterpart codes have been removed or no counterpart removal was required.
Trigger Criteria:
Context: Counterpart codes have been removed or no counterpart removal was required
Applied to: Add Release Status Code
Action: The system adds the release status code
Logic Flow:
IF Counterpart codes have been removed or no counterpart removal was required
AND The system adds the release status code
THEN:
• The system inserts the new disposition code into the next available position in the status array
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when release disposition code has been added to the status array.
Trigger Criteria:
Context: A release disposition code has been added to the status array
Applied to: Release Affects Quantities?
Action: The system evaluates the quantity impact configuration for the disposition code
Logic Flow:
IF A release disposition code has been added to the status array
AND The system evaluates the quantity impact configuration for the disposition code
THEN:
• The system determines whether release quantities should be updated based on the disposition code type
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when release disposition code has been added to the status array.
Trigger Criteria:
Context: A release disposition code has been added to the status array
Applied to: Set Released Flag in Status Array
Action: The system sets the release flags
Logic Flow:
IF A release disposition code has been added to the status array
AND The system sets the release flags
THEN:
• The system marks the status entry with released flag and any additional release indicators required by the disposition code
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when release disposition code affects quantities and quantity information is available.
Trigger Criteria:
Context: A release disposition code affects quantities and quantity information is available
Applied to: Update Release Quantities
Action: The system processes the quantity update
Logic Flow:
IF A release disposition code affects quantities and quantity information is available
AND The system processes the quantity update
THEN:
• The system adds or subtracts the specified quantity from the current release quantity ensuring the result is not negative
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when release status has been added with release flags set.
Trigger Criteria:
Context: A release status has been added with release flags set
Applied to: Mark Location Information
Action: Location information is available for the release
Logic Flow:
IF A release status has been added with release flags set
AND Location information is available for the release
THEN:
• The system records the location code and related geographic information in the status entry
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code does not require counterpart removal.
Trigger Criteria:
Context: A disposition code does not require counterpart removal
Applied to: Skip Counterpart Removal
Action: The system processes the release request
Logic Flow:
IF A disposition code does not require counterpart removal
AND The system processes the release request
THEN:
• The system proceeds directly to adding the release status code without searching for or removing counterpart codes
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when all required status array modifications have been completed.
Trigger Criteria:
Context: All required status array modifications have been completed
Applied to: Status Array Updated Successfully
Action: The system finalizes the update process
Logic Flow:
IF All required status array modifications have been completed
AND The system finalizes the update process
THEN:
• The system confirms successful completion and the status array reflects the new release status with any counterpart codes removed
R-GCX016-cbl-02920 (+7)File: GCX016.cblBusiness Rule: Information Code with Counterpart Removal
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code is received for processing.
Trigger Criteria:
Context: A disposition code is received for processing
Applied to: Check Disposition Code Type
Action: The system checks the disposition code type in the DC table
Logic Flow:
IF A disposition code is received for processing
AND The system checks the disposition code type in the DC table
THEN:
• The system identifies if it is an information code with removal flag set
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when information code with removal flag is being processed and a status array exists for the cargo.
Trigger Criteria:
Context: An information code with removal flag is being processed AND a status array exists for the cargo
Applied to: Search Status Array for Counterpart Codes
Action: The system searches for counterpart codes in the status array using the disposition code's counterpart definition
Logic Flow:
IF An information code with removal flag is being processed AND a status array exists for the cargo
AND The system searches for counterpart codes in the status array using the disposition code's counterpart definition
THEN:
• The system identifies all matching counterpart codes that need to be removed
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when counterpart codes are found in the status array and an information code with removal flag is being processed.
Trigger Criteria:
Context: Counterpart codes are found in the status array AND an information code with removal flag is being processed
Applied to: Remove Matching Counterpart Codes
Action: The system removes all matching counterpart codes from the status array
Logic Flow:
IF Counterpart codes are found in the status array AND an information code with removal flag is being processed
AND The system removes all matching counterpart codes from the status array
THEN:
• The conflicting disposition codes are eliminated from the cargo status
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when counterpart codes have been removed from the status array creating gaps.
Trigger Criteria:
Context: Counterpart codes have been removed from the status array creating gaps
Applied to: Compact Status Array
Action: The system compacts the array by moving remaining entries to fill the gaps
Logic Flow:
IF Counterpart codes have been removed from the status array creating gaps
AND The system compacts the array by moving remaining entries to fill the gaps
THEN:
• The status array maintains proper sequence without empty slots and preserves data integrity
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when counterpart codes have been removed and the status array has been compacted.
Trigger Criteria:
Context: Counterpart codes have been removed and the status array has been compacted
Applied to: Add New Informational Status Code
Action: The system adds the new information disposition code to the status array
Logic Flow:
IF Counterpart codes have been removed and the status array has been compacted
AND The system adds the new information disposition code to the status array
THEN:
• The new informational status is recorded in the cargo status history
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when information disposition code has been added to the status array.
Trigger Criteria:
Context: An information disposition code has been added to the status array
Applied to: Set Information Status Flag
Action: The system sets the information status flag for the new entry
Logic Flow:
IF An information disposition code has been added to the status array
AND The system sets the information status flag for the new entry
THEN:
• The disposition code is marked as informational and will not affect cargo quantities or release processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when information disposition code is being processed.
Trigger Criteria:
Context: An information disposition code is being processed
Applied to: Preserve Cargo Quantities
Action: The system updates the cargo status with the information code
Logic Flow:
IF An information disposition code is being processed
AND The system updates the cargo status with the information code
THEN:
• The cargo release quantities and total quantities remain unchanged as information codes are for status tracking only
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when counterpart codes have been removed and an information code has been added to the cargo status.
Trigger Criteria:
Context: Counterpart codes have been removed AND an information code has been added to the cargo status
Applied to: Log Status Change Information
Action: The system logs the status change activity
Logic Flow:
IF Counterpart codes have been removed AND an information code has been added to the cargo status
AND The system logs the status change activity
THEN:
• The audit trail captures both the removal of counterpart codes and addition of the information code with timestamps and user information
R-GCX016-cbl-02928 (+9)File: GCX016.cblBusiness Rule: Status Array Overflow Management
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when status array processing request is received and the system needs to add a new disposition code.
Trigger Criteria:
Context: A status array processing request is received and the system needs to add a new disposition code
Applied to: Check Current Array Size
Action: The system checks the current array size against processing requirements
Logic Flow:
IF A status array processing request is received and the system needs to add a new disposition code
AND The system checks the current array size against processing requirements
THEN:
• The current array size is determined and made available for capacity validation
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when system is processing status array operations.
Trigger Criteria:
Context: The system is processing status array operations
Applied to: Get Maximum Array Limit
Action: A capacity check is required for the status array
Logic Flow:
IF The system is processing status array operations
AND A capacity check is required for the status array
THEN:
• The maximum allowable array limit is retrieved and used for validation
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when current array size and maximum array limit are known.
Trigger Criteria:
Context: The current array size and maximum array limit are known
Applied to: Array Size < Maximum?
Action: The system evaluates if there is capacity for additional status entries
Logic Flow:
IF The current array size and maximum array limit are known
AND The system evaluates if there is capacity for additional status entries
THEN:
• If current array size is less than maximum limit, allow new code addition, otherwise prevent array overflow
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when status array has capacity available (current size is less than maximum limit).
Trigger Criteria:
Context: The status array has capacity available (current size is less than maximum limit)
Applied to: Allow New Code Addition
Action: A new disposition code needs to be added to the array
Logic Flow:
IF The status array has capacity available (current size is less than maximum limit)
AND A new disposition code needs to be added to the array
THEN:
• The system allows the disposition code to be processed and added to the status array
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when status array has reached its maximum capacity (current size equals or exceeds maximum limit).
Trigger Criteria:
Context: The status array has reached its maximum capacity (current size equals or exceeds maximum limit)
Applied to: Prevent Array Overflow
Action: A request is made to add a new disposition code
Logic Flow:
IF The status array has reached its maximum capacity (current size equals or exceeds maximum limit)
AND A request is made to add a new disposition code
THEN:
• The system prevents the addition to avoid array overflow conditions
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when array overflow condition has been prevented.
Trigger Criteria:
Context: An array overflow condition has been prevented
Applied to: Log Overflow Warning
Action: The system needs to notify operators of the capacity issue
Logic Flow:
IF An array overflow condition has been prevented
AND The system needs to notify operators of the capacity issue
THEN:
• A warning message is logged indicating the status array overflow condition
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when array overflow warning has been logged.
Trigger Criteria:
Context: An array overflow warning has been logged
Applied to: Return Error Status
Action: The system needs to respond to the original processing request
Logic Flow:
IF An array overflow warning has been logged
AND The system needs to respond to the original processing request
THEN:
• An error status is returned indicating the processing could not be completed due to capacity constraints
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when new code addition has been authorized and array capacity is available.
Trigger Criteria:
Context: New code addition has been authorized and array capacity is available
Applied to: Process Disposition Code
Action: The disposition code processing is executed
Logic Flow:
IF New code addition has been authorized and array capacity is available
AND The disposition code processing is executed
THEN:
• The disposition code is processed according to business rules and cargo status is updated appropriately
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code has been successfully processed and added to the status array.
Trigger Criteria:
Context: A disposition code has been successfully processed and added to the status array
Applied to: Update Array Counter
Action: The array counter needs to be updated
Logic Flow:
IF A disposition code has been successfully processed and added to the status array
AND The array counter needs to be updated
THEN:
• The array counter is incremented to reflect the new entry count
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when error status has been returned due to array overflow conditions.
Trigger Criteria:
Context: An error status has been returned due to array overflow conditions
Applied to: Reject Code Addition
Action: The disposition code addition request is finalized
Logic Flow:
IF An error status has been returned due to array overflow conditions
AND The disposition code addition request is finalized
THEN:
• The code addition is rejected and no changes are made to the status array
R-GCX016-cbl-02938 (+5)File: GCX016.cblBusiness Rule: Quantity Action Processing for Release Codes
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code with quantity action 'a' (add) and a quantity value from x4-05 edi segment.
Trigger Criteria:
Context: A disposition code with quantity action 'A' (ADD) and a quantity value from X4-05 EDI segment
Applied to: Add Quantity to Release Amount
Action: The system processes the quantity action for cargo release
Logic Flow:
IF A disposition code with quantity action 'A' (ADD) and a quantity value from X4-05 EDI segment
AND The system processes the quantity action for cargo release
THEN:
• The system adds the X4-05 quantity to the current cargo release quantity
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code with quantity action 's' (subtract) and a quantity value from x4-05 edi segment.
Trigger Criteria:
Context: A disposition code with quantity action 'S' (SUBTRACT) and a quantity value from X4-05 EDI segment
Applied to: Subtract Quantity from Release Amount
Action: The system processes the quantity action for cargo release
Logic Flow:
IF A disposition code with quantity action 'S' (SUBTRACT) and a quantity value from X4-05 EDI segment
AND The system processes the quantity action for cargo release
THEN:
• The system subtracts the X4-05 quantity from the current cargo release quantity
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code with quantity action that is neither 'a' (add) nor 's' (subtract).
Trigger Criteria:
Context: A disposition code with quantity action that is neither 'A' (ADD) nor 'S' (SUBTRACT)
Applied to: No Quantity Change Required
Action: The system processes the quantity action for cargo release
Logic Flow:
IF A disposition code with quantity action that is neither 'A' (ADD) nor 'S' (SUBTRACT)
AND The system processes the quantity action for cargo release
THEN:
• The system does not modify the current cargo release quantity
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when calculated cargo release quantity that is less than zero.
Trigger Criteria:
Context: A calculated cargo release quantity that is less than zero
Applied to: Set Quantity to Zero
Action: The system validates the quantity calculation result
Logic Flow:
IF A calculated cargo release quantity that is less than zero
AND The system validates the quantity calculation result
THEN:
• The system sets the cargo release quantity to zero to prevent negative values
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when processed quantity action that modified cargo release quantities.
Trigger Criteria:
Context: A processed quantity action that modified cargo release quantities
Applied to: Log Quantity Action in Message
Action: The system completes the quantity update processing
Logic Flow:
IF A processed quantity action that modified cargo release quantities
AND The system completes the quantity update processing
THEN:
• The system logs the quantity action details in the processing message for audit trail
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when completed quantity action with updated release quantities.
Trigger Criteria:
Context: A completed quantity action with updated release quantities
Applied to: Format Quantity Action Display
Action: The system prepares user notification messages
Logic Flow:
IF A completed quantity action with updated release quantities
AND The system prepares user notification messages
THEN:
• The system formats the quantity action details for clear display showing before and after quantities
R-GCX016-cbl-02944 (+16)File: GCX016.cblBusiness Rule: Hold Cargo Message Generation with Location Details
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record requires hold message generation.
Trigger Criteria:
Context: A cargo record requires hold message generation
Applied to: Hold Message Generation Required
Action: The system determines that hold cargo messaging is needed
Logic Flow:
IF A cargo record requires hold message generation
AND The system determines that hold cargo messaging is needed
THEN:
• The hold message generation process is initiated
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record with populated s09a status array exists.
Trigger Criteria:
Context: A cargo record with populated S09A status array exists
Applied to: Analyze Cargo Status Array
Action: The system analyzes the status array for hold flags and location indicators
Logic Flow:
IF A cargo record with populated S09A status array exists
AND The system analyzes the status array for hold flags and location indicators
THEN:
• Hold status flags and location requirements are identified from the array
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo status array has been analyzed for hold conditions.
Trigger Criteria:
Context: Cargo status array has been analyzed for hold conditions
Applied to: Cargo Hold Location?
Action: The system evaluates hold location flags in the status array
Logic Flow:
IF Cargo status array has been analyzed for hold conditions
AND The system evaluates hold location flags in the status array
THEN:
• The system identifies hold location as border, destination, or both locations
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo status indicates border hold condition.
Trigger Criteria:
Context: Cargo status indicates border hold condition
Applied to: Determine Border Hold
Action: The system processes border hold requirements
Logic Flow:
IF Cargo status indicates border hold condition
AND The system processes border hold requirements
THEN:
• Border hold processing is initiated and border location details are prepared
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo status indicates destination hold condition.
Trigger Criteria:
Context: Cargo status indicates destination hold condition
Applied to: Determine Destination Hold
Action: The system processes destination hold requirements
Logic Flow:
IF Cargo status indicates destination hold condition
AND The system processes destination hold requirements
THEN:
• Destination hold processing is initiated and destination location details are prepared
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when border hold processing is required.
Trigger Criteria:
Context: Border hold processing is required
Applied to: Get Border Location Details
Action: The system needs border location information for message formatting
Logic Flow:
IF Border hold processing is required
AND The system needs border location information for message formatting
THEN:
• Border station details and location information are retrieved from location tables
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when destination hold processing is required.
Trigger Criteria:
Context: Destination hold processing is required
Applied to: Get Destination Location Details
Action: The system needs destination location information for message formatting
Logic Flow:
IF Destination hold processing is required
AND The system needs destination location information for message formatting
THEN:
• Destination station details and location information are retrieved from location tables
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when location details have been retrieved for border or destination holds.
Trigger Criteria:
Context: Location details have been retrieved for border or destination holds
Applied to: Format Hold Message with Location
Action: The system formats the hold message with location information
Logic Flow:
IF Location details have been retrieved for border or destination holds
AND The system formats the hold message with location information
THEN:
• Hold message is formatted with appropriate location details and station information
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when hold message formatting is in progress.
Trigger Criteria:
Context: Hold message formatting is in progress
Applied to: Include Disposition Code Details
Action: The system adds disposition code details to the message
Logic Flow:
IF Hold message formatting is in progress
AND The system adds disposition code details to the message
THEN:
• Disposition code and its description are included in the hold message
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when hold message with disposition code details exists.
Trigger Criteria:
Context: Hold message with disposition code details exists
Applied to: Add Cargo Information
Action: The system adds cargo information to the message
Logic Flow:
IF Hold message with disposition code details exists
AND The system adds cargo information to the message
THEN:
• Car ID, waybill number, and cargo identifiers are included in the hold message
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when hold message with cargo information exists.
Trigger Criteria:
Context: Hold message with cargo information exists
Applied to: Add Quantity Information
Action: The system adds quantity information to the message
Logic Flow:
IF Hold message with cargo information exists
AND The system adds quantity information to the message
THEN:
• Total quantities and affected quantities are included in the hold message
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when hold message has been formatted with all required information.
Trigger Criteria:
Context: Hold message has been formatted with all required information
Applied to: Message Type Required?
Action: The system determines the specific message type needed
Logic Flow:
IF Hold message has been formatted with all required information
AND The system determines the specific message type needed
THEN:
• Message type is identified as border hold, destination hold, or combined hold message
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when message type is determined as border hold.
Trigger Criteria:
Context: Message type is determined as border hold
Applied to: Generate Border Hold Message
Action: The system generates the border hold message
Logic Flow:
IF Message type is determined as border hold
AND The system generates the border hold message
THEN:
• Border-specific hold message is created with border location details
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when message type is determined as destination hold.
Trigger Criteria:
Context: Message type is determined as destination hold
Applied to: Generate Destination Hold Message
Action: The system generates the destination hold message
Logic Flow:
IF Message type is determined as destination hold
AND The system generates the destination hold message
THEN:
• Destination-specific hold message is created with destination location details
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when hold message has been generated (border or destination).
Trigger Criteria:
Context: Hold message has been generated (border or destination)
Applied to: Route Message to Appropriate Users
Action: The system routes the message to appropriate recipients
Logic Flow:
IF Hold message has been generated (border or destination)
AND The system routes the message to appropriate recipients
THEN:
• Hold message is sent to relevant users, brokers, and notification systems
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when hold message has been routed to appropriate users.
Trigger Criteria:
Context: Hold message has been routed to appropriate users
Applied to: Log Hold Message Details
Action: The system logs the hold message details
Logic Flow:
IF Hold message has been routed to appropriate users
AND The system logs the hold message details
THEN:
• Hold message information is recorded in system logs with timestamp and recipient details
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when hold message has been generated, routed, and logged.
Trigger Criteria:
Context: Hold message has been generated, routed, and logged
Applied to: Hold Message Generation Complete
Action: The hold message generation process completes
Logic Flow:
IF Hold message has been generated, routed, and logged
AND The hold message generation process completes
THEN:
• System returns successful completion status and control to the calling process
R-GCX016-cbl-02961 (+39)File: GCX016.cblBusiness Rule: Cargo Status Transition Analysis
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo status transition analysis is starting.
Trigger Criteria:
Context: A cargo status transition analysis is starting
Applied to: Initialize Status Flags
Action: The system begins status array analysis
Logic Flow:
IF A cargo status transition analysis is starting
AND The system begins status array analysis
THEN:
• All status flags (hold, release, PTT, proceed, arrival, export, FDA hold) are set to false and quantity counters are reset to zero
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when s09a status array contains cargo status entries.
Trigger Criteria:
Context: The S09A status array contains cargo status entries
Applied to: Scan S09A Status Array
Action: The system performs status transition analysis
Logic Flow:
IF The S09A status array contains cargo status entries
AND The system performs status transition analysis
THEN:
• Each array element is examined sequentially for status code analysis
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when s09a array element is being examined.
Trigger Criteria:
Context: An S09A array element is being examined
Applied to: Status Code Found?
Action: The system checks for status code presence
Logic Flow:
IF An S09A array element is being examined
AND The system checks for status code presence
THEN:
• If status code is not spaces and not low-values, proceed with analysis, otherwise skip to next element
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when valid status code exists in the array element.
Trigger Criteria:
Context: A valid status code exists in the array element
Applied to: Analyze Disposition Code Type
Action: The system analyzes the disposition code
Logic Flow:
IF A valid status code exists in the array element
AND The system analyzes the disposition code
THEN:
• The code is categorized as hold, release, PTT, proceed, arrival, export, or FDA hold type
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code is being analyzed.
Trigger Criteria:
Context: A disposition code is being analyzed
Applied to: Hold Code?
Action: The system checks if the code indicates a hold status
Logic Flow:
IF A disposition code is being analyzed
AND The system checks if the code indicates a hold status
THEN:
• If the code represents a hold condition, set hold status flag to true
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code is being analyzed.
Trigger Criteria:
Context: A disposition code is being analyzed
Applied to: Release Code?
Action: The system checks if the code indicates a release status
Logic Flow:
IF A disposition code is being analyzed
AND The system checks if the code indicates a release status
THEN:
• If the code represents a release condition, proceed with release processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code is being analyzed.
Trigger Criteria:
Context: A disposition code is being analyzed
Applied to: PTT Code?
Action: The system checks if the code indicates PTT status
Logic Flow:
IF A disposition code is being analyzed
AND The system checks if the code indicates PTT status
THEN:
• If the code represents PTT condition, proceed with PTT processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code is being analyzed.
Trigger Criteria:
Context: A disposition code is being analyzed
Applied to: Proceed Code?
Action: The system checks if the code indicates proceed status
Logic Flow:
IF A disposition code is being analyzed
AND The system checks if the code indicates proceed status
THEN:
• If the code represents proceed condition, proceed with proceed processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code is being analyzed.
Trigger Criteria:
Context: A disposition code is being analyzed
Applied to: Arrival Code?
Action: The system checks if the code indicates arrival status
Logic Flow:
IF A disposition code is being analyzed
AND The system checks if the code indicates arrival status
THEN:
• If the code represents arrival condition, proceed with arrival processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code is being analyzed.
Trigger Criteria:
Context: A disposition code is being analyzed
Applied to: Export Code?
Action: The system checks if the code indicates export status
Logic Flow:
IF A disposition code is being analyzed
AND The system checks if the code indicates export status
THEN:
• If the code represents export condition, proceed with export processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code is being analyzed.
Trigger Criteria:
Context: A disposition code is being analyzed
Applied to: FDA Hold Code?
Action: The system checks if the code indicates FDA hold status
Logic Flow:
IF A disposition code is being analyzed
AND The system checks if the code indicates FDA hold status
THEN:
• If the code represents FDA hold condition, proceed with FDA hold processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when hold disposition code has been identified.
Trigger Criteria:
Context: A hold disposition code has been identified
Applied to: Set Hold Status Flag
Action: The system processes the hold code
Logic Flow:
IF A hold disposition code has been identified
AND The system processes the hold code
THEN:
• The hold status flag is set to true and hold processing continues
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when hold status code has been identified.
Trigger Criteria:
Context: A hold status code has been identified
Applied to: Border or Destination Hold?
Action: The system determines the hold location
Logic Flow:
IF A hold status code has been identified
AND The system determines the hold location
THEN:
• The hold is classified as either border hold or destination hold based on the specific code value
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when hold code has been classified as a border hold.
Trigger Criteria:
Context: A hold code has been classified as a border hold
Applied to: Set Border Hold Flag
Action: The system processes the border hold classification
Logic Flow:
IF A hold code has been classified as a border hold
AND The system processes the border hold classification
THEN:
• The border hold flag is set to true
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when hold code has been classified as a destination hold.
Trigger Criteria:
Context: A hold code has been classified as a destination hold
Applied to: Set Destination Hold Flag
Action: The system processes the destination hold classification
Logic Flow:
IF A hold code has been classified as a destination hold
AND The system processes the destination hold classification
THEN:
• The destination hold flag is set to true
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when release disposition code has been identified.
Trigger Criteria:
Context: A release disposition code has been identified
Applied to: Set Release Status Flag
Action: The system processes the release code
Logic Flow:
IF A release disposition code has been identified
AND The system processes the release code
THEN:
• The release status flag is set to true
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when release status code with associated quantity exists.
Trigger Criteria:
Context: A release status code with associated quantity exists
Applied to: Calculate Released Quantity
Action: The system processes the release quantity
Logic Flow:
IF A release status code with associated quantity exists
AND The system processes the release quantity
THEN:
• The released quantity is added to the total released quantity counter
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when ptt disposition code has been identified.
Trigger Criteria:
Context: A PTT disposition code has been identified
Applied to: Set PTT Flag
Action: The system processes the PTT code
Logic Flow:
IF A PTT disposition code has been identified
AND The system processes the PTT code
THEN:
• The PTT flag is set to true
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when ptt status code with associated quantity exists.
Trigger Criteria:
Context: A PTT status code with associated quantity exists
Applied to: Validate PTT Quantity
Action: The system validates PTT quantity requirements
Logic Flow:
IF A PTT status code with associated quantity exists
AND The system validates PTT quantity requirements
THEN:
• The PTT quantity is verified against business rules and thresholds
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when proceed disposition code has been identified.
Trigger Criteria:
Context: A proceed disposition code has been identified
Applied to: Set Proceed Flag
Action: The system processes the proceed code
Logic Flow:
IF A proceed disposition code has been identified
AND The system processes the proceed code
THEN:
• The proceed flag is set to true
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when proceed status code has been processed.
Trigger Criteria:
Context: A proceed status code has been processed
Applied to: Set Border Arrival Date
Action: The system sets border arrival information
Logic Flow:
IF A proceed status code has been processed
AND The system sets border arrival information
THEN:
• The border arrival date is recorded from the status code date information
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when arrival disposition code has been identified.
Trigger Criteria:
Context: An arrival disposition code has been identified
Applied to: Set Arrival Flag
Action: The system processes the arrival code
Logic Flow:
IF An arrival disposition code has been identified
AND The system processes the arrival code
THEN:
• The arrival flag is set to true
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when export disposition code has been identified.
Trigger Criteria:
Context: An export disposition code has been identified
Applied to: Set Export Flag
Action: The system processes the export code
Logic Flow:
IF An export disposition code has been identified
AND The system processes the export code
THEN:
• The export flag is set to true
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when fda hold disposition code has been identified.
Trigger Criteria:
Context: An FDA hold disposition code has been identified
Applied to: Set FDA Hold Flag at Destination
Action: The system processes the FDA hold code
Logic Flow:
IF An FDA hold disposition code has been identified
AND The system processes the FDA hold code
THEN:
• The FDA hold flag is set to true for destination location
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when current array element processing is complete.
Trigger Criteria:
Context: Current array element processing is complete
Applied to: Continue Array Scan
Action: The system continues array scanning
Logic Flow:
IF Current array element processing is complete
AND The system continues array scanning
THEN:
• Processing moves to the next array element for analysis
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when current array element has been processed.
Trigger Criteria:
Context: Current array element has been processed
Applied to: More Array Elements?
Action: The system checks for remaining elements
Logic Flow:
IF Current array element has been processed
AND The system checks for remaining elements
THEN:
• If more elements exist, continue scanning, otherwise proceed to final status determination
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when all status array elements have been analyzed and flags are set.
Trigger Criteria:
Context: All status array elements have been analyzed and flags are set
Applied to: Determine Final Cargo State
Action: The system determines final cargo state
Logic Flow:
IF All status array elements have been analyzed and flags are set
AND The system determines final cargo state
THEN:
• The cargo state is determined based on the combination of status flags and business rules
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when final cargo state analysis is complete.
Trigger Criteria:
Context: Final cargo state analysis is complete
Applied to: Manual Release Required?
Action: The system checks for manual release requirements
Logic Flow:
IF Final cargo state analysis is complete
AND The system checks for manual release requirements
THEN:
• If manual release conditions are met, set manual release flag to true
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when manual release conditions have been identified.
Trigger Criteria:
Context: Manual release conditions have been identified
Applied to: Set Manual Release Flag
Action: The system processes manual release requirements
Logic Flow:
IF Manual release conditions have been identified
AND The system processes manual release requirements
THEN:
• The manual release flag is set to true
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when release quantities and total quantities are available.
Trigger Criteria:
Context: Release quantities and total quantities are available
Applied to: Partial Release? & Full Release?
Action: The system compares released quantity to total quantity
Logic Flow:
IF Release quantities and total quantities are available
AND The system compares released quantity to total quantity
THEN:
• If released quantity is less than total quantity, partial release status is identified
• If released quantity equals or exceeds total quantity, full release status is identified
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when partial release status has been identified.
Trigger Criteria:
Context: Partial release status has been identified
Applied to: Set Hold on Piece Count Status
Action: The system processes partial release conditions
Logic Flow:
IF Partial release status has been identified
AND The system processes partial release conditions
THEN:
• Hold on piece count status is set to indicate remaining quantity is held
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when full release status has been confirmed.
Trigger Criteria:
Context: Full release status has been confirmed
Applied to: Clear Destination Index
Action: The system processes full release conditions
Logic Flow:
IF Full release status has been confirmed
AND The system processes full release conditions
THEN:
• The destination index is cleared to reflect released status
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo status transition analysis is complete.
Trigger Criteria:
Context: Cargo status transition analysis is complete
Applied to: Unrelease Detected?
Action: The system checks for unrelease conditions
Logic Flow:
IF Cargo status transition analysis is complete
AND The system checks for unrelease conditions
THEN:
• If previous release status has been removed, unrelease condition is detected
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when unrelease condition has been detected.
Trigger Criteria:
Context: Unrelease condition has been detected
Applied to: Set Unrelease Notification Flag
Action: The system processes unrelease conditions
Logic Flow:
IF Unrelease condition has been detected
AND The system processes unrelease conditions
THEN:
• The unrelease notification flag is set to trigger appropriate notifications
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when hold status flags have been set during analysis.
Trigger Criteria:
Context: Hold status flags have been set during analysis
Applied to: Determine Hold Location
Action: The system determines hold location
Logic Flow:
IF Hold status flags have been set during analysis
AND The system determines hold location
THEN:
• Hold location is classified as border, destination, or both based on the active hold flags
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo status analysis is nearing completion.
Trigger Criteria:
Context: Cargo status analysis is nearing completion
Applied to: Age Calculation Required?
Action: The system checks age calculation requirements
Logic Flow:
IF Cargo status analysis is nearing completion
AND The system checks age calculation requirements
THEN:
• If business rules require age calculation, proceed with Julian date calculation
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when age calculation is required and cargo dates are available.
Trigger Criteria:
Context: Age calculation is required and cargo dates are available
Applied to: Calculate Cargo Age using Julian Date
Action: The system calculates cargo age
Logic Flow:
IF Age calculation is required and cargo dates are available
AND The system calculates cargo age
THEN:
• Cargo age is computed using Julian date conversion and current date comparison
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when all status analysis and calculations are complete.
Trigger Criteria:
Context: All status analysis and calculations are complete
Applied to: Set Final Status Flags
Action: The system sets final status flags
Logic Flow:
IF All status analysis and calculations are complete
AND The system sets final status flags
THEN:
• All relevant status flags are set to reflect the final cargo state
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when all status analysis steps have been completed.
Trigger Criteria:
Context: All status analysis steps have been completed
Applied to: Status Transition Analysis Complete
Action: The system finalizes status transition analysis
Logic Flow:
IF All status analysis steps have been completed
AND The system finalizes status transition analysis
THEN:
• The analysis is marked complete and results are available for further processing
R-GCX016-cbl-03001 (+13)File: GCX016.cblBusiness Rule: Complex Cargo Status Logic Processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record is being processed for status determination.
Trigger Criteria:
Context: A cargo record is being processed for status determination
Applied to: Clear Destination Index
Action: The manual release flag is set to true
Logic Flow:
IF A cargo record is being processed for status determination
AND The manual release flag is set to true
THEN:
• The system clears the destination index and initiates Canadian manifest coordination processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record is being evaluated for status assignment.
Trigger Criteria:
Context: A cargo record is being evaluated for status assignment
Applied to: Set FDA Hold Status with Code 66
Action: FDA hold flag is present at destination location
Logic Flow:
IF A cargo record is being evaluated for status assignment
AND FDA hold flag is present at destination location
THEN:
• The system sets cargo status to FDA hold with status code 66
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record has existing ptt status.
Trigger Criteria:
Context: A cargo record has existing PTT status
Applied to: Save Current PTT Status
Action: Complex status logic processing is initiated
Logic Flow:
IF A cargo record has existing PTT status
AND Complex status logic processing is initiated
THEN:
• The system saves and preserves the current PTT status for continued processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record with total quantity and released quantity values.
Trigger Criteria:
Context: A cargo record with total quantity and released quantity values
Applied to: Set Hold on Piece Counts Status
Action: The released quantity is less than the total quantity
Logic Flow:
IF A cargo record with total quantity and released quantity values
AND The released quantity is less than the total quantity
THEN:
• The system sets hold status on piece counts for the unreleased portion
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record with released quantity equal to total quantity.
Trigger Criteria:
Context: A cargo record with released quantity equal to total quantity
Applied to: Process Full Release
Action: Full release conditions are met
Logic Flow:
IF A cargo record with released quantity equal to total quantity
AND Full release conditions are met
THEN:
• The system processes full release and clears the destination index
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record being evaluated for proceed status.
Trigger Criteria:
Context: A cargo record being evaluated for proceed status
Applied to: Set Proceed Status
Action: Proceed status flag is present in the cargo evaluation
Logic Flow:
IF A cargo record being evaluated for proceed status
AND Proceed status flag is present in the cargo evaluation
THEN:
• The system sets proceed status and updates the border arrival date
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record with hold status present.
Trigger Criteria:
Context: A cargo record with hold status present
Applied to: Set Border Hold Status
Action: The hold location is determined to be at the border
Logic Flow:
IF A cargo record with hold status present
AND The hold location is determined to be at the border
THEN:
• The system assigns border hold status to the cargo
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record with hold status present.
Trigger Criteria:
Context: A cargo record with hold status present
Applied to: Set Destination Hold Status
Action: The hold location is determined to be at the destination (not border)
Logic Flow:
IF A cargo record with hold status present
AND The hold location is determined to be at the destination (not border)
THEN:
• The system assigns destination hold status to the cargo
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record being processed for arrival status.
Trigger Criteria:
Context: A cargo record being processed for arrival status
Applied to: Set Arrival Status
Action: Arrival status flag is present in the evaluation
Logic Flow:
IF A cargo record being processed for arrival status
AND Arrival status flag is present in the evaluation
THEN:
• The system sets arrival status and clears the destination index
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record being evaluated for export status.
Trigger Criteria:
Context: A cargo record being evaluated for export status
Applied to: Set Export Status
Action: Export status flag is present in the cargo evaluation
Logic Flow:
IF A cargo record being evaluated for export status
AND Export status flag is present in the cargo evaluation
THEN:
• The system sets export status and clears the destination index
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record with cancel release status detected.
Trigger Criteria:
Context: A cargo record with cancel release status detected
Applied to: Process Unrelease Scenario
Action: Unrelease scenario processing is required
Logic Flow:
IF A cargo record with cancel release status detected
AND Unrelease scenario processing is required
THEN:
• The system processes the unrelease scenario and generates unrelease notifications
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record requiring age calculation.
Trigger Criteria:
Context: A cargo record requiring age calculation
Applied to: Calculate Cargo Age using Julian Date
Action: Age calculation is required for cargo processing
Logic Flow:
IF A cargo record requiring age calculation
AND Age calculation is required for cargo processing
THEN:
• The system calculates cargo age using Julian date conversion methods
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record that has completed age calculation.
Trigger Criteria:
Context: A cargo record that has completed age calculation
Applied to: Re-establish Destination Index
Action: Destination index re-establishment is required
Logic Flow:
IF A cargo record that has completed age calculation
AND Destination index re-establishment is required
THEN:
• The system re-establishes the destination index for the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record that has undergone status changes.
Trigger Criteria:
Context: A cargo record that has undergone status changes
Applied to: Update Cargo Record in Database
Action: Status changes have been made to the cargo record
Logic Flow:
IF A cargo record that has undergone status changes
AND Status changes have been made to the cargo record
THEN:
• The system updates the cargo record in the database with the new status information
R-GCX016-cbl-03015 (+15)File: GCX016.cblBusiness Rule: PTT Status Preservation Logic
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record is being processed for status updates.
Trigger Criteria:
Context: A cargo record is being processed for status updates
Applied to: Check Current Cargo Status
Action: The system checks the current cargo status
Logic Flow:
IF A cargo record is being processed for status updates
AND The system checks the current cargo status
THEN:
• The system identifies whether PTT status is present and requires preservation
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record with current status information.
Trigger Criteria:
Context: A cargo record with current status information
Applied to: PTT Status Present?
Action: The system evaluates if PTT status is present in the cargo status
Logic Flow:
IF A cargo record with current status information
AND The system evaluates if PTT status is present in the cargo status
THEN:
• The system sets a flag indicating PTT status presence and proceeds to either save PTT status or continue with normal processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record with existing ptt status.
Trigger Criteria:
Context: A cargo record with existing PTT status
Applied to: Save Current PTT Status
Action: The system needs to process new disposition codes that might affect PTT status
Logic Flow:
IF A cargo record with existing PTT status
AND The system needs to process new disposition codes that might affect PTT status
THEN:
• The system saves the current PTT status information to temporary storage for potential restoration
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record with ptt status and associated quantity information.
Trigger Criteria:
Context: A cargo record with PTT status and associated quantity information
Applied to: Store PTT Quantity Information
Action: The system prepares to process disposition codes that may affect quantities
Logic Flow:
IF A cargo record with PTT status and associated quantity information
AND The system prepares to process disposition codes that may affect quantities
THEN:
• The system stores PTT quantity information including release quantities and quantity thresholds for later validation
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record with saved ptt status information and new disposition codes to process.
Trigger Criteria:
Context: A cargo record with saved PTT status information and new disposition codes to process
Applied to: Process New Disposition Codes
Action: The system processes the new disposition codes
Logic Flow:
IF A cargo record with saved PTT status information and new disposition codes to process
AND The system processes the new disposition codes
THEN:
• The system applies the disposition codes and updates the cargo status array while preserving the ability to restore PTT status
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record with processed disposition codes and updated status array.
Trigger Criteria:
Context: A cargo record with processed disposition codes and updated status array
Applied to: Analyze Status Array Changes
Action: The system analyzes the changes made to the status array
Logic Flow:
IF A cargo record with processed disposition codes and updated status array
AND The system analyzes the changes made to the status array
THEN:
• The system determines whether the PTT status is still valid based on the new status conditions
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record with processed disposition codes and analyzed status changes.
Trigger Criteria:
Context: A cargo record with processed disposition codes and analyzed status changes
Applied to: PTT Still Valid?
Action: The system evaluates whether PTT status remains valid after the changes
Logic Flow:
IF A cargo record with processed disposition codes and analyzed status changes
AND The system evaluates whether PTT status remains valid after the changes
THEN:
• The system decides to either continue with PTT status validation or clear PTT status based on validity conditions
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record with valid ptt status after disposition code processing.
Trigger Criteria:
Context: A cargo record with valid PTT status after disposition code processing
Applied to: Quantity Validation Required?
Action: The system evaluates if quantity validation is needed for PTT status maintenance
Logic Flow:
IF A cargo record with valid PTT status after disposition code processing
AND The system evaluates if quantity validation is needed for PTT status maintenance
THEN:
• The system either proceeds with quantity validation or directly restores PTT status based on validation requirements
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record requiring ptt quantity validation with stored quantity information.
Trigger Criteria:
Context: A cargo record requiring PTT quantity validation with stored quantity information
Applied to: Validate PTT Quantities
Action: The system validates PTT quantities against current cargo quantities and thresholds
Logic Flow:
IF A cargo record requiring PTT quantity validation with stored quantity information
AND The system validates PTT quantities against current cargo quantities and thresholds
THEN:
• The system determines if quantities match the PTT requirements for status maintenance
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record with validated ptt quantities.
Trigger Criteria:
Context: A cargo record with validated PTT quantities
Applied to: Quantities Match?
Action: The system compares current quantities with PTT requirements
Logic Flow:
IF A cargo record with validated PTT quantities
AND The system compares current quantities with PTT requirements
THEN:
• The system decides to either maintain PTT status, adjust PTT for partial release, or proceed with standard PTT restoration
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record with validated quantities that match ptt requirements.
Trigger Criteria:
Context: A cargo record with validated quantities that match PTT requirements
Applied to: Maintain PTT Status
Action: The system determines PTT status should be maintained without changes
Logic Flow:
IF A cargo record with validated quantities that match PTT requirements
AND The system determines PTT status should be maintained without changes
THEN:
• The system preserves the current PTT status and proceeds with restoration process
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record with quantities that don't fully match ptt requirements due to partial releases.
Trigger Criteria:
Context: A cargo record with quantities that don't fully match PTT requirements due to partial releases
Applied to: Adjust PTT for Partial Release
Action: The system determines PTT status should be adjusted rather than cleared
Logic Flow:
IF A cargo record with quantities that don't fully match PTT requirements due to partial releases
AND The system determines PTT status should be adjusted rather than cleared
THEN:
• The system modifies PTT quantities and status to reflect partial release conditions while maintaining PTT designation
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record with saved ptt status information and completed validation process.
Trigger Criteria:
Context: A cargo record with saved PTT status information and completed validation process
Applied to: Restore Saved PTT Status
Action: The system restores the PTT status to the cargo record
Logic Flow:
IF A cargo record with saved PTT status information and completed validation process
AND The system restores the PTT status to the cargo record
THEN:
• The system applies the saved or adjusted PTT status information to the current cargo status
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record with restored ptt status.
Trigger Criteria:
Context: A cargo record with restored PTT status
Applied to: Update PTT Quantity
Action: The system updates PTT quantity information
Logic Flow:
IF A cargo record with restored PTT status
AND The system updates PTT quantity information
THEN:
• The system applies the final PTT quantity values including any adjustments made during the preservation process
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record where ptt status is determined to be invalid after disposition code processing.
Trigger Criteria:
Context: A cargo record where PTT status is determined to be invalid after disposition code processing
Applied to: Clear PTT Status
Action: The system clears PTT status from the cargo record
Logic Flow:
IF A cargo record where PTT status is determined to be invalid after disposition code processing
AND The system clears PTT status from the cargo record
THEN:
• The system removes all PTT-related status information and quantities from the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record with completed ptt status preservation processing.
Trigger Criteria:
Context: A cargo record with completed PTT status preservation processing
Applied to: Update Cargo Record
Action: The system updates the cargo record with final status information
Logic Flow:
IF A cargo record with completed PTT status preservation processing
AND The system updates the cargo record with final status information
THEN:
• The system commits the final cargo status including PTT status preservation results to the cargo record
R-GCX016-cbl-03031 (+12)File: GCX016.cblBusiness Rule: Partial Release Status Management
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record exists with total quantity and released quantity values.
Trigger Criteria:
Context: A cargo record exists with total quantity and released quantity values
Applied to: Check Released Quantity vs Total Quantity
Action: The system compares released quantity against total quantity
Logic Flow:
IF A cargo record exists with total quantity and released quantity values
AND The system compares released quantity against total quantity
THEN:
• The system identifies if cargo requires partial release processing when released quantity is less than total quantity
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo has been identified as partially released with released quantity less than total quantity.
Trigger Criteria:
Context: Cargo has been identified as partially released with released quantity less than total quantity
Applied to: Calculate Remaining Quantity
Action: The system calculates remaining quantity
Logic Flow:
IF Cargo has been identified as partially released with released quantity less than total quantity
AND The system calculates remaining quantity
THEN:
• The remaining quantity equals total quantity minus released quantity
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo has remaining unreleased quantity after partial release.
Trigger Criteria:
Context: Cargo has remaining unreleased quantity after partial release
Applied to: Set Hold on Piece Counts Status
Action: The system processes partial release status
Logic Flow:
IF Cargo has remaining unreleased quantity after partial release
AND The system processes partial release status
THEN:
• The system sets hold on piece counts status (HOLDPCS) to indicate partial hold condition
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo has been determined to be in partial release state with hold on piece counts.
Trigger Criteria:
Context: Cargo has been determined to be in partial release state with hold on piece counts
Applied to: Update Cargo Status to Partial Release
Action: The system updates cargo status
Logic Flow:
IF Cargo has been determined to be in partial release state with hold on piece counts
AND The system updates cargo status
THEN:
• The cargo status is set to partial release with appropriate status description
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo has existing ptt status and is being processed for partial release.
Trigger Criteria:
Context: Cargo has existing PTT status and is being processed for partial release
Applied to: Preserve PTT Status if Exists
Action: The system updates cargo status for partial release
Logic Flow:
IF Cargo has existing PTT status and is being processed for partial release
AND The system updates cargo status for partial release
THEN:
• The existing PTT status is preserved and not overwritten by partial release processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo is in partial release state with calculated remaining quantities.
Trigger Criteria:
Context: Cargo is in partial release state with calculated remaining quantities
Applied to: Update Status Array with Partial Release Flag
Action: The system updates the status array
Logic Flow:
IF Cargo is in partial release state with calculated remaining quantities
AND The system updates the status array
THEN:
• The status array includes partial release flags, hold indicators, and quantity information
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo is in partial release state requiring hold location assignment.
Trigger Criteria:
Context: Cargo is in partial release state requiring hold location assignment
Applied to: Set Hold Location - Border or Destination
Action: The system determines hold location
Logic Flow:
IF Cargo is in partial release state requiring hold location assignment
AND The system determines hold location
THEN:
• The hold location is set to either border or destination based on cargo routing and processing requirements
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo is being processed for partial release with determined hold location.
Trigger Criteria:
Context: Cargo is being processed for partial release with determined hold location
Applied to: Destination Index Required?
Action: The system evaluates destination index requirements
Logic Flow:
IF Cargo is being processed for partial release with determined hold location
AND The system evaluates destination index requirements
THEN:
• The system determines whether to maintain or clear destination index based on cargo status and routing needs
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo in partial release state requires continued destination processing.
Trigger Criteria:
Context: Cargo in partial release state requires continued destination processing
Applied to: Maintain Destination Index
Action: The system processes destination index requirements
Logic Flow:
IF Cargo in partial release state requires continued destination processing
AND The system processes destination index requirements
THEN:
• The destination index is maintained to ensure proper routing and processing continuation
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo in partial release state requires border-only processing.
Trigger Criteria:
Context: Cargo in partial release state requires border-only processing
Applied to: Clear Destination Index
Action: The system processes destination index requirements
Logic Flow:
IF Cargo in partial release state requires border-only processing
AND The system processes destination index requirements
THEN:
• The destination index is cleared to prevent destination processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when all partial release processing has been completed with status determinations.
Trigger Criteria:
Context: All partial release processing has been completed with status determinations
Applied to: Update Cargo Record with Partial Status
Action: The system updates the cargo record
Logic Flow:
IF All partial release processing has been completed with status determinations
AND The system updates the cargo record
THEN:
• The cargo record is updated with partial release status, quantities, hold information, and destination index settings
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record has been updated with partial release status.
Trigger Criteria:
Context: Cargo record has been updated with partial release status
Applied to: Generate Partial Release Notification
Action: The system generates notifications
Logic Flow:
IF Cargo record has been updated with partial release status
AND The system generates notifications
THEN:
• Appropriate notifications are sent to brokers, customs, and other stakeholders regarding partial release and remaining holds
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when partial release processing has been completed with notifications sent.
Trigger Criteria:
Context: Partial release processing has been completed with notifications sent
Applied to: Log Partial Release Transaction
Action: The system logs the transaction
Logic Flow:
IF Partial release processing has been completed with notifications sent
AND The system logs the transaction
THEN:
• Transaction log entries are created with partial release details, quantities, status changes, and processing timestamps
Business Justification: Dictates the expected operational logic and validation steps when cargo record exists in the system with historical release status.
Trigger Criteria:
Context: A cargo record exists in the system with historical release status
Applied to: Previously Released Cargo Detected
Action: The system processes a new disposition code message for this cargo
Logic Flow:
IF A cargo record exists in the system with historical release status
AND The system processes a new disposition code message for this cargo
THEN:
• The system detects that this cargo was previously released and flags it for unrelease processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record has a populated status array with current disposition codes.
Trigger Criteria:
Context: A cargo record has a populated status array with current disposition codes
Applied to: Check Current Status Array
Action: The system analyzes the status array for release and hold conditions
Logic Flow:
IF A cargo record has a populated status array with current disposition codes
AND The system analyzes the status array for release and hold conditions
THEN:
• The system identifies current status flags including release quantities, hold statuses, and disposition codes
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code is received in an x4 segment message.
Trigger Criteria:
Context: A disposition code is received in an X4 segment message
Applied to: Analyze Disposition Codes
Action: The system looks up the disposition code in the DC table to determine its action type
Logic Flow:
IF A disposition code is received in an X4 segment message
AND The system looks up the disposition code in the DC table to determine its action type
THEN:
• The system identifies whether the code requires removal of release status, addition of hold status, or other status changes
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code has been analyzed and its action type determined.
Trigger Criteria:
Context: A disposition code has been analyzed and its action type determined
Applied to: Unrelease Condition Found?
Action: The disposition code action type is 'DC Remove+Release', 'DC Removal', or adds a hold status to previously released cargo
Logic Flow:
IF A disposition code has been analyzed and its action type determined
AND The disposition code action type is 'DC Remove+Release', 'DC Removal', or adds a hold status to previously released cargo
THEN:
• The system determines that unrelease processing is required and proceeds with status change logic
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo currently has release status flags set and release quantities greater than zero.
Trigger Criteria:
Context: Cargo currently has release status flags set and release quantities greater than zero
Applied to: Detect Status Change from Released to Unreleased
Action: A disposition code will remove release status or add hold conditions that override the release
Logic Flow:
IF Cargo currently has release status flags set and release quantities greater than zero
AND A disposition code will remove release status or add hold conditions that override the release
THEN:
• The system detects this as an unrelease condition and prepares to update the cargo status accordingly
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo is about to be unreleased and current status needs to be preserved.
Trigger Criteria:
Context: Cargo is about to be unreleased and current status needs to be preserved
Applied to: Save Current Cargo Status
Action: The system saves the current cargo status description and release quantities
Logic Flow:
IF Cargo is about to be unreleased and current status needs to be preserved
AND The system saves the current cargo status description and release quantities
THEN:
• The previous status information is stored for comparison and logging purposes
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when unrelease disposition code needs to be added to the cargo status array.
Trigger Criteria:
Context: An unrelease disposition code needs to be added to the cargo status array
Applied to: Update Status Array with Unrelease Code
Action: The system processes the disposition code and determines its placement in the status array
Logic Flow:
IF An unrelease disposition code needs to be added to the cargo status array
AND The system processes the disposition code and determines its placement in the status array
THEN:
• The new disposition code is added to the status array with appropriate sequence and occurrence numbers
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo has existing release status flags and release quantities set.
Trigger Criteria:
Context: Cargo has existing release status flags and release quantities set
Applied to: Remove Release Status Flags
Action: An unrelease disposition code requires removal of release status
Logic Flow:
IF Cargo has existing release status flags and release quantities set
AND An unrelease disposition code requires removal of release status
THEN:
• The system clears release flags, resets release quantities, and removes release-related status codes from the array
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo is being unreleased and may require hold status to be applied.
Trigger Criteria:
Context: Cargo is being unreleased and may require hold status to be applied
Applied to: Restore Hold Status if Applicable
Action: The disposition code indicates a hold condition or the cargo's previous state included hold requirements
Logic Flow:
IF Cargo is being unreleased and may require hold status to be applied
AND The disposition code indicates a hold condition or the cargo's previous state included hold requirements
THEN:
• The system applies the appropriate hold status based on the cargo's location and disposition requirements
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo requires hold status as part of unrelease processing.
Trigger Criteria:
Context: Cargo requires hold status as part of unrelease processing
Applied to: Border or Destination Hold?
Action: The system evaluates the cargo's current location, destination, and disposition code requirements
Logic Flow:
IF Cargo requires hold status as part of unrelease processing
AND The system evaluates the cargo's current location, destination, and disposition code requirements
THEN:
• The system determines whether to apply border hold, destination hold, or both based on the cargo's routing and customs requirements
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when unreleased cargo requires border hold status.
Trigger Criteria:
Context: Unreleased cargo requires border hold status
Applied to: Set Border Hold Status
Action: The cargo is at or destined for border processing location
Logic Flow:
IF Unreleased cargo requires border hold status
AND The cargo is at or destined for border processing location
THEN:
• The system sets border hold status flags and updates the cargo status to reflect border hold conditions
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when unreleased cargo requires destination hold status.
Trigger Criteria:
Context: Unreleased cargo requires destination hold status
Applied to: Set Destination Hold Status
Action: The cargo is at or destined for destination processing location
Logic Flow:
IF Unreleased cargo requires destination hold status
AND The cargo is at or destined for destination processing location
THEN:
• The system sets destination hold status flags and updates the cargo status to reflect destination hold conditions
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo is being unreleased and had destination information cleared during previous release.
Trigger Criteria:
Context: Cargo is being unreleased and had destination information cleared during previous release
Applied to: Re-establish Destination Index
Action: The cargo requires destination hold or routing information to be restored
Logic Flow:
IF Cargo is being unreleased and had destination information cleared during previous release
AND The cargo requires destination hold or routing information to be restored
THEN:
• The system re-establishes the destination index and routing information from the cargo's SD segment data
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo has been successfully unreleased and status updated.
Trigger Criteria:
Context: Cargo has been successfully unreleased and status updated
Applied to: Generate Unrelease Notification Message
Action: The system prepares notification messages for the unrelease action
Logic Flow:
IF Cargo has been successfully unreleased and status updated
AND The system prepares notification messages for the unrelease action
THEN:
• The system generates Merlin messages containing cargo details, unrelease reason, and new status information for distribution to appropriate users
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo status has been changed to unreleased with updated status array and flags.
Trigger Criteria:
Context: Cargo status has been changed to unreleased with updated status array and flags
Applied to: Update Cargo Record in Database
Action: The system commits the cargo record changes to the database
Logic Flow:
IF Cargo status has been changed to unreleased with updated status array and flags
AND The system commits the cargo record changes to the database
THEN:
• The cargo record is updated with new status, status description, hold flags, and cleared release quantities
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo has been unreleased and database updated successfully. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: Cargo has been unreleased and database updated successfully
Applied to: Call Integration Services for Status Change
Action: The cargo requires notification to external systems for equipment or container processing
Logic Flow:
IF Cargo has been unreleased and database updated successfully
AND The cargo requires notification to external systems for equipment or container processing
THEN:
• The system calls GCCIIS integration services to notify external systems of the status change from released to unreleased
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo unrelease processing has been completed successfully.
Trigger Criteria:
Context: Cargo unrelease processing has been completed successfully
Applied to: Log Unrelease Transaction
Action: The system logs the transaction details for audit purposes
Logic Flow:
IF Cargo unrelease processing has been completed successfully
AND The system logs the transaction details for audit purposes
THEN:
• The system calls GCT1051E to log the unrelease transaction with cargo details, disposition codes, and status changes
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when unrelease notification message has been generated.
Trigger Criteria:
Context: Unrelease notification message has been generated
Applied to: Route Unrelease Message to Appropriate Users
Action: The system determines the appropriate recipients based on cargo location and broker information
Logic Flow:
IF Unrelease notification message has been generated
AND The system determines the appropriate recipients based on cargo location and broker information
THEN:
• The system routes the unrelease message to station-specific Merlin IDs, broker notification systems, and error handling destinations as appropriate
R-GCX016-cbl-03062 (+16)File: GCX016.cblBusiness Rule: Canadian Manifest Cross
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when us cargo record exists in the system.
Trigger Criteria:
Context: A US cargo record exists in the system
Applied to: US Cargo Released?
Action: The system checks the cargo release status for cross-border coordination
Logic Flow:
IF A US cargo record exists in the system
AND The system checks the cargo release status for cross-border coordination
THEN:
• The system should proceed with Canadian manifest processing only if the US cargo is in released status, otherwise skip cross-border coordination
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when us cargo record is confirmed as released.
Trigger Criteria:
Context: A US cargo record is confirmed as released
Applied to: Get Equipment ID from US Cargo
Action: The system needs to identify the associated equipment for Canadian manifest lookup
Logic Flow:
IF A US cargo record is confirmed as released
AND The system needs to identify the associated equipment for Canadian manifest lookup
THEN:
• The system should extract the equipment ID from the US cargo record for cross-reference matching
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when equipment id has been extracted from the us cargo record.
Trigger Criteria:
Context: An equipment ID has been extracted from the US cargo record
Applied to: Search Canadian Cargo Database
Action: The system searches for corresponding Canadian cargo records
Logic Flow:
IF An equipment ID has been extracted from the US cargo record
AND The system searches for corresponding Canadian cargo records
THEN:
• The system should query the Canadian cargo database using the equipment ID as the search key
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when canadian cargo database search has been initiated with equipment id.
Trigger Criteria:
Context: Canadian cargo database search has been initiated with equipment ID
Applied to: Match by Equipment ID
Action: The system attempts to match records between US and Canadian systems
Logic Flow:
IF Canadian cargo database search has been initiated with equipment ID
AND The system attempts to match records between US and Canadian systems
THEN:
• The system should identify matching records where the equipment ID corresponds between US and Canadian cargo
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when equipment id matching has been performed against canadian cargo database.
Trigger Criteria:
Context: Equipment ID matching has been performed against Canadian cargo database
Applied to: Canadian Cargo Found?
Action: The system evaluates the search results
Logic Flow:
IF Equipment ID matching has been performed against Canadian cargo database
AND The system evaluates the search results
THEN:
• The system should determine if one or more Canadian cargo records were found and proceed accordingly or skip cross-border coordination if no matches exist
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when canadian cargo records have been found for the equipment id.
Trigger Criteria:
Context: Canadian cargo records have been found for the equipment ID
Applied to: Multiple Canadian Records?
Action: The system evaluates the number of matching records
Logic Flow:
IF Canadian cargo records have been found for the equipment ID
AND The system evaluates the number of matching records
THEN:
• The system should process each Canadian record individually if multiple records exist, or proceed with single record processing if only one record is found
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when multiple canadian cargo records have been identified for the same equipment id.
Trigger Criteria:
Context: Multiple Canadian cargo records have been identified for the same equipment ID
Applied to: Process Each Canadian Record
Action: The system processes cross-border coordination
Logic Flow:
IF Multiple Canadian cargo records have been identified for the same equipment ID
AND The system processes cross-border coordination
THEN:
• The system should iterate through each Canadian record and apply validation and coordination logic to each record separately
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when canadian cargo records have been identified for processing.
Trigger Criteria:
Context: Canadian cargo records have been identified for processing
Applied to: Validate Canadian Record Status
Action: The system validates record eligibility for cross-border coordination
Logic Flow:
IF Canadian cargo records have been identified for processing
AND The system validates record eligibility for cross-border coordination
THEN:
• The system should verify that Canadian records are in valid status and exclude any records that are deleted or in unusable status
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when canadian cargo records are being validated for cross-border coordination.
Trigger Criteria:
Context: Canadian cargo records are being validated for cross-border coordination
Applied to: Exclude Deleted Records
Action: The system encounters records marked as deleted
Logic Flow:
IF Canadian cargo records are being validated for cross-border coordination
AND The system encounters records marked as deleted
THEN:
• The system should exclude deleted records from further processing and continue with remaining valid records
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when canadian cargo records are being validated after deleted record exclusion.
Trigger Criteria:
Context: Canadian cargo records are being validated after deleted record exclusion
Applied to: Exclude Unusable Records
Action: The system encounters records in unusable status
Logic Flow:
IF Canadian cargo records are being validated after deleted record exclusion
AND The system encounters records in unusable status
THEN:
• The system should exclude unusable records from cross-border coordination processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when canadian cargo record has passed deleted and unusable status checks.
Trigger Criteria:
Context: Canadian cargo record has passed deleted and unusable status checks
Applied to: Record Valid?
Action: The system performs final validity assessment
Logic Flow:
IF Canadian cargo record has passed deleted and unusable status checks
AND The system performs final validity assessment
THEN:
• The system should determine if the record is valid for cross-border coordination and proceed with coordination if valid, or skip to no match processing if invalid
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when valid canadian cargo record has been identified for cross-border coordination.
Trigger Criteria:
Context: A valid Canadian cargo record has been identified for cross-border coordination
Applied to: Create Cross-Border Log Message
Action: The system creates audit documentation
Logic Flow:
IF A valid Canadian cargo record has been identified for cross-border coordination
AND The system creates audit documentation
THEN:
• The system should generate a cross-border log message documenting the coordination between US and Canadian cargo records
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cross-border log message has been created for valid canadian cargo.
Trigger Criteria:
Context: Cross-border log message has been created for valid Canadian cargo
Applied to: Update Canadian CCN Status
Action: The system updates Canadian cargo status
Logic Flow:
IF Cross-border log message has been created for valid Canadian cargo
AND The system updates Canadian cargo status
THEN:
• The system should update the Canadian CCN status to reflect the cross-border coordination with US cargo release
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when canadian ccn status has been updated for cross-border coordination.
Trigger Criteria:
Context: Canadian CCN status has been updated for cross-border coordination
Applied to: Coordinate Release Status
Action: The system coordinates release status between systems
Logic Flow:
IF Canadian CCN status has been updated for cross-border coordination
AND The system coordinates release status between systems
THEN:
• The system should ensure release status consistency between US and Canadian cargo records for the same equipment
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when release status coordination has been completed between us and canadian systems.
Trigger Criteria:
Context: Release status coordination has been completed between US and Canadian systems
Applied to: Generate Audit Trail
Action: The system generates audit documentation
Logic Flow:
IF Release status coordination has been completed between US and Canadian systems
AND The system generates audit documentation
THEN:
• The system should create a complete audit trail documenting all cross-border coordination activities for compliance and tracking purposes
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when equipment id search in canadian cargo database yields no results or all records are invalid.
Trigger Criteria:
Context: Equipment ID search in Canadian cargo database yields no results or all records are invalid
Applied to: No Canadian Match Found
Action: The system determines no valid Canadian matches exist
Logic Flow:
IF Equipment ID search in Canadian cargo database yields no results or all records are invalid
AND The system determines no valid Canadian matches exist
THEN:
• The system should proceed to skip cross-border coordination and complete processing without Canadian cargo updates
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when us cargo is not in released status or no valid canadian cargo matches are found.
Trigger Criteria:
Context: US cargo is not in released status or no valid Canadian cargo matches are found
Applied to: Skip Cross-Border Coordination
Action: The system determines cross-border coordination is not applicable
Logic Flow:
IF US cargo is not in released status or no valid Canadian cargo matches are found
AND The system determines cross-border coordination is not applicable
THEN:
• The system should skip all cross-border coordination activities and proceed to completion
R-GCX016-cbl-03079 (+20)File: GCX016.cblBusiness Rule: Destination Index Re
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record has an existing destination index and a cargo status change has been detected.
Trigger Criteria:
Context: A cargo record has an existing destination index AND a cargo status change has been detected
Applied to: Clear Existing Destination Index
Action: The system processes the status change
Logic Flow:
IF A cargo record has an existing destination index AND a cargo status change has been detected
AND The system processes the status change
THEN:
• The existing destination index is cleared to prepare for re-establishment
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo status change has occurred.
Trigger Criteria:
Context: A cargo status change has occurred
Applied to: Re-establishment Required?
Action: The system evaluates the status change type (arrival, export, bond change, or release)
Logic Flow:
IF A cargo status change has occurred
AND The system evaluates the status change type (arrival, export, bond change, or release)
THEN:
• The system determines if destination index re-establishment is required based on business rules for each status change type
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when destination index re-establishment is required and cargo status information is available.
Trigger Criteria:
Context: Destination index re-establishment is required AND cargo status information is available
Applied to: Calculate New Index Parameters
Action: The system calculates new index parameters
Logic Flow:
IF Destination index re-establishment is required AND cargo status information is available
AND The system calculates new index parameters
THEN:
• New destination index parameters are calculated based on current cargo status, location, and bond information
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when new destination index parameters are being calculated and border arrival information is available.
Trigger Criteria:
Context: New destination index parameters are being calculated AND border arrival information is available
Applied to: Set Border Arrival Date
Action: The system sets the border arrival date
Logic Flow:
IF New destination index parameters are being calculated AND border arrival information is available
AND The system sets the border arrival date
THEN:
• The border arrival date is established based on current cargo arrival status and timing information
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when new destination index parameters are being calculated and export status information is available.
Trigger Criteria:
Context: New destination index parameters are being calculated AND export status information is available
Applied to: Set Export Status
Action: The system sets the export status
Logic Flow:
IF New destination index parameters are being calculated AND export status information is available
AND The system sets the export status
THEN:
• The export status is established based on current cargo export conditions and requirements
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when new destination index parameters are being calculated and bond information is available.
Trigger Criteria:
Context: New destination index parameters are being calculated AND bond information is available
Applied to: Update Bond Dates
Action: The system updates bond dates
Logic Flow:
IF New destination index parameters are being calculated AND bond information is available
AND The system updates bond dates
THEN:
• Bond dates are updated based on current bond status and regulatory requirements
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when all destination index parameters have been calculated and validated.
Trigger Criteria:
Context: All destination index parameters have been calculated AND validated
Applied to: Create New RT076 Destination Index
Action: The system creates the new RT076 destination index
Logic Flow:
IF All destination index parameters have been calculated AND validated
AND The system creates the new RT076 destination index
THEN:
• A new RT076 destination index record is created with the calculated parameters
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when new rt076 destination index creation has been attempted.
Trigger Criteria:
Context: A new RT076 destination index creation has been attempted
Applied to: Index Creation Successful?
Action: The system validates the creation result
Logic Flow:
IF A new RT076 destination index creation has been attempted
AND The system validates the creation result
THEN:
• The system confirms whether the destination index was successfully created orif an error occurred
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when new destination index has been successfully created.
Trigger Criteria:
Context: A new destination index has been successfully created
Applied to: Update Cargo Record with New Index
Action: The system updates the cargo record
Logic Flow:
IF A new destination index has been successfully created
AND The system updates the cargo record
THEN:
• The cargo record is updated to reference the new destination index
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when destination index has been re-established and cargo record has been updated.
Trigger Criteria:
Context: A destination index has been re-established AND cargo record has been updated
Applied to: Log Index Re-establishment
Action: The system logs the activity
Logic Flow:
IF A destination index has been re-established AND cargo record has been updated
AND The system logs the activity
THEN:
• The destination index re-establishment activity is logged with relevant cargo and index information
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when destination index creation has failed.
Trigger Criteria:
Context: Destination index creation has failed
Applied to: Handle Index Creation Error
Action: The system handles the creation error
Logic Flow:
IF Destination index creation has failed
AND The system handles the creation error
THEN:
• The error is processed appropriately and the system continues with error handling procedures
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo status change has occurred and destination index re-establishment is not required.
Trigger Criteria:
Context: A cargo status change has occurred AND destination index re-establishment is not required
Applied to: Skip Index Re-establishment
Action: The system evaluates re-establishment requirements
Logic Flow:
IF A cargo status change has occurred AND destination index re-establishment is not required
AND The system evaluates re-establishment requirements
THEN:
• The destination index re-establishment process is skipped and processing continues
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record exists with current destination index information.
Trigger Criteria:
Context: A cargo record exists with current destination index information
Applied to: Clear Existing Destination Index
Action: The cargo status has changed requiring destination index re-establishment
Logic Flow:
IF A cargo record exists with current destination index information
AND The cargo status has changed requiring destination index re-establishment
THEN:
• The system clears the existing destination index from the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record is being processed for arrival status and the cargo has arrival processing requirements.
Trigger Criteria:
Context: A cargo record is being processed for arrival status AND the cargo has arrival processing requirements
Applied to: Set Arrival Date at Destination
Action: The system processes arrival status for the cargo
Logic Flow:
IF A cargo record is being processed for arrival status AND the cargo has arrival processing requirements
AND The system processes arrival status for the cargo
THEN:
• The system sets the arrival date at destination based on the current processing date
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record is being processed for export status and the cargo requires export processing.
Trigger Criteria:
Context: A cargo record is being processed for export status AND the cargo requires export processing
Applied to: Set Export Status Flag
Action: The system processes export status for the cargo
Logic Flow:
IF A cargo record is being processed for export status AND the cargo requires export processing
AND The system processes export status for the cargo
THEN:
• The system sets the export status flag to indicate export processing is required
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record has bond processing requirements and the bond information has changed.
Trigger Criteria:
Context: A cargo record has bond processing requirements AND the bond information has changed
Applied to: Update Bond Start Date
Action: The system processes bond changes for the cargo
Logic Flow:
IF A cargo record has bond processing requirements AND the bond information has changed
AND The system processes bond changes for the cargo
THEN:
• The system updates the bond start date based on the new bond processing requirements
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record requires destination index re-establishment and the index parameters have been calculated.
Trigger Criteria:
Context: A cargo record requires destination index re-establishment AND the index parameters have been calculated
Applied to: Re-establish RT076 Destination Index
Action: The system processes the destination index re-establishment
Logic Flow:
IF A cargo record requires destination index re-establishment AND the index parameters have been calculated
AND The system processes the destination index re-establishment
THEN:
• The system calls B585-SET-RT076-DEST-INDEX to re-establish the destination index with updated parameters
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record has been processed for status changes and destination index has been re-established.
Trigger Criteria:
Context: A cargo record has been processed for status changes AND destination index has been re-established
Applied to: Cross-Border Coordination Needed?
Action: The system evaluates cross-border coordination requirements
Logic Flow:
IF A cargo record has been processed for status changes AND destination index has been re-established
AND The system evaluates cross-border coordination requirements
THEN:
• The system determines if Canadian manifest coordination is needed based on cargo release status and processing type
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cross-border coordination is required for a cargo record and the cargo has been released.
Trigger Criteria:
Context: Cross-border coordination is required for a cargo record AND the cargo has been released
Applied to: Find Matching Canadian Manifests
Action: The system searches for Canadian manifest coordination
Logic Flow:
IF Cross-border coordination is required for a cargo record AND the cargo has been released
AND The system searches for Canadian manifest coordination
THEN:
• The system calls B583-PROCESS-CDN-MFST to find and process matching Canadian manifest records by waybill
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when matching canadian manifest records have been found and cross-border coordination is active.
Trigger Criteria:
Context: Matching Canadian manifest records have been found AND cross-border coordination is active
Applied to: Generate Canadian Log Messages
Action: The system processes Canadian manifest coordination
Logic Flow:
IF Matching Canadian manifest records have been found AND cross-border coordination is active
AND The system processes Canadian manifest coordination
THEN:
• The system generates log messages to GCX105 system with cargo release information for Canadian coordination
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when destination index has been re-established and any required cross-border coordination has been completed.
Trigger Criteria:
Context: Destination index has been re-established AND any required cross-border coordination has been completed
Applied to: Update Cargo Record with New Index
Action: The system finalizes the cargo record update
Logic Flow:
IF Destination index has been re-established AND any required cross-border coordination has been completed
AND The system finalizes the cargo record update
THEN:
• The system updates the cargo record with the new destination index information and any coordination results
R-GCX016-cbl-03091 (+13)File: GCX016.cblBusiness Rule: Status Array Counterpart Logic
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code is being processed.
Trigger Criteria:
Context: A disposition code is being processed
Applied to: Get Counterpart Code from DC Table
Action: The system looks up the disposition code in the DC table
Logic Flow:
IF A disposition code is being processed
AND The system looks up the disposition code in the DC table
THEN:
• The counterpart code is retrieved from the DC table if it exists
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when counterpart code lookup has been performed.
Trigger Criteria:
Context: A counterpart code lookup has been performed
Applied to: Counterpart Code Exists?
Action: The system checks if a counterpart code was found
Logic Flow:
IF A counterpart code lookup has been performed
AND The system checks if a counterpart code was found
THEN:
• Processing continues with counterpart removal if code exists, otherwise no counterpart processing is performed
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when counterpart code exists and status array contains disposition codes.
Trigger Criteria:
Context: A counterpart code exists and status array contains disposition codes
Applied to: Search Status Array for Matching Codes
Action: The system iterates through each element in the status array
Logic Flow:
IF A counterpart code exists and status array contains disposition codes
AND The system iterates through each element in the status array
THEN:
• Each status array element is evaluated against the counterpart code for potential matching
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when status array element is being evaluated against a counterpart code.
Trigger Criteria:
Context: A status array element is being evaluated against a counterpart code
Applied to: Match Found?
Action: The system compares the disposition codes
Logic Flow:
IF A status array element is being evaluated against a counterpart code
AND The system compares the disposition codes
THEN:
• A match is identified if the codes are identical, triggering further matching criteria validation
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when potential counterpart code match has been found in the status array.
Trigger Criteria:
Context: A potential counterpart code match has been found in the status array
Applied to: Check Matching Criteria
Action: The system evaluates additional matching criteria including status info, entry number, quantity, and special code patterns
Logic Flow:
IF A potential counterpart code match has been found in the status array
AND The system evaluates additional matching criteria including status info, entry number, quantity, and special code patterns
THEN:
• The counterpart code is marked for removal only if all applicable matching criteria are satisfied
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when counterpart code match candidate exists in the status array.
Trigger Criteria:
Context: A counterpart code match candidate exists in the status array
Applied to: Status Info Match?
Action: The system compares status information codes between the counterpart and array element
Logic Flow:
IF A counterpart code match candidate exists in the status array
AND The system compares status information codes between the counterpart and array element
THEN:
• The match is confirmed if status info codes are identical, otherwise additional criteria are evaluated
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when status info codes do not match for a counterpart code candidate.
Trigger Criteria:
Context: Status info codes do not match for a counterpart code candidate
Applied to: Entry Number Match?
Action: The system compares entry numbers between the counterpart and array element
Logic Flow:
IF Status info codes do not match for a counterpart code candidate
AND The system compares entry numbers between the counterpart and array element
THEN:
• The match is confirmed if entry numbers are identical, otherwise quantity matching is evaluated
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when entry numbers do not match for a counterpart code candidate.
Trigger Criteria:
Context: Entry numbers do not match for a counterpart code candidate
Applied to: Quantity Match?
Action: The system compares quantities between the counterpart and array element
Logic Flow:
IF Entry numbers do not match for a counterpart code candidate
AND The system compares quantities between the counterpart and array element
THEN:
• The match is confirmed if quantities are identical, otherwise special code pattern matching is evaluated
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when standard matching criteria (status info, entry number, quantity) do not match for a counterpart code candidate.
Trigger Criteria:
Context: Standard matching criteria (status info, entry number, quantity) do not match for a counterpart code candidate
Applied to: Special Code Pattern Match?
Action: The system evaluates special code patterns and business-specific matching rules
Logic Flow:
IF Standard matching criteria (status info, entry number, quantity) do not match for a counterpart code candidate
AND The system evaluates special code patterns and business-specific matching rules
THEN:
• The match is confirmed if special pattern criteria are satisfied, otherwise the element is not removed
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when counterpart code match has been confirmed based on matching criteria.
Trigger Criteria:
Context: A counterpart code match has been confirmed based on matching criteria
Applied to: Remove Counterpart Code from Array
Action: The system processes the removal of the counterpart code
Logic Flow:
IF A counterpart code match has been confirmed based on matching criteria
AND The system processes the removal of the counterpart code
THEN:
• The matched element is marked for removal from the status array
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when one or more counterpart codes have been removed from the status array.
Trigger Criteria:
Context: One or more counterpart codes have been removed from the status array
Applied to: Compact Array Elements
Action: The system compacts the array structure
Logic Flow:
IF One or more counterpart codes have been removed from the status array
AND The system compacts the array structure
THEN:
• All remaining elements are shifted up to eliminate empty positions and maintain array integrity
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when status array has been compacted after counterpart code removal.
Trigger Criteria:
Context: The status array has been compacted after counterpart code removal
Applied to: Update Array Count
Action: The system updates the array metadata
Logic Flow:
IF The status array has been compacted after counterpart code removal
AND The system updates the array metadata
THEN:
• The total element count is decremented to reflect the number of removed counterpart codes
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when array element has been processed for counterpart matching.
Trigger Criteria:
Context: An array element has been processed for counterpart matching
Applied to: Continue to Next Array Element
Action: The system moves to the next element in the status array
Logic Flow:
IF An array element has been processed for counterpart matching
AND The system moves to the next element in the status array
THEN:
• Processing continues with the next array element until all elements have been evaluated
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code has been looked up in the dc table.
Trigger Criteria:
Context: A disposition code has been looked up in the DC table
Applied to: No Counterpart Processing Needed
Action: No counterpart code exists for the disposition code
Logic Flow:
IF A disposition code has been looked up in the DC table
AND No counterpart code exists for the disposition code
THEN:
• Counterpart processing is bypassed and the system proceeds to complete processing
R-GCX016-cbl-03105 (+28)File: GCX016.cblBusiness Rule: FDA Hold Status Processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record exists in the system.
Trigger Criteria:
Context: A cargo record exists in the system
Applied to: FDA Hold Status Processing Start
Action: FDA hold status processing is initiated
Logic Flow:
IF A cargo record exists in the system
AND FDA hold status processing is initiated
THEN:
• The system begins evaluation of FDA hold requirements
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when fda hold status processing has been initiated.
Trigger Criteria:
Context: FDA hold status processing has been initiated
Applied to: Cargo Status Analysis Complete?
Action: The system checks if cargo status analysis is complete
Logic Flow:
IF FDA hold status processing has been initiated
AND The system checks if cargo status analysis is complete
THEN:
• The system either proceeds with FDA hold conditions check or continues with standard processing
• If analysis is complete, proceed to FDA hold conditions check, otherwise continue with other status processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo status analysis is complete.
Trigger Criteria:
Context: Cargo status analysis is complete
Applied to: Check for FDA Hold Conditions
Action: The system checks for FDA hold conditions
Logic Flow:
IF Cargo status analysis is complete
AND The system checks for FDA hold conditions
THEN:
• The system identifies whether FDA regulatory hold requirements exist for the cargo
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo status analysis is complete.
Trigger Criteria:
Context: Cargo status analysis is complete
Applied to: Check FDA Hold Conditions
Action: The system evaluates FDA hold conditions
Logic Flow:
IF Cargo status analysis is complete
AND The system evaluates FDA hold conditions
THEN:
• The system determines if FDA hold is required at destination
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when fda hold conditions have been checked.
Trigger Criteria:
Context: FDA hold conditions have been checked
Applied to: FDA Hold Required at Destination?
Action: The system evaluates if FDA hold is required at destination
Logic Flow:
IF FDA hold conditions have been checked
AND The system evaluates if FDA hold is required at destination
THEN:
• The system either sets FDA hold status code or continues with standard processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when fda hold is required at destination.
Trigger Criteria:
Context: FDA hold is required at destination
Applied to: Set FDA Hold Status Code
Action: The system sets FDA hold status code
Logic Flow:
IF FDA hold is required at destination
AND The system sets FDA hold status code
THEN:
• The cargo is assigned the FDA-specific hold status code
• The appropriate FDA-specific status code is assigned to the cargo
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when fda hold status code has been set.
Trigger Criteria:
Context: FDA hold status code has been set
Applied to: Update Cargo Status to FDA Hold
Action: The system updates cargo status to FDA hold
Logic Flow:
IF FDA hold status code has been set
AND The system updates cargo status to FDA hold
THEN:
• The cargo status is changed to FDA hold status
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when fda hold status code has been set.
Trigger Criteria:
Context: FDA hold status code has been set
Applied to: Set Destination Location Flag
Action: The system sets destination location flag
Logic Flow:
IF FDA hold status code has been set
AND The system sets destination location flag
THEN:
• The destination location flag is updated to reflect FDA hold location
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo status has been updated to fda hold.
Trigger Criteria:
Context: Cargo status has been updated to FDA hold
Applied to: Set Destination Hold Location
Action: The system sets destination hold location
Logic Flow:
IF Cargo status has been updated to FDA hold
AND The system sets destination hold location
THEN:
• The hold location is designated as the destination location
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when destination hold location has been set.
Trigger Criteria:
Context: Destination hold location has been set
Applied to: Apply FDA-Specific Status Description
Action: The system applies FDA-specific status description
Logic Flow:
IF Destination hold location has been set
AND The system applies FDA-specific status description
THEN:
• The cargo record contains FDA-specific status description indicating regulatory hold
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when fda-specific status description has been applied.
Trigger Criteria:
Context: FDA-specific status description has been applied
Applied to: Preserve Current Release Quantities
Action: The system preserves current release quantities
Logic Flow:
IF FDA-specific status description has been applied
AND The system preserves current release quantities
THEN:
• Existing release quantities remain unchanged during FDA hold application
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when current release quantities have been preserved.
Trigger Criteria:
Context: Current release quantities have been preserved
Applied to: Update Status Array with FDA Code
Action: The system updates status array with FDA code
Logic Flow:
IF Current release quantities have been preserved
AND The system updates status array with FDA code
THEN:
• The status array contains the FDA hold code entry
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when status array has been updated with fda code.
Trigger Criteria:
Context: Status array has been updated with FDA code
Applied to: Set Hold Location as Destination
Action: The system sets hold location as destination
Logic Flow:
IF Status array has been updated with FDA code
AND The system sets hold location as destination
THEN:
• The hold location field is set to destination location
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when hold location has been set as destination.
Trigger Criteria:
Context: Hold location has been set as destination
Applied to: Generate FDA Hold Notification
Action: The system generates FDA hold notification
Logic Flow:
IF Hold location has been set as destination
AND The system generates FDA hold notification
THEN:
• A notification is created to inform stakeholders about the FDA hold
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when hold location has been set as destination.
Trigger Criteria:
Context: Hold location has been set as destination
Applied to: Update Cargo Status Array
Action: The system updates cargo status array
Logic Flow:
IF Hold location has been set as destination
AND The system updates cargo status array
THEN:
• The cargo status array is updated with FDA hold status information
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when fda hold notification has been generated.
Trigger Criteria:
Context: FDA hold notification has been generated
Applied to: Update Cargo Record with FDA Status
Action: The system updates cargo record with FDA status
Logic Flow:
IF FDA hold notification has been generated
AND The system updates cargo record with FDA status
THEN:
• The cargo record in the database reflects FDA hold status and related information
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record has been updated with fda status or standard processing has been completed.
Trigger Criteria:
Context: Cargo record has been updated with FDA status OR standard processing has been completed
Applied to: FDA Hold Processing Complete
Action: FDA hold processing reaches completion
Logic Flow:
IF Cargo record has been updated with FDA status OR standard processing has been completed
AND FDA hold processing reaches completion
THEN:
• All FDA hold processing activities are finalized and the system is ready for next operations
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo status analysis is not complete or fda hold is not required at destination.
Trigger Criteria:
Context: Cargo status analysis is not complete OR FDA hold is not required at destination
Applied to: Continue with Standard Processing
Action: The system continues with standard processing
Logic Flow:
IF Cargo status analysis is not complete OR FDA hold is not required at destination
AND The system continues with standard processing
THEN:
• Normal cargo processing workflow proceeds without FDA hold restrictions
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when fda hold conditions have been evaluated.
Trigger Criteria:
Context: FDA hold conditions have been evaluated
Applied to: FDA Hold Required at Destination?
Action: The system determines if FDA hold is required at destination
Logic Flow:
IF FDA hold conditions have been evaluated
AND The system determines if FDA hold is required at destination
THEN:
• If FDA hold is required, set FDA hold status code, otherwise continue with other status processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when destination location flag has been set.
Trigger Criteria:
Context: Destination location flag has been set
Applied to: Update Status Description
Action: The system updates status description
Logic Flow:
IF Destination location flag has been set
AND The system updates status description
THEN:
• The status description is updated with FDA hold information
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when status description has been updated.
Trigger Criteria:
Context: Status description has been updated
Applied to: Status Code Validation
Action: The system validates the status code
Logic Flow:
IF Status description has been updated
AND The system validates the status code
THEN:
• If status code is valid, apply FDA-specific status code, otherwise continue with other status processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when status code validation is successful.
Trigger Criteria:
Context: Status code validation is successful
Applied to: Apply FDA-Specific Status Code
Action: The system applies FDA-specific status code
Logic Flow:
IF Status code validation is successful
AND The system applies FDA-specific status code
THEN:
• The FDA-specific status code is applied to the cargo
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when fda-specific status code has been applied.
Trigger Criteria:
Context: FDA-specific status code has been applied
Applied to: Set Hold Location as Destination
Action: The system sets hold location as destination
Logic Flow:
IF FDA-specific status code has been applied
AND The system sets hold location as destination
THEN:
• The hold location is designated as destination
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo status array has been updated.
Trigger Criteria:
Context: Cargo status array has been updated
Applied to: Log FDA Hold Action
Action: The system logs FDA hold action
Logic Flow:
IF Cargo status array has been updated
AND The system logs FDA hold action
THEN:
• The FDA hold action is recorded in the system logs
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when fda hold action has been logged.
Trigger Criteria:
Context: FDA hold action has been logged
Applied to: FDA Hold Status Set Complete
Action: The system completes FDA hold status processing
Logic Flow:
IF FDA hold action has been logged
AND The system completes FDA hold status processing
THEN:
• FDA hold status processing is marked as complete
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when fda hold status processing is complete or not required.
Trigger Criteria:
Context: FDA hold status processing is complete or not required
Applied to: Continue with Other Status Processing
Action: The system continues with other status processing
Logic Flow:
IF FDA hold status processing is complete or not required
AND The system continues with other status processing
THEN:
• Other cargo status processing continues normally
R-GCX016-cbl-03120 (+8)File: GCX016.cblBusiness Rule: Proceed Status with Border Date Processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record has completed status analysis and status array contains various status flags.
Trigger Criteria:
Context: A cargo record has completed status analysis and status array contains various status flags
Applied to: Proceed Flag Set in Status Array?
Action: The system checks the proceed flag in the S09A status array
Logic Flow:
IF A cargo record has completed status analysis and status array contains various status flags
AND The system checks the proceed flag in the S09A status array
THEN:
• If proceed flag is set to true, continue with proceed status processing, otherwise skip proceed processing and continue with next status processing step
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when proceed flag is set in status array and cargo record exists with current status information.
Trigger Criteria:
Context: Proceed flag is set in status array and cargo record exists with current status information
Applied to: Cargo Currently Held?
Action: The system evaluates the current cargo status from GCCC-CARGO-ROOT record
Logic Flow:
IF Proceed flag is set in status array and cargo record exists with current status information
AND The system evaluates the current cargo status from GCCC-CARGO-ROOT record
THEN:
• If cargo is currently held (has any hold status flags active), proceed with setting proceed status flag, otherwise skip proceed processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo is currently held and proceed flag is set in status array.
Trigger Criteria:
Context: Cargo is currently held and proceed flag is set in status array
Applied to: Set Proceed Status Flag
Action: The system processes proceed status assignment
Logic Flow:
IF Cargo is currently held and proceed flag is set in status array
AND The system processes proceed status assignment
THEN:
• Set the proceed status flag to active in the cargo processing variables
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when proceed status flag has been set and border arrival date update is required.
Trigger Criteria:
Context: Proceed status flag has been set and border arrival date update is required
Applied to: Border Date Available?
Action: The system checks for availability of border date in the message or cargo data
Logic Flow:
IF Proceed status flag has been set and border arrival date update is required
AND The system checks for availability of border date in the message or cargo data
THEN:
• If border date is available and valid, use the provided border date, otherwise use current system date as border arrival date
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when proceed status processing is active and no border date is available in message data.
Trigger Criteria:
Context: Proceed status processing is active and no border date is available in message data
Applied to: Use Current System Date
Action: The system needs to update border arrival date
Logic Flow:
IF Proceed status processing is active and no border date is available in message data
AND The system needs to update border arrival date
THEN:
• Assign current system date as the border arrival date for the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when proceed status processing is active and border date is available in message data.
Trigger Criteria:
Context: Proceed status processing is active and border date is available in message data
Applied to: Use Provided Border Date
Action: The system updates border arrival date
Logic Flow:
IF Proceed status processing is active and border date is available in message data
AND The system updates border arrival date
THEN:
• Use the provided border date from the message as the border arrival date for the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when border arrival date has been updated and proceed status is being applied.
Trigger Criteria:
Context: Border arrival date has been updated and proceed status is being applied
Applied to: Clear Hold Status Flags
Action: The system processes hold status flag clearing
Logic Flow:
IF Border arrival date has been updated and proceed status is being applied
AND The system processes hold status flag clearing
THEN:
• Clear all active hold status flags in the cargo status array and processing variables
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when hold status flags have been cleared and proceed status flag is set with updated border arrival date.
Trigger Criteria:
Context: Hold status flags have been cleared and proceed status flag is set with updated border arrival date
Applied to: Update Cargo Record Status
Action: The system updates the cargo record status
Logic Flow:
IF Hold status flags have been cleared and proceed status flag is set with updated border arrival date
AND The system updates the cargo record status
THEN:
• Update GCCC-CARGO-ROOT record with proceed status, cleared hold flags, and updated border arrival date
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record status has been updated with proceed status and cleared hold flags.
Trigger Criteria:
Context: Cargo record status has been updated with proceed status and cleared hold flags
Applied to: Log Proceed Status Change
Action: The system completes proceed status processing
Logic Flow:
IF Cargo record status has been updated with proceed status and cleared hold flags
AND The system completes proceed status processing
THEN:
• Log the proceed status change with cargo identifier, previous status, new status, and timestamp for audit trail
R-GCX016-cbl-03129 (+8)File: GCX016.cblBusiness Rule: Export Status with Index Clearing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record has completed status analysis.
Trigger Criteria:
Context: A cargo record has completed status analysis
Applied to: Export Flag Set?
Action: The system checks the export flag status
Logic Flow:
IF A cargo record has completed status analysis
AND The system checks the export flag status
THEN:
• If export flag is set, proceed to cargo status verification; otherwise skip export processing and continue to next step
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo has been flagged for export processing.
Trigger Criteria:
Context: Cargo has been flagged for export processing
Applied to: Check Current Cargo Status
Action: The system evaluates the current cargo status
Logic Flow:
IF Cargo has been flagged for export processing
AND The system evaluates the current cargo status
THEN:
• The system determines whether cargo is currently at destination location for proper export handling
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo status has been checked and export flag is active.
Trigger Criteria:
Context: Cargo status has been checked and export flag is active
Applied to: Cargo Currently at Destination?
Action: The system evaluates cargo location against destination
Logic Flow:
IF Cargo status has been checked and export flag is active
AND The system evaluates cargo location against destination
THEN:
• If cargo is at destination, proceed with export status setting; otherwise skip export processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo is confirmed to be at destination location and flagged for export.
Trigger Criteria:
Context: Cargo is confirmed to be at destination location and flagged for export
Applied to: Set Export Status Flag
Action: The system processes export status assignment
Logic Flow:
IF Cargo is confirmed to be at destination location and flagged for export
AND The system processes export status assignment
THEN:
• The export status flag is set for the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo has been assigned export status flag.
Trigger Criteria:
Context: Cargo has been assigned export status flag
Applied to: Clear Destination Index RT076
Action: The system processes destination index cleanup
Logic Flow:
IF Cargo has been assigned export status flag
AND The system processes destination index cleanup
THEN:
• The RT076 destination index is cleared from the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo export status has been set and destination index cleared.
Trigger Criteria:
Context: Cargo export status has been set and destination index cleared
Applied to: Update Cargo Export Date
Action: The system updates cargo export information
Logic Flow:
IF Cargo export status has been set and destination index cleared
AND The system updates cargo export information
THEN:
• The current date is assigned as the cargo export date
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo export date has been updated.
Trigger Criteria:
Context: Cargo export date has been updated
Applied to: Remove Destination Location Code
Action: The system processes location code cleanup
Logic Flow:
IF Cargo export date has been updated
AND The system processes location code cleanup
THEN:
• The destination location code is removed from the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when destination location code has been removed from cargo.
Trigger Criteria:
Context: Destination location code has been removed from cargo
Applied to: Set Export Processing Complete Flag
Action: The system finalizes export processing
Logic Flow:
IF Destination location code has been removed from cargo
AND The system finalizes export processing
THEN:
• The export processing complete flag is set for the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when export processing complete flag has been set.
Trigger Criteria:
Context: Export processing complete flag has been set
Applied to: Log Export Status Change
Action: The system performs audit logging
Logic Flow:
IF Export processing complete flag has been set
AND The system performs audit logging
THEN:
• An export status change entry is logged with cargo details and timestamp
R-GCX016-cbl-03138 (+13)File: GCX016.cblBusiness Rule: Arrival Cancellation Status Processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when arrival cancellation request is received for a cargo record.
Trigger Criteria:
Context: An arrival cancellation request is received for a cargo record
Applied to: Check Current Cargo Status
Action: The system checks the current cargo status
Logic Flow:
IF An arrival cancellation request is received for a cargo record
AND The system checks the current cargo status
THEN:
• The system verifies the cargo record exists and has a valid status for cancellation processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record with current status information.
Trigger Criteria:
Context: A cargo record with current status information
Applied to: Validate Arrival Status Exists
Action: The system validates arrival status exists for cancellation
Logic Flow:
IF A cargo record with current status information
AND The system validates arrival status exists for cancellation
THEN:
• The system confirms arrival status is present OR returns invalid arrival status error if no arrival status exists
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record requiring arrival cancellation with arrival status validated.
Trigger Criteria:
Context: A cargo record requiring arrival cancellation with arrival status validated
Applied to: Previous Bond Date Available?
Action: The system checks for previous bond date availability
Logic Flow:
IF A cargo record requiring arrival cancellation with arrival status validated
AND The system checks for previous bond date availability
THEN:
• The system returns YES if previous bond start date exists OR returns NO if no previous bond date is available
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record with confirmed previous bond date availability.
Trigger Criteria:
Context: A cargo record with confirmed previous bond date availability
Applied to: Retrieve Previous Bond Start Date
Action: The system retrieves previous bond start date from bond date history
Logic Flow:
IF A cargo record with confirmed previous bond date availability
AND The system retrieves previous bond start date from bond date history
THEN:
• The system successfully retrieves and loads the previous bond start date for restoration
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record with validated arrival status and retrieved previous bond date.
Trigger Criteria:
Context: A cargo record with validated arrival status and retrieved previous bond date
Applied to: Clear Current Arrival Status
Action: The system clears current arrival status
Logic Flow:
IF A cargo record with validated arrival status and retrieved previous bond date
AND The system clears current arrival status
THEN:
• The system removes arrival status flags and arrival-related information from the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record with cleared arrival status and retrieved previous bond start date.
Trigger Criteria:
Context: A cargo record with cleared arrival status and retrieved previous bond start date
Applied to: Restore Previous Bond Date
Action: The system restores previous bond date
Logic Flow:
IF A cargo record with cleared arrival status and retrieved previous bond start date
AND The system restores previous bond date
THEN:
• The system updates the cargo record with the previous bond start date information
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record with restored previous bond date.
Trigger Criteria:
Context: A cargo record with restored previous bond date
Applied to: Update Cargo Record Status
Action: The system updates cargo record status
Logic Flow:
IF A cargo record with restored previous bond date
AND The system updates cargo record status
THEN:
• The system saves the updated cargo record with cancelled arrival status and restored bond information
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record with updated status after arrival cancellation.
Trigger Criteria:
Context: A cargo record with updated status after arrival cancellation
Applied to: Clear Destination Index if Required
Action: The system evaluates if destination index should be cleared
Logic Flow:
IF A cargo record with updated status after arrival cancellation
AND The system evaluates if destination index should be cleared
THEN:
• The system clears destination index if cargo status requires it OR leaves destination index unchanged if not required
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record with processed arrival cancellation and updated status.
Trigger Criteria:
Context: A cargo record with processed arrival cancellation and updated status
Applied to: Generate Arrival Cancellation Message
Action: The system generates arrival cancellation message
Logic Flow:
IF A cargo record with processed arrival cancellation and updated status
AND The system generates arrival cancellation message
THEN:
• The system creates a formatted arrival cancellation message with cargo details and cancellation information
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record with generated arrival cancellation message.
Trigger Criteria:
Context: A cargo record with generated arrival cancellation message
Applied to: Update Status Array with Cancellation Code
Action: The system updates status array with cancellation code
Logic Flow:
IF A cargo record with generated arrival cancellation message
AND The system updates status array with cancellation code
THEN:
• The system adds the arrival cancellation disposition code to the cargo status array
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record with updated status array containing cancellation code.
Trigger Criteria:
Context: A cargo record with updated status array containing cancellation code
Applied to: Log Cancellation Transaction
Action: The system logs cancellation transaction
Logic Flow:
IF A cargo record with updated status array containing cancellation code
AND The system logs cancellation transaction
THEN:
• The system creates audit log entry with cancellation details, timestamps, and cargo information
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record with logged cancellation transaction.
Trigger Criteria:
Context: A cargo record with logged cancellation transaction
Applied to: Send Notification to Customs
Action: The system sends notification to customs
Logic Flow:
IF A cargo record with logged cancellation transaction
AND The system sends notification to customs
THEN:
• The system transmits arrival cancellation notification to appropriate customs systems and authorities
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record requiring arrival cancellation.
Trigger Criteria:
Context: A cargo record requiring arrival cancellation
Applied to: No Previous Bond Date
Action: No previous bond date is available for restoration
Logic Flow:
IF A cargo record requiring arrival cancellation
AND No previous bond date is available for restoration
THEN:
• The system generates error condition indicating no previous bond date available and completes cancellation process without bond date restoration
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record with arrival cancellation request.
Trigger Criteria:
Context: A cargo record with arrival cancellation request
Applied to: Invalid Arrival Status
Action: The cargo does not have valid arrival status for cancellation
Logic Flow:
IF A cargo record with arrival cancellation request
AND The cargo does not have valid arrival status for cancellation
THEN:
• The system generates error condition indicating invalid arrival status and completes cancellation process without status changes
R-GCX016-cbl-03152 (+11)File: GCX016.cblBusiness Rule: Export Cancellation Status Processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when export cancellation request is received for cargo.
Trigger Criteria:
Context: An export cancellation request is received for cargo
Applied to: Validate Export Status Exists
Action: The system checks the current cargo status for export indicators
Logic Flow:
IF An export cancellation request is received for cargo
AND The system checks the current cargo status for export indicators
THEN:
• The system validates that export status exists and is valid for cancellation processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo has a valid export status that needs to be cancelled.
Trigger Criteria:
Context: Cargo has a valid export status that needs to be cancelled
Applied to: Clear Export Status Flag
Action: Export cancellation processing begins
Logic Flow:
IF Cargo has a valid export status that needs to be cancelled
AND Export cancellation processing begins
THEN:
• The system clears the export status flag from the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when export status has been cleared from cargo.
Trigger Criteria:
Context: Export status has been cleared from cargo
Applied to: Restore Previous Bond Date
Action: The system processes bond date restoration
Logic Flow:
IF Export status has been cleared from cargo
AND The system processes bond date restoration
THEN:
• The previous bond date is restored to re-establish the cargo's bond timeline
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when bond date has been restored for cargo.
Trigger Criteria:
Context: Bond date has been restored for cargo
Applied to: Calculate Cargo Age from Bond Start Date
Action: The system calculates cargo age from the bond start date to current date
Logic Flow:
IF Bond date has been restored for cargo
AND The system calculates cargo age from the bond start date to current date
THEN:
• A valid age calculation is produced for destination index determination
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo age has been calculated from bond start date.
Trigger Criteria:
Context: Cargo age has been calculated from bond start date
Applied to: Age Calculation Valid?
Action: The system validates the age calculation result
Logic Flow:
IF Cargo age has been calculated from bond start date
AND The system validates the age calculation result
THEN:
• The age calculation is confirmed as valid and within business rules or flagged as invalid
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo age calculation is valid.
Trigger Criteria:
Context: Cargo age calculation is valid
Applied to: Re-establish Destination Index RT076
Action: The system processes destination index re-establishment
Logic Flow:
IF Cargo age calculation is valid
AND The system processes destination index re-establishment
THEN:
• The RT076 destination index is re-established with the calculated age information
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when destination index rt076 is being re-established.
Trigger Criteria:
Context: Destination index RT076 is being re-established
Applied to: Set Destination Index with Age
Action: The system sets the destination index with calculated age
Logic Flow:
IF Destination index RT076 is being re-established
AND The system sets the destination index with calculated age
THEN:
• The destination index is updated with the age-based information for proper cargo tracking
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when destination index has been set with age information.
Trigger Criteria:
Context: Destination index has been set with age information
Applied to: Update Cargo Record Status
Action: The system updates the cargo record
Logic Flow:
IF Destination index has been set with age information
AND The system updates the cargo record
THEN:
• The cargo status is updated to reflect the export cancellation and restored bond status
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record status has been updated for export cancellation.
Trigger Criteria:
Context: Cargo record status has been updated for export cancellation
Applied to: Generate Export Cancellation Message
Action: The system generates export cancellation message
Logic Flow:
IF Cargo record status has been updated for export cancellation
AND The system generates export cancellation message
THEN:
• A notification message is created documenting the export cancellation and status change
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when export cancellation message has been generated.
Trigger Criteria:
Context: Export cancellation message has been generated
Applied to: Log Status Change for Audit
Action: The system logs the status change
Logic Flow:
IF Export cancellation message has been generated
AND The system logs the status change
THEN:
• An audit trail entry is created documenting the export cancellation, previous status, and new status
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when export cancellation request is received.
Trigger Criteria:
Context: An export cancellation request is received
Applied to: Invalid Export Status
Action: The cargo does not have a valid export status for cancellation
Logic Flow:
IF An export cancellation request is received
AND The cargo does not have a valid export status for cancellation
THEN:
• The system generates an error indicating invalid export status and terminates cancellation processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when bond date has been restored for export cancellation.
Trigger Criteria:
Context: Bond date has been restored for export cancellation
Applied to: Age Calculation Failed
Action: The cargo age calculation from bond start date fails or produces invalid results
Logic Flow:
IF Bond date has been restored for export cancellation
AND The cargo age calculation from bond start date fails or produces invalid results
THEN:
• The system generates an error indicating age calculation failure and terminates destination index processing
R-GCX016-cbl-03164 (+9)File: GCX016.cblBusiness Rule: Status Array Element Removal Logic
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when status array contains multiple elements and a specific element needs to be removed.
Trigger Criteria:
Context: A status array contains multiple elements and a specific element needs to be removed
Applied to: Element Found in Array?
Action: The system searches through the array to find matching elements
Logic Flow:
IF A status array contains multiple elements and a specific element needs to be removed
AND The system searches through the array to find matching elements
THEN:
• The system identifies whether the target element exists in the array and marks its position for removal
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when element has been found in the status array.
Trigger Criteria:
Context: An element has been found in the status array
Applied to: Identify Element Position
Action: The system needs to track the element's location
Logic Flow:
IF An element has been found in the status array
AND The system needs to track the element's location
THEN:
• The system records the array index position of the found element
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when element position has been identified in the status array.
Trigger Criteria:
Context: An element position has been identified in the status array
Applied to: Mark Element for Removal
Action: The element needs to be removed from the array
Logic Flow:
IF An element position has been identified in the status array
AND The element needs to be removed from the array
THEN:
• The system marks the element for removal while preserving array structure temporarily
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when system is processing elements in the status array for removal.
Trigger Criteria:
Context: The system is processing elements in the status array for removal
Applied to: More Elements to Check?
Action: An element has been processed
Logic Flow:
IF The system is processing elements in the status array for removal
AND An element has been processed
THEN:
• The system checks if there are more elements remaining to be evaluated and continues processing if elements remain
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when elements have been marked for removal from the status array.
Trigger Criteria:
Context: Elements have been marked for removal from the status array
Applied to: Shift Remaining Elements Up
Action: Array compaction is required
Logic Flow:
IF Elements have been marked for removal from the status array
AND Array compaction is required
THEN:
• The system shifts all remaining elements upward to eliminate gaps and maintain array continuity
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when elements have been removed from the status array.
Trigger Criteria:
Context: Elements have been removed from the status array
Applied to: Decrement Array Counter
Action: Array counter needs to be updated
Logic Flow:
IF Elements have been removed from the status array
AND Array counter needs to be updated
THEN:
• The system decrements the array counter by the number of elements removed
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when array elements have been shifted and counter updated.
Trigger Criteria:
Context: Array elements have been shifted and counter updated
Applied to: Clear Empty Array Positions
Action: Empty positions exist at the end of the array
Logic Flow:
IF Array elements have been shifted and counter updated
AND Empty positions exist at the end of the array
THEN:
• The system clears all unused array positions to initialize them to empty state
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when array compaction operations are in progress.
Trigger Criteria:
Context: Array compaction operations are in progress
Applied to: Array Compaction Complete?
Action: The system needs to verify completion
Logic Flow:
IF Array compaction operations are in progress
AND The system needs to verify completion
THEN:
• The system checks if all elements have been properly shifted and all empty positions cleared
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when array compaction has been completed successfully.
Trigger Criteria:
Context: Array compaction has been completed successfully
Applied to: Update Array Status
Action: Final status update is required
Logic Flow:
IF Array compaction has been completed successfully
AND Final status update is required
THEN:
• The system updates array metadata and status indicators to reflect the current state
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when request to remove elements from the status array has been made.
Trigger Criteria:
Context: A request to remove elements from the status array has been made
Applied to: No Elements Found to Remove
Action: No matching elements are found in the array
Logic Flow:
IF A request to remove elements from the status array has been made
AND No matching elements are found in the array
THEN:
• The system completes the operation without making changes and indicates no elements were removed
R-GCX016-cbl-03174 (+9)File: GCX016.cblBusiness Rule: Release Status Flag Management
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when status array element is being processed.
Trigger Criteria:
Context: A status array element is being processed
Applied to: Release Code Processing
Action: The disposition code type is a release code
Logic Flow:
IF A status array element is being processed
AND The disposition code type is a release code
THEN:
• The released flag must be set to 'Y' in the status array element
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when status array element is being processed.
Trigger Criteria:
Context: A status array element is being processed
Applied to: Hold Code Processing
Action: The disposition code type is a hold code
Logic Flow:
IF A status array element is being processed
AND The disposition code type is a hold code
THEN:
• The released flag must be set to 'N' in the status array element
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when status array element is being processed.
Trigger Criteria:
Context: A status array element is being processed
Applied to: Information Code Processing
Action: The disposition code type is an information code
Logic Flow:
IF A status array element is being processed
AND The disposition code type is an information code
THEN:
• The existing released flag value must be preserved without change
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when disposition code is being processed for a status array element.
Trigger Criteria:
Context: A disposition code is being processed for a status array element
Applied to: Released Flag Required?
Action: The system evaluates if a released flag is required
Logic Flow:
IF A disposition code is being processed for a status array element
AND The system evaluates if a released flag is required
THEN:
• If required, set released flag to 'Y', otherwise preserve existing flag value
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when new disposition code is being added to the status array.
Trigger Criteria:
Context: A new disposition code is being added to the status array
Applied to: Remove Counterpart Codes
Action: Counterpart code removal is required
Logic Flow:
IF A new disposition code is being added to the status array
AND Counterpart code removal is required
THEN:
• All existing counterpart codes must be removed from the status array before adding the new code
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code with quantity impact is being processed.
Trigger Criteria:
Context: A disposition code with quantity impact is being processed
Applied to: Process Release Quantities
Action: Quantity action is required
Logic Flow:
IF A disposition code with quantity impact is being processed
AND Quantity action is required
THEN:
• The system must process and update the release quantities for the cargo
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when status array element has been processed with flag changes.
Trigger Criteria:
Context: A status array element has been processed with flag changes
Applied to: Validate Flag Consistency
Action: Flag validation is performed
Logic Flow:
IF A status array element has been processed with flag changes
AND Flag validation is performed
THEN:
• All flags must be in a consistent and valid state, otherwise an error condition is raised
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when flag validation has passed for a status array element.
Trigger Criteria:
Context: Flag validation has passed for a status array element
Applied to: Update Status Array Element
Action: The status array element is ready for update
Logic Flow:
IF Flag validation has passed for a status array element
AND The status array element is ready for update
THEN:
• The element must be updated with new flag values and disposition code information
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when status array element has been successfully updated.
Trigger Criteria:
Context: A status array element has been successfully updated
Applied to: Log Flag Change
Action: Flag changes have been applied
Logic Flow:
IF A status array element has been successfully updated
AND Flag changes have been applied
THEN:
• All flag changes must be logged with appropriate audit information
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when flag validation is performed on a status array element.
Trigger Criteria:
Context: Flag validation is performed on a status array element
Applied to: Error - Invalid Flag State
Action: The validation fails due to invalid flag state
Logic Flow:
IF Flag validation is performed on a status array element
AND The validation fails due to invalid flag state
THEN:
• An error condition must be raised and appropriate error handling must be invoked
R-GCX016-cbl-03184 (+12)File: GCX016.cblBusiness Rule: Status Information Message Processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when disposition code is being processed in the cargo system.
Trigger Criteria:
Context: A disposition code is being processed in the cargo system
Applied to: Check DC-STATUS-INFO Flag
Action: The system evaluates the disposition code type against the DC-STATUS-INFO flag
Logic Flow:
IF A disposition code is being processed in the cargo system
AND The system evaluates the disposition code type against the DC-STATUS-INFO flag
THEN:
• The system determines if the code should be processed as status information only
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when disposition code has been identified as potentially status information type.
Trigger Criteria:
Context: A disposition code has been identified as potentially status information type
Applied to: Is Status Info Code?
Action: The system checks if the code meets status information criteria
Logic Flow:
IF A disposition code has been identified as potentially status information type
AND The system checks if the code meets status information criteria
THEN:
• The system either proceeds with status information processing or routes to alternative processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when status information code is ready to be added to the cargo status array.
Trigger Criteria:
Context: A status information code is ready to be added to the cargo status array
Applied to: Check for Duplicate in S09A Array
Action: The system searches the S09A array for existing identical status information entries
Logic Flow:
IF A status information code is ready to be added to the cargo status array
AND The system searches the S09A array for existing identical status information entries
THEN:
• The system identifies whether the status information already exists to prevent duplication
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when system has checked for duplicate status information in the s09a array.
Trigger Criteria:
Context: The system has checked for duplicate status information in the S09A array
Applied to: Already Exists?
Action: The duplicate check result indicates whether the status information already exists
Logic Flow:
IF The system has checked for duplicate status information in the S09A array
AND The duplicate check result indicates whether the status information already exists
THEN:
• The system either skips processing to prevent duplication or proceeds with adding the new status information
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when status information code already exists in the s09a array.
Trigger Criteria:
Context: A status information code already exists in the S09A array
Applied to: Skip Processing - Prevent Duplicate
Action: The system attempts to add the same status information again
Logic Flow:
IF A status information code already exists in the S09A array
AND The system attempts to add the same status information again
THEN:
• The system skips the processing to prevent duplicate entries and continues to the next disposition code
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when valid status information code does not exist in the s09a array.
Trigger Criteria:
Context: A valid status information code does not exist in the S09A array
Applied to: Add Status Info to S09A Array
Action: The system processes the status information for addition
Logic Flow:
IF A valid status information code does not exist in the S09A array
AND The system processes the status information for addition
THEN:
• The system adds the status information to the next available position in the S09A array
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when status information entry is being added to the s09a array.
Trigger Criteria:
Context: A status information entry is being added to the S09A array
Applied to: Set Status Information Fields
Action: The system sets the status information fields
Logic Flow:
IF A status information entry is being added to the S09A array
AND The system sets the status information fields
THEN:
• The system populates the disposition code, description, and informational flags for the status entry
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when status information entry is being populated in the s09a array.
Trigger Criteria:
Context: A status information entry is being populated in the S09A array
Applied to: Set DC-STATUS-INFO-CD
Action: The system sets the DC-STATUS-INFO-CD field
Logic Flow:
IF A status information entry is being populated in the S09A array
AND The system sets the DC-STATUS-INFO-CD field
THEN:
• The system assigns the current disposition code value to the status information code field
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when status information entry is being populated in the s09a array.
Trigger Criteria:
Context: A status information entry is being populated in the S09A array
Applied to: Set DC-STATUS-INFO-DESC
Action: The system sets the DC-STATUS-INFO-DESC field
Logic Flow:
IF A status information entry is being populated in the S09A array
AND The system sets the DC-STATUS-INFO-DESC field
THEN:
• The system assigns the disposition code description to the status information description field
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when status information entry is being configured in the s09a array.
Trigger Criteria:
Context: A status information entry is being configured in the S09A array
Applied to: Mark as Informational Only
Action: The system marks the entry as informational only
Logic Flow:
IF A status information entry is being configured in the S09A array
AND The system marks the entry as informational only
THEN:
• The system sets the appropriate flag to indicate this status does not trigger cargo actions
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when status information code is being processed.
Trigger Criteria:
Context: A status information code is being processed
Applied to: Do Not Affect Quantities
Action: The system evaluates quantity impact requirements
Logic Flow:
IF A status information code is being processed
AND The system evaluates quantity impact requirements
THEN:
• The system ensures the status information does not modify cargo release quantities or total quantities
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when status information entry has been successfully added to the s09a array.
Trigger Criteria:
Context: A status information entry has been successfully added to the S09A array
Applied to: Update Array Element Count
Action: The system updates the array management counters
Logic Flow:
IF A status information entry has been successfully added to the S09A array
AND The system updates the array management counters
THEN:
• The system increments the array element count to reflect the new entry
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when status information entry has been successfully added to the cargo status array.
Trigger Criteria:
Context: A status information entry has been successfully added to the cargo status array
Applied to: Log Status Information Added
Action: The system performs logging operations
Logic Flow:
IF A status information entry has been successfully added to the cargo status array
AND The system performs logging operations
THEN:
• The system creates an audit log entry documenting the status information addition with relevant details
R-GCX016-cbl-03197 (+7)File: GCX016.cblBusiness Rule: Cargo Hold Location Determination
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record with populated s09a status array containing disposition codes.
Trigger Criteria:
Context: A cargo record with populated S09A status array containing disposition codes
Applied to: Border Hold Code Found?
Action: The system scans through all status entries in the array for border hold codes
Logic Flow:
IF A cargo record with populated S09A status array containing disposition codes
AND The system scans through all status entries in the array for border hold codes
THEN:
• The border hold flag is set to true if any border hold disposition codes are found, otherwise it remains false
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record with populated s09a status array containing disposition codes.
Trigger Criteria:
Context: A cargo record with populated S09A status array containing disposition codes
Applied to: Destination Hold Code Found?
Action: The system scans through all status entries in the array for destination hold codes
Logic Flow:
IF A cargo record with populated S09A status array containing disposition codes
AND The system scans through all status entries in the array for destination hold codes
THEN:
• The destination hold flag is set to true if any destination hold disposition codes are found, otherwise it remains false
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record with border hold flag and destination hold flag both evaluated.
Trigger Criteria:
Context: A cargo record with border hold flag and destination hold flag both evaluated
Applied to: Both Border and Destination Holds?
Action: Both border hold flag and destination hold flag are set to true
Logic Flow:
IF A cargo record with border hold flag and destination hold flag both evaluated
AND Both border hold flag and destination hold flag are set to true
THEN:
• The cargo hold status is set to indicate holds at both border and destination locations
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record with border hold flag set to true and destination hold flag set to false.
Trigger Criteria:
Context: A cargo record with border hold flag set to true and destination hold flag set to false
Applied to: Only Border Hold?
Action: The system evaluates hold location flags and finds only border hold is active
Logic Flow:
IF A cargo record with border hold flag set to true and destination hold flag set to false
AND The system evaluates hold location flags and finds only border hold is active
THEN:
• The cargo hold status is set to border hold only
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record with destination hold flag set to true and border hold flag set to false.
Trigger Criteria:
Context: A cargo record with destination hold flag set to true and border hold flag set to false
Applied to: Only Destination Hold?
Action: The system evaluates hold location flags and finds only destination hold is active
Logic Flow:
IF A cargo record with destination hold flag set to true and border hold flag set to false
AND The system evaluates hold location flags and finds only destination hold is active
THEN:
• The cargo hold status is set to destination hold only
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record with destination hold status and fda-related disposition codes in the status array.
Trigger Criteria:
Context: A cargo record with destination hold status and FDA-related disposition codes in the status array
Applied to: FDA Hold at Destination?
Action: The system checks for FDA hold codes (A3 disposition codes) in the destination hold context
Logic Flow:
IF A cargo record with destination hold status and FDA-related disposition codes in the status array
AND The system checks for FDA hold codes (A3 disposition codes) in the destination hold context
THEN:
• The FDA destination hold flag is set if FDA hold codes are present at destination
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record with both border hold flag and destination hold flag set to false.
Trigger Criteria:
Context: A cargo record with both border hold flag and destination hold flag set to false
Applied to: Set No Hold Status
Action: The system evaluates hold location flags and finds no active holds
Logic Flow:
IF A cargo record with both border hold flag and destination hold flag set to false
AND The system evaluates hold location flags and finds no active holds
THEN:
• The cargo hold status is set to indicate no holds are active
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record with s09a status array containing multiple disposition code entries.
Trigger Criteria:
Context: A cargo record with S09A status array containing multiple disposition code entries
Applied to: Analyze S09A Status Array
Action: The system processes each status entry to identify hold codes and their associated locations
Logic Flow:
IF A cargo record with S09A status array containing multiple disposition code entries
AND The system processes each status entry to identify hold codes and their associated locations
THEN:
• Hold flags are populated based on the disposition codes found and their location indicators
R-GCX016-cbl-03205 (+9)File: GCX016.cblBusiness Rule: Cargo Status Transition Management
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record is being processed for status transition. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: A cargo record is being processed for status transition
Applied to: Manual Release Required?
Action: The cargo has a manual release flag set (WS-MRL-FOUND is true)
Logic Flow:
IF A cargo record is being processed for status transition
AND The cargo has a manual release flag set (WS-MRL-FOUND is true)
THEN:
• The system clears the destination index and processes Canadian manifest coordination
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record is being evaluated for status assignment.
Trigger Criteria:
Context: A cargo record is being evaluated for status assignment
Applied to: FDA Hold at Destination?
Action: The cargo has destination hold conditions AND A3 disposition codes are present
Logic Flow:
IF A cargo record is being evaluated for status assignment
AND The cargo has destination hold conditions AND A3 disposition codes are present
THEN:
• The system sets FDA hold status with specific FDA codes
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record is being processed for status determination.
Trigger Criteria:
Context: A cargo record is being processed for status determination
Applied to: PTT Status Required?
Action: The cargo meets PTT quantity requirements AND has appropriate disposition codes
Logic Flow:
IF A cargo record is being processed for status determination
AND The cargo meets PTT quantity requirements AND has appropriate disposition codes
THEN:
• The system validates PTT quantity requirements and saves/restores PTT status accordingly
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record with release quantity information.
Trigger Criteria:
Context: A cargo record with release quantity information
Applied to: Partial Release Scenario?
Action: The released quantity is less than the total cargo quantity
Logic Flow:
IF A cargo record with release quantity information
AND The released quantity is less than the total cargo quantity
THEN:
• The system sets hold on piece counts status to indicate partial release
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record with release quantity information.
Trigger Criteria:
Context: A cargo record with release quantity information
Applied to: Full Release Conditions Met?
Action: The released quantity is greater than or equal to the total cargo quantity
Logic Flow:
IF A cargo record with release quantity information
AND The released quantity is greater than or equal to the total cargo quantity
THEN:
• The system clears the destination index and processes full release
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record that was previously in released status.
Trigger Criteria:
Context: A cargo record that was previously in released status
Applied to: Cargo Previously Released but Now Unreleased?
Action: The cargo status changes from released to unreleased state
Logic Flow:
IF A cargo record that was previously in released status
AND The cargo status changes from released to unreleased state
THEN:
• The system generates unrelease notifications and detects status change requirements
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record being processed for status transition.
Trigger Criteria:
Context: A cargo record being processed for status transition
Applied to: Arrival Status Required?
Action: The cargo requires arrival status based on location and movement conditions
Logic Flow:
IF A cargo record being processed for status transition
AND The cargo requires arrival status based on location and movement conditions
THEN:
• The system sets arrival status and updates the border arrival date
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record being evaluated for export processing.
Trigger Criteria:
Context: A cargo record being evaluated for export processing
Applied to: Export Status Required?
Action: The cargo meets export status requirements based on disposition codes and location
Logic Flow:
IF A cargo record being evaluated for export processing
AND The cargo meets export status requirements based on disposition codes and location
THEN:
• The system sets export status and clears the destination index
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record with hold requirements.
Trigger Criteria:
Context: A cargo record with hold requirements
Applied to: Hold Location Determination Required?
Action: The system needs to determine the appropriate hold location
Logic Flow:
IF A cargo record with hold requirements
AND The system needs to determine the appropriate hold location
THEN:
• The system determines border versus destination hold and sets appropriate hold status
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record requiring destination index updates.
Trigger Criteria:
Context: A cargo record requiring destination index updates
Applied to: Destination Index Re-establishment Required?
Action: The cargo status transition requires destination index re-establishment
Logic Flow:
IF A cargo record requiring destination index updates
AND The cargo status transition requires destination index re-establishment
THEN:
• The system calculates cargo age using Julian dates, re-establishes RT076 destination index, and updates bond date management
R-GCX016-cbl-03258 (+9)File: GCX016.cblBusiness Rule: Partial Release Hold Processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo status analysis is complete and release quantities are available.
Trigger Criteria:
Context: Cargo status analysis is complete and release quantities are available
Applied to: Compare Released Qty vs Total Qty
Action: The system compares released quantity with total quantity
Logic Flow:
IF Cargo status analysis is complete and release quantities are available
AND The system compares released quantity with total quantity
THEN:
• The comparison result determines whether partial release processing is required
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when released quantity and total quantity values are available for comparison.
Trigger Criteria:
Context: Released quantity and total quantity values are available for comparison
Applied to: Released Qty < Total Qty?
Action: The released quantity is less than the total quantity
Logic Flow:
IF Released quantity and total quantity values are available for comparison
AND The released quantity is less than the total quantity
THEN:
• The system identifies this as a partial release scenario requiring hold processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when released quantity is confirmed to be less than total quantity.
Trigger Criteria:
Context: Released quantity is confirmed to be less than total quantity
Applied to: Identify Partial Release Scenario
Action: The system processes the partial release condition
Logic Flow:
IF Released quantity is confirmed to be less than total quantity
AND The system processes the partial release condition
THEN:
• The cargo is identified as a partial release scenario requiring special hold status
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo has been identified as a partial release scenario.
Trigger Criteria:
Context: Cargo has been identified as a partial release scenario
Applied to: Set Hold on Piece Counts Status
Action: The system sets the cargo status
Logic Flow:
IF Cargo has been identified as a partial release scenario
AND The system sets the cargo status
THEN:
• The cargo status is set to hold on piece counts to indicate partial release condition
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when hold on piece counts status has been determined for partial release cargo.
Trigger Criteria:
Context: Hold on piece counts status has been determined for partial release cargo
Applied to: Update Cargo Status Array
Action: The system updates the cargo status array
Logic Flow:
IF Hold on piece counts status has been determined for partial release cargo
AND The system updates the cargo status array
THEN:
• The status array is updated with the partial release hold information
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo status array has been updated with partial release hold status.
Trigger Criteria:
Context: Cargo status array has been updated with partial release hold status
Applied to: Log Partial Release Information
Action: The system logs the partial release information
Logic Flow:
IF Cargo status array has been updated with partial release hold status
AND The system logs the partial release information
THEN:
• Partial release details including quantities and hold status are recorded in the system log
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo has partial release hold status and logging is complete.
Trigger Criteria:
Context: Cargo has partial release hold status and logging is complete
Applied to: Maintain Destination Index
Action: The system maintains destination routing information
Logic Flow:
IF Cargo has partial release hold status and logging is complete
AND The system maintains destination routing information
THEN:
• The destination index is preserved to ensure proper cargo routing despite partial hold status
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when destination index is maintained and partial release hold status is confirmed.
Trigger Criteria:
Context: Destination index is maintained and partial release hold status is confirmed
Applied to: Generate Hold Message with Piece Count Details
Action: The system generates a hold message
Logic Flow:
IF Destination index is maintained and partial release hold status is confirmed
AND The system generates a hold message
THEN:
• A hold message is created with specific piece count details indicating the partial release quantities
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when hold message with piece count details has been generated.
Trigger Criteria:
Context: Hold message with piece count details has been generated
Applied to: Update Cargo Record with Partial Hold Status
Action: The system updates the cargo record
Logic Flow:
IF Hold message with piece count details has been generated
AND The system updates the cargo record
THEN:
• The cargo record is updated with partial hold status and all associated partial release information
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when released quantity and total quantity have been compared.
Trigger Criteria:
Context: Released quantity and total quantity have been compared
Applied to: Full Release Processing Path
Action: The released quantity is greater than or equal to the total quantity
Logic Flow:
IF Released quantity and total quantity have been compared
AND The released quantity is greater than or equal to the total quantity
THEN:
• The cargo follows the full release processing path without partial hold restrictions
R-GCX016-cbl-03268 (+13)File: GCX016.cblBusiness Rule: Full Release Processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record with total quantity and released quantity values.
Trigger Criteria:
Context: A cargo record with total quantity and released quantity values
Applied to: Check Released Quantity vs Total Quantity
Action: The system evaluates release eligibility
Logic Flow:
IF A cargo record with total quantity and released quantity values
AND The system evaluates release eligibility
THEN:
• If released quantity equals or exceeds total quantity, cargo is eligible for full release, otherwise process as partial release
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo that has been determined eligible for full release.
Trigger Criteria:
Context: Cargo that has been determined eligible for full release
Applied to: Set Released Status Flag
Action: The system processes the full release
Logic Flow:
IF Cargo that has been determined eligible for full release
AND The system processes the full release
THEN:
• The released status flag is set to indicate full release status
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo that has achieved full release status.
Trigger Criteria:
Context: Cargo that has achieved full release status
Applied to: Clear Destination Index RT076
Action: The system processes the destination index update
Logic Flow:
IF Cargo that has achieved full release status
AND The system processes the destination index update
THEN:
• The RT076 destination index is cleared to remove routing restrictions
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo that has been fully released.
Trigger Criteria:
Context: Cargo that has been fully released
Applied to: Canadian Manifest Coordination Required?
Action: The system evaluates Canadian manifest coordination requirements
Logic Flow:
IF Cargo that has been fully released
AND The system evaluates Canadian manifest coordination requirements
THEN:
• If cargo requires Canadian manifest coordination, proceed to find matching manifests, otherwise proceed directly to status update
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when fully released cargo that requires canadian manifest coordination.
Trigger Criteria:
Context: Fully released cargo that requires Canadian manifest coordination
Applied to: Find Matching Canadian Manifests
Action: The system searches for matching Canadian manifests
Logic Flow:
IF Fully released cargo that requires Canadian manifest coordination
AND The system searches for matching Canadian manifests
THEN:
• All corresponding Canadian manifest records are identified and retrieved
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when matching canadian manifest records for released cargo.
Trigger Criteria:
Context: Matching Canadian manifest records for released cargo
Applied to: Generate Canadian Release Log Messages
Action: The system processes Canadian manifest coordination
Logic Flow:
IF Matching Canadian manifest records for released cargo
AND The system processes Canadian manifest coordination
THEN:
• Release log messages are generated for Canadian manifest tracking
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo that has completed full release processing.
Trigger Criteria:
Context: Cargo that has completed full release processing
Applied to: Update Cargo Status to Released
Action: The system updates the cargo status
Logic Flow:
IF Cargo that has completed full release processing
AND The system updates the cargo status
THEN:
• The cargo status is set to released state
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo that has been updated to released status.
Trigger Criteria:
Context: Cargo that has been updated to released status
Applied to: Set Release Date
Action: The system processes the release date assignment
Logic Flow:
IF Cargo that has been updated to released status
AND The system processes the release date assignment
THEN:
• The current date and time is recorded as the release date
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo that has been set to released status with release date.
Trigger Criteria:
Context: Cargo that has been set to released status with release date
Applied to: Clear Hold Status Flags
Action: The system processes hold status flag updates
Logic Flow:
IF Cargo that has been set to released status with release date
AND The system processes hold status flag updates
THEN:
• All hold status flags are cleared to remove cargo restrictions
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo with updated release status, release date, and cleared hold flags.
Trigger Criteria:
Context: Cargo with updated release status, release date, and cleared hold flags
Applied to: Update Cargo Record in Database
Action: The system saves the cargo record
Logic Flow:
IF Cargo with updated release status, release date, and cleared hold flags
AND The system saves the cargo record
THEN:
• All cargo release changes are persisted to the database
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo that has been successfully updated in the database as released.
Trigger Criteria:
Context: Cargo that has been successfully updated in the database as released
Applied to: Generate Release Notification Messages
Action: The system processes release notifications
Logic Flow:
IF Cargo that has been successfully updated in the database as released
AND The system processes release notifications
THEN:
• Release notification messages are generated for relevant stakeholders
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo with generated release notification messages. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: Cargo with generated release notification messages
Applied to: Call Integration Services for Release
Action: The system calls integration services
Logic Flow:
IF Cargo with generated release notification messages
AND The system calls integration services
THEN:
• External integration services are invoked to complete the release processing workflow
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo where released quantity does not match total quantity.
Trigger Criteria:
Context: Cargo where released quantity does not match total quantity
Applied to: Partial Release Scenario?
Action: The system evaluates release processing type
Logic Flow:
IF Cargo where released quantity does not match total quantity
AND The system evaluates release processing type
THEN:
• If cargo qualifies for partial release processing, route to partial release workflow, otherwise continue with full release
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo that has been identified for partial release processing.
Trigger Criteria:
Context: Cargo that has been identified for partial release processing
Applied to: Process as Partial Release Instead
Action: The system redirects to partial release workflow
Logic Flow:
IF Cargo that has been identified for partial release processing
AND The system redirects to partial release workflow
THEN:
• Cargo is processed through the partial release workflow instead of full release
R-GCX016-cbl-03282 (+11)File: GCX016.cblBusiness Rule: Cargo Unrelease Detection and Notification
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record exists with status history in the s09a status array.
Trigger Criteria:
Context: A cargo record exists with status history in the S09A status array
Applied to: Check Previous Release Status
Action: The system analyzes the status array for previous release indicators
Logic Flow:
IF A cargo record exists with status history in the S09A status array
AND The system analyzes the status array for previous release indicators
THEN:
• The system identifies if cargo was previously released based on status codes and release quantities
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when current disposition codes are available from the x4 segment.
Trigger Criteria:
Context: Current disposition codes are available from the X4 segment
Applied to: Analyze Current Disposition Codes
Action: The system processes disposition codes against the DC table
Logic Flow:
IF Current disposition codes are available from the X4 segment
AND The system processes disposition codes against the DC table
THEN:
• The system determines if current codes indicate an unrelease action
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo has previous release status and current disposition codes are processed.
Trigger Criteria:
Context: Cargo has previous release status AND current disposition codes are processed
Applied to: Previously Released Cargo Now Unreleased?
Action: The system compares release quantities and status flags between previous and current state
Logic Flow:
IF Cargo has previous release status AND current disposition codes are processed
AND The system compares release quantities and status flags between previous and current state
THEN:
• The system sets unrelease detection flag if cargo was released but is now unreleased
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo unrelease condition has been detected.
Trigger Criteria:
Context: Cargo unrelease condition has been detected
Applied to: Set Unrelease Status Flag
Action: The system processes the unrelease detection result
Logic Flow:
IF Cargo unrelease condition has been detected
AND The system processes the unrelease detection result
THEN:
• The system sets the unrelease status flag to trigger notification processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo unrelease has been detected and broker information exists in cargo record.
Trigger Criteria:
Context: Cargo unrelease has been detected AND broker information exists in cargo record
Applied to: Determine Notification Recipients
Action: The system retrieves broker details and payer of freight information
Logic Flow:
IF Cargo unrelease has been detected AND broker information exists in cargo record
AND The system retrieves broker details and payer of freight information
THEN:
• The system identifies all parties requiring unrelease notification based on cargo ownership and broker relationships
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo unrelease detected and notification recipients identified.
Trigger Criteria:
Context: Cargo unrelease detected AND notification recipients identified
Applied to: Generate Unrelease Notification Message
Action: The system formats the unrelease notification message
Logic Flow:
IF Cargo unrelease detected AND notification recipients identified
AND The system formats the unrelease notification message
THEN:
• The system creates message with cargo details, disposition codes, and unrelease information
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when unrelease notification message is prepared and broker recipients are identified.
Trigger Criteria:
Context: Unrelease notification message is prepared AND broker recipients are identified
Applied to: Route Message to Brokers
Action: The system routes the message to brokers
Logic Flow:
IF Unrelease notification message is prepared AND broker recipients are identified
AND The system routes the message to brokers
THEN:
• The system sends notification via Merlin messaging system to broker destinations
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when unrelease notification message is prepared and payer of freight is identified and payer of freight is different from broker.
Trigger Criteria:
Context: Unrelease notification message is prepared AND payer of freight is identified AND payer of freight is different from broker
Applied to: Route Message to Payer of Freight
Action: The system routes the message to payer of freight
Logic Flow:
IF Unrelease notification message is prepared AND payer of freight is identified AND payer of freight is different from broker
AND The system routes the message to payer of freight
THEN:
• The system sends notification via appropriate messaging channel to payer of freight
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo unrelease has been processed and notifications have been sent.
Trigger Criteria:
Context: Cargo unrelease has been processed AND notifications have been sent
Applied to: Log Unrelease Event
Action: The system logs the unrelease event
Logic Flow:
IF Cargo unrelease has been processed AND notifications have been sent
AND The system logs the unrelease event
THEN:
• The system creates audit record with cargo CCN, unrelease details, timestamp, and notification recipients
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo unrelease event has been logged.
Trigger Criteria:
Context: Cargo unrelease event has been logged
Applied to: Update Cargo Status Records
Action: The system updates cargo status records
Logic Flow:
IF Cargo unrelease event has been logged
AND The system updates cargo status records
THEN:
• The system modifies cargo status, updates S09 segments, and sets appropriate status descriptions
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo status records have been updated for unrelease.
Trigger Criteria:
Context: Cargo status records have been updated for unrelease
Applied to: Clear Previous Release Quantities
Action: The system processes release quantity adjustments
Logic Flow:
IF Cargo status records have been updated for unrelease
AND The system processes release quantity adjustments
THEN:
• The system clears or reduces release quantities to reflect unreleased status
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo release quantities have been cleared and cargo requires hold status.
Trigger Criteria:
Context: Cargo release quantities have been cleared AND cargo requires hold status
Applied to: Restore Hold Status if Required
Action: The system determines appropriate hold status based on disposition codes
Logic Flow:
IF Cargo release quantities have been cleared AND cargo requires hold status
AND The system determines appropriate hold status based on disposition codes
THEN:
• The system sets border hold, destination hold, or other appropriate hold status based on cargo location and disposition
R-GCX016-cbl-03303 (+11)File: GCX016.cblBusiness Rule: Age Calculation for Cargo
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when system is processing cargo age calculation.
Trigger Criteria:
Context: The system is processing cargo age calculation
Applied to: Get Current System Date
Action: The age calculation process is initiated
Logic Flow:
IF The system is processing cargo age calculation
AND The age calculation process is initiated
THEN:
• The current system date is retrieved and stored for comparison with bond start date
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record exists with bond information.
Trigger Criteria:
Context: A cargo record exists with bond information
Applied to: Retrieve Cargo Bond Start Date
Action: Age calculation is requested for the cargo
Logic Flow:
IF A cargo record exists with bond information
AND Age calculation is requested for the cargo
THEN:
• The bond start date is retrieved from the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record is being processed for age calculation.
Trigger Criteria:
Context: A cargo record is being processed for age calculation
Applied to: Bond Start Date Available?
Action: The bond start date field is evaluated
Logic Flow:
IF A cargo record is being processed for age calculation
AND The bond start date field is evaluated
THEN:
• If bond start date is present and valid, proceed with Julian conversion, otherwise use default age value
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when valid bond start date exists in the cargo record.
Trigger Criteria:
Context: A valid bond start date exists in the cargo record
Applied to: Convert Bond Start Date to Julian Format
Action: Age calculation requires Julian date format
Logic Flow:
IF A valid bond start date exists in the cargo record
AND Age calculation requires Julian date format
THEN:
• The bond start date is converted to Julian format using date conversion utilities
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when current system date has been retrieved.
Trigger Criteria:
Context: The current system date has been retrieved
Applied to: Convert Current Date to Julian Format
Action: Age calculation requires Julian date format for comparison
Logic Flow:
IF The current system date has been retrieved
AND Age calculation requires Julian date format for comparison
THEN:
• The current date is converted to Julian format using date conversion utilities
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when both current date and bond start date are in julian format.
Trigger Criteria:
Context: Both current date and bond start date are in Julian format
Applied to: Calculate Age in Days
Action: Age calculation is performed
Logic Flow:
IF Both current date and bond start date are in Julian format
AND Age calculation is performed
THEN:
• Age in days equals current Julian date minus bond start Julian date
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when age calculation has been performed.
Trigger Criteria:
Context: An age calculation has been performed
Applied to: Age Calculation Valid?
Action: The calculated age value is evaluated
Logic Flow:
IF An age calculation has been performed
AND The calculated age value is evaluated
THEN:
• If age is valid and within business parameters, use calculated value, otherwise log error and use default
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when valid cargo age has been calculated.
Trigger Criteria:
Context: A valid cargo age has been calculated
Applied to: Set Cargo Age for Destination Indexing
Action: The age value needs to be stored for destination processing
Logic Flow:
IF A valid cargo age has been calculated
AND The age value needs to be stored for destination processing
THEN:
• The calculated age is assigned to the cargo record for RT076 destination index processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo age has been calculated and validated.
Trigger Criteria:
Context: Cargo age has been calculated and validated
Applied to: Update Cargo Record with Age Information
Action: The cargo record needs to be updated with age information
Logic Flow:
IF Cargo age has been calculated and validated
AND The cargo record needs to be updated with age information
THEN:
• The cargo record is updated with the calculated age value
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo age has been calculated and stored in the cargo record.
Trigger Criteria:
Context: Cargo age has been calculated and stored in the cargo record
Applied to: Use Age for RT076 Destination Index Processing
Action: RT076 destination index processing is required
Logic Flow:
IF Cargo age has been calculated and stored in the cargo record
AND RT076 destination index processing is required
THEN:
• The cargo age is used as input for destination index determination and routing decisions
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when bond start date is missing or invalid in the cargo record.
Trigger Criteria:
Context: Bond start date is missing or invalid in the cargo record
Applied to: Set Default Age Value
Action: Age calculation cannot be performed with actual dates
Logic Flow:
IF Bond start date is missing or invalid in the cargo record
AND Age calculation cannot be performed with actual dates
THEN:
• A default age value is assigned to allow processing to continue
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when age calculation has failed due to invalid data or calculation error.
Trigger Criteria:
Context: Age calculation has failed due to invalid data or calculation error
Applied to: Log Age Calculation Error
Action: Error handling is required
Logic Flow:
IF Age calculation has failed due to invalid data or calculation error
AND Error handling is required
THEN:
• Error information is logged and default age processing is initiated
R-GCX016-cbl-03315 (+13)File: GCX016.cblBusiness Rule: Cargo Record Integration Service Calls
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record exists with current status and previous status information.
Trigger Criteria:
Context: A cargo record exists with current status and previous status information
Applied to: Cargo Status Changed?
Action: The system compares current cargo status with previous cargo status
Logic Flow:
IF A cargo record exists with current status and previous status information
AND The system compares current cargo status with previous cargo status
THEN:
• Integration service processing continues if status has changed, otherwise processing ends
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record with equipment type information from gcsuss05.
Trigger Criteria:
Context: A cargo record with equipment type information from GCSUSS05
Applied to: Valid Container Type?
Action: The system checks if equipment type is container or trailer
Logic Flow:
IF A cargo record with equipment type information from GCSUSS05
AND The system checks if equipment type is container or trailer
Business Justification: Governs the functional prerequisites and system routing when cargo record with internal status code.
Trigger Criteria:
Context: A cargo record with internal status code
Applied to: Map Internal Status to Integration Service Status
Action: The system maps internal status to integration service status format
Logic Flow:
IF A cargo record with internal status code
AND The system maps internal status to integration service status format
THEN:
• Integration service status is set based on internal status mapping rules
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record with mapped integration service status.
Trigger Criteria:
Context: A cargo record with mapped integration service status
Applied to: Hold Status?
Action: The system checks if status indicates cargo is held
Logic Flow:
IF A cargo record with mapped integration service status
AND The system checks if status indicates cargo is held
THEN:
• Hold notification preparation is triggered if cargo is in hold status
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record with mapped integration service status that is not in hold status.
Trigger Criteria:
Context: A cargo record with mapped integration service status that is not in hold status
Applied to: Release Status?
Action: The system checks if status indicates cargo is released
Logic Flow:
IF A cargo record with mapped integration service status that is not in hold status
AND The system checks if status indicates cargo is released
THEN:
• Release notification preparation is triggered if cargo is in release status
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record with mapped integration service status that is neither hold nor release.
Trigger Criteria:
Context: A cargo record with mapped integration service status that is neither hold nor release
Applied to: Status Change?
Action: The system checks if any status change occurred
Logic Flow:
IF A cargo record with mapped integration service status that is neither hold nor release
AND The system checks if any status change occurred
THEN:
• Status change notification preparation is triggered if status change is detected
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record identified as having hold status.
Trigger Criteria:
Context: A cargo record identified as having hold status
Applied to: Prepare Hold Notification
Action: The system prepares hold notification with cargo identification and status details
Logic Flow:
IF A cargo record identified as having hold status
AND The system prepares hold notification with cargo identification and status details
THEN:
• Hold notification message is formatted for GCCIIS integration service call
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record identified as having release status.
Trigger Criteria:
Context: A cargo record identified as having release status
Applied to: Prepare Release Notification
Action: The system prepares release notification with cargo identification and status details
Logic Flow:
IF A cargo record identified as having release status
AND The system prepares release notification with cargo identification and status details
THEN:
• Release notification message is formatted for GCCIIS integration service call
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record identified as having general status change.
Trigger Criteria:
Context: A cargo record identified as having general status change
Applied to: Prepare Status Change Notification
Action: The system prepares status change notification with cargo identification and new status details
Logic Flow:
IF A cargo record identified as having general status change
AND The system prepares status change notification with cargo identification and new status details
THEN:
• Status change notification message is formatted for GCCIIS integration service call
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when prepared notification message for hold, release, or status change. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: A prepared notification message for hold, release, or status change
Applied to: Call GCCIIS Integration Service
Action: The system calls GCCIIS integration service with the notification message
Logic Flow:
IF A prepared notification message for hold, release, or status change
AND The system calls GCCIIS integration service with the notification message
THEN:
• Integration service processes the notification and returns success or failure status
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when completed gcciis integration service call with return status. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: A completed GCCIIS integration service call with return status
Applied to: Integration Call Successful?
Action: The system checks the integration service call return status
Logic Flow:
IF A completed GCCIIS integration service call with return status
AND The system checks the integration service call return status
THEN:
• Success logging is triggered if call succeeded, error logging if call failed
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when successful gcciis integration service call. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: A successful GCCIIS integration service call
Applied to: Log Integration Success
Action: The system logs the successful integration service call
Logic Flow:
IF A successful GCCIIS integration service call
AND The system logs the successful integration service call
THEN:
• Success information is recorded with cargo identification and timestamp
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when failed gcciis integration service call. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: A failed GCCIIS integration service call
Applied to: Log Integration Error
Action: The system logs the failed integration service call
Logic Flow:
IF A failed GCCIIS integration service call
AND The system logs the failed integration service call
THEN:
• Error information is recorded with cargo identification, error details, and timestamp
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when completed gcciis integration service call with success or failure status. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: A completed GCCIIS integration service call with success or failure status
Applied to: Update Cargo Record with Integration Status
Action: The system updates the cargo record with integration call results
Logic Flow:
IF A completed GCCIIS integration service call with success or failure status
AND The system updates the cargo record with integration call results
THEN:
• Cargo record reflects integration service call status and timestamp for audit trail
R-GCX016-cbl-03340 (+18)File: GCX016.cblBusiness Rule: Release Message Generation with Cargo Details
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record exists in the system with a specific release status.
Trigger Criteria:
Context: A cargo record exists in the system with a specific release status
Applied to: Cargo Release Status?
Action: The system evaluates the cargo release status for message generation
Logic Flow:
IF A cargo record exists in the system with a specific release status
AND The system evaluates the cargo release status for message generation
THEN:
• The system proceeds with message generation only if cargo is in released status, otherwise terminates the process
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record has associated car identification information from n7 segments.
Trigger Criteria:
Context: A cargo record has associated car identification information from N7 segments
Applied to: Format Car ID Information
Action: The system formats car ID information for release message
Logic Flow:
IF A cargo record has associated car identification information from N7 segments
AND The system formats car ID information for release message
THEN:
• The system combines car initial and car number into properly formatted car identification string for message display
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record contains waybill number and transportation document details.
Trigger Criteria:
Context: A cargo record contains waybill number and transportation document details
Applied to: Format Waybill Information
Action: The system formats waybill information for release message
Logic Flow:
IF A cargo record contains waybill number and transportation document details
AND The system formats waybill information for release message
THEN:
• The system includes formatted waybill number and associated transportation details in the message content
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record has us-ccn key and current status information.
Trigger Criteria:
Context: A cargo record has US-CCN key and current status information
Applied to: Format US-CCN Status
Action: The system formats US-CCN status for release message
Logic Flow:
IF A cargo record has US-CCN key and current status information
AND The system formats US-CCN status for release message
THEN:
• The system includes formatted US-CCN number and current status description in the message
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo processing transaction contains disposition code from x4 segment.
Trigger Criteria:
Context: A cargo processing transaction contains disposition code from X4 segment
Applied to: Format Disposition Code Details
Action: The system formats disposition code details for release message
Logic Flow:
IF A cargo processing transaction contains disposition code from X4 segment
AND The system formats disposition code details for release message
THEN:
• The system includes disposition code value and corresponding description text in the formatted message
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo processing has occurred with specific date and time stamps.
Trigger Criteria:
Context: Cargo processing has occurred with specific date and time stamps
Applied to: Include Processing Timestamps
Action: The system includes processing timestamps in release message
Logic Flow:
IF Cargo processing has occurred with specific date and time stamps
AND The system includes processing timestamps in release message
THEN:
• The system adds formatted date and time information showing when cargo processing events occurred
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record contains total quantity and current released quantity values.
Trigger Criteria:
Context: A cargo record contains total quantity and current released quantity values
Applied to: Add Quantity Information
Action: The system adds quantity information to release message
Logic Flow:
IF A cargo record contains total quantity and current released quantity values
AND The system adds quantity information to release message
THEN:
• The system includes both total cargo quantity and current released quantity amounts in the message content
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record has associated broker information and customs entry numbers.
Trigger Criteria:
Context: A cargo record has associated broker information and customs entry numbers
Applied to: Include Broker Entry Numbers
Action: The system includes broker entry numbers in release message
Logic Flow:
IF A cargo record has associated broker information and customs entry numbers
AND The system includes broker entry numbers in release message
THEN:
• The system adds broker identification and related customs entry numbers to the message content
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when message processing transaction may contain k1 comment segments.
Trigger Criteria:
Context: A message processing transaction may contain K1 comment segments
Applied to: K1 Comments Available?
Action: The system checks for K1 comment availability
Logic Flow:
IF A message processing transaction may contain K1 comment segments
AND The system checks for K1 comment availability
THEN:
• The system determines if K1 comment segments exist and are available for inclusion in the release message
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when k1 comment segments are available for inclusion in release message.
Trigger Criteria:
Context: K1 comment segments are available for inclusion in release message
Applied to: Include Up to 4 K1 Comment Segments
Action: The system includes K1 comment segments in the message
Logic Flow:
IF K1 comment segments are available for inclusion in release message
AND The system includes K1 comment segments in the message
THEN:
• The system adds up to four K1 comment segments to the release message content, respecting the maximum limit
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when release message is being generated for cargo with broker and bond information.
Trigger Criteria:
Context: A release message is being generated for cargo with broker and bond information
Applied to: Broker Bond Message?
Action: The system determines if this is a broker bond message
Logic Flow:
IF A release message is being generated for cargo with broker and bond information
AND The system determines if this is a broker bond message
THEN:
• The system identifies whether special broker bond message formatting rules should be applied
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when release message has been identified as a broker bond message type.
Trigger Criteria:
Context: A release message has been identified as a broker bond message type
Applied to: Apply Special Broker Bond Formatting
Action: The system applies special broker bond formatting
Logic Flow:
IF A release message has been identified as a broker bond message type
AND The system applies special broker bond formatting
THEN:
• The system formats the message using broker bond specific layout rules and includes required bond-related information
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo transaction involves quantity changes through disposition code processing.
Trigger Criteria:
Context: A cargo transaction involves quantity changes through disposition code processing
Applied to: Format Quantity Action Details
Action: The system formats quantity action details
Logic Flow:
IF A cargo transaction involves quantity changes through disposition code processing
AND The system formats quantity action details
THEN:
• The system includes formatted information showing whether quantities are being added to or subtracted from release amounts
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record has associated equipment type information.
Trigger Criteria:
Context: A cargo record has associated equipment type information
Applied to: Container Type Valid?
Action: The system validates container type for message inclusion
Logic Flow:
IF A cargo record has associated equipment type information
AND The system validates container type for message inclusion
THEN:
• The system determines if the container type is valid for equipment information inclusion in the release message
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when container type validation has passed and equipment information is available.
Trigger Criteria:
Context: Container type validation has passed and equipment information is available
Applied to: Include Equipment Type Information
Action: The system includes equipment type information in release message
Logic Flow:
IF Container type validation has passed and equipment information is available
AND The system includes equipment type information in release message
THEN:
• The system adds equipment type details including container or trailer specifications to the message content
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record has internal status codes that need to be displayed in release messages.
Trigger Criteria:
Context: A cargo record has internal status codes that need to be displayed in release messages
Applied to: Map Internal Status to Description
Action: The system maps internal status to description
Logic Flow:
IF A cargo record has internal status codes that need to be displayed in release messages
AND The system maps internal status to description
THEN:
• The system converts internal status codes to corresponding user-friendly description text for message readability
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when all individual message components have been formatted and prepared.
Trigger Criteria:
Context: All individual message components have been formatted and prepared
Applied to: Format Complete Release Message
Action: The system formats the complete release message
Logic Flow:
IF All individual message components have been formatted and prepared
AND The system formats the complete release message
THEN:
• The system assembles all components into a properly structured, complete release message ready for transmission
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when complete release message has been formatted and user routing configuration exists.
Trigger Criteria:
Context: A complete release message has been formatted and user routing configuration exists
Applied to: Route Message to Configured Users
Action: The system routes the message to configured users
Logic Flow:
IF A complete release message has been formatted and user routing configuration exists
AND The system routes the message to configured users
THEN:
• The system sends the release message to all appropriate recipients based on message type and configured routing rules
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when release message has been successfully generated and routed.
Trigger Criteria:
Context: A release message has been successfully generated and routed
Applied to: Log Message Generation Activity
Action: The system logs message generation activity
Logic Flow:
IF A release message has been successfully generated and routed
AND The system logs message generation activity
THEN:
• The system records message generation details including timestamp, message type, and routing information for audit purposes
R-GCX016-cbl-03359 (+16)File: GCX016.cblBusiness Rule: Export Message Generation with Cancellation Support
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when export message generation request is received.
Trigger Criteria:
Context: An export message generation request is received
Applied to: Export Operation Type?
Action: The system evaluates the export operation type flag
Logic Flow:
IF An export message generation request is received
AND The system evaluates the export operation type flag
THEN:
• The system routes to either standard export processing or export cancellation processing based on the flag value
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record with container type information is being processed for export.
Trigger Criteria:
Context: A cargo record with container type information is being processed for export
Applied to: Container Type Valid?
Action: The system checks if the container type is valid for export operations
Logic Flow:
IF A cargo record with container type information is being processed for export
AND The system checks if the container type is valid for export operations
THEN:
• The system either proceeds with message generation for valid container types or handles invalid container type scenarios
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when standard export operation is being processed.
Trigger Criteria:
Context: A standard export operation is being processed
Applied to: Set Export Message Type
Action: The system needs to set the message type for export processing
Logic Flow:
IF A standard export operation is being processed
AND The system needs to set the message type for export processing
THEN:
• The system assigns the export message type flag to indicate standard export processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when export cancellation operation is being processed.
Trigger Criteria:
Context: An export cancellation operation is being processed
Applied to: Set Export Cancellation Message Type
Action: The system needs to set the message type for cancellation processing
Logic Flow:
IF An export cancellation operation is being processed
AND The system needs to set the message type for cancellation processing
THEN:
• The system assigns the export cancellation message type flag to indicate cancellation processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when standard export message type has been set.
Trigger Criteria:
Context: A standard export message type has been set
Applied to: Prepare Export Message Content
Action: The system prepares the export message content
Logic Flow:
IF A standard export message type has been set
AND The system prepares the export message content
THEN:
• The system formats the message with export-specific information and cargo details
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when export cancellation message type has been set.
Trigger Criteria:
Context: An export cancellation message type has been set
Applied to: Prepare Cancellation Message Content
Action: The system prepares the cancellation message content
Logic Flow:
IF An export cancellation message type has been set
AND The system prepares the cancellation message content
THEN:
• The system formats the message with cancellation-specific information and reason codes
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when export message is being prepared.
Trigger Criteria:
Context: An export message is being prepared
Applied to: Include Cargo Details
Action: The system includes cargo details in the message
Logic Flow:
IF An export message is being prepared
AND The system includes cargo details in the message
THEN:
• The system adds cargo identification, quantities, and export-related information to the message content
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when export cancellation message is being prepared.
Trigger Criteria:
Context: An export cancellation message is being prepared
Applied to: Include Cancellation Reason
Action: The system includes cancellation reason information
Logic Flow:
IF An export cancellation message is being prepared
AND The system includes cancellation reason information
THEN:
• The system adds the cancellation reason code and description to the message content
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when export message content has been prepared with cargo details.
Trigger Criteria:
Context: Export message content has been prepared with cargo details
Applied to: Format USCS Export Message
Action: The system formats the message for USCS transmission
Logic Flow:
IF Export message content has been prepared with cargo details
AND The system formats the message for USCS transmission
THEN:
• The system creates a properly formatted USCS export message with all required fields and structure
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cancellation message content has been prepared with reason information.
Trigger Criteria:
Context: Cancellation message content has been prepared with reason information
Applied to: Format USCS Cancellation Message
Action: The system formats the cancellation message for USCS transmission
Logic Flow:
IF Cancellation message content has been prepared with reason information
AND The system formats the cancellation message for USCS transmission
THEN:
• The system creates a properly formatted USCS cancellation message with all required fields and structure
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when uscs export message has been formatted.
Trigger Criteria:
Context: A USCS export message has been formatted
Applied to: Route to USEXP Basket
Action: The system routes the message for transmission
Logic Flow:
IF A USCS export message has been formatted
AND The system routes the message for transmission
THEN:
• The system sends the export message to the USEXP basket for delivery to USCS systems
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when uscs cancellation message has been formatted.
Trigger Criteria:
Context: A USCS cancellation message has been formatted
Applied to: Route to Cancellation Recipients
Action: The system routes the cancellation message for transmission
Logic Flow:
IF A USCS cancellation message has been formatted
AND The system routes the cancellation message for transmission
THEN:
• The system sends the cancellation message to designated cancellation recipients for processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when export message has been routed to usexp basket.
Trigger Criteria:
Context: An export message has been routed to USEXP basket
Applied to: Log Export Operation
Action: The system logs the export operation
Logic Flow:
IF An export message has been routed to USEXP basket
AND The system logs the export operation
THEN:
• The system records the export operation details including cargo information and timestamp for audit purposes
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cancellation message has been routed to recipients.
Trigger Criteria:
Context: A cancellation message has been routed to recipients
Applied to: Log Cancellation Operation
Action: The system logs the cancellation operation
Logic Flow:
IF A cancellation message has been routed to recipients
AND The system logs the cancellation operation
THEN:
• The system records the cancellation operation details including reason and timestamp for audit purposes
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when export operation has been logged successfully.
Trigger Criteria:
Context: An export operation has been logged successfully
Applied to: Update Cargo Export Status
Action: The system updates the cargo export status
Logic Flow:
IF An export operation has been logged successfully
AND The system updates the cargo export status
THEN:
• The system sets the cargo status to exported and updates relevant export flags and timestamps
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cancellation operation has been logged successfully.
Trigger Criteria:
Context: A cancellation operation has been logged successfully
Applied to: Restore Previous Status
Action: The system restores the previous cargo status
Logic Flow:
IF A cancellation operation has been logged successfully
AND The system restores the previous cargo status
THEN:
• The system reverts the cargo status to its state before the export operation and clears export-related flags
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when container type validation has failed.
Trigger Criteria:
Context: A container type validation has failed
Applied to: Handle Invalid Container Type
Action: The system handles the invalid container type
Logic Flow:
IF A container type validation has failed
AND The system handles the invalid container type
THEN:
• The system bypasses export message generation and completes the process without creating export messages
R-GCX016-cbl-03376 (+13)File: GCX016.cblBusiness Rule: Arrival Message Generation with Cancellation Support
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when arrival message processing request is initiated.
Trigger Criteria:
Context: An arrival message processing request is initiated
Applied to: Set Arrival Message Type
Action: The system evaluates the message type for arrival processing
Logic Flow:
IF An arrival message processing request is initiated
AND The system evaluates the message type for arrival processing
THEN:
• The system sets the arrival message type flag to indicate standard arrival message generation
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when arrival cancellation processing request is initiated.
Trigger Criteria:
Context: An arrival cancellation processing request is initiated
Applied to: Set Cancellation Message Type
Action: The system evaluates the message type for cancellation processing
Logic Flow:
IF An arrival cancellation processing request is initiated
AND The system evaluates the message type for cancellation processing
THEN:
• The system sets the cancellation message type flag to indicate arrival cancellation message generation
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when message type has been determined for arrival or cancellation processing. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: A message type has been determined for arrival or cancellation processing
Applied to: Call Z110-PREP-EMCSEND for Message Preparation
Action: The system needs to prepare the message for transmission
Logic Flow:
IF A message type has been determined for arrival or cancellation processing
AND The system needs to prepare the message for transmission
THEN:
• The system calls Z110-PREP-EMCSEND service to handle message preparation and routing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when arrival message type has been set and cargo details are available.
Trigger Criteria:
Context: An arrival message type has been set and cargo details are available
Applied to: Format Arrival Message with Cargo Details
Action: The system formats the arrival message
Logic Flow:
IF An arrival message type has been set and cargo details are available
AND The system formats the arrival message
THEN:
• The system includes cargo details, arrival date, time, and location information in the message format
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cancellation message type has been set and cancellation reason is available.
Trigger Criteria:
Context: A cancellation message type has been set and cancellation reason is available
Applied to: Format Cancellation Message with Reason
Action: The system formats the cancellation message
Logic Flow:
IF A cancellation message type has been set and cancellation reason is available
AND The system formats the cancellation message
THEN:
• The system includes cancellation reason, original arrival details, and instructions for re-arrival in the message format
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when message has been formatted for arrival or cancellation.
Trigger Criteria:
Context: A message has been formatted for arrival or cancellation
Applied to: Message Routing Required?
Action: The system evaluates routing requirements
Logic Flow:
IF A message has been formatted for arrival or cancellation
AND The system evaluates routing requirements
THEN:
• The system determines if the message needs to be routed to USCS operations or other destinations based on message type and content
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when message requires routing and uscs operations is the target destination.
Trigger Criteria:
Context: A message requires routing and USCS operations is the target destination
Applied to: Route to USCS Operations
Action: The system routes the message
Logic Flow:
IF A message requires routing and USCS operations is the target destination
AND The system routes the message
THEN:
• The system sends the message to USCS operations with appropriate priority and delivery confirmation
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when message is routed to uscs operations and involves container equipment types.
Trigger Criteria:
Context: A message is routed to USCS operations and involves container equipment types
Applied to: Route to Export Baskets for Container Types
Action: The system evaluates equipment type for additional routing
Logic Flow:
IF A message is routed to USCS operations and involves container equipment types
AND The system evaluates equipment type for additional routing
THEN:
• The system also routes the message to export baskets for container-specific processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when message has been routed to appropriate destinations.
Trigger Criteria:
Context: A message has been routed to appropriate destinations
Applied to: Set Message Keywords for Categorization
Action: The system sets message categorization
Logic Flow:
IF A message has been routed to appropriate destinations
AND The system sets message categorization
THEN:
• The system assigns relevant keywords based on message type, cargo type, and operation type for proper filtering and processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when message has been categorized with appropriate keywords.
Trigger Criteria:
Context: A message has been categorized with appropriate keywords
Applied to: Determine Destination Users
Action: The system determines destination users
Logic Flow:
IF A message has been categorized with appropriate keywords
AND The system determines destination users
THEN:
• The system identifies target users based on user configuration, message type, and operational requirements
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when destination users have been determined for message delivery.
Trigger Criteria:
Context: Destination users have been determined for message delivery
Applied to: Valid Users?
Action: The system validates user configuration
Logic Flow:
IF Destination users have been determined for message delivery
AND The system validates user configuration
THEN:
• The system confirms that users are valid, active, and properly configured to receive the message type
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when valid configured users have been identified for message delivery.
Trigger Criteria:
Context: Valid configured users have been identified for message delivery
Applied to: Send to Configured Users
Action: The system sends the message
Logic Flow:
IF Valid configured users have been identified for message delivery
AND The system sends the message
THEN:
• The system delivers the message to all configured users with delivery confirmation and tracking
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when configured users are invalid or unavailable for message delivery.
Trigger Criteria:
Context: Configured users are invalid or unavailable for message delivery
Applied to: Reroute to Default Users with Notification
Action: The system reroutes the message
Logic Flow:
IF Configured users are invalid or unavailable for message delivery
AND The system reroutes the message
THEN:
• The system sends the message to default users and generates a notification about the rerouting due to invalid user configuration
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when message has been processed and delivered or rerouted.
Trigger Criteria:
Context: A message has been processed and delivered or rerouted
Applied to: Log Message Generation Activity
Action: The system logs the activity
Logic Flow:
IF A message has been processed and delivered or rerouted
AND The system logs the activity
THEN:
• The system records message generation details, delivery status, user information, and timestamps for audit trail
R-GCX016-cbl-03390 (+19)File: GCX016.cblBusiness Rule: Foreign Bill Cargo Creation
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when foreign bill is not found in the system.
Trigger Criteria:
Context: A foreign bill is not found in the system
Applied to: Initialize New Cargo Record
Action: The system needs to create a new cargo record
Logic Flow:
IF A foreign bill is not found in the system
AND The system needs to create a new cargo record
THEN:
• Initialize a new cargo record structure with default field values and prepare it for data population
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when new cargo record is being created.
Trigger Criteria:
Context: A new cargo record is being created
Applied to: Set Default CPRS/USCS Status
Action: The cargo type is CPRS
Logic Flow:
IF A new cargo record is being created
AND The cargo type is CPRS
THEN:
• Set cargo status to 'ERROR' with description 'ERROR', otherwise set status to 'SENT' with description 'SENT'
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when new cargo record is being created.
Trigger Criteria:
Context: A new cargo record is being created
Applied to: Set Creation Date and Time
Action: Finalizing cargo record creation
Logic Flow:
IF A new cargo record is being created
AND Finalizing cargo record creation
THEN:
• Set creation date and time fields to current system date and time
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when m10 segment contains manifest information.
Trigger Criteria:
Context: An M10 segment contains manifest information
Applied to: Extract Manifest Information from M10 Segment
Action: Creating a new cargo record
Logic Flow:
IF An M10 segment contains manifest information
AND Creating a new cargo record
THEN:
• Extract and populate vessel name, voyage number, manifest type, and related manifest fields into the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when manifest information is available from m10 segment.
Trigger Criteria:
Context: Manifest information is available from M10 segment
Applied to: Set SCAC Code and Transport Type
Action: Setting up cargo transportation details
Logic Flow:
IF Manifest information is available from M10 segment
AND Setting up cargo transportation details
THEN:
• Assign SCAC code from manifest and set appropriate transport type based on carrier information
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when manifest contains country and vessel information.
Trigger Criteria:
Context: Manifest contains country and vessel information
Applied to: Set Country Code and Vessel Name
Action: Creating cargo record
Logic Flow:
IF Manifest contains country and vessel information
AND Creating cargo record
THEN:
• Set country code and vessel name from manifest data into cargo record fields
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when manifest contains voyage and quantity data.
Trigger Criteria:
Context: Manifest contains voyage and quantity data
Applied to: Set Flight/Voyage Number and Quantity
Action: Setting up cargo shipment details
Logic Flow:
IF Manifest contains voyage and quantity data
AND Setting up cargo shipment details
THEN:
• Assign flight/voyage number and cargo quantity from manifest to cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when manifest type information is available.
Trigger Criteria:
Context: Manifest type information is available
Applied to: Set Manifest Type Code and Condition Response
Action: Finalizing manifest details in cargo record
Logic Flow:
IF Manifest type information is available
AND Finalizing manifest details in cargo record
THEN:
• Set manifest type code and condition response based on manifest classification
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when x4 segment contains customs release information.
Trigger Criteria:
Context: An X4 segment contains customs release information
Applied to: Extract X4 Segment Information
Action: Creating cargo record with customs data
Logic Flow:
IF An X4 segment contains customs release information
AND Creating cargo record with customs data
THEN:
• Extract broker information, entry numbers, bond details, and disposition codes from X4 segment into cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when x4 segment contains broker information.
Trigger Criteria:
Context: X4 segment contains broker information
Applied to: Set Broker Information
Action: Setting up cargo broker details
Logic Flow:
IF X4 segment contains broker information
AND Setting up cargo broker details
THEN:
• Populate broker ID, name, and contact information from X4 segment into cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when x4 segment contains bond information.
Trigger Criteria:
Context: X4 segment contains bond information
Applied to: Set Bond Control Number
Action: Setting up customs bond details
Logic Flow:
IF X4 segment contains bond information
AND Setting up customs bond details
THEN:
• Extract and assign bond control number from X4 segment to cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when x4 segment contains entry information.
Trigger Criteria:
Context: X4 segment contains entry information
Applied to: Set Entry Number and Type
Action: Setting up customs entry details
Logic Flow:
IF X4 segment contains entry information
AND Setting up customs entry details
THEN:
• Extract entry number and entry type code from X4 segment and populate cargo record fields
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when entry type code is 61, 62, 63, or 69.
Trigger Criteria:
Context: Entry type code is 61, 62, 63, or 69
Applied to: Process Master In-Bond Entry Types 61,62,63,69
Action: Processing entry type for new cargo
Logic Flow:
IF Entry type code is 61, 62, 63, or 69
AND Processing entry type for new cargo
THEN:
• Set master in-bond flag and configure specific transport type and bond processing requirements for the entry type
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when entry type code is 61 (immediate transport), 62 (transport export), 63 (immediate export), or 69 (us-canada-us).
Trigger Criteria:
Context: Entry type code is 61 (immediate transport), 62 (transport export), 63 (immediate export), or 69 (US-Canada-US)
Applied to: Map Entry Type to Transport Type
Action: Mapping entry type to transport classification
Logic Flow:
IF Entry type code is 61 (immediate transport), 62 (transport export), 63 (immediate export), or 69 (US-Canada-US)
AND Mapping entry type to transport classification
THEN:
• Set corresponding transport type: 61 maps to immediate transport, 62 to transport export, 63 to immediate export, 69 to US-Canada-US movement
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when entry type code is 00.
Trigger Criteria:
Context: Entry type code is 00
Applied to: Process Border Entry Type 00
Action: Processing border entry type
Logic Flow:
IF Entry type code is 00
AND Processing border entry type
THEN:
• Configure cargo for border processing and clear bond information as required for border entries
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when entry type is border entry (00).
Trigger Criteria:
Context: Entry type is border entry (00)
Applied to: Clear Bond Information for Border Entry
Action: Processing bond requirements
Logic Flow:
IF Entry type is border entry (00)
AND Processing bond requirements
THEN:
• Clear bond control number and related bond fields as border entries do not require customs bonding
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when new cargo record is being finalized.
Trigger Criteria:
Context: A new cargo record is being finalized
Applied to: Set Default Cargo Values
Action: Setting default values for unpopulated fields
Logic Flow:
IF A new cargo record is being finalized
AND Setting default values for unpopulated fields
THEN:
• Assign system default values to cargo fields including acknowledgment status, processing flags, and standard field defaults
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when new cargo record requires a unique identifier.
Trigger Criteria:
Context: A new cargo record requires a unique identifier
Applied to: Generate New US-CCN Key
Action: Generating cargo record key
Logic Flow:
IF A new cargo record requires a unique identifier
AND Generating cargo record key
THEN:
• Create a new US-CCN key using system key generation logic to ensure uniqueness
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when complete cargo record is ready for storage.
Trigger Criteria:
Context: A complete cargo record is ready for storage
Applied to: Store New Cargo Record in Database
Action: Saving the cargo record
Logic Flow:
IF A complete cargo record is ready for storage
AND Saving the cargo record
THEN:
• Insert the cargo record into the database and confirm successful storage
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when new cargo record has been successfully created.
Trigger Criteria:
Context: A new cargo record has been successfully created
Applied to: Log Cargo Creation Activity
Action: Completing cargo creation process
Logic Flow:
IF A new cargo record has been successfully created
AND Completing cargo creation process
THEN:
• Log the cargo creation activity with relevant details for audit trail and system tracking
R-GCX016-cbl-03410 (+18)File: GCX016.cblBusiness Rule: Cargo Initialization with Default Values
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when new cargo record is being initialized.
Trigger Criteria:
Context: A new cargo record is being initialized
Applied to: Set Default CPRS/USCS Status
Action: The cargo type is CPRS
Logic Flow:
IF A new cargo record is being initialized
AND The cargo type is CPRS
THEN:
• Set cargo status to 'ERROR' with status description 'ERROR'
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when new cargo record is being initialized.
Trigger Criteria:
Context: A new cargo record is being initialized
Applied to: Set Default CPRS/USCS Status
Action: The cargo type is not CPRS
Logic Flow:
IF A new cargo record is being initialized
AND The cargo type is not CPRS
THEN:
• Set cargo status to 'SENT' with status description 'SENT'
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when new cargo record is being initialized.
Trigger Criteria:
Context: A new cargo record is being initialized
Applied to: Set Default Manifest Data
Action: Manifest data fields need default values
Logic Flow:
IF A new cargo record is being initialized
AND Manifest data fields need default values
THEN:
• Set manifest number, waybill number, and related tracking fields to system defaults
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when new cargo record is being initialized.
Trigger Criteria:
Context: A new cargo record is being initialized
Applied to: Set Default Quantity Values
Action: Quantity fields need default values
Logic Flow:
IF A new cargo record is being initialized
AND Quantity fields need default values
THEN:
• Set total quantity, released quantity, and piece count to zero or system default values
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when new cargo record is being initialized.
Trigger Criteria:
Context: A new cargo record is being initialized
Applied to: Set Default Location Information
Action: Location fields need default values
Logic Flow:
IF A new cargo record is being initialized
AND Location fields need default values
THEN:
• Set origin location, destination location, and current location to system defaults
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record is being processed.
Trigger Criteria:
Context: A cargo record is being processed
Applied to: Set Default CPRS/USCS Status
Action: The current cargo status is blank or equals 'ACK-R'
Logic Flow:
IF A cargo record is being processed
AND The current cargo status is blank or equals 'ACK-R'
THEN:
• Set default acknowledgment status to 'ACK' or 'ACK-R' based on system configuration
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when new cargo record is being created.
Trigger Criteria:
Context: A new cargo record is being created
Applied to: Initialize Broker Information Fields
Action: Broker information fields need initialization
Logic Flow:
IF A new cargo record is being created
AND Broker information fields need initialization
THEN:
• Clear broker ID, broker name, and notification preference fields to default values
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when new cargo record is being created.
Trigger Criteria:
Context: A new cargo record is being created
Applied to: Initialize Cargo Status Fields
Action: Status fields need initialization
Logic Flow:
IF A new cargo record is being created
AND Status fields need initialization
THEN:
• Set cargo status, status description, hold flags, and release flags to default values
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when new cargo record is being created.
Trigger Criteria:
Context: A new cargo record is being created
Applied to: Initialize Date Fields
Action: Date fields need initialization
Logic Flow:
IF A new cargo record is being created
AND Date fields need initialization
THEN:
• Set arrival date, departure date, and status change dates to system defaults or current date
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when new cargo record is being created.
Trigger Criteria:
Context: A new cargo record is being created
Applied to: Initialize Equipment Information
Action: Equipment fields need initialization
Logic Flow:
IF A new cargo record is being created
AND Equipment fields need initialization
THEN:
• Set car ID, equipment type, and transportation unit information based on cargo type and N7 segment data
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record with disposition code in ('1j', '69', '55').
Trigger Criteria:
Context: A cargo record with disposition code in ('1J', '69', '55')
Applied to: Process Master In-Bond Entry Types
Action: The disposition code indicates master in-bond processing is required
Logic Flow:
IF A cargo record with disposition code in ('1J', '69', '55')
AND The disposition code indicates master in-bond processing is required
THEN:
• Set M1109 master in-bond flag and evaluate entry type codes for bond type determination
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record with master in-bond processing required.
Trigger Criteria:
Context: A cargo record with master in-bond processing required
Applied to: Map Entry Type to Transport Type
Action: The entry type code is '61'
Logic Flow:
IF A cargo record with master in-bond processing required
AND The entry type code is '61'
THEN:
• Set transport type to immediate transport and configure appropriate bond processing parameters
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record with master in-bond processing required.
Trigger Criteria:
Context: A cargo record with master in-bond processing required
Applied to: Map Entry Type to Transport Type
Action: The entry type code is '62'
Logic Flow:
IF A cargo record with master in-bond processing required
AND The entry type code is '62'
THEN:
• Set transport type to transport export and configure appropriate bond processing parameters
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record with master in-bond processing required.
Trigger Criteria:
Context: A cargo record with master in-bond processing required
Applied to: Map Entry Type to Transport Type
Action: The entry type code is '63'
Logic Flow:
IF A cargo record with master in-bond processing required
AND The entry type code is '63'
THEN:
• Set transport type to immediate export and configure appropriate bond processing parameters
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record with master in-bond processing required.
Trigger Criteria:
Context: A cargo record with master in-bond processing required
Applied to: Map Entry Type to Transport Type
Action: The entry type code is '69'
Logic Flow:
IF A cargo record with master in-bond processing required
AND The entry type code is '69'
THEN:
• Set transport type to US-Canada-US movement and configure appropriate bond processing parameters
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record being processed.
Trigger Criteria:
Context: A cargo record being processed
Applied to: Clear Bond Information
Action: The entry type is '00' indicating border processing
Logic Flow:
IF A cargo record being processed
AND The entry type is '00' indicating border processing
THEN:
• Clear bond number, bond date, and related bond information fields
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record with bond processing required.
Trigger Criteria:
Context: A cargo record with bond processing required
Applied to: Set Default Bond Values
Action: The entry type is not '00' (not border processing)
Logic Flow:
IF A cargo record with bond processing required
AND The entry type is not '00' (not border processing)
THEN:
• Set default bond number, establish bond dates, and initialize bond-related tracking fields
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when new cargo record is being finalized.
Trigger Criteria:
Context: A new cargo record is being finalized
Applied to: Set Cargo Record Key Fields
Action: Key fields need to be set
Logic Flow:
IF A new cargo record is being finalized
AND Key fields need to be set
THEN:
• Set US-CCN key, manifest key, and other unique identifiers for database operations
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record has been fully initialized.
Trigger Criteria:
Context: A cargo record has been fully initialized
Applied to: Mark Record as New/Active
Action: The record is ready for database insertion
Logic Flow:
IF A cargo record has been fully initialized
AND The record is ready for database insertion
THEN:
• Set new record flag to true and active status flag to indicate the record is available for processing
R-GCX016-cbl-03437 (+8)File: GCX016.cblBusiness Rule: Border Entry Special Processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record is being processed for entry type validation.
Trigger Criteria:
Context: A cargo record is being processed for entry type validation
Applied to: Entry Type Code = '00'?
Action: The entry type code equals '00'
Logic Flow:
IF A cargo record is being processed for entry type validation
AND The entry type code equals '00'
THEN:
• The system identifies this as a border entry requiring special processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record has entry type code '00'.
Trigger Criteria:
Context: A cargo record has entry type code '00'
Applied to: Identify as Border Entry
Action: The system processes the entry type classification
Logic Flow:
IF A cargo record has entry type code '00'
AND The system processes the entry type classification
THEN:
• The cargo is classified as a border entry type
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record is classified as border entry with type code '00'.
Trigger Criteria:
Context: A cargo record is classified as border entry with type code '00'
Applied to: Clear Bond Control Number
Action: The system processes bond control number clearing
Logic Flow:
IF A cargo record is classified as border entry with type code '00'
AND The system processes bond control number clearing
THEN:
• The bond control number field is cleared to empty value
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record is classified as border entry with type code '00'.
Trigger Criteria:
Context: A cargo record is classified as border entry with type code '00'
Applied to: Clear Broker Entry Number
Action: The system processes broker entry number clearing
Logic Flow:
IF A cargo record is classified as border entry with type code '00'
AND The system processes broker entry number clearing
THEN:
• The broker entry number field is cleared to empty value
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record is classified as border entry with type code '00'.
Trigger Criteria:
Context: A cargo record is classified as border entry with type code '00'
Applied to: Clear Related Bond Data
Action: The system processes related bond data clearing
Logic Flow:
IF A cargo record is classified as border entry with type code '00'
AND The system processes related bond data clearing
THEN:
• All related bond data fields are cleared including bond numbers, dates, and references
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record is classified as border entry with type code '00'.
Trigger Criteria:
Context: A cargo record is classified as border entry with type code '00'
Applied to: Set Border Entry Flag
Action: The system processes border entry flag setting
Logic Flow:
IF A cargo record is classified as border entry with type code '00'
AND The system processes border entry flag setting
THEN:
• The border entry flag is set to indicate this cargo requires border processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record has been processed as border entry with cleared bond data and set flags.
Trigger Criteria:
Context: A cargo record has been processed as border entry with cleared bond data and set flags
Applied to: Update Cargo Record with Border Status
Action: The system updates the cargo record status
Logic Flow:
IF A cargo record has been processed as border entry with cleared bond data and set flags
AND The system updates the cargo record status
THEN:
• The cargo record is updated with border processing status and all cleared fields are saved
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record has been processed as border entry with updated status.
Trigger Criteria:
Context: A cargo record has been processed as border entry with updated status
Applied to: Log Border Entry Processing
Action: The system performs logging activities
Logic Flow:
IF A cargo record has been processed as border entry with updated status
AND The system performs logging activities
THEN:
• Border entry processing activities are logged including entry type, cleared fields, and status changes
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record has entry type code that is not '00'.
Trigger Criteria:
Context: A cargo record has entry type code that is not '00'
Applied to: Process as Regular Entry
Action: The system determines processing path
Logic Flow:
IF A cargo record has entry type code that is not '00'
AND The system determines processing path
THEN:
• The cargo is processed through regular entry processing without border-specific clearing operations
R-GCX016-cbl-03446 (+14)File: GCX016.cblBusiness Rule: Station Information Integration
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record is being processed.
Trigger Criteria:
Context: A cargo record is being processed
Applied to: Cargo Record Requires Station Info?
Action: The system evaluates whether station information is required for the cargo record
Logic Flow:
IF A cargo record is being processed
AND The system evaluates whether station information is required for the cargo record
THEN:
• The system determines if station lookup and integration should proceed or skip station processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record contains location information.
Trigger Criteria:
Context: A cargo record contains location information
Applied to: Identify Location ID from Cargo Record
Action: Station information integration is required
Logic Flow:
IF A cargo record contains location information
AND Station information integration is required
THEN:
• The system extracts the location ID from the cargo record for station table queries
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when location id has been identified from the cargo record.
Trigger Criteria:
Context: A location ID has been identified from the cargo record
Applied to: Lookup Station in DS Table
Action: The system performs DS table lookup
Logic Flow:
IF A location ID has been identified from the cargo record
AND The system performs DS table lookup
THEN:
• The system searches the DS table for matching station name records
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when ds table lookup has been performed using location id.
Trigger Criteria:
Context: A DS table lookup has been performed using location ID
Applied to: DS Table Entry Found?
Action: The system checks the lookup results
Logic Flow:
IF A DS table lookup has been performed using location ID
AND The system checks the lookup results
THEN:
• The system determines if a valid DS table entry was found and sets appropriate processing flags
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when valid ds table entry has been found for the location id.
Trigger Criteria:
Context: A valid DS table entry has been found for the location ID
Applied to: Retrieve Station Name from DS Table
Action: The system retrieves station information
Logic Flow:
IF A valid DS table entry has been found for the location ID
AND The system retrieves station information
THEN:
• The system extracts the station name from the DS table entry for integration
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when location id has been identified and ds table processing is complete.
Trigger Criteria:
Context: A location ID has been identified and DS table processing is complete
Applied to: Lookup Station in KS Table
Action: The system performs KS table lookup
Logic Flow:
IF A location ID has been identified and DS table processing is complete
AND The system performs KS table lookup
THEN:
• The system searches the KS table for matching station description records
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when ks table lookup has been performed using location id.
Trigger Criteria:
Context: A KS table lookup has been performed using location ID
Applied to: KS Table Entry Found?
Action: The system checks the lookup results
Logic Flow:
IF A KS table lookup has been performed using location ID
AND The system checks the lookup results
THEN:
• The system determines if a valid KS table entry was found and sets appropriate processing flags
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when valid ks table entry has been found for the location id.
Trigger Criteria:
Context: A valid KS table entry has been found for the location ID
Applied to: Retrieve Station Description from KS Table
Action: The system retrieves station description information
Logic Flow:
IF A valid KS table entry has been found for the location ID
AND The system retrieves station description information
THEN:
• The system extracts the station description from the KS table entry for integration
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when location id has been identified and ds/ks table processing is complete.
Trigger Criteria:
Context: A location ID has been identified and DS/KS table processing is complete
Applied to: Lookup Station in SD Table
Action: The system performs SD table lookup
Logic Flow:
IF A location ID has been identified and DS/KS table processing is complete
AND The system performs SD table lookup
THEN:
• The system searches the SD table for matching station detail records
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when sd table lookup has been performed using location id.
Trigger Criteria:
Context: An SD table lookup has been performed using location ID
Applied to: SD Table Entry Found?
Action: The system checks the lookup results
Logic Flow:
IF An SD table lookup has been performed using location ID
AND The system checks the lookup results
THEN:
• The system determines if a valid SD table entry was found and sets appropriate processing flags
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when valid sd table entry has been found for the location id.
Trigger Criteria:
Context: A valid SD table entry has been found for the location ID
Applied to: Retrieve Additional Station Details from SD Table
Action: The system retrieves additional station details
Logic Flow:
IF A valid SD table entry has been found for the location ID
AND The system retrieves additional station details
THEN:
• The system extracts the additional station details from the SD table entry for integration
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when station name information has been retrieved from ds table or default values are used.
Trigger Criteria:
Context: Station name information has been retrieved from DS table or default values are used
Applied to: Integrate Station Name into Cargo Record
Action: The system integrates station information into cargo record
Logic Flow:
IF Station name information has been retrieved from DS table or default values are used
AND The system integrates station information into cargo record
THEN:
• The system updates the cargo record with the station name information
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when station description information has been retrieved from ks table or default values are used.
Trigger Criteria:
Context: Station description information has been retrieved from KS table or default values are used
Applied to: Integrate Station Description into Cargo Record
Action: The system integrates station description into cargo record
Logic Flow:
IF Station description information has been retrieved from KS table or default values are used
AND The system integrates station description into cargo record
THEN:
• The system updates the cargo record with the station description information
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when station name and description have been integrated into the cargo record.
Trigger Criteria:
Context: Station name and description have been integrated into the cargo record
Applied to: Update Cargo Record with Complete Station Information
Action: The system completes the station information integration
Logic Flow:
IF Station name and description have been integrated into the cargo record
AND The system completes the station information integration
THEN:
• The system updates the cargo record with complete station information including names, descriptions, and additional details
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when station table lookups have failed to find matching entries.
Trigger Criteria:
Context: Station table lookups have failed to find matching entries
Applied to: Use Default/Empty Station Information
Action: The system cannot retrieve station information from DS, KS, or SD tables
Logic Flow:
IF Station table lookups have failed to find matching entries
AND The system cannot retrieve station information from DS, KS, or SD tables
THEN:
• The system assigns default or empty station information to the cargo record
R-GCX016-cbl-03461 (+10)File: GCX016.cblBusiness Rule: Broker Bond Message Processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record with scac code information is being processed.
Trigger Criteria:
Context: A cargo record with SCAC code information is being processed
Applied to: Identify Canadian Pacific Entity
Action: The system checks the cargo SCAC code
Logic Flow:
IF A cargo record with SCAC code information is being processed
AND The system checks the cargo SCAC code
THEN:
• The system identifies Canadian Pacific Railway entities (CPRS) for special bond message handling
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when message is being processed with disposition code and entry information.
Trigger Criteria:
Context: A message is being processed with disposition code and entry information
Applied to: Detect Broker-Created Bond Pattern
Action: The disposition code is '95' and entry type is in ('61', '62', '63', '69')
Logic Flow:
IF A message is being processed with disposition code and entry information
AND The disposition code is '95' and entry type is in ('61', '62', '63', '69')
THEN:
• The system identifies this as a broker-created bond message requiring special handling
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when broker-created bond message has been identified.
Trigger Criteria:
Context: A broker-created bond message has been identified
Applied to: Apply Special Bond Message Formatting
Action: The system formats the message for broker notification
Logic Flow:
IF A broker-created bond message has been identified
AND The system formats the message for broker notification
THEN:
• The system applies special bond message formatting including bond control information and broker entity details
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when broker bond message is being formatted.
Trigger Criteria:
Context: A broker bond message is being formatted
Applied to: Include Bond Control Information
Action: The system prepares the message content
Logic Flow:
IF A broker bond message is being formatted
AND The system prepares the message content
THEN:
• The system includes bond control number, entry number, and related bond identifiers in the message
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when broker bond message requires entity details.
Trigger Criteria:
Context: A broker bond message requires entity details
Applied to: Add Broker Entity Details
Action: The system retrieves broker information from cargo records
Logic Flow:
IF A broker bond message requires entity details
AND The system retrieves broker information from cargo records
THEN:
• The system adds broker short name, tax number, and entity identification to the message
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when broker bond message contains disposition code information.
Trigger Criteria:
Context: A broker bond message contains disposition code information
Applied to: Format Disposition Code Information
Action: The system formats the disposition code for the message
Logic Flow:
IF A broker bond message contains disposition code information
AND The system formats the disposition code for the message
THEN:
• The system includes disposition code, description, and related customs information in the broker message
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when broker bond message is being prepared with cargo quantity data.
Trigger Criteria:
Context: A broker bond message is being prepared with cargo quantity data
Applied to: Include Quantity Information
Action: The system formats quantity information
Logic Flow:
IF A broker bond message is being prepared with cargo quantity data
AND The system formats quantity information
THEN:
• The system includes total quantity, release quantity, and quantity impact information in the broker message
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when broker bond message has associated k1 comment segments.
Trigger Criteria:
Context: A broker bond message has associated K1 comment segments
Applied to: Add K1 Comment Segments
Action: The system processes K1 segments for the message
Logic Flow:
IF A broker bond message has associated K1 comment segments
AND The system processes K1 segments for the message
THEN:
• The system includes K1 remarks and special comments in the broker notification message
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when broker bond message requires routing configuration.
Trigger Criteria:
Context: A broker bond message requires routing configuration
Applied to: Set Special Routing Parameters
Action: The system determines routing parameters
Logic Flow:
IF A broker bond message requires routing configuration
AND The system determines routing parameters
THEN:
• The system sets special routing parameters including broker notification preferences and delivery methods
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when broker bond message is formatted and ready for delivery.
Trigger Criteria:
Context: A broker bond message is formatted and ready for delivery
Applied to: Route to Broker Notification System
Action: The system routes the message
Logic Flow:
IF A broker bond message is formatted and ready for delivery
AND The system routes the message
THEN:
• The system sends the message to the broker notification system using configured delivery methods (email or Merlin)
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when broker bond message has been processed and routed.
Trigger Criteria:
Context: A broker bond message has been processed and routed
Applied to: Log Broker Bond Transaction
Action: The system completes the transaction
Logic Flow:
IF A broker bond message has been processed and routed
AND The system completes the transaction
THEN:
• The system logs the broker bond transaction with timestamp, message details, and routing information for audit purposes
R-GCX016-cbl-03472 (+24)File: GCX016.cblBusiness Rule: Cargo Status Preservation and Restoration
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record exists in the system with a valid ccn key.
Trigger Criteria:
Context: A cargo record exists in the system with a valid CCN key
Applied to: Retrieve Current Cargo Status
Action: The system needs to process status changes for the cargo
Logic Flow:
IF A cargo record exists in the system with a valid CCN key
AND The system needs to process status changes for the cargo
THEN:
• The current cargo status information is retrieved from the GCSUSS09 status segments
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when current cargo status has been retrieved from the database.
Trigger Criteria:
Context: Current cargo status has been retrieved from the database
Applied to: Save Current Status to Working Storage
Action: Status processing is about to begin
Logic Flow:
IF Current cargo status has been retrieved from the database
AND Status processing is about to begin
THEN:
• The current status values are saved to working storage arrays for potential restoration
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record is being processed for status changes.
Trigger Criteria:
Context: A cargo record is being processed for status changes
Applied to: Status Array Exists?
Action: The system checks for existing S09 status segments
Logic Flow:
IF A cargo record is being processed for status changes
AND The system checks for existing S09 status segments
THEN:
• If S09 segments exist, load existing status array, otherwise create new status array
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record has no existing s09 status segments.
Trigger Criteria:
Context: A cargo record has no existing S09 status segments
Applied to: Create New Status Array
Action: Status processing requires a status array
Logic Flow:
IF A cargo record has no existing S09 status segments
AND Status processing requires a status array
THEN:
• A new S09 status segment is created with cargo CCN key and sequence '0001'
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when s09 status segments exist for the cargo record.
Trigger Criteria:
Context: S09 status segments exist for the cargo record
Applied to: Load Existing Status Array
Action: Status processing begins
Logic Flow:
IF S09 status segments exist for the cargo record
AND Status processing begins
THEN:
• All S09 sequences and occurrences are loaded into the consolidated status array
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when status array has been loaded or created.
Trigger Criteria:
Context: Status array has been loaded or created
Applied to: Save Original Status Values
Action: Complex status transitions may require restoration of original values
Logic Flow:
IF Status array has been loaded or created
AND Complex status transitions may require restoration of original values
THEN:
• Original PTT status, hold location information, and release quantities are saved to working storage
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code change request is received.
Trigger Criteria:
Context: A disposition code change request is received
Applied to: Process Disposition Code Changes
Action: The disposition code is processed against the current status array
Logic Flow:
IF A disposition code change request is received
AND The disposition code is processed against the current status array
THEN:
• Status changes are applied based on disposition code type (hold, release, remove, info)
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code changes have been processed.
Trigger Criteria:
Context: Disposition code changes have been processed
Applied to: Status Transition Required?
Action: The system evaluates the impact on cargo status
Logic Flow:
IF Disposition code changes have been processed
AND The system evaluates the impact on cargo status
THEN:
• If status changes affect cargo state, status transition processing is initiated, otherwise processing completes
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when status transition is required.
Trigger Criteria:
Context: Status transition is required
Applied to: Analyze New Status Requirements
Action: The system analyzes the updated status array
Logic Flow:
IF Status transition is required
AND The system analyzes the updated status array
THEN:
• New status requirements are determined based on hold conditions, release quantities, and PTT eligibility
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when new status requirements have been analyzed.
Trigger Criteria:
Context: New status requirements have been analyzed
Applied to: Preserve Original Status?
Action: The system evaluates preservation rules
Logic Flow:
IF New status requirements have been analyzed
AND The system evaluates preservation rules
THEN:
• If preservation is required, saved status values are restored, otherwise new status changes are applied
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when status preservation is required and original values were saved.
Trigger Criteria:
Context: Status preservation is required and original values were saved
Applied to: Restore Saved Status Values
Action: Status restoration is triggered
Logic Flow:
IF Status preservation is required and original values were saved
AND Status restoration is triggered
THEN:
• Original PTT status, hold information, and release quantities are restored from working storage
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when status preservation is not required.
Trigger Criteria:
Context: Status preservation is not required
Applied to: Apply New Status Changes
Action: New status changes are ready to be applied
Logic Flow:
IF Status preservation is not required
AND New status changes are ready to be applied
THEN:
• The status array is updated with new disposition codes and status information
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when status changes have been applied or restored.
Trigger Criteria:
Context: Status changes have been applied or restored
Applied to: Update Status Flags
Action: Status flags need to be updated
Logic Flow:
IF Status changes have been applied or restored
AND Status flags need to be updated
THEN:
• Flags for empty, held, released, PTT, export, and arrival conditions are set based on status array analysis
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when status flags have been updated.
Trigger Criteria:
Context: Status flags have been updated
Applied to: Complex Status Logic?
Action: The system evaluates complexity requirements
Logic Flow:
IF Status flags have been updated
AND The system evaluates complexity requirements
THEN:
• If complex logic is needed, PTT status and hold information are preserved, otherwise status validation proceeds
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when complex status logic is required.
Trigger Criteria:
Context: Complex status logic is required
Applied to: Save PTT Status
Action: PTT status needs to be preserved
Logic Flow:
IF Complex status logic is required
AND PTT status needs to be preserved
THEN:
• Current PTT status flags and related information are saved to working storage
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when ptt status has been preserved.
Trigger Criteria:
Context: PTT status has been preserved
Applied to: Save Hold Location Info
Action: Hold location information needs to be saved
Logic Flow:
IF PTT status has been preserved
AND Hold location information needs to be saved
THEN:
• Border hold, destination hold, and location-specific information are preserved in working storage
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when hold location information has been preserved.
Trigger Criteria:
Context: Hold location information has been preserved
Applied to: Save Release Quantities
Action: Release quantities need to be saved
Logic Flow:
IF Hold location information has been preserved
AND Release quantities need to be saved
THEN:
• Current release quantities and total quantities are preserved in working storage
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when all necessary status information has been preserved.
Trigger Criteria:
Context: All necessary status information has been preserved
Applied to: Process Status Transition
Action: Status transition processing is executed
Logic Flow:
IF All necessary status information has been preserved
AND Status transition processing is executed
THEN:
• Cargo status is updated according to business rules while maintaining data integrity
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when status transition processing has been completed.
Trigger Criteria:
Context: Status transition processing has been completed
Applied to: Restore Required?
Action: The system evaluates restoration requirements
Logic Flow:
IF Status transition processing has been completed
AND The system evaluates restoration requirements
THEN:
• If restoration is needed, preserved values are restored, otherwise status validation proceeds
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when status restoration is required and ptt status was preserved.
Trigger Criteria:
Context: Status restoration is required and PTT status was preserved
Applied to: Restore PTT Status
Action: PTT status restoration is executed
Logic Flow:
IF Status restoration is required and PTT status was preserved
AND PTT status restoration is executed
THEN:
• Preserved PTT status flags and information are restored to the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when ptt status has been restored.
Trigger Criteria:
Context: PTT status has been restored
Applied to: Restore Hold Information
Action: Hold information restoration is executed
Logic Flow:
IF PTT status has been restored
AND Hold information restoration is executed
THEN:
• Preserved border hold, destination hold, and location information are restored
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when hold information has been restored.
Trigger Criteria:
Context: Hold information has been restored
Applied to: Restore Release Quantities
Action: Release quantity restoration is executed
Logic Flow:
IF Hold information has been restored
AND Release quantity restoration is executed
THEN:
• Preserved release quantities and total quantities are restored to maintain data consistency
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when status processing and any required restoration has been completed.
Trigger Criteria:
Context: Status processing and any required restoration has been completed
Applied to: Validate Status Consistency
Action: Status consistency validation is performed
Logic Flow:
IF Status processing and any required restoration has been completed
AND Status consistency validation is performed
THEN:
• The final status array is validated for logical consistency and business rule compliance
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when status consistency has been validated.
Trigger Criteria:
Context: Status consistency has been validated
Applied to: Update Final Status Array
Action: Final status array update is performed
Logic Flow:
IF Status consistency has been validated
AND Final status array update is performed
THEN:
• The S09A status array is updated with all processed status changes and redistributed across S09 sequences
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when final status array has been updated and validated.
Trigger Criteria:
Context: Final status array has been updated and validated
Applied to: Persist Status Changes to Database
Action: Database persistence is executed
Logic Flow:
IF Final status array has been updated and validated
AND Database persistence is executed
THEN:
• Updated S09 status segments are written to the GCSUSS09 database and cargo status is updated
R-GCX016-cbl-03497 (+12)File: GCX016.cblBusiness Rule: Equipment Car Information Updates
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when n7 equipment segment is received with equipment information.
Trigger Criteria:
Context: An N7 equipment segment is received with equipment information
Applied to: Extract Equipment ID from N7-02
Action: The system processes the N7-02 field to extract equipment ID
Logic Flow:
IF An N7 equipment segment is received with equipment information
AND The system processes the N7-02 field to extract equipment ID
THEN:
• The equipment ID is captured from N7-02 field for further processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when equipment id has been extracted from n7-02 field.
Trigger Criteria:
Context: An equipment ID has been extracted from N7-02 field
Applied to: Format Equipment ID using GCCCARFM
Action: The system calls GCCCARFM utility to format the equipment ID
Logic Flow:
IF An equipment ID has been extracted from N7-02 field
AND The system calls GCCCARFM utility to format the equipment ID
THEN:
• The equipment ID is formatted according to standard rules and validation status is determined
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when equipment id has been formatted using gcccarfm utility.
Trigger Criteria:
Context: An equipment ID has been formatted using GCCCARFM utility
Applied to: Equipment ID Valid?
Action: The system checks if the equipment ID is valid
Logic Flow:
IF An equipment ID has been formatted using GCCCARFM utility
AND The system checks if the equipment ID is valid
THEN:
• If equipment ID is valid, proceed to retrieve cargo records, otherwise log equipment ID error
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when valid equipment id has been confirmed.
Trigger Criteria:
Context: A valid equipment ID has been confirmed
Applied to: Retrieve Cargo Records by Car ID
Action: The system searches for cargo records using the car ID
Logic Flow:
IF A valid equipment ID has been confirmed
AND The system searches for cargo records using the car ID
THEN:
• All cargo records associated with the car ID are retrieved from the cargo database
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when system has searched for cargo records by car id.
Trigger Criteria:
Context: The system has searched for cargo records by car ID
Applied to: Cargo Records Found?
Action: The system checks if any cargo records were found
Logic Flow:
IF The system has searched for cargo records by car ID
AND The system checks if any cargo records were found
THEN:
• If cargo records are found, proceed to update car ID, otherwise log cargo not found error
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo records have been found for the equipment car id.
Trigger Criteria:
Context: Cargo records have been found for the equipment car ID
Applied to: Update Car ID in Cargo Record
Action: The system updates the car ID field in the cargo record
Logic Flow:
IF Cargo records have been found for the equipment car ID
AND The system updates the car ID field in the cargo record
THEN:
• The cargo record car ID is updated with the formatted equipment ID from N7 segment
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when car id has been updated in the cargo record.
Trigger Criteria:
Context: Car ID has been updated in the cargo record
Applied to: Validate Equipment Information
Action: The system validates the equipment information completeness and accuracy
Logic Flow:
IF Car ID has been updated in the cargo record
AND The system validates the equipment information completeness and accuracy
THEN:
• Equipment information is verified for data integrity and business rule compliance
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when equipment information has been validated.
Trigger Criteria:
Context: Equipment information has been validated
Applied to: Validation Successful?
Action: The system checks if validation was successful
Logic Flow:
IF Equipment information has been validated
AND The system checks if validation was successful
THEN:
• If validation successful, replace cargo record in database, otherwise log validation error
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when equipment validation has been successful.
Trigger Criteria:
Context: Equipment validation has been successful
Applied to: Replace Cargo Record in Database
Action: The system replaces the cargo record in the database
Logic Flow:
IF Equipment validation has been successful
AND The system replaces the cargo record in the database
THEN:
• The cargo record is updated in the database with the new car ID and equipment information
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record has been successfully updated in the database.
Trigger Criteria:
Context: Cargo record has been successfully updated in the database
Applied to: Log Equipment Update
Action: The system logs the equipment update transaction
Logic Flow:
IF Cargo record has been successfully updated in the database
AND The system logs the equipment update transaction
THEN:
• Equipment update is recorded in system logs with cargo and equipment details
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when equipment id validation has failed.
Trigger Criteria:
Context: Equipment ID validation has failed
Applied to: Log Equipment ID Error
Action: The system encounters an invalid equipment ID
Logic Flow:
IF Equipment ID validation has failed
AND The system encounters an invalid equipment ID
THEN:
• Equipment ID error is logged with details about the validation failure
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when no cargo records were found for the equipment car id.
Trigger Criteria:
Context: No cargo records were found for the equipment car ID
Applied to: Log Cargo Not Found Error
Action: The system cannot locate cargo records to update
Logic Flow:
IF No cargo records were found for the equipment car ID
AND The system cannot locate cargo records to update
THEN:
• Cargo not found error is logged with the equipment car ID details
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when equipment information validation has failed.
Trigger Criteria:
Context: Equipment information validation has failed
Applied to: Log Validation Error
Action: The system encounters validation errors for equipment data
Logic Flow:
IF Equipment information validation has failed
AND The system encounters validation errors for equipment data
THEN:
• Validation error is logged with details about the failed validation criteria
R-GCX016-cbl-03510 (+22)File: GCX016.cblBusiness Rule: Manifest Information Integration
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when m10 manifest segment is received with scac code data.
Trigger Criteria:
Context: An M10 manifest segment is received with SCAC code data
Applied to: Extract SCAC Code from M10
Action: The system processes the M10 segment
Logic Flow:
IF An M10 manifest segment is received with SCAC code data
AND The system processes the M10 segment
THEN:
• The SCAC code is extracted and stored for cargo record integration
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when m10 manifest segment contains transport type information.
Trigger Criteria:
Context: An M10 manifest segment contains transport type information
Applied to: Extract Transport Type from M10
Action: The system processes the M10 segment
Logic Flow:
IF An M10 manifest segment contains transport type information
AND The system processes the M10 segment
THEN:
• The transport type is extracted and prepared for cargo record update
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when m10 manifest segment contains country code information.
Trigger Criteria:
Context: An M10 manifest segment contains country code information
Applied to: Extract Country Code from M10
Action: The system processes the M10 segment
Logic Flow:
IF An M10 manifest segment contains country code information
AND The system processes the M10 segment
THEN:
• The country code is extracted for cargo record integration
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when m10 manifest segment contains vessel name information.
Trigger Criteria:
Context: An M10 manifest segment contains vessel name information
Applied to: Extract Vessel Name from M10
Action: The system processes the M10 segment
Logic Flow:
IF An M10 manifest segment contains vessel name information
AND The system processes the M10 segment
THEN:
• The vessel name is extracted and prepared for cargo record update
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when m10 manifest segment contains flight or voyage number.
Trigger Criteria:
Context: An M10 manifest segment contains flight or voyage number
Applied to: Extract Flight/Voyage Number from M10
Action: The system processes the M10 segment
Logic Flow:
IF An M10 manifest segment contains flight or voyage number
AND The system processes the M10 segment
THEN:
• The flight/voyage number is extracted for cargo identification
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when m10 manifest segment contains quantity information.
Trigger Criteria:
Context: An M10 manifest segment contains quantity information
Applied to: Extract Quantity from M10
Action: The system processes the M10 segment
Logic Flow:
IF An M10 manifest segment contains quantity information
AND The system processes the M10 segment
THEN:
• The quantity is extracted and prepared for cargo record integration
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when m10 manifest segment contains manifest type code.
Trigger Criteria:
Context: An M10 manifest segment contains manifest type code
Applied to: Extract Manifest Type Code from M10
Action: The system processes the M10 segment
Logic Flow:
IF An M10 manifest segment contains manifest type code
AND The system processes the M10 segment
THEN:
• The manifest type code is extracted for cargo classification
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when m10 manifest segment contains condition response code.
Trigger Criteria:
Context: An M10 manifest segment contains condition response code
Applied to: Extract Condition Response Code from M10
Action: The system processes the M10 segment
Logic Flow:
IF An M10 manifest segment contains condition response code
AND The system processes the M10 segment
THEN:
• The condition response code is extracted for cargo status determination
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when m10 manifest segment data has been extracted.
Trigger Criteria:
Context: M10 manifest segment data has been extracted
Applied to: All Required Fields Present?
Action: The system validates the extracted data elements
Logic Flow:
IF M10 manifest segment data has been extracted
AND The system validates the extracted data elements
THEN:
• If all required fields are present, processing continues; otherwise, an error is logged and integration is skipped
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when all required m10 manifest data elements have been validated.
Trigger Criteria:
Context: All required M10 manifest data elements have been validated
Applied to: Build Manifest Information Block
Action: The system builds the manifest information block
Logic Flow:
IF All required M10 manifest data elements have been validated
AND The system builds the manifest information block
THEN:
• A complete manifest information structure is created with all extracted data elements
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when manifest information block has been built.
Trigger Criteria:
Context: A manifest information block has been built
Applied to: Locate Target Cargo Record
Action: The system searches for the target cargo record
Logic Flow:
IF A manifest information block has been built
AND The system searches for the target cargo record
THEN:
• The system identifies the cargo record that corresponds to the manifest data
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when no existing cargo record is found for the manifest data.
Trigger Criteria:
Context: No existing cargo record is found for the manifest data
Applied to: Create New Cargo Record
Action: The system attempts to locate a target cargo record
Logic Flow:
IF No existing cargo record is found for the manifest data
AND The system attempts to locate a target cargo record
THEN:
• A new cargo record is created to receive the manifest information
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record exists and scac code has been extracted from m10.
Trigger Criteria:
Context: A cargo record exists and SCAC code has been extracted from M10
Applied to: Set SCAC Code in Cargo
Action: The system updates the cargo record with manifest information
Logic Flow:
IF A cargo record exists and SCAC code has been extracted from M10
AND The system updates the cargo record with manifest information
THEN:
• The SCAC code is set in the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record exists and transport type has been extracted from m10.
Trigger Criteria:
Context: A cargo record exists and transport type has been extracted from M10
Applied to: Set Transport Type in Cargo
Action: The system updates the cargo record with manifest information
Logic Flow:
IF A cargo record exists and transport type has been extracted from M10
AND The system updates the cargo record with manifest information
THEN:
• The transport type is set in the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record exists and country code has been extracted from m10.
Trigger Criteria:
Context: A cargo record exists and country code has been extracted from M10
Applied to: Set Country Code in Cargo
Action: The system updates the cargo record with manifest information
Logic Flow:
IF A cargo record exists and country code has been extracted from M10
AND The system updates the cargo record with manifest information
THEN:
• The country code is set in the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record exists and vessel name has been extracted from m10.
Trigger Criteria:
Context: A cargo record exists and vessel name has been extracted from M10
Applied to: Set Vessel Name in Cargo
Action: The system updates the cargo record with manifest information
Logic Flow:
IF A cargo record exists and vessel name has been extracted from M10
AND The system updates the cargo record with manifest information
THEN:
• The vessel name is set in the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record exists and flight/voyage number has been extracted from m10.
Trigger Criteria:
Context: A cargo record exists and flight/voyage number has been extracted from M10
Applied to: Set Flight/Voyage Number in Cargo
Action: The system updates the cargo record with manifest information
Logic Flow:
IF A cargo record exists and flight/voyage number has been extracted from M10
AND The system updates the cargo record with manifest information
THEN:
• The flight/voyage number is set in the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record exists and quantity has been extracted from m10.
Trigger Criteria:
Context: A cargo record exists and quantity has been extracted from M10
Applied to: Set Quantity in Cargo
Action: The system updates the cargo record with manifest information
Logic Flow:
IF A cargo record exists and quantity has been extracted from M10
AND The system updates the cargo record with manifest information
THEN:
• The quantity is set in the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record exists and manifest type code has been extracted from m10.
Trigger Criteria:
Context: A cargo record exists and manifest type code has been extracted from M10
Applied to: Set Manifest Type Code in Cargo
Action: The system updates the cargo record with manifest information
Logic Flow:
IF A cargo record exists and manifest type code has been extracted from M10
AND The system updates the cargo record with manifest information
THEN:
• The manifest type code is set in the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record exists and condition response code has been extracted from m10.
Trigger Criteria:
Context: A cargo record exists and condition response code has been extracted from M10
Applied to: Set Condition Response Code in Cargo
Action: The system updates the cargo record with manifest information
Logic Flow:
IF A cargo record exists and condition response code has been extracted from M10
AND The system updates the cargo record with manifest information
THEN:
• The condition response code is set in the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record has been updated with all manifest information.
Trigger Criteria:
Context: A cargo record has been updated with all manifest information
Applied to: Save Updated Cargo Record
Action: The system completes the manifest integration process
Logic Flow:
IF A cargo record has been updated with all manifest information
AND The system completes the manifest integration process
THEN:
• The updated cargo record is saved to the database
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when required manifest data fields are missing from the m10 segment.
Trigger Criteria:
Context: Required manifest data fields are missing from the M10 segment
Applied to: Log Missing Field Error
Action: The system validates the extracted data elements
Logic Flow:
IF Required manifest data fields are missing from the M10 segment
AND The system validates the extracted data elements
THEN:
• An error is logged indicating which required fields are missing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when manifest data validation has failed due to missing required fields.
Trigger Criteria:
Context: Manifest data validation has failed due to missing required fields
Applied to: Skip Manifest Integration
Action: The system determines that integration cannot proceed
Logic Flow:
IF Manifest data validation has failed due to missing required fields
AND The system determines that integration cannot proceed
THEN:
• The manifest integration process is skipped and processing continues with the next segment
R-GCX016-cbl-03533 (+12)File: GCX016.cblBusiness Rule: Station Information Lookup
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when location id is provided for station information lookup.
Trigger Criteria:
Context: A location ID is provided for station information lookup
Applied to: Station Information Lookup Request
Action: The system searches for station information across SD, DS, and KS tables in hierarchical order
Logic Flow:
IF A location ID is provided for station information lookup
AND The system searches for station information across SD, DS, and KS tables in hierarchical order
THEN:
• The system returns the first matching station record found or uses default location name if no records are found
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when location id is available for lookup.
Trigger Criteria:
Context: A location ID is available for lookup
Applied to: Lookup SD Table
Action: The system performs station information lookup
Logic Flow:
IF A location ID is available for lookup
AND The system performs station information lookup
THEN:
• The system first searches the SD table in GCSTBRT database for matching station records
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when system has searched the sd table for a location id.
Trigger Criteria:
Context: The system has searched the SD table for a location ID
Applied to: SD Record Found?
Action: A matching SD record is found
Logic Flow:
IF The system has searched the SD table for a location ID
AND A matching SD record is found
THEN:
• The system extracts station name and description from the SD record and completes the lookup process
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when no matching record was found in the sd table.
Trigger Criteria:
Context: No matching record was found in the SD table
Applied to: Lookup DS Table
Action: The system continues the hierarchical lookup process
Logic Flow:
IF No matching record was found in the SD table
AND The system continues the hierarchical lookup process
THEN:
• The system searches the DS table in GCSTBRT database for matching station records
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when system has searched the ds table for a location id after sd table lookup failed.
Trigger Criteria:
Context: The system has searched the DS table for a location ID after SD table lookup failed
Applied to: DS Record Found?
Action: A matching DS record is found
Logic Flow:
IF The system has searched the DS table for a location ID after SD table lookup failed
AND A matching DS record is found
THEN:
• The system extracts station name and description from the DS record and completes the lookup process
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when no matching records were found in both sd and ds tables.
Trigger Criteria:
Context: No matching records were found in both SD and DS tables
Applied to: Lookup KS Table
Action: The system continues the hierarchical lookup process
Logic Flow:
IF No matching records were found in both SD and DS tables
AND The system continues the hierarchical lookup process
THEN:
• The system searches the KS table in GCSTBRT database for matching station records
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when system has searched the ks table for a location id after sd and ds table lookups failed.
Trigger Criteria:
Context: The system has searched the KS table for a location ID after SD and DS table lookups failed
Applied to: KS Record Found?
Action: A matching KS record is found
Logic Flow:
IF The system has searched the KS table for a location ID after SD and DS table lookups failed
AND A matching KS record is found
THEN:
• The system extracts station name and description from the KS record and completes the lookup process
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when matching station record has been found in any of the station tables (sd, ds, or ks).
Trigger Criteria:
Context: A matching station record has been found in any of the station tables (SD, DS, or KS)
Applied to: Extract Station Name
Action: The system processes the found record
Logic Flow:
IF A matching station record has been found in any of the station tables (SD, DS, or KS)
AND The system processes the found record
THEN:
• The system extracts the station name field from the record for use in location mapping
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when station name has been extracted from a found station record.
Trigger Criteria:
Context: Station name has been extracted from a found station record
Applied to: Extract Station Description
Action: The system continues processing the station record
Logic Flow:
IF Station name has been extracted from a found station record
AND The system continues processing the station record
THEN:
• The system extracts the station description field from the record for detailed location information
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when station name and description have been extracted from a station record.
Trigger Criteria:
Context: Station name and description have been extracted from a station record
Applied to: Set Location Description
Action: The system completes station information processing
Logic Flow:
IF Station name and description have been extracted from a station record
AND The system completes station information processing
THEN:
• The system sets the location description field with the extracted station information for use in cargo processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when either no location id is available or no matching records are found in any station table (sd, ds, ks).
Trigger Criteria:
Context: Either no location ID is available or no matching records are found in any station table (SD, DS, KS)
Applied to: Use Default Location Name
Action: The system cannot retrieve station information from database tables
Logic Flow:
IF Either no location ID is available or no matching records are found in any station table (SD, DS, KS)
AND The system cannot retrieve station information from database tables
THEN:
• The system uses a default location name to ensure cargo processing can continue
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when system has searched all station tables (sd, ds, ks) for a location id.
Trigger Criteria:
Context: The system has searched all station tables (SD, DS, KS) for a location ID
Applied to: Log Station Not Found
Action: No matching station records are found in any table
Logic Flow:
IF The system has searched all station tables (SD, DS, KS) for a location ID
AND No matching station records are found in any table
THEN:
• The system logs the station not found condition before using default location name
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when station information lookup request is initiated.
Trigger Criteria:
Context: A station information lookup request is initiated
Applied to: Location ID Available?
Action: The system begins the lookup process
Logic Flow:
IF A station information lookup request is initiated
AND The system begins the lookup process
THEN:
• The system checks if a location ID is available and either proceeds with table lookups or uses default location name
R-GCX016-cbl-03546 (+10)File: GCX016.cblBusiness Rule: Payer of Freight Broker Name Resolution
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record requires payer of freight information.
Trigger Criteria:
Context: A cargo record requires payer of freight information
Applied to: Access Secondary Cargo Records GCSA2RT
Action: The system accesses secondary cargo records GCSA2RT
Logic Flow:
IF A cargo record requires payer of freight information
AND The system accesses secondary cargo records GCSA2RT
THEN:
• Secondary cargo record data is retrieved for further processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when secondary cargo records have been accessed.
Trigger Criteria:
Context: Secondary cargo records have been accessed
Applied to: N101 Payer of Freight Record Found?
Action: The system checks for N101 payer of freight record existence
Logic Flow:
IF Secondary cargo records have been accessed
AND The system checks for N101 payer of freight record existence
THEN:
• Processing continues if N101 record found, otherwise process terminates
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when n101 payer of freight record exists.
Trigger Criteria:
Context: N101 payer of freight record exists
Applied to: Extract Payer of Freight Entity Information
Action: The system extracts payer of freight entity information
Logic Flow:
IF N101 payer of freight record exists
AND The system extracts payer of freight entity information
THEN:
• Entity details are available for broker type validation
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when payer of freight entity information has been extracted.
Trigger Criteria:
Context: Payer of freight entity information has been extracted
Applied to: Check if Entity is Broker Type
Action: The system checks if entity is classified as broker type
Logic Flow:
IF Payer of freight entity information has been extracted
AND The system checks if entity is classified as broker type
THEN:
• Entity is classified as broker or non-broker for appropriate processing path
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when entity is classified as broker type.
Trigger Criteria:
Context: Entity is classified as broker type
Applied to: Construct PF= Prefix Lookup Key
Action: The system constructs PF= prefix lookup key
Logic Flow:
IF Entity is classified as broker type
AND The system constructs PF= prefix lookup key
THEN:
• Specialized broker lookup key is created for table search
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when pf= prefix lookup key has been constructed.
Trigger Criteria:
Context: PF= prefix lookup key has been constructed
Applied to: Search Broker Table with PF= Prefix
Action: The system searches broker table with PF= prefix key
Logic Flow:
IF PF= prefix lookup key has been constructed
AND The system searches broker table with PF= prefix key
THEN:
• Broker table search is executed using specialized prefix lookup
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when broker table search with pf= prefix has been executed.
Trigger Criteria:
Context: Broker table search with PF= prefix has been executed
Applied to: Broker Short Name Found?
Action: The system validates broker short name discovery
Logic Flow:
IF Broker table search with PF= prefix has been executed
AND The system validates broker short name discovery
THEN:
• Processing continues with found name or falls back to original entity name
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when broker short name has been found in table lookup.
Trigger Criteria:
Context: Broker short name has been found in table lookup
Applied to: Retrieve Broker Short Name
Action: The system retrieves broker short name
Logic Flow:
IF Broker short name has been found in table lookup
AND The system retrieves broker short name
THEN:
• Broker short name is set as the payer of freight name
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when entity is not broker type or broker short name lookup failed.
Trigger Criteria:
Context: Entity is not broker type OR broker short name lookup failed
Applied to: Use Original Entity Name
Action: The system uses original entity name as fallback
Logic Flow:
IF Entity is not broker type OR broker short name lookup failed
AND The system uses original entity name as fallback
THEN:
• Original entity name is set as the payer of freight name
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when payer of freight name has been determined (either broker short name or original entity name).
Trigger Criteria:
Context: Payer of freight name has been determined (either broker short name or original entity name)
Applied to: Complete Payer of Freight Resolution
Action: The system completes payer of freight resolution
Logic Flow:
IF Payer of freight name has been determined (either broker short name or original entity name)
AND The system completes payer of freight resolution
THEN:
• Payer of freight name resolution process is finalized
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when payer of freight resolution process has been completed.
Trigger Criteria:
Context: Payer of freight resolution process has been completed
Applied to: Log Resolution Results
Action: The system logs resolution results
Logic Flow:
IF Payer of freight resolution process has been completed
AND The system logs resolution results
THEN:
• Resolution results are recorded for audit and tracking purposes
Business Justification: Establishes the required business protocol to be followed when merlin message is being formatted for cargo processing.
Trigger Criteria:
Context: A Merlin message is being formatted for cargo processing
Applied to: Check Message Type
Action: The disposition code type is Manual Release (MRL) OR Auto Release (ARL)
Logic Flow:
IF A Merlin message is being formatted for cargo processing
AND The disposition code type is Manual Release (MRL) OR Auto Release (ARL)
THEN:
• Skip formatting the disposition code message and proceed to standard cargo details formatting
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when merlin message is being formatted for cargo processing.
Trigger Criteria:
Context: A Merlin message is being formatted for cargo processing
Applied to: Apply Special Broker Bond Formatting
Action: The message type is identified as a broker bond message
Logic Flow:
IF A Merlin message is being formatted for cargo processing
AND The message type is identified as a broker bond message
THEN:
• Apply special formatting rules including bond number, broker information, and enhanced cargo details specific to bond processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when merlin message requires cargo information formatting.
Trigger Criteria:
Context: A Merlin message requires cargo information formatting
Applied to: Format Cargo Information
Action: Standard cargo details need to be included in the message
Logic Flow:
IF A Merlin message requires cargo information formatting
AND Standard cargo details need to be included in the message
THEN:
• Format message with car initial, car number, waybill number, andUS-CCN (customs control number)
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code is being processed for cargo.
Trigger Criteria:
Context: A disposition code is being processed for cargo
Applied to: Add Disposition Code Details
Action: The disposition code type is NOT Manual Release AND NOT Auto Release
Logic Flow:
IF A disposition code is being processed for cargo
AND The disposition code type is NOT Manual Release AND NOT Auto Release
THEN:
• Include the disposition code and its corresponding Merlin message text in the formatted message
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code affects cargo release quantities.
Trigger Criteria:
Context: A disposition code affects cargo release quantities
Applied to: Calculate Quantity Actions
Action: The quantity action is ADD_QUANTITY OR SUBTRACT_QUANTITY
Logic Flow:
IF A disposition code affects cargo release quantities
AND The quantity action is ADD_QUANTITY OR SUBTRACT_QUANTITY
THEN:
• Format and display the quantity change impact showing current release quantity, action type, and resulting new quantity
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo release quantities are being modified by disposition code processing.
Trigger Criteria:
Context: Cargo release quantities are being modified by disposition code processing
Applied to: Include Release Quantity Changes
Action: Quantity changes need to be communicated in the Merlin message
Logic Flow:
IF Cargo release quantities are being modified by disposition code processing
AND Quantity changes need to be communicated in the Merlin message
THEN:
• Include current release quantity, planned quantity change, and resulting final quantity in the message format
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when k1 comment segments are available for the cargo being processed.
Trigger Criteria:
Context: K1 comment segments are available for the cargo being processed
Applied to: Add First K1 Comment
Action: The first K1 comment segment exists and contains data
Logic Flow:
IF K1 comment segments are available for the cargo being processed
AND The first K1 comment segment exists and contains data
THEN:
• Add the first K1 comment segment to the Merlin message format
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when multiple k1 comment segments are available and the first k1 comment has been added.
Trigger Criteria:
Context: Multiple K1 comment segments are available and the first K1 comment has been added
Applied to: Add Additional K1 Comments Up to 4 Total
Action: Additional K1 comment segments exist AND the total count is less than 4
Logic Flow:
IF Multiple K1 comment segments are available and the first K1 comment has been added
AND Additional K1 comment segments exist AND the total count is less than 4
THEN:
• Add the next available K1 comment segment to the message and continue checking for more comments until maximum of 4 is reached
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when all message components have been collected including cargo details, disposition codes, quantities, and comments.
Trigger Criteria:
Context: All message components have been collected including cargo details, disposition codes, quantities, and comments
Applied to: Format Final Message Structure
Action: The message formatting process is ready for finalization
Logic Flow:
IF All message components have been collected including cargo details, disposition codes, quantities, and comments
AND The message formatting process is ready for finalization
THEN:
• Organize all components into the final Merlin message structure with proper formatting, spacing, and message layout
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when merlin message has been formatted and is ready for transmission.
Trigger Criteria:
Context: A Merlin message has been formatted and is ready for transmission
Applied to: Set Message Destination
Action: Message destination routing needs to be determined
Logic Flow:
IF A Merlin message has been formatted and is ready for transmission
AND Message destination routing needs to be determined
THEN:
• Set the appropriate message destination based on message type, cargo location, and processing requirements
R-GCX016-cbl-03567 (+7)File: GCX016.cblBusiness Rule: Broker Bond Message Detection
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when message is received for processing.
Trigger Criteria:
Context: A message is received for processing
Applied to: Check Message Source
Action: The system checks the message source and cargo type
Logic Flow:
IF A message is received for processing
AND The system checks the message source and cargo type
THEN:
• The system identifies if the message is from a Canadian Pacific entity based on CPRS cargo type designation
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when message from canadian pacific entity is being processed.
Trigger Criteria:
Context: A message from Canadian Pacific entity is being processed
Applied to: Identify Bond Message Type
Action: The system evaluates disposition codes for bond creation indicators
Logic Flow:
IF A message from Canadian Pacific entity is being processed
AND The system evaluates disposition codes for bond creation indicators
THEN:
• The system identifies broker-created bond messages when disposition codes are '1J', '69', or '55' indicating master in-bond processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when broker-created bond message from canadian pacific is identified.
Trigger Criteria:
Context: A broker-created bond message from Canadian Pacific is identified
Applied to: Extract Bond Information
Action: The system processes the X4 segment containing bond information
Logic Flow:
IF A broker-created bond message from Canadian Pacific is identified
AND The system processes the X4 segment containing bond information
THEN:
• The system extracts entry numbers, bond control numbers, and entry type codes for bond processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when bond information has been extracted from a canadian pacific message.
Trigger Criteria:
Context: Bond information has been extracted from a Canadian Pacific message
Applied to: Apply Canadian Pacific Formatting Rules
Action: The system formats the bond message for processing
Logic Flow:
IF Bond information has been extracted from a Canadian Pacific message
AND The system formats the bond message for processing
THEN:
• The system applies CPRS-specific formatting by setting cargo status to 'ERROR' and clearing car ID information for CPRS records
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when broker bond message contains entry type codes.
Trigger Criteria:
Context: A broker bond message contains entry type codes
Applied to: Include Bond Control Numbers
Action: The system processes entry type codes '61', '62', '63', '69', or '00'
Logic Flow:
IF A broker bond message contains entry type codes
AND The system processes entry type codes '61', '62', '63', '69', or '00'
THEN:
• The system translates codes to immediate transport, transport export, immediate export, US-Canada-US movement, or default border processing respectively
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when bond message contains k1 segment with broker information.
Trigger Criteria:
Context: A bond message contains K1 segment with broker information
Applied to: Add Broker Entry Information
Action: The system processes broker details for bond entries
Logic Flow:
IF A bond message contains K1 segment with broker information
AND The system processes broker details for bond entries
THEN:
• The system extracts broker information, validates broker codes, and associates broker details with the bond entry for notification purposes
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when formatted canadian pacific bond message is ready for routing.
Trigger Criteria:
Context: A formatted Canadian Pacific bond message is ready for routing
Applied to: Set Special Message Routing
Action: The system determines message routing based on message type and broker configuration
Logic Flow:
IF A formatted Canadian Pacific bond message is ready for routing
AND The system determines message routing based on message type and broker configuration
THEN:
• The system routes ERROR messages to both 'IN' and 'USERR' destinations, and routes other bond messages to station-specific Merlin IDs
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when bond message contains entry number information.
Trigger Criteria:
Context: A bond message contains entry number information
Applied to: Complete Bond Message Formatting
Action: The system processes entry numbers with 'V' prefix or other formats
Logic Flow:
IF A bond message contains entry number information
AND The system processes entry numbers with 'V' prefix or other formats
THEN:
• The system places V-prefixed entry numbers in the entry number field and places other formats in the in-bond control number field
Business Justification: Ensures correct system behavior and process compliance when disposition code is being processed for quantity action message formatting.
Trigger Criteria:
Context: A disposition code is being processed for quantity action message formatting
Applied to: Disposition Code Has Quantity Action?
Action: The system checks if the disposition code has quantity action requirements
Logic Flow:
IF A disposition code is being processed for quantity action message formatting
AND The system checks if the disposition code has quantity action requirements
THEN:
• The system determines whether to proceed with quantity action formatting or skip quantity processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code requires quantity action processing.
Trigger Criteria:
Context: A disposition code requires quantity action processing
Applied to: Retrieve Disposition Code Details
Action: The system needs disposition code details for message formatting
Logic Flow:
IF A disposition code requires quantity action processing
AND The system needs disposition code details for message formatting
THEN:
• The system retrieves disposition code information including action type and description from the DC table
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code details have been retrieved with quantity action requirements.
Trigger Criteria:
Context: Disposition code details have been retrieved with quantity action requirements
Applied to: Action Type?
Action: The system evaluates the action type for quantity processing
Logic Flow:
IF Disposition code details have been retrieved with quantity action requirements
AND The system evaluates the action type for quantity processing
THEN:
• The system classifies the action as either ADD operation or SUBTRACT operation based on disposition code configuration
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when disposition code has been classified as add operation type.
Trigger Criteria:
Context: A disposition code has been classified as ADD operation type
Applied to: Format ADD Operation Message
Action: The system formats the quantity action message
Logic Flow:
IF A disposition code has been classified as ADD operation type
AND The system formats the quantity action message
THEN:
• The system creates an ADD operation message showing the quantity increase to release amounts
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when disposition code has been classified as subtract operation type.
Trigger Criteria:
Context: A disposition code has been classified as SUBTRACT operation type
Applied to: Format SUBTRACT Operation Message
Action: The system formats the quantity action message
Logic Flow:
IF A disposition code has been classified as SUBTRACT operation type
AND The system formats the quantity action message
THEN:
• The system creates a SUBTRACT operation message showing the quantity decrease from release amounts
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when quantity action operation (add or subtract) needs to be processed.
Trigger Criteria:
Context: A quantity action operation (ADD or SUBTRACT) needs to be processed
Applied to: Get Current Release Quantity
Action: The system requires current release quantity information
Logic Flow:
IF A quantity action operation (ADD or SUBTRACT) needs to be processed
AND The system requires current release quantity information
THEN:
• The system retrieves the current release quantity from the cargo record for calculation purposes
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when current release quantity has been retrieved and action type is determined.
Trigger Criteria:
Context: Current release quantity has been retrieved and action type is determined
Applied to: Calculate New Quantity After Action
Action: The system calculates the new quantity after applying the disposition code action
Logic Flow:
IF Current release quantity has been retrieved and action type is determined
AND The system calculates the new quantity after applying the disposition code action
THEN:
• The system computes the resulting quantity by adding or subtracting the disposition code quantity from current release quantity
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when new quantity has been calculated after applying disposition code action.
Trigger Criteria:
Context: A new quantity has been calculated after applying disposition code action
Applied to: Quantity Change Valid?
Action: The system validates the quantity change
Logic Flow:
IF A new quantity has been calculated after applying disposition code action
AND The system validates the quantity change
THEN:
• The system verifies the quantity change is valid (non-negative for subtractions and within business limits for additions)
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when valid quantity change has been calculated.
Trigger Criteria:
Context: A valid quantity change has been calculated
Applied to: Format Quantity Change Display
Action: The system formats the quantity change for display
Logic Flow:
IF A valid quantity change has been calculated
AND The system formats the quantity change for display
THEN:
• The system creates a formatted display showing current quantity, action amount, and resulting quantity
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when quantity change display has been formatted.
Trigger Criteria:
Context: Quantity change display has been formatted
Applied to: Add Quantity Action to Message
Action: The system adds quantity action to the message
Logic Flow:
IF Quantity change display has been formatted
AND The system adds quantity action to the message
THEN:
• The system incorporates the quantity action information into the message structure for transmission
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when quantity action has been added to the message.
Trigger Criteria:
Context: Quantity action has been added to the message
Applied to: Include Disposition Code Description
Action: The system includes disposition code description
Logic Flow:
IF Quantity action has been added to the message
AND The system includes disposition code description
THEN:
• The system adds the disposition code description to provide context for the quantity action in the message
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code description has been included in the message.
Trigger Criteria:
Context: Disposition code description has been included in the message
Applied to: Format Complete Quantity Action Message
Action: The system formats the complete quantity action message
Logic Flow:
IF Disposition code description has been included in the message
AND The system formats the complete quantity action message
THEN:
• The system assembles all message components including quantity action, disposition code description, and formatting into a complete message
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code does not have quantity action requirements or quantity change validation fails.
Trigger Criteria:
Context: A disposition code does not have quantity action requirements OR quantity change validation fails
Applied to: No Quantity Action Required
Action: The system determines no quantity action is required
Logic Flow:
IF A disposition code does not have quantity action requirements OR quantity change validation fails
AND The system determines no quantity action is required
THEN:
• The system bypasses quantity action message formatting and proceeds to message completion
R-GCX016-cbl-03588 (+11)File: GCX016.cblBusiness Rule: Container Type Validation for Integration
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record exists in the system.
Trigger Criteria:
Context: A cargo record exists in the system
Applied to: Retrieve Equipment Type from Cargo Record
Action: The system needs to validate container type for integration
Logic Flow:
IF A cargo record exists in the system
AND The system needs to validate container type for integration
THEN:
• The equipment type is retrieved from the cargo record for further validation
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when equipment type code has been retrieved from the cargo record.
Trigger Criteria:
Context: An equipment type code has been retrieved from the cargo record
Applied to: Check Equipment Type Code
Action: The system validates the equipment type code format and content
Logic Flow:
IF An equipment type code has been retrieved from the cargo record
AND The system validates the equipment type code format and content
THEN:
• The equipment type code is checked against valid equipment type patterns
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when equipment type code has been validated.
Trigger Criteria:
Context: An equipment type code has been validated
Applied to: Valid Container Type?
Action: The system evaluates if the equipment type is a container or trailer
Logic Flow:
IF An equipment type code has been validated
AND The system evaluates if the equipment type is a container or trailer
THEN:
• The system classifies the equipment as either valid container type or other equipment type
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when container or trailer equipment type has been identified.
Trigger Criteria:
Context: A container or trailer equipment type has been identified
Applied to: Validate Against Equipment Type Table
Action: The system looks up the equipment type in the master equipment type table
Logic Flow:
IF A container or trailer equipment type has been identified
AND The system looks up the equipment type in the master equipment type table
THEN:
• The system validates that the equipment type exists in the reference table
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when equipment type lookup has been performed against the master table.
Trigger Criteria:
Context: Equipment type lookup has been performed against the master table
Applied to: Equipment Type Found in System?
Action: The system checks if the equipment type was found in the reference table
Logic Flow:
IF Equipment type lookup has been performed against the master table
AND The system checks if the equipment type was found in the reference table
THEN:
• The system determines if the equipment type is valid (found) or invalid (not found)
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when equipment type has been found in the master equipment type table.
Trigger Criteria:
Context: Equipment type has been found in the master equipment type table
Applied to: Set Valid Equipment Flag
Action: The system confirms the equipment type is valid
Logic Flow:
IF Equipment type has been found in the master equipment type table
AND The system confirms the equipment type is valid
THEN:
• A valid equipment flag is set to allow further processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when valid equipment type has been confirmed. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: A valid equipment type has been confirmed
Applied to: Map Equipment Type to Integration Format
Action: The system prepares data for integration service call
Logic Flow:
IF A valid equipment type has been confirmed
AND The system prepares data for integration service call
THEN:
• The equipment type is mapped to the integration service format requirements
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when equipment type has been mapped to integration format. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: Equipment type has been mapped to integration format
Applied to: Prepare Equipment Data for Integration Call
Action: The system prepares the complete equipment data package
Logic Flow:
IF Equipment type has been mapped to integration format
AND The system prepares the complete equipment data package
THEN:
• All required equipment data is formatted and ready for integration service call
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when equipment data has been prepared for integration.
Trigger Criteria:
Context: Equipment data has been prepared for integration
Applied to: Equipment Type Validation Complete
Action: All validation steps have been completed successfully
Logic Flow:
IF Equipment data has been prepared for integration
AND All validation steps have been completed successfully
THEN:
• Equipment type validation is marked as complete and integration can proceed
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when equipment type was not found in the master equipment type table.
Trigger Criteria:
Context: Equipment type was not found in the master equipment type table
Applied to: Set Invalid Equipment Flag
Action: The system confirms the equipment type is invalid
Logic Flow:
IF Equipment type was not found in the master equipment type table
AND The system confirms the equipment type is invalid
THEN:
• An invalid equipment flag is set to prevent further processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when invalid equipment flag has been set.
Trigger Criteria:
Context: An invalid equipment flag has been set
Applied to: Log Equipment Type Error
Action: The system needs to record the validation failure
Logic Flow:
IF An invalid equipment flag has been set
AND The system needs to record the validation failure
THEN:
• An equipment type error is logged with relevant details for troubleshooting
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when equipment type error has been logged. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: Equipment type error has been logged
Applied to: Skip Integration Service Call
Action: The system determines integration cannot proceed due to invalid equipment type
Logic Flow:
IF Equipment type error has been logged
AND The system determines integration cannot proceed due to invalid equipment type
THEN:
• The integration service call is skipped and processing continues without integration
R-GCX016-cbl-03604 (+8)File: GCX016.cblBusiness Rule: Secondary Cargo Record Processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record requires secondary information processing.
Trigger Criteria:
Context: A cargo record requires secondary information processing
Applied to: Access Cargo Secondary Records GCSA2RT Segments
Action: The system attempts to access GCSA2RT secondary cargo records
Logic Flow:
IF A cargo record requires secondary information processing
AND The system attempts to access GCSA2RT secondary cargo records
THEN:
• The system should verify if secondary records are available and proceed accordingly
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record requires secondary information processing.
Trigger Criteria:
Context: A cargo record requires secondary information processing
Applied to: No Secondary Records Available - Continue
Action: No secondary cargo records are available in GCSA2RT segments
Logic Flow:
IF A cargo record requires secondary information processing
AND No secondary cargo records are available in GCSA2RT segments
THEN:
• The system should continue processing without payer of freight information and proceed to the next step
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when secondary cargo records are available for processing. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: Secondary cargo records are available for processing
Applied to: Read N101 Segments from Secondary Records
Action: The system reads N101 segments from the secondary records
Logic Flow:
IF Secondary cargo records are available for processing
AND The system reads N101 segments from the secondary records
THEN:
• The system should determine if N101 segments exist and are accessible for processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when n101 segment is found in secondary cargo records.
Trigger Criteria:
Context: An N101 segment is found in secondary cargo records
Applied to: Check N101-01 Qualifier
Action: The system checks the N101-01 qualifier field
Logic Flow:
IF An N101 segment is found in secondary cargo records
AND The system checks the N101-01 qualifier field
THEN:
• The system should determine if the qualifier equals 'PF' indicating payer of freight information
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when n101 segment has qualifier 'pf' for payer of freight.
Trigger Criteria:
Context: An N101 segment has qualifier 'PF' for payer of freight
Applied to: Extract Payer of Freight Entity Information
Action: The system processes the payer of freight entity information
Logic Flow:
IF An N101 segment has qualifier 'PF' for payer of freight
AND The system processes the payer of freight entity information
THEN:
• The system should extract the entity name from N101-02 field and store it in payer fields
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when one n101 segment has been processed in a secondary record.
Trigger Criteria:
Context: One N101 segment has been processed in a secondary record
Applied to: Check for Additional N101 Segments
Action: The system checks for additional N101 segments in the same record
Logic Flow:
IF One N101 segment has been processed in a secondary record
AND The system checks for additional N101 segments in the same record
THEN:
• The system should determine if more N101 segments exist for continued processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when n101 segment exists with a qualifier other than 'pf'.
Trigger Criteria:
Context: An N101 segment exists with a qualifier other than 'PF'
Applied to: Extract Other Supplemental Information from N101
Action: The system processes the non-PF N101 segment
Logic Flow:
IF An N101 segment exists with a qualifier other than 'PF'
AND The system processes the non-PF N101 segment
THEN:
• The system should extract other supplemental information and store it in working storage
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when one secondary record has been processed completely.
Trigger Criteria:
Context: One secondary record has been processed completely
Applied to: Continue Processing Next Secondary Record
Action: The system checks for additional secondary records
Logic Flow:
IF One secondary record has been processed completely
AND The system checks for additional secondary records
THEN:
• The system should continue processing the next available secondary record if more exist
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when all available secondary records have been processed.
Trigger Criteria:
Context: All available secondary records have been processed
Applied to: Complete Secondary Record Processing
Action: The system completes secondary record processing
Logic Flow:
IF All available secondary records have been processed
AND The system completes secondary record processing
THEN:
• The system should finalize the extraction of payer of freight and supplemental information for return to calling process
R-GCX016-cbl-03613 (+12)File: GCX016.cblBusiness Rule: Message Routing by Type
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when message is ready for routing and has been classified as an error message type.
Trigger Criteria:
Context: A message is ready for routing and has been classified as an error message type
Applied to: Route to Error Destinations
Action: The message type is ERROR or ARRCANL (arrival cancellation)
Logic Flow:
IF A message is ready for routing and has been classified as an error message type
AND The message type is ERROR or ARRCANL (arrival cancellation)
THEN:
• The system routes the message to both 'IN' destination and 'USERR' destination for error processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when message is ready for routing and has been classified as an information message.
Trigger Criteria:
Context: A message is ready for routing and has been classified as an information message
Applied to: Route to Info Users
Action: The message type is INFO
Logic Flow:
IF A message is ready for routing and has been classified as an information message
AND The message type is INFO
THEN:
• The system routes the message to 'IN' destination and station-specific Merlin IDs for information distribution
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when message is ready for routing and has been classified as an unrelease message.
Trigger Criteria:
Context: A message is ready for routing and has been classified as an unrelease message
Applied to: Route to Unrelease Baskets
Action: The message type is UNRLSE (unrelease)
Logic Flow:
IF A message is ready for routing and has been classified as an unrelease message
AND The message type is UNRLSE (unrelease)
THEN:
• The system routes the message to default Merlin IDs and cancel-specific Merlin IDs for unrelease processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when message is ready for routing and has been classified as a release message.
Trigger Criteria:
Context: A message is ready for routing and has been classified as a release message
Applied to: Route to Release Users
Action: The message type is RLSE (release)
Logic Flow:
IF A message is ready for routing and has been classified as a release message
AND The message type is RLSE (release)
THEN:
• The system routes the message only to station-specific Merlin IDs for release notification
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when message is ready for routing and has been classified as an export message.
Trigger Criteria:
Context: A message is ready for routing and has been classified as an export message
Applied to: Container Type Check
Action: The message type is EXPORT and container type validation is required
Logic Flow:
IF A message is ready for routing and has been classified as an export message
AND The message type is EXPORT and container type validation is required
THEN:
• The system checks if the container type is a specific container type or other equipment type to determine routing path
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when export message has been validated and container type has been determined.
Trigger Criteria:
Context: An export message has been validated and container type has been determined
Applied to: Route to USEXP Baskets
Action: The container type is identified as a specific container type requiring special handling
Logic Flow:
IF An export message has been validated and container type has been determined
AND The container type is identified as a specific container type requiring special handling
THEN:
• The system routes the message to USEXP baskets for specialized container export processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when export message has been validated and container type has been determined.
Trigger Criteria:
Context: An export message has been validated and container type has been determined
Applied to: Route to Standard Export
Action: The container type is not a specific container type requiring special handling
Logic Flow:
IF An export message has been validated and container type has been determined
AND The container type is not a specific container type requiring special handling
THEN:
• The system routes the message through standard export processing channels
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when message has been routed to its initial destination based on message type.
Trigger Criteria:
Context: A message has been routed to its initial destination based on message type
Applied to: Valid User Check
Action: The system performs user validation for the destination
Logic Flow:
IF A message has been routed to its initial destination based on message type
AND The system performs user validation for the destination
THEN:
• The system checks if the destination user is valid and authorized to receive this message type
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when message destination has been validated and found to be invalid or unauthorized.
Trigger Criteria:
Context: A message destination has been validated and found to be invalid or unauthorized
Applied to: Reroute to Default Users
Action: The destination user validation fails
Logic Flow:
IF A message destination has been validated and found to be invalid or unauthorized
AND The destination user validation fails
THEN:
• The system reroutes the message to default users to ensure proper message delivery
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when message has been validated and destination has been confirmed.
Trigger Criteria:
Context: A message has been validated and destination has been confirmed
Applied to: Set Message Keywords
Action: The message is ready for final formatting and delivery
Logic Flow:
IF A message has been validated and destination has been confirmed
AND The message is ready for final formatting and delivery
THEN:
• The system sets appropriate message keywords based on message type and content for proper categorization
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when message has keywords set and is ready for delivery formatting.
Trigger Criteria:
Context: A message has keywords set and is ready for delivery formatting
Applied to: Format Subject Line
Action: The system prepares the final message format
Logic Flow:
IF A message has keywords set and is ready for delivery formatting
AND The system prepares the final message format
THEN:
• The system formats the subject line with relevant business information including message type and key identifiers
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when message has been fully formatted with keywords and subject line.
Trigger Criteria:
Context: A message has been fully formatted with keywords and subject line
Applied to: Send to Destination
Action: All routing validation and formatting is complete
Logic Flow:
IF A message has been fully formatted with keywords and subject line
AND All routing validation and formatting is complete
THEN:
• The system sends the message to its final destination through the appropriate messaging channel
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when message has been successfully sent to its destination.
Trigger Criteria:
Context: A message has been successfully sent to its destination
Applied to: Log Routing Action
Action: The message delivery is complete
Logic Flow:
IF A message has been successfully sent to its destination
AND The message delivery is complete
THEN:
• The system logs the routing action including message type, destination, and delivery status for audit purposes
R-GCX016-cbl-03626 (+10)File: GCX016.cblBusiness Rule: Invalid User Handling and Rerouting
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when message is ready for routing with a destination user id.
Trigger Criteria:
Context: A message is ready for routing with a destination user ID
Applied to: Check Destination User ID
Action: The system checks the destination user ID validity
Logic Flow:
IF A message is ready for routing with a destination user ID
AND The system checks the destination user ID validity
THEN:
• The system determines if the user ID is valid or invalid for message routing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when message with a valid destination user id.
Trigger Criteria:
Context: A message with a valid destination user ID
Applied to: Route to Original User
Action: The user ID validation passes
Logic Flow:
IF A message with a valid destination user ID
AND The user ID validation passes
THEN:
• The message is routed to the original specified user without modification
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when message with an invalid destination user id.
Trigger Criteria:
Context: A message with an invalid destination user ID
Applied to: Identify Default User for Message Type
Action: The system needs to identify a default user
Logic Flow:
IF A message with an invalid destination user ID
AND The system needs to identify a default user
THEN:
• The system determines the default user based on the message type (Error, Info, Release, or Export)
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when error message with an invalid destination user id.
Trigger Criteria:
Context: An error message with an invalid destination user ID
Applied to: Route to Default Error User
Action: The message type is identified as Error
Logic Flow:
IF An error message with an invalid destination user ID
AND The message type is identified as Error
THEN:
• The message is routed to the default error user
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when informational message with an invalid destination user id.
Trigger Criteria:
Context: An informational message with an invalid destination user ID
Applied to: Route to Default Info User
Action: The message type is identified as Info
Logic Flow:
IF An informational message with an invalid destination user ID
AND The message type is identified as Info
THEN:
• The message is routed to the default info user
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when release message with an invalid destination user id.
Trigger Criteria:
Context: A release message with an invalid destination user ID
Applied to: Route to Default Release User
Action: The message type is identified as Release
Logic Flow:
IF A release message with an invalid destination user ID
AND The message type is identified as Release
THEN:
• The message is routed to the default release user
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when export message with an invalid destination user id.
Trigger Criteria:
Context: An export message with an invalid destination user ID
Applied to: Route to Default Export User
Action: The message type is identified as Export
Logic Flow:
IF An export message with an invalid destination user ID
AND The message type is identified as Export
THEN:
• The message is routed to the default export user
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when message has been rerouted due to invalid user id.
Trigger Criteria:
Context: A message has been rerouted due to invalid user ID
Applied to: Generate Invalid User Notification
Action: The rerouting to default user is completed
Logic Flow:
IF A message has been rerouted due to invalid user ID
AND The rerouting to default user is completed
THEN:
• A notification is generated indicating the invalid user ID and the rerouting action taken
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when message has been rerouted from invalid user to default user.
Trigger Criteria:
Context: A message has been rerouted from invalid user to default user
Applied to: Log Rerouting Action
Action: The invalid user notification is generated
Logic Flow:
IF A message has been rerouted from invalid user to default user
AND The invalid user notification is generated
THEN:
• The rerouting action is logged with original user ID, default user ID, message type, and timestamp
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when rerouting action has been logged.
Trigger Criteria:
Context: A rerouting action has been logged
Applied to: Update Message Routing History
Action: The system updates the message routing history
Logic Flow:
IF A rerouting action has been logged
AND The system updates the message routing history
THEN:
• The routing history is updated with the rerouting event details including original destination, new destination, and reason for rerouting
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when message routing history has been updated with rerouting details.
Trigger Criteria:
Context: Message routing history has been updated with rerouting details
Applied to: Send Message to New Destination
Action: The system sends the message to the new destination
Logic Flow:
IF Message routing history has been updated with rerouting details
AND The system sends the message to the new destination
THEN:
• The message is delivered to the default user with all original content intact
R-GCX016-cbl-03651 (+15)File: GCX016.cblBusiness Rule: Report Field Formatting
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record with car identification data.
Trigger Criteria:
Context: A cargo record with car identification data
Applied to: Format Car ID Information
Action: Car ID is available in the system
Logic Flow:
IF A cargo record with car identification data
AND Car ID is available in the system
THEN:
• Format car initial and car number into displayable car ID information
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record being processed for reporting.
Trigger Criteria:
Context: A cargo record being processed for reporting
Applied to: Set Car ID to Spaces
Action: Car ID information is not available
Logic Flow:
IF A cargo record being processed for reporting
AND Car ID information is not available
THEN:
• Set car ID field to spaces for report display
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record being processed for reporting.
Trigger Criteria:
Context: A cargo record being processed for reporting
Applied to: Set Waybill to Spaces
Action: Waybill number is not available
Logic Flow:
IF A cargo record being processed for reporting
AND Waybill number is not available
THEN:
• Set waybill field to spaces for report display
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record being processed for reporting.
Trigger Criteria:
Context: A cargo record being processed for reporting
Applied to: Set US-CCN to Spaces
Action:US-CCN is not available
Logic Flow:
IF A cargo record being processed for reporting
ANDUS-CCN is not available
THEN:
• Set US-CCN field to spaces for report display
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record being processed for reporting.
Trigger Criteria:
Context: A cargo record being processed for reporting
Applied to: Set Disposition to Spaces
Action: Disposition code is not available
Logic Flow:
IF A cargo record being processed for reporting
AND Disposition code is not available
THEN:
• Set disposition code field to spaces for report display
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record with waybill number data.
Trigger Criteria:
Context: A cargo record with waybill number data
Applied to: Format Waybill Information
Action: Waybill number is available in the system
Logic Flow:
IF A cargo record with waybill number data
AND Waybill number is available in the system
THEN:
• Format waybill number into displayable format for reports
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record with us-ccn data.
Trigger Criteria:
Context: A cargo record with US-CCN data
Applied to: Format US-CCN with Status
Action:US-CCN is available in the system
Logic Flow:
IF A cargo record with US-CCN data
ANDUS-CCN is available in the system
THEN:
• Format US-CCN with current cargo status for report display
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cprs cargo record with status information.
Trigger Criteria:
Context: A CPRS cargo record with status information
Applied to: Add CPRS Status Description
Action: Cargo belongs to CPRS system
Logic Flow:
IF A CPRS cargo record with status information
AND Cargo belongs to CPRS system
THEN:
• Add CPRS-specific status description to the formatted output
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when uscs cargo record with status information.
Trigger Criteria:
Context: A USCS cargo record with status information
Applied to: Add USCS Status Description
Action: Cargo belongs to USCS system
Logic Flow:
IF A USCS cargo record with status information
AND Cargo belongs to USCS system
THEN:
• Add USCS-specific status description to the formatted output
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record with disposition code data.
Trigger Criteria:
Context: A cargo record with disposition code data
Applied to: Format Disposition Code
Action: Disposition code is available in the system
Logic Flow:
IF A cargo record with disposition code data
AND Disposition code is available in the system
THEN:
• Format disposition code into displayable format for reports
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when formatted disposition code.
Trigger Criteria:
Context: A formatted disposition code
Applied to: Add Disposition Description
Action: Disposition code has an associated description
Logic Flow:
IF A formatted disposition code
AND Disposition code has an associated description
THEN:
• Add disposition code description to the formatted output for clarity
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when report being generated.
Trigger Criteria:
Context: A report being generated
Applied to: Format Current Date/Time
Action: Current date and time formatting is required
Logic Flow:
IF A report being generated
AND Current date and time formatting is required
THEN:
• Format current system date and time into standard report format
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo processing event.
Trigger Criteria:
Context: A cargo processing event
Applied to: Format Processing Timestamp
Action: Processing timestamp needs to be recorded
Logic Flow:
IF A cargo processing event
AND Processing timestamp needs to be recorded
THEN:
• Format processing timestamp into standard audit format for reports
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo with associated broker entry numbers.
Trigger Criteria:
Context: Cargo with associated broker entry numbers
Applied to: Format Entry Numbers for Display
Action: Broker entry numbers are available
Logic Flow:
IF Cargo with associated broker entry numbers
AND Broker entry numbers are available
THEN:
• Format entry numbers into displayable format for broker reports
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo with quantity discrepancies.
Trigger Criteria:
Context: Cargo with quantity discrepancies
Applied to: Format Quantities for Mismatch Report
Action: Quantity mismatch reporting is required
Logic Flow:
IF Cargo with quantity discrepancies
AND Quantity mismatch reporting is required
THEN:
• Format quantity information highlighting mismatches for review
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when formatted report ready for distribution.
Trigger Criteria:
Context: A formatted report ready for distribution
Applied to: Set Destination User Codes
Action: Report routing is required
Logic Flow:
IF A formatted report ready for distribution
AND Report routing is required
THEN:
• Set appropriate destination user codes based on cargo type and processing requirements
Business Justification: Defines the strict business conditions required to proceed when x4 customs release segment is available for processing.
Trigger Criteria:
Context: An X4 customs release segment is available for processing
Applied to: Retrieve Broker Entry Number from X4 Segment
Action: The system needs to retrieve broker entry number for quantity comparison
Logic Flow:
IF An X4 customs release segment is available for processing
AND The system needs to retrieve broker entry number for quantity comparison
THEN:
• The broker entry number is extracted from the X4 segment and made available for display formatting
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record exists in the system.
Trigger Criteria:
Context: A cargo record exists in the system
Applied to: Retrieve Manifest Quantity from Cargo Record
Action: The system needs to retrieve manifest quantity for quantity mismatch validation
Logic Flow:
IF A cargo record exists in the system
AND The system needs to retrieve manifest quantity for quantity mismatch validation
THEN:
• The manifest quantity is extracted from the cargo record and made available for comparison
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when x4 customs release segment contains broker entry quantity information.
Trigger Criteria:
Context: An X4 customs release segment contains broker entry quantity information
Applied to: Retrieve Broker Entry Quantity from X4 Segment
Action: The system needs to retrieve broker entry quantity for mismatch detection
Logic Flow:
IF An X4 customs release segment contains broker entry quantity information
AND The system needs to retrieve broker entry quantity for mismatch detection
THEN:
• The broker entry quantity is extracted from the X4 segment and made available for comparison
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when manifest quantity and broker entry quantity are available.
Trigger Criteria:
Context: Manifest quantity and broker entry quantity are available
Applied to: Calculate Quantity Difference
Action: The system calculates the difference between these quantities
Logic Flow:
IF Manifest quantity and broker entry quantity are available
AND The system calculates the difference between these quantities
THEN:
• The quantity difference is computed as the absolute difference between manifest quantity and broker entry quantity
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when manifest quantity and broker entry quantity have been retrieved and compared.
Trigger Criteria:
Context: Manifest quantity and broker entry quantity have been retrieved and compared
Applied to: Quantity Mismatch Detected?
Action: The system evaluates if the quantities match
Logic Flow:
IF Manifest quantity and broker entry quantity have been retrieved and compared
AND The system evaluates if the quantities match
THEN:
• If the manifest quantity does not equal the broker entry quantity, a mismatch is detected and formatting is required, otherwise no formatting is needed
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when quantity mismatch has been detected and broker entry number is available.
Trigger Criteria:
Context: A quantity mismatch has been detected and broker entry number is available
Applied to: Format Broker Entry Number for Display
Action: The system formats the broker entry number for display
Logic Flow:
IF A quantity mismatch has been detected and broker entry number is available
AND The system formats the broker entry number for display
THEN:
• The broker entry number is formatted according to report display standards and prepared for inclusion in the mismatch report
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when quantity mismatch has been detected and manifest quantity is available.
Trigger Criteria:
Context: A quantity mismatch has been detected and manifest quantity is available
Applied to: Format Manifest Quantity for Display
Action: The system formats the manifest quantity for display
Logic Flow:
IF A quantity mismatch has been detected and manifest quantity is available
AND The system formats the manifest quantity for display
THEN:
• The manifest quantity is formatted according to report display standards and prepared for inclusion in the mismatch report
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when quantity mismatch has been detected and broker entry quantity is available.
Trigger Criteria:
Context: A quantity mismatch has been detected and broker entry quantity is available
Applied to: Format Broker Entry Quantity for Display
Action: The system formats the broker entry quantity for display
Logic Flow:
IF A quantity mismatch has been detected and broker entry quantity is available
AND The system formats the broker entry quantity for display
THEN:
• The broker entry quantity is formatted according to report display standards and prepared for inclusion in the mismatch report
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when quantity mismatch has been detected and quantity difference has been calculated.
Trigger Criteria:
Context: A quantity mismatch has been detected and quantity difference has been calculated
Applied to: Format Quantity Difference for Display
Action: The system formats the quantity difference for display
Logic Flow:
IF A quantity mismatch has been detected and quantity difference has been calculated
AND The system formats the quantity difference for display
THEN:
• The quantity difference is formatted according to report display standards and prepared for inclusion in the mismatch report
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when all quantity information has been formatted for display.
Trigger Criteria:
Context: All quantity information has been formatted for display
Applied to: Build Mismatch Report Line
Action: The system builds the mismatch report line
Logic Flow:
IF All quantity information has been formatted for display
AND The system builds the mismatch report line
THEN:
• A complete report line is constructed that will contain the entry number, manifest quantity, broker quantity, and difference amount
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when mismatch report line is being built and broker entry number is formatted.
Trigger Criteria:
Context: A mismatch report line is being built and broker entry number is formatted
Applied to: Add Entry Number to Report
Action: The system adds the entry number to the report
Logic Flow:
IF A mismatch report line is being built and broker entry number is formatted
AND The system adds the entry number to the report
THEN:
• The formatted broker entry number is included in the appropriate position within the mismatch report line
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when mismatch report line is being built and manifest quantity is formatted.
Trigger Criteria:
Context: A mismatch report line is being built and manifest quantity is formatted
Applied to: Add Manifest Quantity to Report
Action: The system adds the manifest quantity to the report
Logic Flow:
IF A mismatch report line is being built and manifest quantity is formatted
AND The system adds the manifest quantity to the report
THEN:
• The formatted manifest quantity is included in the appropriate position within the mismatch report line
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when mismatch report line is being built and broker entry quantity is formatted.
Trigger Criteria:
Context: A mismatch report line is being built and broker entry quantity is formatted
Applied to: Add Broker Quantity to Report
Action: The system adds the broker quantity to the report
Logic Flow:
IF A mismatch report line is being built and broker entry quantity is formatted
AND The system adds the broker quantity to the report
THEN:
• The formatted broker entry quantity is included in the appropriate position within the mismatch report line
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when mismatch report line is being built and quantity difference is formatted.
Trigger Criteria:
Context: A mismatch report line is being built and quantity difference is formatted
Applied to: Add Difference Amount to Report
Action: The system adds the difference amount to the report
Logic Flow:
IF A mismatch report line is being built and quantity difference is formatted
AND The system adds the difference amount to the report
THEN:
• The formatted quantity difference is included in the appropriate position within the mismatch report line
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when quantity mismatch has been detected and formatted for reporting.
Trigger Criteria:
Context: A quantity mismatch has been detected and formatted for reporting
Applied to: Set Mismatch Flag for Notification
Action: The system sets the mismatch flag
Logic Flow:
IF A quantity mismatch has been detected and formatted for reporting
AND The system sets the mismatch flag
THEN:
• The mismatch notification flag is activated to ensure broker notification will be triggered for this quantity discrepancy
R-GCX016-cbl-03694 (+21)File: GCX016.cblBusiness Rule: Merlin Report Field Initialization
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when merlin report needs to be generated.
Trigger Criteria:
Context: A Merlin report needs to be generated
Applied to: Clear Report Working Fields
Action: The system starts report field initialization
Logic Flow:
IF A Merlin report needs to be generated
AND The system starts report field initialization
THEN:
• All report working fields are cleared to spaces or zeros
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when report working fields have been cleared.
Trigger Criteria:
Context: Report working fields have been cleared
Applied to: Initialize Message Header Fields
Action: Message header initialization is performed
Logic Flow:
IF Report working fields have been cleared
AND Message header initialization is performed
THEN:
• Message header fields are set with standard Merlin format values
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when message header fields are initialized.
Trigger Criteria:
Context: Message header fields are initialized
Applied to: Set Default User Codes
Action: Default user code setup is executed
Logic Flow:
IF Message header fields are initialized
AND Default user code setup is executed
THEN:
• Standard user codes are assigned for message routing destinations
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when message type is identified as error or arrival cancellation.
Trigger Criteria:
Context: Message type is identified as error or arrival cancellation
Applied to: Set Error Message Routing
Action: Error message routing is configured
Logic Flow:
IF Message type is identified as error or arrival cancellation
AND Error message routing is configured
THEN:
• Message is routed to both 'IN' destination and 'USERR' error destination
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when message type is identified as informational.
Trigger Criteria:
Context: Message type is identified as informational
Applied to: Set Info Message Routing
Action: Information message routing is configured
Logic Flow:
IF Message type is identified as informational
AND Information message routing is configured
THEN:
• Message is routed to 'IN' destination and station-specific Merlin IDs
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when message type is identified as cargo release.
Trigger Criteria:
Context: Message type is identified as cargo release
Applied to: Set Release Message Routing
Action: Release message routing is configured
Logic Flow:
IF Message type is identified as cargo release
AND Release message routing is configured
THEN:
• Message is routed only to station-specific Merlin IDs
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when message type is identified as export.
Trigger Criteria:
Context: Message type is identified as export
Applied to: Set Export Message Routing
Action: Export message routing is configured
Logic Flow:
IF Message type is identified as export
AND Export message routing is configured
THEN:
• Message routing is set with equipment type validation for containers and trailers
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when message type is identified as cargo unrelease.
Trigger Criteria:
Context: Message type is identified as cargo unrelease
Applied to: Set Unrelease Message Routing
Action: Unrelease message routing is configured
Logic Flow:
IF Message type is identified as cargo unrelease
AND Unrelease message routing is configured
THEN:
• Message is routed to default destinations and cancel-specific Merlin IDs
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when message routing has been configured.
Trigger Criteria:
Context: Message routing has been configured
Applied to: Initialize Report Display Fields
Action: Report display field initialization is performed
Logic Flow:
IF Message routing has been configured
AND Report display field initialization is performed
THEN:
• All display fields are formatted with standard presentation templates
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when report display fields are initialized.
Trigger Criteria:
Context: Report display fields are initialized
Applied to: Set Car ID Format Fields
Action: Car ID formatting is applied
Logic Flow:
IF Report display fields are initialized
AND Car ID formatting is applied
THEN:
• Car identification fields are formatted with standard car ID display format
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when car id fields are formatted.
Trigger Criteria:
Context: Car ID fields are formatted
Applied to: Set Waybill Display Fields
Action: Waybill display formatting is applied
Logic Flow:
IF Car ID fields are formatted
AND Waybill display formatting is applied
THEN:
• Waybill fields are formatted with standard waybill display format
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when waybill fields are formatted.
Trigger Criteria:
Context: Waybill fields are formatted
Applied to: Set US-CCN Display Fields
Action:US-CCN display formatting is applied
Logic Flow:
IF Waybill fields are formatted
ANDUS-CCN display formatting is applied
THEN:
• US-CCN fields are formatted with standard CCN display format
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when us-ccn fields are formatted.
Trigger Criteria:
Context:US-CCN fields are formatted
Applied to: Set Disposition Code Fields
Action: Disposition code formatting is applied
Logic Flow:
IFUS-CCN fields are formatted
AND Disposition code formatting is applied
THEN:
• Disposition code fields include both code and description for clarity
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code fields are formatted.
Trigger Criteria:
Context: Disposition code fields are formatted
Applied to: Set Date/Time Stamp Fields
Action: Date and time stamp setting is performed
Logic Flow:
IF Disposition code fields are formatted
AND Date and time stamp setting is performed
THEN:
• Current date and time are captured in standard report timestamp format
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when date and time stamps are set.
Trigger Criteria:
Context: Date and time stamps are set
Applied to: Set Quantity Display Fields
Action: Quantity display formatting is applied
Logic Flow:
IF Date and time stamps are set
AND Quantity display formatting is applied
THEN:
• Quantity fields are formatted with standard numerical display format
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when quantity fields are formatted.
Trigger Criteria:
Context: Quantity fields are formatted
Applied to: Initialize Destination Baskets
Action: Destination basket initialization is performed
Logic Flow:
IF Quantity fields are formatted
AND Destination basket initialization is performed
THEN:
• Destination basket arrays are cleared and ready for recipient assignment
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when destination baskets are initialized.
Trigger Criteria:
Context: Destination baskets are initialized
Applied to: Invalid User Code?
Action: User code validation is performed
Logic Flow:
IF Destination baskets are initialized
AND User code validation is performed
THEN:
• System identifies whether assigned user codes are valid or require default rerouting
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when user code validation identifies invalid codes.
Trigger Criteria:
Context: User code validation identifies invalid codes
Applied to: Set Default Rerouting User
Action: Default rerouting is applied
Logic Flow:
IF User code validation identifies invalid codes
AND Default rerouting is applied
THEN:
• System assigns default rerouting user for message delivery
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when user code validation is complete.
Trigger Criteria:
Context: User code validation is complete
Applied to: Set Message Keywords
Action: Message keyword assignment is performed
Logic Flow:
IF User code validation is complete
AND Message keyword assignment is performed
THEN:
• Appropriate keywords are assigned based on message type and content
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when message keywords are assigned.
Trigger Criteria:
Context: Message keywords are assigned
Applied to: Set Subject Line Format
Action: Subject line formatting is applied
Logic Flow:
IF Message keywords are assigned
AND Subject line formatting is applied
THEN:
• Subject line is formatted with standard message identification format
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when subject line format is set.
Trigger Criteria:
Context: Subject line format is set
Applied to: Finalize Report Field Setup
Action: Report field setup finalization is performed
Logic Flow:
IF Subject line format is set
AND Report field setup finalization is performed
THEN:
• All report fields are validated and confirmed ready for message generation
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when report field setup is finalized.
Trigger Criteria:
Context: Report field setup is finalized
Applied to: Report Fields Ready for Message Generation
Action: Final readiness confirmation is performed
Logic Flow:
IF Report field setup is finalized
AND Final readiness confirmation is performed
THEN:
• System confirms all fields are ready and message generation can proceed
R-GCX016-cbl-03716 (+4)File: GCX016.cblBusiness Rule: Machine Sequence Number Management
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when machine sequence number management process is started.
Trigger Criteria:
Context: The machine sequence number management process is started
Applied to: Initialize Sequence Number to 1
Action: The current sequence number is invalid, not found, or not readable
Logic Flow:
IF The machine sequence number management process is started
AND The current sequence number is invalid, not found, or not readable
THEN:
• The sequence number should be initialized to 1
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when valid machine sequence number exists.
Trigger Criteria:
Context: A valid machine sequence number exists
Applied to: Increment Sequence Number by 1
Action: A new transaction requires sequence number assignment
Logic Flow:
IF A valid machine sequence number exists
AND A new transaction requires sequence number assignment
THEN:
• The sequence number should be incremented by 1
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when machine sequence number has been incremented.
Trigger Criteria:
Context: The machine sequence number has been incremented
Applied to: Reset Sequence Number to 1
Action: The sequence number reaches the maximum allowable value
Logic Flow:
IF The machine sequence number has been incremented
AND The sequence number reaches the maximum allowable value
THEN:
• The sequence number should be reset to 1
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when machine sequence number has been updated (incremented or reset).
Trigger Criteria:
Context: The machine sequence number has been updated (incremented or reset)
Applied to: Store Updated Sequence Number
Action: The sequence number update process is completed
Logic Flow:
IF The machine sequence number has been updated (incremented or reset)
AND The sequence number update process is completed
THEN:
• The updated sequence number should be stored in the machine sequence counter for future use
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when machine sequence number has been successfully updated and stored.
Trigger Criteria:
Context: The machine sequence number has been successfully updated and stored
Applied to: Return Sequence Number for Transaction Tracking
Action: The sequence number management process is completed
Logic Flow:
IF The machine sequence number has been successfully updated and stored
AND The sequence number management process is completed
THEN:
• The current sequence number should be returned for transaction tracking purposes
Business Justification: Establishes the required business protocol to be followed when edi message has been received from the mq queue.
Trigger Criteria:
Context: An EDI message has been received from the MQ queue
Applied to: Get Message Length
Action: The system needs to determine the message processing requirements
Logic Flow:
IF An EDI message has been received from the MQ queue
AND The system needs to determine the message processing requirements
THEN:
• The system retrieves and stores the total message length for subsequent processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when system is ready to parse an edi message.
Trigger Criteria:
Context: The system is ready to parse an EDI message
Applied to: Initialize Entry Counter
Action: Message processing begins
Logic Flow:
IF The system is ready to parse an EDI message
AND Message processing begins
THEN:
• The entry counter is set to zero to track the number of segments processed
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when edi message with known length is available for processing.
Trigger Criteria:
Context: An EDI message with known length is available for processing
Applied to: Parse Message Structure
Action: The system begins message analysis
Logic Flow:
IF An EDI message with known length is available for processing
AND The system begins message analysis
THEN:
• The message structure is parsed to identify individual EDI segments
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when system is processing edi message segments.
Trigger Criteria:
Context: The system is processing EDI message segments
Applied to: More Segments to Process?
Action: A segment has been processed
Logic Flow:
IF The system is processing EDI message segments
AND A segment has been processed
THEN:
• The system checks if more segments exist in the message for continued processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when edi segment is available for processing.
Trigger Criteria:
Context: An EDI segment is available for processing
Applied to: Identify Segment Type
Action: The system encounters a new segment
Logic Flow:
IF An EDI segment is available for processing
AND The system encounters a new segment
THEN:
• The segment type is identified based on the segment identifier
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when edi segment has been identified.
Trigger Criteria:
Context: An EDI segment has been identified
Applied to: Calculate Segment Length
Action: The system needs to process the segment
Logic Flow:
IF An EDI segment has been identified
AND The system needs to process the segment
THEN:
• The segment length is calculated based on the segment structure and content
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when edi segment has been successfully processed.
Trigger Criteria:
Context: An EDI segment has been successfully processed
Applied to: Increment Entry Counter
Action: The segment processing is complete
Logic Flow:
IF An EDI segment has been successfully processed
AND The segment processing is complete
THEN:
• The entry counter is incremented by one to track the total number of processed segments
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when segment has been processed and its length calculated.
Trigger Criteria:
Context: A segment has been processed and its length calculated
Applied to: Move to Next Segment Position
Action: The system needs to continue processing
Logic Flow:
IF A segment has been processed and its length calculated
AND The system needs to continue processing
THEN:
• The message position pointer is moved to the start of the next segment
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when all segments in the edi message have been processed.
Trigger Criteria:
Context: All segments in the EDI message have been processed
Applied to: Validate Total Entries Against Message Length
Action: The system completes segment counting
Logic Flow:
IF All segments in the EDI message have been processed
AND The system completes segment counting
THEN:
• The total entry count is validated against the expected count derived from message length
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when entry count has been calculated and validated.
Trigger Criteria:
Context: The entry count has been calculated and validated
Applied to: Entry Count Valid?
Action: The system needs to determine processing success
Logic Flow:
IF The entry count has been calculated and validated
AND The system needs to determine processing success
THEN:
• The entry count is checked for validity and consistency with the message structure
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when entry count has been validated as correct.
Trigger Criteria:
Context: The entry count has been validated as correct
Applied to: Set Final Entry Count
Action: Validation passes successfully
Logic Flow:
IF The entry count has been validated as correct
AND Validation passes successfully
THEN:
• The final entry count is set for use in subsequent message processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when entry count validation has failed.
Trigger Criteria:
Context: The entry count validation has failed
Applied to: Log Entry Count Error
Action: An invalid entry count is detected
Logic Flow:
IF The entry count validation has failed
AND An invalid entry count is detected
THEN:
• An error is logged indicating the entry count validation failure
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when entry count error has been logged.
Trigger Criteria:
Context: An entry count error has been logged
Applied to: Set Error Flag
Action: Entry count validation fails
Logic Flow:
IF An entry count error has been logged
AND Entry count validation fails
THEN:
• An error flag is set to indicate processing failure
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when entry count calculation is complete (either successful or with error).
Trigger Criteria:
Context: Entry count calculation is complete (either successful or with error)
Applied to: Return Entry Count for Processing
Action: The calling process requests the entry count
Logic Flow:
IF Entry count calculation is complete (either successful or with error)
AND The calling process requests the entry count
THEN:
• The calculated entry count is returned along with any error indicators for further processing
R-GCX016-cbl-03798 (+11)File: GCX016.cblBusiness Rule: Shiproot Existence Verification
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when edi segments are available in the message queue.
Trigger Criteria:
Context: EDI segments are available in the message queue
Applied to: Receive EDI Segment for Processing
Action: the system processes messages from the queue
Logic Flow:
IF EDI segments are available in the message queue
AND the system processes messages from the queue
THEN:
• valid messages with backout count zero are accepted for processing and messages with non-zero backout count are skipped
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when edi segment is received for processing.
Trigger Criteria:
Context: an EDI segment is received for processing
Applied to: Extract Shipment Identifier from EDI Segment
Action: the segment type is X4 (customs release)
Logic Flow:
IF an EDI segment is received for processing
AND the segment type is X4 (customs release)
THEN:
• the system extracts CCN key, car ID, waybill number, and disposition code from the segment
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when shipment identifiers have been extracted from edi segment.
Trigger Criteria:
Context: shipment identifiers have been extracted from EDI segment
Applied to: Query Shipment Root Database
Action: the system searches for cargo records
Logic Flow:
IF shipment identifiers have been extracted from EDI segment
AND the system searches for cargo records
THEN:
• it performs exact match search using CCN key first, then broader search if exact match fails, excluding deleted records
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when system has queried the shipment database.
Trigger Criteria:
Context: the system has queried the shipment database
Applied to: Shipment Root Record Exists?
Action: searching for cargo records by CCN key and car ID
Logic Flow:
IF the system has queried the shipment database
AND searching for cargo records by CCN key and car ID
THEN:
• if no matching non-deleted cargo record is found, set cargo not found flag, otherwise set cargo found flag
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record search has failed to find matching records.
Trigger Criteria:
Context: cargo record search has failed to find matching records
Applied to: Log Shipment Root Not Found Error
Action: processing CPRS cargo that is not found
Logic Flow:
IF cargo record search has failed to find matching records
AND processing CPRS cargo that is not found
THEN:
• increment error counter and create error message with disposition code and CCN key marked as not found
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when error has been logged for cargo not found.
Trigger Criteria:
Context: an error has been logged for cargo not found
Applied to: Send Error Notification to Business Users
Action: the error involves CPRS cargo processing
Logic Flow:
IF an error has been logged for cargo not found
AND the error involves CPRS cargo processing
THEN:
• send Merlin error message to business users with cargo details and not found status
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when shipment root record does not exist in the database.
Trigger Criteria:
Context: shipment root record does not exist in the database
Applied to: Skip EDI Segment Processing
Action: cargo not found flag is set
Logic Flow:
IF shipment root record does not exist in the database
AND cargo not found flag is set
THEN:
• skip further processing of the current EDI segment and continue to next segment
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when shipment root record exists in the database.
Trigger Criteria:
Context: shipment root record exists in the database
Applied to: Proceed with EDI Segment Processing
Action: cargo found flag is set
Logic Flow:
IF shipment root record exists in the database
AND cargo found flag is set
THEN:
• proceed with disposition code processing and cargo status updates
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code is 95 (proceed) and entry type is in (61, 62, 63, 69).
Trigger Criteria:
Context: disposition code is 95 (proceed) and entry type is in (61, 62, 63, 69)
Applied to: Create U1 Segment with In-Bond Information
Action: processing new cargo with in-bond requirements
Logic Flow:
IF disposition code is 95 (proceed) and entry type is in (61, 62, 63, 69)
AND processing new cargo with in-bond requirements
THEN:
• create master in-bond record with appropriate entry type classification and bond number validation
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when edi segment has been successfully processed. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: EDI segment has been successfully processed
Applied to: Update Shipment Record with EDI Data
Action: cargo status changes are required
Logic Flow:
IF EDI segment has been successfully processed
AND cargo status changes are required
THEN:
• update cargo record with new status, release quantities, and disposition codes, and call GCCIIS for hold/release status changes if cargo status description changed
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when edi segment processing has completed successfully.
Trigger Criteria:
Context: EDI segment processing has completed successfully
Applied to: Log Successful Processing
Action: cargo record has been updated
Logic Flow:
IF EDI segment processing has completed successfully
AND cargo record has been updated
THEN:
• log cargo status changes and spawn GCT1051E logging transaction excluding disposition codes 54 and 55
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when current edi segment processing is complete.
Trigger Criteria:
Context: current EDI segment processing is complete
Applied to: Continue to Next EDI Segment
Action: more segments exist in the message queue
Logic Flow:
IF current EDI segment processing is complete
AND more segments exist in the message queue
THEN:
• continue processing next available segment until end of queue is reached
R-GCX016-cbl-03810 (+9)File: GCX016.cblBusiness Rule: U1 Segment Creation and Processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when request to create u1 segment for a shipment.
Trigger Criteria:
Context: A request to create U1 segment for a shipment
Applied to: Validate Shipment Root Record
Action: The system checks for shipment root record existence
Logic Flow:
IF A request to create U1 segment for a shipment
AND The system checks for shipment root record existence
THEN:
• The system should validate the shipment root record exists and proceed with U1 creation, or log an error if not found
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when u1 segment creation request for a shipment.
Trigger Criteria:
Context: A U1 segment creation request for a shipment
Applied to: Log Shiproot Not Found Error
Action: The shipment root record does not exist in the system
Logic Flow:
IF A U1 segment creation request for a shipment
AND The shipment root record does not exist in the system
THEN:
• The system should log a shiproot not found error and terminate the U1 creation process
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when valid shipment root record exists.
Trigger Criteria:
Context: A valid shipment root record exists
Applied to: Retrieve In-Bond Information
Action: The system processes U1 segment creation
Logic Flow:
IF A valid shipment root record exists
AND The system processes U1 segment creation
THEN:
• The system should retrieve all relevant in-bond information from the shipment record for U1 population
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when in-bond information contains cprail type codes.
Trigger Criteria:
Context: In-bond information contains CPRAIL type codes
Applied to: Convert CPRAIL Type Codes to EDI 309 Values
Action: The system creates U1 segment structure
Logic Flow:
IF In-bond information contains CPRAIL type codes
AND The system creates U1 segment structure
THEN:
• The system should convert CPRAIL type codes to corresponding EDI 309 standard values using the type code mapping table
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when in-bond information has been retrieved and type codes converted.
Trigger Criteria:
Context: In-bond information has been retrieved and type codes converted
Applied to: Create U1 Segment Structure
Action: The system processes U1 segment creation
Logic Flow:
IF In-bond information has been retrieved and type codes converted
AND The system processes U1 segment creation
THEN:
• The system should create a properly formatted U1 segment structure with all required fields initialized
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when u1 segment structure has been created.
Trigger Criteria:
Context: A U1 segment structure has been created
Applied to: Populate In-Bond Details
Action: The system populates in-bond details
Logic Flow:
IF A U1 segment structure has been created
AND The system populates in-bond details
THEN:
• The system should populate all in-bond fields including bond numbers, entry types, broker information, and customs data into the U1 segment
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when u1 segment has been populated with in-bond details.
Trigger Criteria:
Context: A U1 segment has been populated with in-bond details
Applied to: Insert U1 Segment into Database
Action: The system attempts to store the U1 segment
Logic Flow:
IF A U1 segment has been populated with in-bond details
AND The system attempts to store the U1 segment
THEN:
• The system should insert the U1 segment into the database and return success or failure status
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when u1 segment insertion has been attempted.
Trigger Criteria:
Context: A U1 segment insertion has been attempted
Applied to: Database Operation Successful?
Action: The database operation completes
Logic Flow:
IF A U1 segment insertion has been attempted
AND The database operation completes
THEN:
• The system should check if the database operation was successful and proceed accordingly or log an error if failed
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when u1 segment insertion has been attempted.
Trigger Criteria:
Context: A U1 segment insertion has been attempted
Applied to: Log Database Error
Action: The database operation fails
Logic Flow:
IF A U1 segment insertion has been attempted
AND The database operation fails
THEN:
• The system should log the database error with relevant details and terminate the U1 creation process
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when u1 segment has been successfully inserted into the database.
Trigger Criteria:
Context: U1 segment has been successfully inserted into the database
Applied to: U1 Segment Created Successfully
Action: The database operation returns success status
Logic Flow:
IF U1 segment has been successfully inserted into the database
AND The database operation returns success status
THEN:
• The system should confirm U1 segment creation was successful and complete the process
Action: The system processes the successful operation
Logic Flow:
IF U1 segment database operation completed successfully
AND The system processes the successful operation
THEN:
• Success information is logged for audit trail and processing continues
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when database operation on u1 segment has failed.
Trigger Criteria:
Context: A database operation on U1 segment has failed
Applied to: Handle Database Error
Action: The system detects the operation failure
Logic Flow:
IF A database operation on U1 segment has failed
AND The system detects the operation failure
THEN:
• Error handling procedures are invoked and processing terminates with error status
R-GCX016-cbl-03838 (+12)File: GCX016.cblBusiness Rule: Location Name Resolution
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when location id is received for resolution.
Trigger Criteria:
Context: A location ID is received for resolution
Applied to: Location ID Type?
Action: The system evaluates the location ID type
Logic Flow:
IF A location ID is received for resolution
AND The system evaluates the location ID type
THEN:
• The system selects DS table for station codes, KS table for port codes, or SD table for general locations
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when station code location id needs to be resolved.
Trigger Criteria:
Context: A station code location ID needs to be resolved
Applied to: Lookup in DS Table
Action: The system performs DS table lookup using the location ID
Logic Flow:
IF A station code location ID needs to be resolved
AND The system performs DS table lookup using the location ID
THEN:
• The system retrieves station data from DS table or determines location not found
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when port code location id needs to be resolved.
Trigger Criteria:
Context: A port code location ID needs to be resolved
Applied to: Lookup in KS Table
Action: The system performs KS table lookup using the location ID
Logic Flow:
IF A port code location ID needs to be resolved
AND The system performs KS table lookup using the location ID
THEN:
• The system retrieves port data from KS table or determines location not found
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when general location id needs to be resolved.
Trigger Criteria:
Context: A general location ID needs to be resolved
Applied to: Lookup in SD Table
Action: The system performs SD table lookup using the location ID
Logic Flow:
IF A general location ID needs to be resolved
AND The system performs SD table lookup using the location ID
THEN:
• The system retrieves location data from SD table or determines location not found
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when ds table lookup has been performed for a station location.
Trigger Criteria:
Context: DS table lookup has been performed for a station location
Applied to: Location Found in DS?
Action: The system checks the lookup result
Logic Flow:
IF DS table lookup has been performed for a station location
AND The system checks the lookup result
THEN:
• If location is found in DS table, proceed to retrieve location name, otherwise try KS table lookup
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when ks table lookup has been performed for a port location or ds lookup failed.
Trigger Criteria:
Context: KS table lookup has been performed for a port location or DS lookup failed
Applied to: Location Found in KS?
Action: The system checks the lookup result
Logic Flow:
IF KS table lookup has been performed for a port location or DS lookup failed
AND The system checks the lookup result
THEN:
• If location is found in KS table, proceed to retrieve location name, otherwise try SD table lookup
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when sd table lookup has been performed for a general location or previous lookups failed.
Trigger Criteria:
Context: SD table lookup has been performed for a general location or previous lookups failed
Applied to: Location Found in SD?
Action: The system checks the lookup result
Logic Flow:
IF SD table lookup has been performed for a general location or previous lookups failed
AND The system checks the lookup result
THEN:
• If location is found in SD table, proceed to retrieve location name, otherwise generate location not found error
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when location has been successfully found in ds table.
Trigger Criteria:
Context: Location has been successfully found in DS table
Applied to: Retrieve Location Name from DS
Action: The system retrieves the location information
Logic Flow:
IF Location has been successfully found in DS table
AND The system retrieves the location information
THEN:
• The system extracts the descriptive location name from the DS table record
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when location has been successfully found in ks table.
Trigger Criteria:
Context: Location has been successfully found in KS table
Applied to: Retrieve Location Name from KS
Action: The system retrieves the location information
Logic Flow:
IF Location has been successfully found in KS table
AND The system retrieves the location information
THEN:
• The system extracts the descriptive location name from the KS table record
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when location has been successfully found in sd table.
Trigger Criteria:
Context: Location has been successfully found in SD table
Applied to: Retrieve Location Name from SD
Action: The system retrieves the location information
Logic Flow:
IF Location has been successfully found in SD table
AND The system retrieves the location information
THEN:
• The system extracts the descriptive location name from the SD table record
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when location name has been successfully retrieved from ds, ks, or sd table.
Trigger Criteria:
Context: A location name has been successfully retrieved from DS, KS, or SD table
Applied to: Set Location Description
Action: The system processes the retrieved location information
Logic Flow:
IF A location name has been successfully retrieved from DS, KS, or SD table
AND The system processes the retrieved location information
THEN:
• The system sets the location description field with the retrieved location name
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when location description has been set with resolved location name.
Trigger Criteria:
Context: Location description has been set with resolved location name
Applied to: Update Cargo Record with Location Info
Action: The system updates the cargo record
Logic Flow:
IF Location description has been set with resolved location name
AND The system updates the cargo record
THEN:
• The system stores the location information in the appropriate cargo record fields
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when location id has been searched in ds, ks, and sd tables without success.
Trigger Criteria:
Context: Location ID has been searched in DS, KS, and SD tables without success
Applied to: Location Not Found Error
Action: All table lookups have failed to find the location
Logic Flow:
IF Location ID has been searched in DS, KS, and SD tables without success
AND All table lookups have failed to find the location
THEN:
• The system generates a location not found error and continues processing
R-GCX016-cbl-03851 (+11)File: GCX016.cblBusiness Rule: N9 Reference Information Retrieval
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when shipment requires n9 reference information processing.
Trigger Criteria:
Context: A shipment requires N9 reference information processing
Applied to: Access Secondary Cargo Records
Action: The system initiates N9 reference retrieval process
Logic Flow:
IF A shipment requires N9 reference information processing
AND The system initiates N9 reference retrieval process
THEN:
• Secondary cargo records (GCSA2RT) are accessed to locate N9 segments
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when secondary cargo records are accessible.
Trigger Criteria:
Context: Secondary cargo records are accessible
Applied to: Search for N9 Segments
Action: The system searches for N9 segments within the records
Logic Flow:
IF Secondary cargo records are accessible
AND The system searches for N9 segments within the records
THEN:
• All available N9 segments are identified and flagged for processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when secondary cargo records have been searched for n9 segments.
Trigger Criteria:
Context: Secondary cargo records have been searched for N9 segments
Applied to: N9 Segments Found?
Action: The system evaluates the search results
Logic Flow:
IF Secondary cargo records have been searched for N9 segments
AND The system evaluates the search results
THEN:
• If N9 segments are found, proceed to extract reference information, otherwise log no references found and continue processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when secondary cargo records have been searched for n9 segments.
Trigger Criteria:
Context: Secondary cargo records have been searched for N9 segments
Applied to: Log No References Found
Action: No N9 segments are found in the records
Logic Flow:
IF Secondary cargo records have been searched for N9 segments
AND No N9 segments are found in the records
THEN:
• The absence of N9 references is logged and shipment processing continues without reference information
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when n9 segments have been found in secondary cargo records.
Trigger Criteria:
Context: N9 segments have been found in secondary cargo records
Applied to: Extract Reference Numbers
Action: The system processes each N9 segment
Logic Flow:
IF N9 segments have been found in secondary cargo records
AND The system processes each N9 segment
THEN:
• Reference numbers are extracted and stored for further validation
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when reference numbers have been extracted from n9 segments.
Trigger Criteria:
Context: Reference numbers have been extracted from N9 segments
Applied to: Extract Reference Qualifiers
Action: The system processes the qualifier information in each N9 segment
Logic Flow:
IF Reference numbers have been extracted from N9 segments
AND The system processes the qualifier information in each N9 segment
THEN:
• Reference qualifiers are extracted and associated with their corresponding reference numbers
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when reference numbers and qualifiers have been extracted from n9 segments.
Trigger Criteria:
Context: Reference numbers and qualifiers have been extracted from N9 segments
Applied to: Validate FDA Reference Types
Action: The system validates the reference types against FDA requirements
Logic Flow:
IF Reference numbers and qualifiers have been extracted from N9 segments
AND The system validates the reference types against FDA requirements
THEN:
• References are classified as valid or invalid based on FDA compliance criteria
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when fda reference validation has been performed.
Trigger Criteria:
Context: FDA reference validation has been performed
Applied to: Valid FDA References?
Action: The system evaluates the validation results
Logic Flow:
IF FDA reference validation has been performed
AND The system evaluates the validation results
THEN:
• If references are valid for FDA processing, store them for shipment use, otherwise skip N9 processing and continue
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when n9 references have been validated as fda-compliant.
Trigger Criteria:
Context: N9 references have been validated as FDA-compliant
Applied to: Store Reference Information for Shipment
Action: The system processes the valid references
Logic Flow:
IF N9 references have been validated as FDA-compliant
AND The system processes the valid references
THEN:
• Reference information is stored in memory structures for shipment record updates
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when valid n9 reference information has been stored.
Trigger Criteria:
Context: Valid N9 reference information has been stored
Applied to: Update Shipment Record with N9 Data
Action: The system updates the shipment record
Logic Flow:
IF Valid N9 reference information has been stored
AND The system updates the shipment record
THEN:
• Shipment record is updated with N9 reference numbers and qualifiers for regulatory compliance
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when n9 reference information has been processed and shipment record updated.
Trigger Criteria:
Context: N9 reference information has been processed and shipment record updated
Applied to: Log Reference Processing
Action: The system completes the reference processing
Logic Flow:
IF N9 reference information has been processed and shipment record updated
AND The system completes the reference processing
THEN:
• Processing activity is logged with details of references processed and shipment updates made
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when n9 references have been found but failed fda validation.
Trigger Criteria:
Context: N9 references have been found but failed FDA validation
Applied to: Skip N9 Processing
Action: The system determines references are invalid
Logic Flow:
IF N9 references have been found but failed FDA validation
AND The system determines references are invalid
THEN:
• N9 processing is skipped and shipment processing continues without reference updates
R-GCX016-cbl-03863 (+6)File: GCX016.cblBusiness Rule: Canadian Cargo Cross
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when us cargo release request is being processed.
Trigger Criteria:
Context: A US cargo release request is being processed
Applied to: Extract Equipment ID from US Cargo
Action: The system needs to coordinate with Canadian cargo systems
Logic Flow:
IF A US cargo release request is being processed
AND The system needs to coordinate with Canadian cargo systems
THEN:
• The equipment ID (car initial and car number) is extracted from the US cargo record for cross-reference lookup
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when equipment id has been extracted from us cargo.
Trigger Criteria:
Context: An equipment ID has been extracted from US cargo
Applied to: Search Canadian Cargo Database
Action: The system searches the Canadian cargo database
Logic Flow:
IF An equipment ID has been extracted from US cargo
AND The system searches the Canadian cargo database
THEN:
• Canadian waybill records are retrieved based on the equipment ID match
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when canadian cargo records have been found by equipment id.
Trigger Criteria:
Context: Canadian cargo records have been found by equipment ID
Applied to: Validate Canadian Cargo Record
Action: The system validates the Canadian cargo record
Logic Flow:
IF Canadian cargo records have been found by equipment ID
AND The system validates the Canadian cargo record
THEN:
• Only non-deleted Canadian cargo records are considered valid for cross-border processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when valid canadian cargo records are found with matching equipment id.
Trigger Criteria:
Context: Valid Canadian cargo records are found with matching equipment ID
Applied to: Establish Cross-Border Link
Action: Equipment ID match is confirmed between US and Canadian systems
Logic Flow:
IF Valid Canadian cargo records are found with matching equipment ID
AND Equipment ID match is confirmed between US and Canadian systems
THEN:
• A cross-border link is established between the corresponding cargo records
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cross-border cargo coordination is being processed.
Trigger Criteria:
Context: Cross-border cargo coordination is being processed
Applied to: Generate Cross-Border Log Message
Action: Canadian cargo records are found and linked to US cargo
Logic Flow:
IF Cross-border cargo coordination is being processed
AND Canadian cargo records are found and linked to US cargo
THEN:
• A log message is generated documenting the cross-border cargo release coordination
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when search for canadian cargo records by equipment id is performed.
Trigger Criteria:
Context: A search for Canadian cargo records by equipment ID is performed
Applied to: Log No Canadian Match Found
Action: No Canadian cargo records are found matching the equipment ID
Logic Flow:
IF A search for Canadian cargo records by equipment ID is performed
AND No Canadian cargo records are found matching the equipment ID
THEN:
• The system logs that no Canadian match was found and continues with US-only processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when canadian cargo coordination has failed due to no match, invalid records, or equipment id mismatch.
Trigger Criteria:
Context: Canadian cargo coordination has failed due to no match, invalid records, or equipment ID mismatch
Applied to: Continue US Processing Only
Action: Cross-border coordination cannot be established
Logic Flow:
IF Canadian cargo coordination has failed due to no match, invalid records, or equipment ID mismatch
AND Cross-border coordination cannot be established
THEN:
• The system continues processing the US cargo release without Canadian coordination
R-GCX016-cbl-03870 (+14)File: GCX016.cblBusiness Rule: Equipment ID Matching for Cross
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when us cargo record exists in the system.
Trigger Criteria:
Context: A US cargo record exists in the system
Applied to: Retrieve US Cargo Equipment ID
Action: The system processes cross-border equipment matching
Logic Flow:
IF A US cargo record exists in the system
AND The system processes cross-border equipment matching
THEN:
• The equipment identifier is retrieved from the US cargo record for matching purposes
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when us equipment identifier has been retrieved.
Trigger Criteria:
Context: A US equipment identifier has been retrieved
Applied to: Format Equipment ID for Canadian System
Action: The system prepares to search Canadian cargo database
Logic Flow:
IF A US equipment identifier has been retrieved
AND The system prepares to search Canadian cargo database
THEN:
• The equipment identifier is formatted according to Canadian system requirements
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when equipment identifier has been formatted for canadian system.
Trigger Criteria:
Context: An equipment identifier has been formatted for Canadian system
Applied to: Search Canadian Cargo Database
Action: The system searches the Canadian cargo database
Logic Flow:
IF An equipment identifier has been formatted for Canadian system
AND The system searches the Canadian cargo database
THEN:
• Canadian cargo records matching the equipment identifier are retrieved
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when search has been performed in the canadian cargo database.
Trigger Criteria:
Context: A search has been performed in the Canadian cargo database
Applied to: Canadian Cargo Found?
Action: The system evaluates search results
Logic Flow:
IF A search has been performed in the Canadian cargo database
AND The system evaluates search results
THEN:
• The system determines if Canadian cargo records exist and proceeds accordingly
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when canadian cargo records have been found.
Trigger Criteria:
Context: Canadian cargo records have been found
Applied to: Validate Canadian Record Status
Action: The system validates record status
Logic Flow:
IF Canadian cargo records have been found
AND The system validates record status
THEN:
• The system confirms the Canadian record is valid and active for processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when canadian cargo record status has been validated.
Trigger Criteria:
Context: Canadian cargo record status has been validated
Applied to: Record Valid?
Action: The system determines record validity
Logic Flow:
IF Canadian cargo record status has been validated
AND The system determines record validity
THEN:
• The system confirms if the record is valid for cross-border matching or requires alternative processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when valid canadian cargo record exists.
Trigger Criteria:
Context: Valid Canadian cargo record exists
Applied to: Match Equipment Identifiers
Action: The system compares US and Canadian equipment identifiers
Logic Flow:
IF Valid Canadian cargo record exists
AND The system compares US and Canadian equipment identifiers
THEN:
• Equipment identifiers are matched for cross-border coordination
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when equipment identifiers have been compared.
Trigger Criteria:
Context: Equipment identifiers have been compared
Applied to: Equipment IDs Match?
Action: The system evaluates matching results
Logic Flow:
IF Equipment identifiers have been compared
AND The system evaluates matching results
THEN:
• The system determines if equipment identifiers match and proceeds with appropriate action
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when equipment identifiers match between us and canadian systems.
Trigger Criteria:
Context: Equipment identifiers match between US and Canadian systems
Applied to: Establish Cross-Border Link
Action: The system establishes cross-border coordination
Logic Flow:
IF Equipment identifiers match between US and Canadian systems
AND The system establishes cross-border coordination
THEN:
• A cross-border link is created between the cargo records
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cross-border link has been established.
Trigger Criteria:
Context: Cross-border link has been established
Applied to: Update Coordination Status
Action: The system updates coordination status
Logic Flow:
IF Cross-border link has been established
AND The system updates coordination status
THEN:
• Cargo records are updated with cross-border coordination information
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cross-border coordination status has been updated.
Trigger Criteria:
Context: Cross-border coordination status has been updated
Applied to: Log Cross-Border Match
Action: The system logs the matching event
Logic Flow:
IF Cross-border coordination status has been updated
AND The system logs the matching event
THEN:
• Cross-border match information is recorded in system logs
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when initial equipment matching has failed or no canadian cargo found.
Trigger Criteria:
Context: Initial equipment matching has failed or no Canadian cargo found
Applied to: Try Alternative Equipment Format
Action: The system tries alternative formatting
Logic Flow:
IF Initial equipment matching has failed or no Canadian cargo found
AND The system tries alternative formatting
THEN:
• Equipment identifier is reformatted using alternative rules for another search attempt
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when alternative equipment formatting has been attempted.
Trigger Criteria:
Context: Alternative equipment formatting has been attempted
Applied to: Alternative Format Available?
Action: The system checks for more format options
Logic Flow:
IF Alternative equipment formatting has been attempted
AND The system checks for more format options
THEN:
• The system determines if additional format alternatives exist or matching should be concluded
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when all alternative equipment formats have been exhausted.
Trigger Criteria:
Context: All alternative equipment formats have been exhausted
Applied to: Mark No Canadian Match Found
Action: The system concludes matching attempts
Logic Flow:
IF All alternative equipment formats have been exhausted
AND The system concludes matching attempts
THEN:
• The system marks that no Canadian cargo match was found
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when no canadian match has been found and marked.
Trigger Criteria:
Context: No Canadian match has been found and marked
Applied to: Log No Match Information
Action: The system logs the no-match event
Logic Flow:
IF No Canadian match has been found and marked
AND The system logs the no-match event
THEN:
• Information about unsuccessful matching is recorded in system logs
R-GCX016-cbl-03885 (+8)File: GCX016.cblBusiness Rule: KCSM Broker Name Lookup
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when kcsm broker name lookup process is initiated.
Trigger Criteria:
Context: KCSM broker name lookup process is initiated
Applied to: Initialize Broker Name Fields
Action: the system begins broker name retrieval
Logic Flow:
IF KCSM broker name lookup process is initiated
AND the system begins broker name retrieval
THEN:
• all broker name fields are set to spaces to ensure clean processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when broker code lookup request for kcsm processing.
Trigger Criteria:
Context: a broker code lookup request for KCSM processing
Applied to: Check if Broker Code Exists
Action: the system checks for broker code presence
Logic Flow:
IF a broker code lookup request for KCSM processing
AND the system checks for broker code presence
THEN:
• the system determines if broker code exists and is not empty
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when broker code validation check has been performed.
Trigger Criteria:
Context: a broker code validation check has been performed
Applied to: Broker Code Present?
Action: the system evaluates broker code presence
Logic Flow:
IF a broker code validation check has been performed
AND the system evaluates broker code presence
THEN:
• if broker code is present, proceed to BK table lookup, otherwise set broker name to spaces
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when valid broker code exists for kcsm processing.
Trigger Criteria:
Context: a valid broker code exists for KCSM processing
Applied to: Set Up BK Table Key with Broker Code
Action: the system prepares to lookup broker information
Logic Flow:
IF a valid broker code exists for KCSM processing
AND the system prepares to lookup broker information
THEN:
• the BK table key is constructed using the broker code for table access
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when properly formatted bk table key with broker code. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: a properly formatted BK table key with broker code
Applied to: Call GCCTBIO to Read BK Table
Action: the system calls GCCTBIO table service
Logic Flow:
IF a properly formatted BK table key with broker code
AND the system calls GCCTBIO table service
THEN:
• the system attempts to read the broker record from the BK table
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when bk table lookup has been performed using gcctbio.
Trigger Criteria:
Context: a BK table lookup has been performed using GCCTBIO
Applied to: BK Table Record Found?
Action: the system evaluates the lookup results
Logic Flow:
IF a BK table lookup has been performed using GCCTBIO
AND the system evaluates the lookup results
THEN:
• if record is found, extract broker name, otherwise set broker name to spaces
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when broker record has been successfully found in the bk table.
Trigger Criteria:
Context: a broker record has been successfully found in the BK table
Applied to: Extract Broker Short Name from BK Table
Action: the system processes the retrieved record
Logic Flow:
IF a broker record has been successfully found in the BK table
AND the system processes the retrieved record
THEN:
• the broker short name is extracted from the BK table record
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when broker short name has been extracted from the bk table record.
Trigger Criteria:
Context: a broker short name has been extracted from the BK table record
Applied to: Store Broker Name for KCSM Processing
Action: the system completes broker name extraction
Logic Flow:
IF a broker short name has been extracted from the BK table record
AND the system completes broker name extraction
THEN:
• the broker name is stored in the designated field for KCSM processing use
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when either no broker code exists or bk table lookup failed to find a record.
Trigger Criteria:
Context: either no broker code exists or BK table lookup failed to find a record
Applied to: Set Broker Name to Spaces if Not Found
Action: the system handles the missing broker information scenario
Logic Flow:
IF either no broker code exists or BK table lookup failed to find a record
AND the system handles the missing broker information scenario
THEN:
• the broker name field is set to spaces to indicate no broker information available
R-GCX016-cbl-03894 (+13)File: GCX016.cblBusiness Rule: EDI Transmission Root Segment Creation
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when edi transmission root segment creation is requested.
Trigger Criteria:
Context: EDI transmission root segment creation is requested
Applied to: Initialize Transmission Parameters
Action: the system begins transmission parameter initialization
Logic Flow:
IF EDI transmission root segment creation is requested
AND the system begins transmission parameter initialization
THEN:
• transmission parameters are loaded from AECWRKTB work table
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when transmission parameters are initialized.
Trigger Criteria:
Context: transmission parameters are initialized
Applied to: Set Transmission Control Information
Action: transmission control information is being set
Logic Flow:
IF transmission parameters are initialized
AND transmission control information is being set
THEN:
• control information is configured for message routing and tracking purposes
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when transmission control information is set.
Trigger Criteria:
Context: transmission control information is set
Applied to: Generate Transmission ID
Action: a transmission ID is required
Logic Flow:
IF transmission control information is set
AND a transmission ID is required
THEN:
• a unique transmission identifier is generated for message tracking
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when transmission id is generated.
Trigger Criteria:
Context: transmission ID is generated
Applied to: Set Message Routing Information
Action: message routing information is being configured
Logic Flow:
IF transmission ID is generated
AND message routing information is being configured
THEN:
• routing information is set to determine message destination and delivery path
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when message routing information is configured.
Trigger Criteria:
Context: message routing information is configured
Applied to: Create A9RT Root Segment
Action: A9RT root segment creation is initiated
Logic Flow:
IF message routing information is configured
AND A9RT root segment creation is initiated
THEN:
• A9RT root segment is created with transmission control and routing information
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when a9rt root segment is created.
Trigger Criteria:
Context: A9RT root segment is created
Applied to: Set Tracking Information
Action: tracking information is being set
Logic Flow:
IF A9RT root segment is created
AND tracking information is being set
THEN:
• tracking information is established for monitoring transmission status and progress
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when tracking information is set.
Trigger Criteria:
Context: tracking information is set
Applied to: Validate Segment Structure
Action: segment structure validation is performed
Logic Flow:
IF tracking information is set
AND segment structure validation is performed
THEN:
• root segment structure is validated for data integrity and completeness
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when segment structure validation is completed.
Trigger Criteria:
Context: segment structure validation is completed
Applied to: Validation Successful?
Action: validation results are evaluated
Logic Flow:
IF segment structure validation is completed
AND validation results are evaluated
THEN:
• system determines if validation was successful to proceed with storage or error handling
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when segment validation is successful.
Trigger Criteria:
Context: segment validation is successful
Applied to: Store Root Segment to Database
Action: root segment storage is initiated
Logic Flow:
IF segment validation is successful
AND root segment storage is initiated
THEN:
• validated root segment is stored to A9RT transmission segment database
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when root segment is successfully stored to database.
Trigger Criteria:
Context: root segment is successfully stored to database
Applied to: Log Transmission Creation
Action: transmission creation logging is performed
Logic Flow:
IF root segment is successfully stored to database
AND transmission creation logging is performed
THEN:
• successful transmission creation is logged for audit and monitoring purposes
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when transmission creation is logged successfully.
Trigger Criteria:
Context: transmission creation is logged successfully
Applied to: Return Success Status
Action: process completion status is returned
Logic Flow:
IF transmission creation is logged successfully
AND process completion status is returned
THEN:
• success status is returned to indicate successful root segment creation
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when segment validation fails.
Trigger Criteria:
Context: segment validation fails
Applied to: Handle Creation Error
Action: creation error handling is initiated
Logic Flow:
IF segment validation fails
AND creation error handling is initiated
THEN:
• system handles errors that occurred during root segment creation process
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when creation error handling is initiated.
Trigger Criteria:
Context: creation error handling is initiated
Applied to: Log Error Details
Action: error logging is performed
Logic Flow:
IF creation error handling is initiated
AND error logging is performed
THEN:
• detailed error information is logged for troubleshooting and audit purposes
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when error details are logged.
Trigger Criteria:
Context: error details are logged
Applied to: Return Error Status
Action: error status is returned
Logic Flow:
IF error details are logged
AND error status is returned
THEN:
• error status is returned to indicate failure in root segment creation process
R-GCX016-cbl-03908 (+14)File: GCX016.cblBusiness Rule: EDI Transmission Dependent Segment Creation
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when edi transmission process is initiated.
Trigger Criteria:
Context: An EDI transmission process is initiated
Applied to: Retrieve EDI 350 Message Data
Action: The system needs to process EDI 350 message data
Logic Flow:
IF An EDI transmission process is initiated
AND The system needs to process EDI 350 message data
THEN:
• The system retrieves the EDI 350 message data from the message queue for further processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when edi 350 message data has been retrieved.
Trigger Criteria:
Context: EDI 350 message data has been retrieved
Applied to: Initialize A9DP Dependent Segment
Action: The system needs to create dependent segments for transmission
Logic Flow:
IF EDI 350 message data has been retrieved
AND The system needs to create dependent segments for transmission
THEN:
• The system initializes a new A9DP dependent segment structure with default values
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when a9dp dependent segment has been initialized.
Trigger Criteria:
Context: An A9DP dependent segment has been initialized
Applied to: Set Transmission Control Information
Action: The system needs to establish transmission control
Logic Flow:
IF An A9DP dependent segment has been initialized
AND The system needs to establish transmission control
THEN:
• The system sets transmission control information including sequence numbers and transmission identifiers in the dependent segment
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when transmission control information has been set in the a9dp segment. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: Transmission control information has been set in the A9DP segment
Applied to: Copy EDI Segment Data to A9DP
Action: EDI segment data needs to be stored for transmission
Logic Flow:
IF Transmission control information has been set in the A9DP segment
AND EDI segment data needs to be stored for transmission
THEN:
• The system copies the EDI segment data from the 350 message into the A9DP dependent segment
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when edi segment data has been copied to an a9dp segment.
Trigger Criteria:
Context: EDI segment data has been copied to an A9DP segment
Applied to: More EDI Segments?
Action: The system checks for additional segments to process
Logic Flow:
IF EDI segment data has been copied to an A9DP segment
AND The system checks for additional segments to process
THEN:
• The system evaluates if more EDI segments exist and continues processing if segments remain, or proceeds to transmission preparation if all segments are processed
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when more edi segments exist to be processed.
Trigger Criteria:
Context: More EDI segments exist to be processed
Applied to: Create Next A9DP Segment
Action: The system needs to create another dependent segment
Logic Flow:
IF More EDI segments exist to be processed
AND The system needs to create another dependent segment
THEN:
• The system creates a new A9DP dependent segment for the next EDI segment data
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when new a9dp dependent segment has been created.
Trigger Criteria:
Context: A new A9DP dependent segment has been created
Applied to: Set Segment Sequence Number
Action: The system needs to establish segment ordering
Logic Flow:
IF A new A9DP dependent segment has been created
AND The system needs to establish segment ordering
THEN:
• The system assigns a sequential sequence number to the dependent segment to maintain proper transmission order
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when segment sequence number has been assigned.
Trigger Criteria:
Context: A segment sequence number has been assigned
Applied to: Store EDI Data in Dependent Segment
Action: EDI data needs to be stored in the dependent segment
Logic Flow:
IF A segment sequence number has been assigned
AND EDI data needs to be stored in the dependent segment
THEN:
• The system stores the EDI data in the dependent segment with proper formatting and structure
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when edi data has been stored in the dependent segment.
Trigger Criteria:
Context: EDI data has been stored in the dependent segment
Applied to: Link to Transmission Root Segment
Action: The dependent segment needs to be associated with its transmission root
Logic Flow:
IF EDI data has been stored in the dependent segment
AND The dependent segment needs to be associated with its transmission root
THEN:
• The system links the A9DP dependent segment to the A9RT transmission root segment
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when dependent segment has been linked to the transmission root segment.
Trigger Criteria:
Context: The dependent segment has been linked to the transmission root segment
Applied to: Insert A9DP Segment to Database
Action: The segment needs to be persisted for transmission
Logic Flow:
IF The dependent segment has been linked to the transmission root segment
AND The segment needs to be persisted for transmission
THEN:
• The system inserts the A9DP dependent segment into the database
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when a9dp segment has been inserted into the database.
Trigger Criteria:
Context: An A9DP segment has been inserted into the database
Applied to: Database Insert Successful?
Action: The system needs to verify the insertion was successful
Logic Flow:
IF An A9DP segment has been inserted into the database
AND The system needs to verify the insertion was successful
THEN:
• The system checks the database insert status and proceeds with logging if successful, or handles the error if unsuccessful
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when database insertion was successful.
Trigger Criteria:
Context: The database insertion was successful
Applied to: Log Transmission Details
Action: The system needs to maintain an audit trail
Logic Flow:
IF The database insertion was successful
AND The system needs to maintain an audit trail
THEN:
• The system logs transmission details including segment information and processing status
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when all edi segments have been processed and stored in dependent segments.
Trigger Criteria:
Context: All EDI segments have been processed and stored in dependent segments
Applied to: Prepare for KCSM Transmission
Action: The system is ready for transmission
Logic Flow:
IF All EDI segments have been processed and stored in dependent segments
AND The system is ready for transmission
THEN:
• The system prepares the dependent segments for KCSM transmission processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when database insertion has failed.
Trigger Criteria:
Context: A database insertion has failed
Applied to: Handle Database Error
Action: The system encounters a database error
Logic Flow:
IF A database insertion has failed
AND The system encounters a database error
THEN:
• The system handles the database error through appropriate error recovery procedures
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when all dependent segments have been processed or errors have been handled.
Trigger Criteria:
Context: All dependent segments have been processed or errors have been handled
Applied to: Complete Dependent Segment Creation
Action: The dependent segment creation process needs to be finalized
Logic Flow:
IF All dependent segments have been processed or errors have been handled
AND The dependent segment creation process needs to be finalized
THEN:
• The system completes the dependent segment creation process and finalizes EDI transmission preparation
Business Justification: Establishes the required business protocol to be followed when cargo record requires kcsm integration processing.
Trigger Criteria:
Context: A cargo record requires KCSM integration processing
Applied to: Retrieve Broker Name for KCSM
Action: The system attempts to retrieve broker information from GCSTBRT broker tables
Logic Flow:
IF A cargo record requires KCSM integration processing
AND The system attempts to retrieve broker information from GCSTBRT broker tables
THEN:
• The broker name is successfully retrieved and made available for transmission processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when system has attempted to retrieve broker information for kcsm processing.
Trigger Criteria:
Context: The system has attempted to retrieve broker information for KCSM processing
Applied to: Broker Name Found?
Action: The broker lookup operation completes
Logic Flow:
IF The system has attempted to retrieve broker information for KCSM processing
AND The broker lookup operation completes
THEN:
• If broker name is found, proceed to transmission creation; if broker name is not found, handle broker lookup error and complete KCSM integration
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when valid broker name has been retrieved for kcsm processing.
Trigger Criteria:
Context: A valid broker name has been retrieved for KCSM processing
Applied to: Create Transmission Root Segment
Action: The system creates the transmission root segment
Logic Flow:
IF A valid broker name has been retrieved for KCSM processing
AND The system creates the transmission root segment
THEN:
• A9RT transmission root segment is created with proper structure for EDI message transmission
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when transmission root segment has been created.
Trigger Criteria:
Context: A transmission root segment has been created
Applied to: Set Transmission Control Information
Action: The system sets transmission control information
Logic Flow:
IF A transmission root segment has been created
AND The system sets transmission control information
THEN:
• Transmission control parameters including routing, priority, and processing flags are established
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when transmission control information has been set.
Trigger Criteria:
Context: Transmission control information has been set
Applied to: Create Dependent Segment with EDI Data
Action: The system creates the dependent segment with EDI data
Logic Flow:
IF Transmission control information has been set
AND The system creates the dependent segment with EDI data
THEN:
• A9DP dependent segment is created containing the formatted EDI message data for transmission
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when edi dependent segment has been created with message data.
Trigger Criteria:
Context: EDI dependent segment has been created with message data
Applied to: Set Message Length and Entry Count
Action: The system calculates message parameters
Logic Flow:
IF EDI dependent segment has been created with message data
AND The system calculates message parameters
THEN:
• Message length and entry count are calculated and set for transmission validation
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when message length and entry count have been set.
Trigger Criteria:
Context: Message length and entry count have been set
Applied to: Transmission Created Successfully?
Action: The system validates transmission creation
Logic Flow:
IF Message length and entry count have been set
AND The system validates transmission creation
THEN:
• If transmission created successfully, spawn GCT1091E transaction; if transmission creation failed, handle transmission creation error and complete KCSM integration
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when transmission has been created successfully.
Trigger Criteria:
Context: Transmission has been created successfully
Applied to: Spawn GCT1091E Transaction
Action: The system spawns GCT1091E transaction
Logic Flow:
IF Transmission has been created successfully
AND The system spawns GCT1091E transaction
THEN:
• GCT1091E transaction is initiated for KCSM system integration processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when gct1091e transaction spawn has been attempted.
Trigger Criteria:
Context: GCT1091E transaction spawn has been attempted
Applied to: GCT1091E Spawn Successful?
Action: The system checks spawn operation status
Logic Flow:
IF GCT1091E transaction spawn has been attempted
AND The system checks spawn operation status
THEN:
• If GCT1091E spawn successful, pass transmission parameters; if spawn failed, handle spawn transaction error and complete KCSM integration
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when gct1091e transaction has been spawned successfully.
Trigger Criteria:
Context: GCT1091E transaction has been spawned successfully
Applied to: Pass Transmission Parameters
Action: The system passes transmission parameters
Logic Flow:
IF GCT1091E transaction has been spawned successfully
AND The system passes transmission parameters
THEN:
• Transmission parameters including root segment, dependent segment, and control information are passed to GCT1091E
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when transmission parameters have been passed to gct1091e.
Trigger Criteria:
Context: Transmission parameters have been passed to GCT1091E
Applied to: Log Transmission Details
Action: The system logs transmission details
Logic Flow:
IF Transmission parameters have been passed to GCT1091E
AND The system logs transmission details
THEN:
• Transmission details including broker information, message length, and timestamp are logged for audit purposes
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when transmission details have been logged.
Trigger Criteria:
Context: Transmission details have been logged
Applied to: Queue EDI Message for Transmission
Action: The system queues EDI message for transmission
Logic Flow:
IF Transmission details have been logged
AND The system queues EDI message for transmission
THEN:
• EDI message is placed in transmission queue for delivery to KCSM system
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when edi message has been queued for transmission.
Trigger Criteria:
Context: EDI message has been queued for transmission
Applied to: Update Transaction Status
Action: The system updates transaction status
Logic Flow:
IF EDI message has been queued for transmission
AND The system updates transaction status
THEN:
• AECWRKTB work tables are updated with current transaction status and processing results
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when broker name lookup has failed.
Trigger Criteria:
Context: Broker name lookup has failed
Applied to: Handle Broker Lookup Error
Action: The system handles broker lookup error
Logic Flow:
IF Broker name lookup has failed
AND The system handles broker lookup error
THEN:
• Error is logged and KCSM integration process is completed without transmission
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when transmission creation has failed.
Trigger Criteria:
Context: Transmission creation has failed
Applied to: Handle Transmission Creation Error
Action: The system handles transmission creation error
Logic Flow:
IF Transmission creation has failed
AND The system handles transmission creation error
THEN:
• Error is logged and KCSM integration process is completed without spawning transaction
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when gct1091e transaction spawn has failed.
Trigger Criteria:
Context: GCT1091E transaction spawn has failed
Applied to: Handle Spawn Transaction Error
Action: The system handles spawn transaction error
Logic Flow:
IF GCT1091E transaction spawn has failed
AND The system handles spawn transaction error
THEN:
• Error is logged and KCSM integration process is completed without parameter passing
Business Justification: Governs the functional prerequisites and system routing when train identifier is extracted from m10 manifest segment.
Trigger Criteria:
Context: A train identifier is extracted from M10 manifest segment
Applied to: Search GCWTL-TRAIN-LIST Database
Action: The system searches the GCWTL-TRAIN-LIST database for the train
Logic Flow:
IF A train identifier is extracted from M10 manifest segment
AND The system searches the GCWTL-TRAIN-LIST database for the train
THEN:
• The system determines if the train exists and sets appropriate validation flags
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when train validation has been completed against gcwtl-train-list database.
Trigger Criteria:
Context: Train validation has been completed against GCWTL-TRAIN-LIST database
Applied to: Train Found in System?
Action: The system evaluates the train validation result
Logic Flow:
IF Train validation has been completed against GCWTL-TRAIN-LIST database
AND The system evaluates the train validation result
THEN:
• If train is found, continue with train operations; if train is not found, generate train not found error
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when train validation has failed and train is not found in gcwtl-train-list database.
Trigger Criteria:
Context: Train validation has failed and train is not found in GCWTL-TRAIN-LIST database
Applied to: Generate Train Not Found Error
Action: The system processes the train not found condition
Logic Flow:
IF Train validation has failed and train is not found in GCWTL-TRAIN-LIST database
AND The system processes the train not found condition
THEN:
• Generate train not found error message and prepare error notification for operations
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when train has been successfully found in gcwtl-train-list database.
Trigger Criteria:
Context: Train has been successfully found in GCWTL-TRAIN-LIST database
Applied to: Train Validation Successful
Action: The system processes the successful validation result
Logic Flow:
IF Train has been successfully found in GCWTL-TRAIN-LIST database
AND The system processes the successful validation result
THEN:
• Set train validation successful status and continue with normal train operations
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when train not found error has been generated.
Trigger Criteria:
Context: Train not found error has been generated
Applied to: Send Error Message to Operations
Action: The system processes the error notification requirement
Logic Flow:
IF Train not found error has been generated
AND The system processes the error notification requirement
THEN:
• Send error message to operations team with train identification details
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when train not found error message has been sent to operations.
Trigger Criteria:
Context: Train not found error message has been sent to operations
Applied to: Log Train Not Found Event
Action: The system processes the logging requirement
Logic Flow:
IF Train not found error message has been sent to operations
AND The system processes the logging requirement
THEN:
• Log the train not found event with timestamp and train identification details
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when train not found event has been logged.
Trigger Criteria:
Context: Train not found event has been logged
Applied to: Skip Train Processing
Action: The system determines next processing step
Logic Flow:
IF Train not found event has been logged
AND The system determines next processing step
THEN:
• Skip all subsequent train processing operations and terminate the train workflow
R-GCX016-cbl-03946 (+23)File: GCX016.cblBusiness Rule: Equipment Hold Processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when message contains hmi disposition code followed by vid segments.
Trigger Criteria:
Context: A message contains HMI disposition code followed by VID segments
Applied to: VID Segment Following HMI Code Received
Action: The system processes the message segments in sequence
Logic Flow:
IF A message contains HMI disposition code followed by VID segments
AND The system processes the message segments in sequence
THEN:
• VID segment processing is initiated for equipment hold operations
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when vid segment is being processed for equipment hold.
Trigger Criteria:
Context: A VID segment is being processed for equipment hold
Applied to: Extract Equipment ID from VID Segment
Action: The system reads the VID segment data
Logic Flow:
IF A VID segment is being processed for equipment hold
AND The system reads the VID segment data
THEN:
• Equipment ID is extracted from the VID segment for further processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when equipment id has been extracted from vid segment.
Trigger Criteria:
Context: An equipment ID has been extracted from VID segment
Applied to: Validate Equipment ID Format
Action: The system validates the equipment ID format
Logic Flow:
IF An equipment ID has been extracted from VID segment
AND The system validates the equipment ID format
THEN:
• Equipment ID format is checked against validation criteria
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when equipment id format validation has been performed.
Trigger Criteria:
Context: Equipment ID format validation has been performed
Applied to: Equipment ID Valid?
Action: The system evaluates validation results
Logic Flow:
IF Equipment ID format validation has been performed
AND The system evaluates validation results
THEN:
• System determines if equipment ID is valid for hold processing or requires error handling
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when equipment id validation has failed.
Trigger Criteria:
Context: Equipment ID validation has failed
Applied to: Log Equipment ID Validation Error
Action: The system processes the validation failure
Logic Flow:
IF Equipment ID validation has failed
AND The system processes the validation failure
THEN:
• Validation error is logged with equipment ID details for audit purposes
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when equipment id validation has failed and error has been logged.
Trigger Criteria:
Context: Equipment ID validation has failed and error has been logged
Applied to: Skip Invalid Equipment
Action: The system continues VID segment processing
Logic Flow:
IF Equipment ID validation has failed and error has been logged
AND The system continues VID segment processing
THEN:
• Invalid equipment is skipped and processing continues with next VID segment
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when equipment id has passed validation checks.
Trigger Criteria:
Context: Equipment ID has passed validation checks
Applied to: Add Equipment to Train Hold List
Action: The system processes the valid equipment for hold
Logic Flow:
IF Equipment ID has passed validation checks
AND The system processes the valid equipment for hold
THEN:
• Equipment is added to the train's hold list for tracking purposes
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when equipment has been added to train hold list.
Trigger Criteria:
Context: Equipment has been added to train hold list
Applied to: Increment Held Equipment Counter
Action: The system updates hold tracking counters
Logic Flow:
IF Equipment has been added to train hold list
AND The system updates hold tracking counters
THEN:
• Held equipment counter is incremented by one
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when equipment has been added to hold list and counter incremented.
Trigger Criteria:
Context: Equipment has been added to hold list and counter incremented
Applied to: Mark Equipment as Held in System
Action: The system updates equipment status
Logic Flow:
IF Equipment has been added to hold list and counter incremented
AND The system updates equipment status
THEN:
• Equipment record is marked as held in the system database
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when equipment has been marked as held in system.
Trigger Criteria:
Context: Equipment has been marked as held in system
Applied to: Generate Equipment Hold Notification
Action: The system processes hold notification requirements
Logic Flow:
IF Equipment has been marked as held in system
AND The system processes hold notification requirements
THEN:
• Hold notification is generated for the equipment
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when equipment hold notification has been generated.
Trigger Criteria:
Context: Equipment hold notification has been generated
Applied to: Update Equipment Hold Count on Train
Action: The system updates train-level hold information
Logic Flow:
IF Equipment hold notification has been generated
AND The system updates train-level hold information
THEN:
• Train record is updated with current equipment hold count
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when equipment hold count has been updated on train.
Trigger Criteria:
Context: Equipment hold count has been updated on train
Applied to: Update Train Hold Status
Action: The system evaluates train hold status
Logic Flow:
IF Equipment hold count has been updated on train
AND The system evaluates train hold status
THEN:
• Train hold status is updated to reflect current hold conditions
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when current vid segment processing is complete.
Trigger Criteria:
Context: Current VID segment processing is complete
Applied to: More VID Segments?
Action: The system checks for remaining VID segments
Logic Flow:
IF Current VID segment processing is complete
AND The system checks for remaining VID segments
THEN:
• System determines if more VID segments need processing orif hold processing is complete
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when all vid segments have been processed for equipment holds.
Trigger Criteria:
Context: All VID segments have been processed for equipment holds
Applied to: Equipment Hold Processing Complete
Action: The system finalizes hold processing
Logic Flow:
IF All VID segments have been processed for equipment holds
AND The system finalizes hold processing
THEN:
• Equipment hold processing is marked as complete
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when all vid segments have been processed for equipment holds.
Trigger Criteria:
Context: All VID segments have been processed for equipment holds
Applied to: Determine Overall Train Hold Status
Action: The system determines the overall train hold status
Logic Flow:
IF All VID segments have been processed for equipment holds
AND The system determines the overall train hold status
THEN:
• The train hold status is evaluated based on the number of equipment items held and train hold policies
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when vid segment is received after an hmi (hold train) event code.
Trigger Criteria:
Context: A VID segment is received after an HMI (Hold train) event code
Applied to: Extract Equipment ID from VID Segment
Action: The system processes the VID segment to extract equipment information
Logic Flow:
IF A VID segment is received after an HMI (Hold train) event code
AND The system processes the VID segment to extract equipment information
THEN:
• The equipment ID is extracted from the VID segment data for further processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when equipment id has been extracted from a vid segment.
Trigger Criteria:
Context: An equipment ID has been extracted from a VID segment
Applied to: Format Equipment ID Using GCCCARFM
Action: The system calls GCCCARFM to format the equipment ID
Logic Flow:
IF An equipment ID has been extracted from a VID segment
AND The system calls GCCCARFM to format the equipment ID
THEN:
• The equipment ID is formatted according to standard car identification rules and validated for correctness
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when equipment id has been formatted using gcccarfm.
Trigger Criteria:
Context: An equipment ID has been formatted using GCCCARFM
Applied to: Equipment ID Valid?
Action: The system evaluates the equipment ID validity
Logic Flow:
IF An equipment ID has been formatted using GCCCARFM
AND The system evaluates the equipment ID validity
THEN:
• If the equipment ID is valid, proceed with hold processing; if invalid, skip this equipment ID
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when valid equipment id has been identified for hold processing.
Trigger Criteria:
Context: A valid equipment ID has been identified for hold processing
Applied to: Hold Specific Equipment on Train
Action: The system processes the equipment hold request
Logic Flow:
IF A valid equipment ID has been identified for hold processing
AND The system processes the equipment hold request
THEN:
• The specific equipment/car is placed on hold status within the train
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when specific equipment has been successfully placed on hold.
Trigger Criteria:
Context: A specific equipment has been successfully placed on hold
Applied to: Update Equipment Hold Count
Action: The system updates the equipment hold tracking
Logic Flow:
IF A specific equipment has been successfully placed on hold
AND The system updates the equipment hold tracking
THEN:
• The equipment hold count for the train is incremented by one
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when equipment hold has been applied and the hold count updated.
Trigger Criteria:
Context: An equipment hold has been applied and the hold count updated
Applied to: Log Equipment Hold Action
Action: The system logs the equipment hold action
Logic Flow:
IF An equipment hold has been applied and the hold count updated
AND The system logs the equipment hold action
THEN:
• The equipment hold action is recorded with equipment ID, timestamp, and hold details
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when equipment id has failed validation checks.
Trigger Criteria:
Context: An equipment ID has failed validation checks
Applied to: Skip Invalid Equipment ID
Action: The system encounters an invalid equipment ID
Logic Flow:
IF An equipment ID has failed validation checks
AND The system encounters an invalid equipment ID
THEN:
• The invalid equipment ID is skipped and processing continues with the next VID segment
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when vid segment has been processed (either held or skipped).
Trigger Criteria:
Context: A VID segment has been processed (either held or skipped)
Applied to: More VID Segments?
Action: The system checks for additional VID segments in the message
Logic Flow:
IF A VID segment has been processed (either held or skipped)
AND The system checks for additional VID segments in the message
THEN:
• If more VID segments exist, continue processing; if no more segments, proceed to train status determination
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when overall train hold status has been determined based on equipment hold counts.
Trigger Criteria:
Context: The overall train hold status has been determined based on equipment hold counts
Applied to: Update Train Hold Status Based on Equipment Count
Action: The system updates the train hold status
Logic Flow:
IF The overall train hold status has been determined based on equipment hold counts
AND The system updates the train hold status
THEN:
• The train hold status is updated in the train list records based on the equipment hold count and business rules
Business Justification: Defines the strict business conditions required to proceed when hre train release disposition code has been processed. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: An HRE train release disposition code has been processed
Applied to: Read Next VID Segment
Action: The system reads the next VID segment in the message
Logic Flow:
IF An HRE train release disposition code has been processed
AND The system reads the next VID segment in the message
THEN:
• The VID segment is retrieved and made available for equipment processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when system is processing equipment release following hre disposition code.
Trigger Criteria:
Context: The system is processing equipment release following HRE disposition code
Applied to: VID Segment Found?
Action: The system checks for the presence of a VID segment
Logic Flow:
IF The system is processing equipment release following HRE disposition code
AND The system checks for the presence of a VID segment
THEN:
• If VID segment is found, continue with equipment processing, otherwise complete equipment release processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when valid vid segment has been found.
Trigger Criteria:
Context: A valid VID segment has been found
Applied to: Extract Equipment ID from VID Segment
Action: The system processes the VID segment content
Logic Flow:
IF A valid VID segment has been found
AND The system processes the VID segment content
THEN:
• The equipment ID is extracted from the VID segment data
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when equipment id has been extracted from the vid segment.
Trigger Criteria:
Context: An equipment ID has been extracted from the VID segment
Applied to: Format Equipment ID using GCCCARFM
Action: The system calls GCCCARFM formatting routine
Logic Flow:
IF An equipment ID has been extracted from the VID segment
AND The system calls GCCCARFM formatting routine
THEN:
• The equipment ID is formatted according to standard business rules for equipment identification
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when equipment id has been formatted using gcccarfm.
Trigger Criteria:
Context: An equipment ID has been formatted using GCCCARFM
Applied to: Equipment ID Valid?
Action: The system validates the formatted equipment ID
Logic Flow:
IF An equipment ID has been formatted using GCCCARFM
AND The system validates the formatted equipment ID
THEN:
• If equipment ID is valid, proceed with equipment lookup, otherwise log invalid equipment ID error and continue to next VID segment
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when valid equipment id has been formatted and validated.
Trigger Criteria:
Context: A valid equipment ID has been formatted and validated
Applied to: Find Equipment in Train Hold List
Action: The system searches the train hold list for the equipment
Logic Flow:
IF A valid equipment ID has been formatted and validated
AND The system searches the train hold list for the equipment
THEN:
• The equipment record is located in the train hold list if it exists
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when equipment has been located in the train hold list.
Trigger Criteria:
Context: Equipment has been located in the train hold list
Applied to: Equipment Currently Held?
Action: The system checks the equipment's current hold status
Logic Flow:
IF Equipment has been located in the train hold list
AND The system checks the equipment's current hold status
THEN:
• If equipment is currently held, proceed with release processing, otherwise log equipment not found warning and continue to next VID segment
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when equipment is currently in hold status and eligible for release.
Trigger Criteria:
Context: Equipment is currently in hold status and eligible for release
Applied to: Remove Equipment from Hold Status
Action: The system processes the equipment release request
Logic Flow:
IF Equipment is currently in hold status and eligible for release
AND The system processes the equipment release request
THEN:
• The equipment is removed from hold status and marked as released
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when equipment has been successfully removed from hold status.
Trigger Criteria:
Context: Equipment has been successfully removed from hold status
Applied to: Decrement Train Held Equipment Count
Action: The system updates train statistics
Logic Flow:
IF Equipment has been successfully removed from hold status
AND The system updates train statistics
THEN:
• The train's held equipment count is decremented by one
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when equipment has been released from hold status and train count updated.
Trigger Criteria:
Context: Equipment has been released from hold status and train count updated
Applied to: Log Equipment Release Action
Action: The system logs the release action
Logic Flow:
IF Equipment has been released from hold status and train count updated
AND The system logs the release action
THEN:
• The equipment release action is recorded with equipment ID, timestamp, and release details
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when current equipment has been processed (released or logged as error).
Trigger Criteria:
Context: Current equipment has been processed (released or logged as error)
Applied to: More Equipment to Process?
Action: The system checks for additional VID segments in the message
Logic Flow:
IF Current equipment has been processed (released or logged as error)
AND The system checks for additional VID segments in the message
THEN:
• If more VID segments exist, continue processing next VID segment, otherwise proceed to update train hold status
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when all vid segments have been processed for equipment releases.
Trigger Criteria:
Context: All VID segments have been processed for equipment releases
Applied to: Update Train Hold Status
Action: The system evaluates the train's overall hold status
Logic Flow:
IF All VID segments have been processed for equipment releases
AND The system evaluates the train's overall hold status
THEN:
• The train hold status is updated based on remaining held equipment count
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when train hold status has been updated after processing all equipment releases.
Trigger Criteria:
Context: Train hold status has been updated after processing all equipment releases
Applied to: Any Equipment Still Held?
Action: The system checks if any equipment is still held on the train
Logic Flow:
IF Train hold status has been updated after processing all equipment releases
AND The system checks if any equipment is still held on the train
THEN:
• If equipment is still held, keep train in hold status, otherwise release train from hold status
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when some equipment on the train is still in hold status after processing releases.
Trigger Criteria:
Context: Some equipment on the train is still in hold status after processing releases
Applied to: Keep Train in Hold Status
Action: The system updates the train status
Logic Flow:
IF Some equipment on the train is still in hold status after processing releases
AND The system updates the train status
THEN:
• The train remains in hold status and equipment release processing is complete
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when no equipment on the train is in hold status after processing releases.
Trigger Criteria:
Context: No equipment on the train is in hold status after processing releases
Applied to: Release Train from Hold Status
Action: The system updates the train status
Logic Flow:
IF No equipment on the train is in hold status after processing releases
AND The system updates the train status
THEN:
• The train is released from hold status and equipment release processing is complete
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when equipment id has been validated but equipment is not found in hold status.
Trigger Criteria:
Context: Equipment ID has been validated but equipment is not found in hold status
Applied to: Log Equipment Not Found Warning
Action: The system processes the equipment not found condition
Logic Flow:
IF Equipment ID has been validated but equipment is not found in hold status
AND The system processes the equipment not found condition
THEN:
• A warning is logged indicating equipment was not found in hold list and processing continues to next VID segment
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when equipment id has been extracted and formatted but fails validation.
Trigger Criteria:
Context: Equipment ID has been extracted and formatted but fails validation
Applied to: Log Invalid Equipment ID Error
Action: The system processes the invalid equipment ID condition
Logic Flow:
IF Equipment ID has been extracted and formatted but fails validation
AND The system processes the invalid equipment ID condition
THEN:
• An error is logged indicating invalid equipment ID format and processing continues to next VID segment
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when error or warning has been logged for current equipment processing. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: An error or warning has been logged for current equipment processing
Applied to: Continue to Next VID Segment
Action: The system continues with VID segment processing
Logic Flow:
IF An error or warning has been logged for current equipment processing
AND The system continues with VID segment processing
THEN:
• Processing returns to read the next VID segment in the message
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when all vid segments have been processed and train status has been updated.
Trigger Criteria:
Context: All VID segments have been processed and train status has been updated
Applied to: Equipment Release Processing Complete
Action: The system finalizes equipment release processing
Logic Flow:
IF All VID segments have been processed and train status has been updated
AND The system finalizes equipment release processing
THEN:
• Equipment release processing is marked as complete and control returns to main message processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when train hold release event (hre) is being processed.
Trigger Criteria:
Context: A train hold release event (HRE) is being processed
Applied to: Equipment Release Processing Start
Action: The system begins equipment release processing
Logic Flow:
IF A train hold release event (HRE) is being processed
AND The system begins equipment release processing
THEN:
• The equipment release workflow is initiated
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when hre event is being processed.
Trigger Criteria:
Context: An HRE event is being processed
Applied to: Receive VID Segment for HRE
Action: VID segments are present in the message
Logic Flow:
IF An HRE event is being processed
AND VID segments are present in the message
THEN:
• Each VID segment is processed for equipment release
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when vid segment is being processed for equipment release.
Trigger Criteria:
Context: A VID segment is being processed for equipment release
Applied to: Extract Equipment ID from VID Segment
Action: The system reads the VID segment data
Logic Flow:
IF A VID segment is being processed for equipment release
AND The system reads the VID segment data
THEN:
• The equipment ID is extracted from the VID segment
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when equipment id has been extracted from a vid segment.
Trigger Criteria:
Context: An equipment ID has been extracted from a VID segment
Applied to: Locate Equipment in Train Equipment List
Action: The system searches the train equipment list
Logic Flow:
IF An equipment ID has been extracted from a VID segment
AND The system searches the train equipment list
THEN:
• The system attempts to locate the equipment in the train list
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when system is searching for equipment in the train list.
Trigger Criteria:
Context: The system is searching for equipment in the train list
Applied to: Equipment Found in Train?
Action: The equipment search is completed
Logic Flow:
IF The system is searching for equipment in the train list
AND The equipment search is completed
THEN:
• The system determines if the equipment exists in the train or not
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when equipment has been found in the train equipment list.
Trigger Criteria:
Context: Equipment has been found in the train equipment list
Applied to: Check Current Equipment Hold Status
Action: The system checks the equipment's current status
Logic Flow:
IF Equipment has been found in the train equipment list
AND The system checks the equipment's current status
THEN:
• The current hold status of the equipment is determined
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when equipment has been found in the train equipment list.
Trigger Criteria:
Context: Equipment has been found in the train equipment list
Applied to: Log Equipment Already Released Warning
Action: The equipment is not currently held
Logic Flow:
IF Equipment has been found in the train equipment list
AND The equipment is not currently held
THEN:
• A warning is logged indicating equipment is already released
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when equipment has been found and its hold status checked.
Trigger Criteria:
Context: Equipment has been found and its hold status checked
Applied to: Equipment Currently Held?
Action: The system evaluates if the equipment is currently held
Logic Flow:
IF Equipment has been found and its hold status checked
AND The system evaluates if the equipment is currently held
THEN:
• The system determines whether the equipment can be released or is already released
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when equipment is currently held and eligible for release.
Trigger Criteria:
Context: Equipment is currently held and eligible for release
Applied to: Remove Hold Status from Equipment
Action: The system processes the equipment release
Logic Flow:
IF Equipment is currently held and eligible for release
AND The system processes the equipment release
THEN:
• The hold status is removed from the equipment
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when equipment hold status has been removed.
Trigger Criteria:
Context: Equipment hold status has been removed
Applied to: Decrement Train Held Equipment Count
Action: The system updates train statistics
Logic Flow:
IF Equipment hold status has been removed
AND The system updates train statistics
THEN:
• The train's held equipment count is decremented by one
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when equipment hold has been removed and count decremented.
Trigger Criteria:
Context: Equipment hold has been removed and count decremented
Applied to: Update Equipment Status in Train List
Action: The system updates the train equipment list
Logic Flow:
IF Equipment hold has been removed and count decremented
AND The system updates the train equipment list
THEN:
• The equipment's status is updated to reflect the release
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when equipment has been released and train statistics updated.
Trigger Criteria:
Context: Equipment has been released and train statistics updated
Applied to: Any Equipment Still Held on Train?
Action: The system checks remaining held equipment on the train
Logic Flow:
IF Equipment has been released and train statistics updated
AND The system checks remaining held equipment on the train
THEN:
• The system determines if any equipment is still held on the train
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when some equipment on the train is still held after release processing.
Trigger Criteria:
Context: Some equipment on the train is still held after release processing
Applied to: Set Train Status to Partially Held
Action: The system updates the train status
Logic Flow:
IF Some equipment on the train is still held after release processing
AND The system updates the train status
THEN:
• The train status is set to partially held
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when no equipment on the train is held after release processing.
Trigger Criteria:
Context: No equipment on the train is held after release processing
Applied to: Set Train Status to Fully Released
Action: The system updates the train status
Logic Flow:
IF No equipment on the train is held after release processing
AND The system updates the train status
THEN:
• The train status is set to fully released
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when equipment has been successfully released and train status updated.
Trigger Criteria:
Context: Equipment has been successfully released and train status updated
Applied to: Log Equipment Release Action
Action: The system completes the release processing
Logic Flow:
IF Equipment has been successfully released and train status updated
AND The system completes the release processing
THEN:
• The equipment release action is logged
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when current vid segment processing is complete.
Trigger Criteria:
Context: Current VID segment processing is complete
Applied to: Continue to Next VID Segment
Action: Additional VID segments exist for processing
Logic Flow:
IF Current VID segment processing is complete
AND Additional VID segments exist for processing
THEN:
• The system continues to the next VID segment
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when all vid segments have been processed for equipment release.
Trigger Criteria:
Context: All VID segments have been processed for equipment release
Applied to: Equipment Release Processing Complete
Action: No more VID segments remain
Logic Flow:
IF All VID segments have been processed for equipment release
AND No more VID segments remain
THEN:
• The equipment release processing is marked as complete
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when equipment id has been extracted from vid segment.
Trigger Criteria:
Context: Equipment ID has been extracted from VID segment
Applied to: Log Equipment Not Found Warning
Action: The equipment is not found in the train equipment list
Logic Flow:
IF Equipment ID has been extracted from VID segment
AND The equipment is not found in the train equipment list
THEN:
• A warning is logged indicating equipment not found
Business Justification: Dictates the expected operational logic and validation steps when vid segment is received following an sei disposition code.
Trigger Criteria:
Context: A VID segment is received following an SEI disposition code
Applied to: Extract Equipment ID from VID Segment
Action: The system processes the VID segment
Logic Flow:
IF A VID segment is received following an SEI disposition code
AND The system processes the VID segment
THEN:
• The equipment ID is extracted from the VID segment for seizure processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when equipment id has been extracted from a vid segment.
Trigger Criteria:
Context: An equipment ID has been extracted from a VID segment
Applied to: Validate Equipment ID Format
Action: The system validates the equipment ID format
Logic Flow:
IF An equipment ID has been extracted from a VID segment
AND The system validates the equipment ID format
THEN:
• The equipment ID is confirmed as valid or invalid based on format requirements
• The equipment ID is confirmed as valid format for seizure processing or marked as invalid
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when valid equipment id has been identified for seizure.
Trigger Criteria:
Context: A valid equipment ID has been identified for seizure
Applied to: Mark Equipment as Seized by Customs
Action: The system processes the seizure request
Logic Flow:
IF A valid equipment ID has been identified for seizure
AND The system processes the seizure request
THEN:
• The equipment is marked as seized by customs in the system
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when equipment has been marked as seized by customs.
Trigger Criteria:
Context: Equipment has been marked as seized by customs
Applied to: Update Equipment Seizure Status
Action: The system updates equipment records
Logic Flow:
IF Equipment has been marked as seized by customs
AND The system updates equipment records
THEN:
• The equipment seizure status is updated in the equipment record
• The equipment seizure status is updated to indicate active customs seizure
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when equipment item on a train has been seized.
Trigger Criteria:
Context: An equipment item on a train has been seized
Applied to: Increment Train Seizure Count
Action: The system updates train seizure statistics
Logic Flow:
IF An equipment item on a train has been seized
AND The system updates train seizure statistics
THEN:
• The train seizure count is incremented by one
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when equipment seizure count has been updated for a train.
Trigger Criteria:
Context: Equipment seizure count has been updated for a train
Applied to: All Equipment on Train Seized?
Action: The system evaluates total train seizure status
Logic Flow:
IF Equipment seizure count has been updated for a train
AND The system evaluates total train seizure status
THEN:
• The system determines if all equipment on the train has been seized
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when all equipment on a train has been seized.
Trigger Criteria:
Context: All equipment on a train has been seized
Applied to: Set Train Seizure Status
Action: The system updates train status
Logic Flow:
IF All equipment on a train has been seized
AND The system updates train status
THEN:
• The train seizure status is set to indicate complete train seizure
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when equipment seizure processing has been completed.
Trigger Criteria:
Context: Equipment seizure processing has been completed
Applied to: Log Equipment Seizure Action
Action: The system performs logging operations
Logic Flow:
IF Equipment seizure processing has been completed
AND The system performs logging operations
THEN:
• The equipment seizure action is logged with relevant details
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when equipment seizure has been logged.
Trigger Criteria:
Context: Equipment seizure has been logged
Applied to: Generate Seizure Notification
Action: The system processes notifications
Logic Flow:
IF Equipment seizure has been logged
AND The system processes notifications
THEN:
• Seizure notifications are generated for relevant stakeholders
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when seizure notifications have been generated.
Trigger Criteria:
Context: Seizure notifications have been generated
Applied to: Update Train Equipment Records
Action: The system updates train records
Logic Flow:
IF Seizure notifications have been generated
AND The system updates train records
THEN:
• Train equipment records are updated with current seizure information
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when equipment id fails format validation.
Trigger Criteria:
Context: An equipment ID fails format validation
Applied to: Log Invalid Equipment ID Error
Action: The system handles the validation error
Logic Flow:
IF An equipment ID fails format validation
AND The system handles the validation error
THEN:
• An invalid equipment ID error is logged for troubleshooting
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when invalid equipment id error has been logged.
Trigger Criteria:
Context: An invalid equipment ID error has been logged
Applied to: Skip Equipment Processing
Action: The system continues processing
Logic Flow:
IF An invalid equipment ID error has been logged
AND The system continues processing
THEN:
• Equipment seizure processing is skipped for the invalid equipment ID
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when sei disposition code has been received for a train.
Trigger Criteria:
Context: A SEI disposition code has been received for a train
Applied to: Process VID Segments Following SEI
Action: The system processes the message segments following the SEI code
Logic Flow:
IF A SEI disposition code has been received for a train
AND The system processes the message segments following the SEI code
THEN:
• All VID segments in the message are identified and processed for equipment seizure
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when message contains sei disposition code for equipment seizure.
Trigger Criteria:
Context: A message contains SEI disposition code for equipment seizure
Applied to: VID Segment Available?
Action: The system searches for VID segments in the message
Logic Flow:
IF A message contains SEI disposition code for equipment seizure
AND The system searches for VID segments in the message
THEN:
• The system determines if VID segments are available for processing orif no equipment identification is provided
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when vid segment is available in the message.
Trigger Criteria:
Context: A VID segment is available in the message
Applied to: Extract Equipment ID from VID Segment
Action: The system processes the VID segment
Logic Flow:
IF A VID segment is available in the message
AND The system processes the VID segment
THEN:
• The equipment ID is extracted from the VID segment data for further validation and processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when valid equipment id has been identified from vid segment processing.
Trigger Criteria:
Context: A valid equipment ID has been identified from VID segment processing
Applied to: Mark Equipment as Seized by Customs
Action: The SEI disposition code is applied to the equipment
Logic Flow:
IF A valid equipment ID has been identified from VID segment processing
AND The SEI disposition code is applied to the equipment
THEN:
• The equipment is marked as seized by customs in the system
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when equipment on a train has been marked as seized.
Trigger Criteria:
Context: Equipment on a train has been marked as seized
Applied to: Increment Train Seizure Count
Action: The seizure status is updated
Logic Flow:
IF Equipment on a train has been marked as seized
AND The seizure status is updated
THEN:
• The train's total seizure count is incremented by one
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when one vid segment has been processed for equipment seizure.
Trigger Criteria:
Context: One VID segment has been processed for equipment seizure
Applied to: More VID Segments?
Action: The system checks for additional VID segments in the message
Logic Flow:
IF One VID segment has been processed for equipment seizure
AND The system checks for additional VID segments in the message
THEN:
• The system continues processing if more VID segments exist or proceeds to finalize seizure processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when all vid segments have been processed for equipment seizure.
Trigger Criteria:
Context: All VID segments have been processed for equipment seizure
Applied to: Update Overall Train Seizure Status
Action: The system finalizes seizure processing for the train
Logic Flow:
IF All VID segments have been processed for equipment seizure
AND The system finalizes seizure processing for the train
THEN:
• The overall train seizure status is updated to reflect the seizure of equipment
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when equipment seizure processing has been completed for a train.
Trigger Criteria:
Context: Equipment seizure processing has been completed for a train
Applied to: Log Equipment Seizure Action
Action: The system finalizes the seizure action
Logic Flow:
IF Equipment seizure processing has been completed for a train
AND The system finalizes the seizure action
THEN:
• A log entry is created documenting the equipment seizure action with relevant details
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when equipment id extracted from vid segment fails format validation.
Trigger Criteria:
Context: An equipment ID extracted from VID segment fails format validation
Applied to: Skip Invalid Equipment ID
Action: The system encounters invalid equipment ID
Logic Flow:
IF An equipment ID extracted from VID segment fails format validation
AND The system encounters invalid equipment ID
THEN:
• The invalid equipment ID is skipped and processing continues with the next VID segment if available
Business Justification: Defines the strict business conditions required to proceed when ser disposition code has been processed for a train.
Trigger Criteria:
Context: A SER disposition code has been processed for a train
Applied to: Check if VID Segments Follow SER Code
Action: The system checks for VID segments following the SER code
Logic Flow:
IF A SER disposition code has been processed for a train
AND The system checks for VID segments following the SER code
THEN:
• The system identifies whether VID segments are present for equipment processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when vid segment is being processed for equipment seizure release.
Trigger Criteria:
Context: A VID segment is being processed for equipment seizure release
Applied to: Extract Equipment ID from VID Segment
Action: The system processes the VID segment
Logic Flow:
IF A VID segment is being processed for equipment seizure release
AND The system processes the VID segment
THEN:
• The equipment ID is extracted from the VID segment data
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when equipment id has been extracted from a vid segment.
Trigger Criteria:
Context: An equipment ID has been extracted from a VID segment
Applied to: Validate Equipment ID Format
Action: The system validates the equipment ID format
Logic Flow:
IF An equipment ID has been extracted from a VID segment
AND The system validates the equipment ID format
THEN:
• The system determines if the equipment ID format is valid or invalid
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when valid equipment id has been extracted from vid segment.
Trigger Criteria:
Context: A valid equipment ID has been extracted from VID segment
Applied to: Find Equipment on Train
Action: The system searches for the equipment on the train
Logic Flow:
IF A valid equipment ID has been extracted from VID segment
AND The system searches for the equipment on the train
THEN:
• The system determines if the equipment is found or not found on the train
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when equipment has been found on the train.
Trigger Criteria:
Context: Equipment has been found on the train
Applied to: Check Current Equipment Status
Action: The system checks the current equipment status
Logic Flow:
IF Equipment has been found on the train
AND The system checks the current equipment status
THEN:
• The system determines if the equipment is currently seized or not seized
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when equipment is currently under seizure status.
Trigger Criteria:
Context: Equipment is currently under seizure status
Applied to: Release Equipment from Seizure
Action: The system processes the seizure release request
Logic Flow:
IF Equipment is currently under seizure status
AND The system processes the seizure release request
THEN:
• The equipment seizure status is removed
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when equipment seizure has been released.
Trigger Criteria:
Context: Equipment seizure has been released
Applied to: Update Equipment Status to Normal
Action: The system updates the equipment status
Logic Flow:
IF Equipment seizure has been released
AND The system updates the equipment status
THEN:
• The equipment status is set to normal operational status
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when equipment has been released from seizure.
Trigger Criteria:
Context: Equipment has been released from seizure
Applied to: Decrement Train Seized Equipment Count
Action: The system updates train seizure statistics
Logic Flow:
IF Equipment has been released from seizure
AND The system updates train seizure statistics
THEN:
• The train's seized equipment count is decremented by one
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when equipment seizure has been successfully released.
Trigger Criteria:
Context: Equipment seizure has been successfully released
Applied to: Log Equipment Seizure Release
Action: The system logs the seizure release activity
Logic Flow:
IF Equipment seizure has been successfully released
AND The system logs the seizure release activity
THEN:
• An audit log entry is created documenting the equipment seizure release
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when all vid segments have been processed for seizure release.
Trigger Criteria:
Context: All VID segments have been processed for seizure release
Applied to: Check Overall Train Seizure Status
Action: The system checks the overall train seizure status
Logic Flow:
IF All VID segments have been processed for seizure release
AND The system checks the overall train seizure status
THEN:
• The system determines if any equipment still remains seized on the train
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when no equipment remains seized on the train.
Trigger Criteria:
Context: No equipment remains seized on the train
Applied to: Remove Train Seizure Status
Action: The system updates the train seizure status
Logic Flow:
IF No equipment remains seized on the train
AND The system updates the train seizure status
THEN:
• The overall train seizure status is removed
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when some equipment still remains seized on the train.
Trigger Criteria:
Context: Some equipment still remains seized on the train
Applied to: Keep Train Seizure Status
Action: The system updates the train seizure status
Logic Flow:
IF Some equipment still remains seized on the train
AND The system updates the train seizure status
THEN:
• The overall train seizure status is maintained
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when train seizure status has been determined.
Trigger Criteria:
Context: Train seizure status has been determined
Applied to: Update Train Status in Database
Action: The system updates the database
Logic Flow:
IF Train seizure status has been determined
AND The system updates the database
THEN:
• The train status changes are persisted to the database
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when train status has been updated in the database.
Trigger Criteria:
Context: Train status has been updated in the database
Applied to: Generate Equipment Release Notification
Action: The system generates release notifications
Logic Flow:
IF Train status has been updated in the database
AND The system generates release notifications
THEN:
• Equipment release notification is created and sent to appropriate recipients
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when equipment id is valid but equipment is not found on the train.
Trigger Criteria:
Context: Equipment ID is valid but equipment is not found on the train
Applied to: Log Equipment Not Found Error
Action: The system processes the equipment search result
Logic Flow:
IF Equipment ID is valid but equipment is not found on the train
AND The system processes the equipment search result
THEN:
• An error is logged indicating equipment not found on train
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when equipment id has been extracted from vid segment.
Trigger Criteria:
Context: Equipment ID has been extracted from VID segment
Applied to: Log Invalid Equipment ID Error
Action: The equipment ID format validation fails
Logic Flow:
IF Equipment ID has been extracted from VID segment
AND The equipment ID format validation fails
THEN:
• An error is logged indicating invalid equipment ID format
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when equipment is found on train but is not currently seized.
Trigger Criteria:
Context: Equipment is found on train but is not currently seized
Applied to: Log Equipment Not Seized Warning
Action: The system attempts to release equipment from seizure
Logic Flow:
IF Equipment is found on train but is not currently seized
AND The system attempts to release equipment from seizure
THEN:
• A warning is logged indicating equipment is not currently seized
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when message with disposition code is being processed.
Trigger Criteria:
Context: A message with disposition code is being processed
Applied to: SER Disposition Code Present?
Action: The system evaluates the disposition code
Logic Flow:
IF A message with disposition code is being processed
AND The system evaluates the disposition code
THEN:
• If disposition code is 'SER', initiate equipment seizure release processing, otherwise skip seizure release processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when ser disposition code is present and seizure release processing is initiated.
Trigger Criteria:
Context: SER disposition code is present and seizure release processing is initiated
Applied to: Initialize Equipment Counter
Action: The system begins equipment seizure release processing
Logic Flow:
IF SER disposition code is present and seizure release processing is initiated
AND The system begins equipment seizure release processing
THEN:
• Initialize equipment counter to track the number of equipment items currently under seizure on the train
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when equipment counter is initialized for seizure release processing.
Trigger Criteria:
Context: Equipment counter is initialized for seizure release processing
Applied to: VID Segments Available?
Action: The system checks for VID segments in the message
Logic Flow:
IF Equipment counter is initialized for seizure release processing
AND The system checks for VID segments in the message
THEN:
• If VID segments are available, proceed to process each VID segment, otherwise update train seizure status directly
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when vid segments are available for processing.
Trigger Criteria:
Context: VID segments are available for processing
Applied to: Get Next VID Segment
Action: The system processes VID segments sequentially
Logic Flow:
IF VID segments are available for processing
AND The system processes VID segments sequentially
THEN:
• Retrieve the next available VID segment containing equipment identification information
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when vid segment is retrieved for processing.
Trigger Criteria:
Context: A VID segment is retrieved for processing
Applied to: Extract Equipment ID from VID
Action: The system processes the VID segment
Logic Flow:
IF A VID segment is retrieved for processing
AND The system processes the VID segment
THEN:
• Extract the equipment identification information from the VID segment data
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when equipment id is extracted from vid segment.
Trigger Criteria:
Context: Equipment ID is extracted from VID segment
Applied to: Format Equipment ID
Action: The system processes the equipment ID
Logic Flow:
IF Equipment ID is extracted from VID segment
AND The system processes the equipment ID
THEN:
• Format the equipment ID according to standard equipment identification format for train registry lookup
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when equipment id is formatted for lookup.
Trigger Criteria:
Context: Equipment ID is formatted for lookup
Applied to: Equipment Found on Train?
Action: The system searches for the equipment on the train
Logic Flow:
IF Equipment ID is formatted for lookup
AND The system searches for the equipment on the train
THEN:
• If equipment is found on the train, proceed with seizure release, otherwise generate equipment not found warning
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when equipment is found on the train and has seizure status.
Trigger Criteria:
Context: Equipment is found on the train and has seizure status
Applied to: Remove Seizure Status from Equipment
Action: The system processes seizure release for the equipment
Logic Flow:
IF Equipment is found on the train and has seizure status
AND The system processes seizure release for the equipment
THEN:
• Remove the seizure status from the equipment record
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when seizure status is removed from an equipment item.
Trigger Criteria:
Context: Seizure status is removed from an equipment item
Applied to: Decrement Seized Equipment Count
Action: The system updates equipment seizure tracking
Logic Flow:
IF Seizure status is removed from an equipment item
AND The system updates equipment seizure tracking
THEN:
• Decrement the total count of seized equipment on the train by one
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when equipment seizure status is removed and count is decremented.
Trigger Criteria:
Context: Equipment seizure status is removed and count is decremented
Applied to: Log Equipment Release from Seizure
Action: The system completes seizure release for an equipment item
Logic Flow:
IF Equipment seizure status is removed and count is decremented
AND The system completes seizure release for an equipment item
THEN:
• Log the equipment seizure release event with equipment ID, timestamp, and release details
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when current vid segment processing is complete.
Trigger Criteria:
Context: Current VID segment processing is complete
Applied to: More VID Segments?
Action: The system checks for remaining VID segments
Logic Flow:
IF Current VID segment processing is complete
AND The system checks for remaining VID segments
THEN:
• If more VID segments exist, continue processing the next VID segment, otherwise proceed to update train seizure status
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when equipment id is formatted but not found on the train.
Trigger Criteria:
Context: Equipment ID is formatted but not found on the train
Applied to: Equipment Not Found Warning
Action: The system cannot locate the equipment on the train
Logic Flow:
IF Equipment ID is formatted but not found on the train
AND The system cannot locate the equipment on the train
THEN:
• Generate a warning message indicating the equipment was not found on the train and continue processing remaining VID segments
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when all vid segments have been processed for equipment seizure releases.
Trigger Criteria:
Context: All VID segments have been processed for equipment seizure releases
Applied to: Update Train Seizure Status
Action: The system evaluates the train's overall seizure status
Logic Flow:
IF All VID segments have been processed for equipment seizure releases
AND The system evaluates the train's overall seizure status
THEN:
• Update the train seizure status based on remaining seized equipment count
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when train seizure status is being updated.
Trigger Criteria:
Context: Train seizure status is being updated
Applied to: Any Equipment Still Seized?
Action: The system evaluates the seized equipment count
Logic Flow:
IF Train seizure status is being updated
AND The system evaluates the seized equipment count
THEN:
• If any equipment still has seizure status, keep train seizure status active, otherwise remove train seizure status
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when some equipment on the train still has seizure status.
Trigger Criteria:
Context: Some equipment on the train still has seizure status
Applied to: Keep Train Seizure Status
Action: The system updates train seizure status
Logic Flow:
IF Some equipment on the train still has seizure status
AND The system updates train seizure status
THEN:
• Maintain the train seizure status as active since seized equipment remains on the train
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when no equipment on the train has seizure status.
Trigger Criteria:
Context: No equipment on the train has seizure status
Applied to: Remove Train Seizure Status
Action: The system updates train seizure status
Logic Flow:
IF No equipment on the train has seizure status
AND The system updates train seizure status
THEN:
• Remove the train seizure status since no seized equipment remains on the train
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when train seizure status has been updated after processing all equipment seizure releases.
Trigger Criteria:
Context: Train seizure status has been updated after processing all equipment seizure releases
Applied to: Generate Train Seizure Release Notification
Action: The system completes seizure release processing
Logic Flow:
IF Train seizure status has been updated after processing all equipment seizure releases
AND The system completes seizure release processing
THEN:
• Generate notification about the completion of train seizure release processing with final status details
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when message is being processed for disposition codes.
Trigger Criteria:
Context: A message is being processed for disposition codes
Applied to: Skip - No SER Code
Action: The disposition code is not 'SER'
Logic Flow:
IF A message is being processed for disposition codes
AND The disposition code is not 'SER'
THEN:
• Skip all equipment seizure release processing and complete the seizure release workflow
R-GCX016-cbl-04008 (+55)File: GCX016.cblBusiness Rule: Bond
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when x4 segment is being processed for bond-based cargo operations.
Trigger Criteria:
Context: An X4 segment is being processed for bond-based cargo operations
Applied to: Bond Number Available?
Action: The system checks for bond number availability in the X4 segment
Logic Flow:
IF An X4 segment is being processed for bond-based cargo operations
AND The system checks for bond number availability in the X4 segment
THEN:
• Processing continues to bond extraction if bond number exists, otherwise skips bond processing
• Processing continues to bond extraction if bond number exists, otherwise generates bond error message
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when x4 segment contains bond information.
Trigger Criteria:
Context: An X4 segment contains bond information
Applied to: Extract Bond Control Number from X4 Segment
Action: The system processes the X4 segment for bond-based operations
Logic Flow:
IF An X4 segment contains bond information
AND The system processes the X4 segment for bond-based operations
THEN:
• The bond control number is extracted and stored for subsequent cargo processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when bond control number has been extracted from the x4 segment.
Trigger Criteria:
Context: A bond control number has been extracted from the X4 segment
Applied to: Validate Bond Number Format
Action: The system validates the bond number format
Logic Flow:
IF A bond control number has been extracted from the X4 segment
AND The system validates the bond number format
THEN:
• Processing continues if format is valid, otherwise generates validation error
• Processing continues if format is valid, otherwise generates bond error message
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when bond number has undergone format validation.
Trigger Criteria:
Context: A bond number has undergone format validation
Applied to: Bond Number Valid?
Action: The system evaluates bond number validity
Logic Flow:
IF A bond number has undergone format validation
AND The system evaluates bond number validity
THEN:
• Sets bond processing flag if valid, otherwise generates bond validation error
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when valid bond number has been confirmed.
Trigger Criteria:
Context: A valid bond number has been confirmed
Applied to: Set Bond Processing Flag
Action: The system prepares for bond-based cargo processing
Logic Flow:
IF A valid bond number has been confirmed
AND The system prepares for bond-based cargo processing
THEN:
• Bond processing flag is set to enable bond-specific cargo operations
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when bond processing flag has been set.
Trigger Criteria:
Context: Bond processing flag has been set
Applied to: Initialize Cargo Counter
Action: The system prepares to process cargo records by bond
Logic Flow:
IF Bond processing flag has been set
AND The system prepares to process cargo records by bond
THEN:
• Cargo counter is initialized to zero for tracking processed records
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when bond processing flag has been set.
Trigger Criteria:
Context: Bond processing flag has been set
Applied to: Initialize Cargo Counter
Action: The system prepares to process cargo records by bond number
Logic Flow:
IF Bond processing flag has been set
AND The system prepares to process cargo records by bond number
THEN:
• Cargo counter is initialized to zero to track processing progress
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when valid bond number and initialized cargo counter.
Trigger Criteria:
Context: A valid bond number and initialized cargo counter
Applied to: Fetch First Cargo Record by Bond Number
Action: The system searches for cargo records by bond number
Logic Flow:
IF A valid bond number and initialized cargo counter
AND The system searches for cargo records by bond number
THEN:
• First cargo record matching the bond number is retrieved from cargo database
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when valid bond number and initialized cargo counter.
Trigger Criteria:
Context: A valid bond number and initialized cargo counter
Applied to: Fetch First Cargo Record by Bond Number
Action: The system searches for cargo records using the bond number as index
Logic Flow:
IF A valid bond number and initialized cargo counter
AND The system searches for cargo records using the bond number as index
THEN:
• First cargo record matching the bond number is retrieved if exists, otherwise no cargo found flag is set
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when search for cargo records by bond number has been executed.
Trigger Criteria:
Context: A search for cargo records by bond number has been executed
Applied to: Cargo Found?
Action: The system evaluates search results
Logic Flow:
IF A search for cargo records by bond number has been executed
AND The system evaluates search results
THEN:
• Proceeds to cargo processing if records found, otherwise moves to bond processing summary
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when search for cargo records by bond number has been executed.
Trigger Criteria:
Context: A search for cargo records by bond number has been executed
Applied to: Cargo Found?
Action: The system evaluates the search results
Logic Flow:
IF A search for cargo records by bond number has been executed
AND The system evaluates the search results
THEN:
• Processing continues to cargo processing if records found, otherwise proceeds to bond processing summary
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record has been found for the bond number.
Trigger Criteria:
Context: A cargo record has been found for the bond number
Applied to: Load Cargo Information
Action: The system prepares to process the cargo
Logic Flow:
IF A cargo record has been found for the bond number
AND The system prepares to process the cargo
THEN:
• Complete cargo information including status, quantities, and identifiers is loaded
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record has been found for the bond number.
Trigger Criteria:
Context: A cargo record has been found for the bond number
Applied to: Process Current Cargo Record
Action: The system processes the current cargo record
Logic Flow:
IF A cargo record has been found for the bond number
AND The system processes the current cargo record
THEN:
• Cargo record is prepared for disposition code application and status updates
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo information has been loaded and x4 segment contains disposition code.
Trigger Criteria:
Context: Cargo information has been loaded and X4 segment contains disposition code
Applied to: Process Disposition Code for Cargo
Action: The system processes disposition code for the cargo
Logic Flow:
IF Cargo information has been loaded and X4 segment contains disposition code
AND The system processes disposition code for the cargo
THEN:
• Disposition code is validated and appropriate cargo actions are determined
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code has been processed for the cargo.
Trigger Criteria:
Context: Disposition code has been processed for the cargo
Applied to: Update Cargo Status Array
Action: The system updates cargo status information
Logic Flow:
IF Disposition code has been processed for the cargo
AND The system updates cargo status information
THEN:
• Status array is modified to reflect new disposition code and associated status changes
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo status array has been updated with disposition code information.
Trigger Criteria:
Context: Cargo status array has been updated with disposition code information
Applied to: Apply Business Rules to Cargo
Action: The system applies business rules to the cargo
Logic Flow:
IF Cargo status array has been updated with disposition code information
AND The system applies business rules to the cargo
THEN:
• Cargo processing rules are executed based on cargo characteristics and disposition requirements
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when business rules have been applied to the cargo.
Trigger Criteria:
Context: Business rules have been applied to the cargo
Applied to: Update Cargo Release Status
Action: The system determines final cargo release status
Logic Flow:
IF Business rules have been applied to the cargo
AND The system determines final cargo release status
THEN:
• Cargo release status is updated to reflect hold, release, or other appropriate status conditions
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo release status has been updated.
Trigger Criteria:
Context: Cargo release status has been updated
Applied to: Generate Cargo Messages if Required
Action: The system evaluates message generation requirements
Logic Flow:
IF Cargo release status has been updated
AND The system evaluates message generation requirements
THEN:
• Appropriate cargo messages are generated if status changes require notification
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record has been successfully processed.
Trigger Criteria:
Context: A cargo record has been successfully processed
Applied to: Increment Cargo Counter
Action: The system completes cargo processing
Logic Flow:
IF A cargo record has been successfully processed
AND The system completes cargo processing
THEN:
• Cargo counter is incremented by one to track processed records
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when current cargo record has been processed and cargo counter incremented.
Trigger Criteria:
Context: Current cargo record has been processed and cargo counter incremented
Applied to: Fetch Next Cargo Record with Same Bond
Action: The system searches for additional cargo records with the same bond number
Logic Flow:
IF Current cargo record has been processed and cargo counter incremented
AND The system searches for additional cargo records with the same bond number
THEN:
• Next cargo record matching the bond number is retrieved if available
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when search for next cargo record with same bond has been executed.
Trigger Criteria:
Context: A search for next cargo record with same bond has been executed
Applied to: More Cargo Records?
Action: The system evaluates if more cargo records exist
Logic Flow:
IF A search for next cargo record with same bond has been executed
AND The system evaluates if more cargo records exist
THEN:
• Continues cargo processing loop if more records found, otherwise proceeds to bond processing summary
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when all cargo records for the bond number have been processed or no cargo records were found.
Trigger Criteria:
Context: All cargo records for the bond number have been processed or no cargo records were found
Applied to: Generate Bond Processing Summary
Action: The system completes bond-based cargo processing
Logic Flow:
IF All cargo records for the bond number have been processed or no cargo records were found
AND The system completes bond-based cargo processing
THEN:
• Bond processing summary is generated including cargo count and processing results
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when bond processing summary has been generated.
Trigger Criteria:
Context: Bond processing summary has been generated
Applied to: Log Bond Processing Results
Action: The system finalizes bond processing
Logic Flow:
IF Bond processing summary has been generated
AND The system finalizes bond processing
THEN:
• Bond processing results are logged to appropriate system logs for audit trail
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when bond processing summary has been generated.
Trigger Criteria:
Context: Bond processing summary has been generated
Applied to: Update All Processed Cargo Records
Action: The system updates all processed cargo records
Logic Flow:
IF Bond processing summary has been generated
AND The system updates all processed cargo records
THEN:
• All cargo records under the bond are updated in the database with new status and quantity information
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when bond number has failed format or validity validation.
Trigger Criteria:
Context: Bond number has failed format or validity validation
Applied to: Generate Bond Validation Error
Action: The system encounters invalid bond number
Logic Flow:
IF Bond number has failed format or validity validation
AND The system encounters invalid bond number
THEN:
• Bond validation error is generated with appropriate error details
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when bond validation error has been generated.
Trigger Criteria:
Context: Bond validation error has been generated
Applied to: Log Bond Error
Action: The system handles bond validation failure
Logic Flow:
IF Bond validation error has been generated
AND The system handles bond validation failure
THEN:
• Bond error details are logged to error logs for analysis and resolution
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when bond number is unavailable or bond validation has failed.
Trigger Criteria:
Context: Bond number is unavailable or bond validation has failed
Applied to: Skip Bond Processing
Action: The system cannot proceed with bond-based processing
Logic Flow:
IF Bond number is unavailable or bond validation has failed
AND The system cannot proceed with bond-based processing
THEN:
• Bond processing is skipped and system proceeds to completion
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when valid x4 segment contains bond information.
Trigger Criteria:
Context: A valid X4 segment contains bond information
Applied to: Extract Bond Control Number from X4 Segment
Action: The system extracts the bond control number from the X4 segment
Logic Flow:
IF A valid X4 segment contains bond information
AND The system extracts the bond control number from the X4 segment
THEN:
• The bond control number is captured and made available for validation and processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when valid bond number has been extracted and validated.
Trigger Criteria:
Context: A valid bond number has been extracted and validated
Applied to: Set Bond Processing Flag
Action: The system initializes bond processing mode
Logic Flow:
IF A valid bond number has been extracted and validated
AND The system initializes bond processing mode
THEN:
• Bond processing flag is set and cargo counter is initialized for bond-based operations
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record is being processed and disposition code is available from x4 segment.
Trigger Criteria:
Context: A cargo record is being processed and disposition code is available from X4 segment
Applied to: Apply Disposition Code to Cargo
Action: The system applies the disposition code to the cargo
Logic Flow:
IF A cargo record is being processed and disposition code is available from X4 segment
AND The system applies the disposition code to the cargo
THEN:
• Disposition code is validated against disposition code tables and applied to cargo status array
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code has been applied to cargo.
Trigger Criteria:
Context: A disposition code has been applied to cargo
Applied to: Update Cargo Status Array
Action: The system updates the cargo status array
Logic Flow:
IF A disposition code has been applied to cargo
AND The system updates the cargo status array
THEN:
• Status array is modified to reflect new disposition code and associated status changes
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo status array has been updated with disposition code.
Trigger Criteria:
Context: Cargo status array has been updated with disposition code
Applied to: Calculate Release Quantities
Action: The system calculates release quantities for the cargo
Logic Flow:
IF Cargo status array has been updated with disposition code
AND The system calculates release quantities for the cargo
THEN:
• Release quantities are computed based on disposition code action (add, subtract, or set) and validated against total cargo quantities
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when release quantities have been calculated for cargo.
Trigger Criteria:
Context: Release quantities have been calculated for cargo
Applied to: Update Cargo Hold/Release Status
Action: The system updates cargo hold and release status
Logic Flow:
IF Release quantities have been calculated for cargo
AND The system updates cargo hold and release status
THEN:
• Cargo status is set to appropriate hold or release condition based on quantity comparisons and disposition code effects
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when current cargo record has been processed under the bond.
Trigger Criteria:
Context: Current cargo record has been processed under the bond
Applied to: Fetch Next Cargo with Same Bond
Action: The system searches for additional cargo records with the same bond number
Logic Flow:
IF Current cargo record has been processed under the bond
AND The system searches for additional cargo records with the same bond number
THEN:
• Next cargo record is retrieved if exists, otherwise end of cargo records flag is set
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when search for next cargo record by bond number has been executed.
Trigger Criteria:
Context: A search for next cargo record by bond number has been executed
Applied to: More Cargo Records?
Action: The system evaluates if more cargo records exist
Logic Flow:
IF A search for next cargo record by bond number has been executed
AND The system evaluates if more cargo records exist
THEN:
• Processing loops back to cargo processing if more records exist, otherwise proceeds to bond processing summary
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when all cargo records for the bond number have been processed.
Trigger Criteria:
Context: All cargo records for the bond number have been processed
Applied to: Generate Bond Processing Summary
Action: The system generates bond processing summary
Logic Flow:
IF All cargo records for the bond number have been processed
AND The system generates bond processing summary
THEN:
• Summary includes total cargo count, processing results, and status changes for the bond
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when all cargo records for the bond have been updated.
Trigger Criteria:
Context: All cargo records for the bond have been updated
Applied to: Send Broker Notifications for Bond
Action: The system sends broker notifications
Logic Flow:
IF All cargo records for the bond have been updated
AND The system sends broker notifications
THEN:
• Notifications are sent to relevant brokers for all cargo status changes under the bond number
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when broker notifications have been sent for the bond.
Trigger Criteria:
Context: Broker notifications have been sent for the bond
Applied to: Log Bond Processing Results
Action: The system logs bond processing results
Logic Flow:
IF Broker notifications have been sent for the bond
AND The system logs bond processing results
THEN:
• Processing results, cargo counts, and status changes are logged for audit trail and system monitoring
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when bond number is missing, invalid format, or validation fails.
Trigger Criteria:
Context: Bond number is missing, invalid format, or validation fails
Applied to: Generate Bond Error Message
Action: The system generates bond error message
Logic Flow:
IF Bond number is missing, invalid format, or validation fails
AND The system generates bond error message
THEN:
• Error message is created indicating bond processing cannot proceed and includes relevant error details
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when bond error message has been generated.
Trigger Criteria:
Context: Bond error message has been generated
Applied to: Log Bond Processing Error
Action: The system logs bond processing error
Logic Flow:
IF Bond error message has been generated
AND The system logs bond processing error
THEN:
• Error details are logged including bond number, error type, and processing context for system monitoring
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when x4 segment is available for processing.
Trigger Criteria:
Context: An X4 segment is available for processing
Applied to: Extract Bond Control Number from X4 Segment
Action: The system processes the X4 segment for bond-based cargo fetching
Logic Flow:
IF An X4 segment is available for processing
AND The system processes the X4 segment for bond-based cargo fetching
THEN:
• The bond control number is extracted from the X4 segment and prepared as search key
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when bond control number has been extracted from x4 segment.
Trigger Criteria:
Context: A bond control number has been extracted from X4 segment
Applied to: Bond Number Valid?
Action: The system validates the bond number
Logic Flow:
IF A bond control number has been extracted from X4 segment
AND The system validates the bond number
THEN:
• If bond number is empty or invalid, processing stops with error; if valid, processing continues
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when valid bond control number exists.
Trigger Criteria:
Context: A valid bond control number exists
Applied to: Set Bond Number as Search Key
Action: The system prepares for cargo database search
Logic Flow:
IF A valid bond control number exists
AND The system prepares for cargo database search
THEN:
• The bond number is set as the search key for bond index lookup
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when bond number is set as search key. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: Bond number is set as search key
Applied to: Call GCCUSIO with Bond Index
Action: The system performs database lookup
Logic Flow:
IF Bond number is set as search key
AND The system performs database lookup
THEN:
• GCCUSIO is called with bond index to retrieve matching cargo records
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when database lookup by bond number has been performed.
Trigger Criteria:
Context: Database lookup by bond number has been performed
Applied to: Cargo Records Found?
Action: The system evaluates the search results
Logic Flow:
IF Database lookup by bond number has been performed
AND The system evaluates the search results
THEN:
• If no cargo records found, log error and return error status; if records found, proceed with retrieval
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo records exist for the bond number.
Trigger Criteria:
Context: Cargo records exist for the bond number
Applied to: Retrieve First Cargo Record
Action: The system begins cargo record processing
Logic Flow:
IF Cargo records exist for the bond number
AND The system begins cargo record processing
THEN:
• The first cargo record matching the bond number is retrieved
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record has been retrieved.
Trigger Criteria:
Context: A cargo record has been retrieved
Applied to: Load Cargo Root Segment
Action: The system loads cargo data
Logic Flow:
IF A cargo record has been retrieved
AND The system loads cargo data
THEN:
• The cargo root segment is loaded from GCSUSRT IMS segment
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when current cargo record has been processed.
Trigger Criteria:
Context: Current cargo record has been processed
Applied to: More Cargo with Same Bond?
Action: The system checks for additional cargo with same bond
Logic Flow:
IF Current cargo record has been processed
AND The system checks for additional cargo with same bond
THEN:
• If more cargo exists with same bond, continue processing; if no more cargo, complete bond processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record with matching bond number is loaded.
Trigger Criteria:
Context: A cargo record with matching bond number is loaded
Applied to: Process Current Cargo Record
Action: The system processes the cargo record
Logic Flow:
IF A cargo record with matching bond number is loaded
AND The system processes the cargo record
THEN:
• The cargo record is processed according to disposition code and business rules
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when current cargo record has been processed and more cargo exists with same bond.
Trigger Criteria:
Context: Current cargo record has been processed and more cargo exists with same bond
Applied to: Get Next Cargo Record with Same Bond
Action: The system retrieves the next cargo record
Logic Flow:
IF Current cargo record has been processed and more cargo exists with same bond
AND The system retrieves the next cargo record
THEN:
• The next cargo record with matching bond number is retrieved for processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when all cargo records with the bond number have been processed.
Trigger Criteria:
Context: All cargo records with the bond number have been processed
Applied to: All Bond Cargo Retrieved
Action: No more cargo records exist with the same bond number
Logic Flow:
IF All cargo records with the bond number have been processed
AND No more cargo records exist with the same bond number
THEN:
• Bond-based cargo processing is completed successfully
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when bond number is valid but no cargo records exist for the bond.
Trigger Criteria:
Context: Bond number is valid but no cargo records exist for the bond
Applied to: Log Bond Number Not Found Error
Action: The system encounters bond not found condition
Logic Flow:
IF Bond number is valid but no cargo records exist for the bond
AND The system encounters bond not found condition
THEN:
• An error is logged indicating bond number not found
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when bond number is invalid or no cargo records found for valid bond.
Trigger Criteria:
Context: Bond number is invalid or no cargo records found for valid bond
Applied to: Return Error Status
Action: Bond processing encounters an error condition
Logic Flow:
IF Bond number is invalid or no cargo records found for valid bond
AND Bond processing encounters an error condition
THEN:
• Error status is returned to calling process
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when all cargo records for the bond have been successfully processed.
Trigger Criteria:
Context: All cargo records for the bond have been successfully processed
Applied to: Return Success Status
Action: Bond processing completes without errors
Logic Flow:
IF All cargo records for the bond have been successfully processed
Business Justification: Dictates the expected operational logic and validation steps when cargo processing request is initiated.
Trigger Criteria:
Context: A cargo processing request is initiated
Applied to: X4 Segment Available?
Action: The system checks for X4 segment availability
Logic Flow:
IF A cargo processing request is initiated
AND The system checks for X4 segment availability
THEN:
• Processing continues if X4 segment is available, otherwise error handling is triggered
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when x4 segment is available with car information.
Trigger Criteria:
Context: X4 segment is available with car information
Applied to: Extract Car ID from X4-01
Action: The system processes the X4-01 field
Logic Flow:
IF X4 segment is available with car information
AND The system processes the X4-01 field
THEN:
• Car ID is extracted and stored for further processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when x4 segment contains waybill information in x4-02 field.
Trigger Criteria:
Context: X4 segment contains waybill information in X4-02 field
Applied to: Extract Waybill from X4-02
Action: The system processes the waybill data
Logic Flow:
IF X4 segment contains waybill information in X4-02 field
AND The system processes the waybill data
THEN:
• Waybill number is extracted and prepared for cargo lookup
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when raw car id has been extracted from x4 segment.
Trigger Criteria:
Context: Raw car ID has been extracted from X4 segment
Applied to: Format Car ID using GCCCARFM
Action: The system calls GCCCARFM formatting module
Logic Flow:
IF Raw car ID has been extracted from X4 segment
AND The system calls GCCCARFM formatting module
THEN:
• Car ID is formatted according to standard business rules and validation is performed
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when car id has been formatted using gcccarfm.
Trigger Criteria:
Context: Car ID has been formatted using GCCCARFM
Applied to: Car ID Valid?
Action: The system validates the car ID format and content
Logic Flow:
IF Car ID has been formatted using GCCCARFM
AND The system validates the car ID format and content
THEN:
• Processing continues if car ID is valid, otherwise error handling is initiated
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when valid car id and waybill number are available.
Trigger Criteria:
Context: Valid car ID and waybill number are available
Applied to: Build Car/Waybill Key
Action: The system builds the composite search key
Logic Flow:
IF Valid car ID and waybill number are available
AND The system builds the composite search key
THEN:
• Car/waybill key is constructed for database lookup operations
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when car/waybill key has been constructed.
Trigger Criteria:
Context: Car/waybill key has been constructed
Applied to: Search Cargo by Car/Waybill Index
Action: The system searches the cargo database using car/waybill index
Logic Flow:
IF Car/waybill key has been constructed
AND The system searches the cargo database using car/waybill index
THEN:
• Cargo records matching the key are identified or search returns no results
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when car/waybill index search has been completed.
Trigger Criteria:
Context: Car/waybill index search has been completed
Applied to: Cargo Found?
Action: The system evaluates search results
Logic Flow:
IF Car/waybill index search has been completed
AND The system evaluates search results
THEN:
• If cargo is found, proceed to retrieve records; if not found, initiate fallback search by car ID only
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo has been found using car/waybill search.
Trigger Criteria:
Context: Cargo has been found using car/waybill search
Applied to: Retrieve Cargo Record
Action: The system retrieves the cargo record
Logic Flow:
IF Cargo has been found using car/waybill search
AND The system retrieves the cargo record
THEN:
• Complete cargo record is loaded for status validation and processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record has been retrieved from the database.
Trigger Criteria:
Context: Cargo record has been retrieved from the database
Applied to: Validate Cargo Status
Action: The system validates the cargo status
Logic Flow:
IF Cargo record has been retrieved from the database
AND The system validates the cargo status
THEN:
• Cargo status is checked for validity and processing eligibility
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo status has been validated.
Trigger Criteria:
Context: Cargo status has been validated
Applied to: Cargo Valid?
Action: The system assesses overall cargo validity
Logic Flow:
IF Cargo status has been validated
AND The system assesses overall cargo validity
THEN:
• If cargo is valid, proceed to disposition code processing; if invalid, trigger error handling
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo status has been validated.
Trigger Criteria:
Context: Cargo status has been validated
Applied to: Valid Cargo?
Action: The system evaluates processing eligibility
Logic Flow:
IF Cargo status has been validated
AND The system evaluates processing eligibility
THEN:
• The system determines if cargo can proceed with disposition code processing or requires error handling
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when valid cargo record is available for processing.
Trigger Criteria:
Context: Valid cargo record is available for processing
Applied to: Process Disposition Codes
Action: The system processes disposition codes from X4 segment
Logic Flow:
IF Valid cargo record is available for processing
AND The system processes disposition codes from X4 segment
THEN:
• Disposition codes are evaluated and appropriate cargo status changes are determined
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition codes have been processed and status changes determined.
Trigger Criteria:
Context: Disposition codes have been processed and status changes determined
Applied to: Update Cargo Status
Action: The system updates the cargo record
Logic Flow:
IF Disposition codes have been processed and status changes determined
AND The system updates the cargo record
THEN:
• Cargo status is updated in the database and processing is marked complete
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when car/waybill search did not find any cargo records.
Trigger Criteria:
Context: Car/waybill search did not find any cargo records
Applied to: Try Car ID Only Search
Action: The system performs car ID only search using car ID index
Logic Flow:
IF Car/waybill search did not find any cargo records
AND The system performs car ID only search using car ID index
THEN:
• Cargo records matching the car ID are identified regardless of waybill
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when car id only search has been completed.
Trigger Criteria:
Context: Car ID only search has been completed
Applied to: Cargo Found by Car ID?
Action: The system evaluates fallback search results
Logic Flow:
IF Car ID only search has been completed
AND The system evaluates fallback search results
THEN:
• If cargo is found, proceed to waybill matching; if not found, generate cargo not found error
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo records have been found using car id only search.
Trigger Criteria:
Context: Cargo records have been found using car ID only search
Applied to: Check Multiple Waybills
Action: The system analyzes waybill information in found records
Logic Flow:
IF Cargo records have been found using car ID only search
AND The system analyzes waybill information in found records
THEN:
• Waybill matching is performed to identify the correct cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when multiple cargo records exist for the car id.
Trigger Criteria:
Context: Multiple cargo records exist for the car ID
Applied to: Single Waybill Match?
Action: The system checks for waybill matches
Logic Flow:
IF Multiple cargo records exist for the car ID
AND The system checks for waybill matches
THEN:
• If exactly one waybill matches, select that cargo; if multiple or no matches, generate error
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when exactly one cargo record matches the waybill criteria.
Trigger Criteria:
Context: Exactly one cargo record matches the waybill criteria
Applied to: Select Matching Cargo
Action: The system selects the matching cargo record
Logic Flow:
IF Exactly one cargo record matches the waybill criteria
AND The system selects the matching cargo record
THEN:
• The correct cargo record is identified for processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo was successfully found using car id only search.
Trigger Criteria:
Context: Cargo was successfully found using car ID only search
Applied to: Log Car ID Search Used
Action: The system logs the search method used
Logic Flow:
IF Cargo was successfully found using car ID only search
AND The system logs the search method used
THEN:
• Car ID search usage is recorded for audit and monitoring purposes
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when both car/waybill and car id only searches failed to find valid cargo.
Trigger Criteria:
Context: Both car/waybill and car ID only searches failed to find valid cargo
Applied to: Generate Cargo Not Found Error
Action: The system generates cargo not found error
Logic Flow:
IF Both car/waybill and car ID only searches failed to find valid cargo
AND The system generates cargo not found error
THEN:
• Error message is created indicating cargo could not be located for processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo not found error has been generated.
Trigger Criteria:
Context: Cargo not found error has been generated
Applied to: Create Foreign Bill Record
Action: The system creates a foreign bill record
Logic Flow:
IF Cargo not found error has been generated
AND The system creates a foreign bill record
THEN:
• New foreign bill record is created to handle the unmatched cargo information
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when car id exists in the n7 segment data.
Trigger Criteria:
Context: A car ID exists in the N7 segment data
Applied to: Format Equipment ID using GCCCARFM
Action: The system needs to search for cargo by car and waybill
Logic Flow:
IF A car ID exists in the N7 segment data
AND The system needs to search for cargo by car and waybill
THEN:
• The car ID is formatted using standard equipment formatting rules to ensure consistent search keys
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when formatted car id and waybill number are available.
Trigger Criteria:
Context: A formatted car ID and waybill number are available
Applied to: Set Car ID and Waybill in Search Key
Action: The system prepares to search for cargo records
Logic Flow:
IF A formatted car ID and waybill number are available
AND The system prepares to search for cargo records
THEN:
• The search key is populated with the car ID and waybill number to enable precise cargo matching
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when search key with car id and waybill is constructed. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: A search key with car ID and waybill is constructed
Applied to: Call GCCUSIO with Car/Waybill Index
Action: The system executes cargo search operation
Logic Flow:
IF A search key with car ID and waybill is constructed
AND The system executes cargo search operation
THEN:
• The cargo database is queried using the car/waybill index to locate matching records
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo search operation has been executed.
Trigger Criteria:
Context: A cargo search operation has been executed
Applied to: Cargo Found?
Action: The system evaluates the search results
Logic Flow:
IF A cargo search operation has been executed
AND The system evaluates the search results
THEN:
• The system determines if cargo records were found and sets appropriate processing flags
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo records exist for the car and waybill combination.
Trigger Criteria:
Context: Cargo records exist for the car and waybill combination
Applied to: Retrieve Cargo Record
Action: The system processes the found cargo
Logic Flow:
IF Cargo records exist for the car and waybill combination
AND The system processes the found cargo
THEN:
• Complete cargo record data is retrieved including status, quantities, and identification information
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record has been retrieved.
Trigger Criteria:
Context: A cargo record has been retrieved
Applied to: Validate Cargo Status
Action: The system evaluates cargo eligibility
Logic Flow:
IF A cargo record has been retrieved
AND The system evaluates cargo eligibility
THEN:
• The cargo status is validated to ensure it is not deleted and is eligible for customs processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when valid cargo exists and disposition codes are available from x4 segment.
Trigger Criteria:
Context: Valid cargo exists and disposition codes are available from X4 segment
Applied to: Process Disposition Codes
Action: The system processes customs disposition codes
Logic Flow:
IF Valid cargo exists and disposition codes are available from X4 segment
AND The system processes customs disposition codes
THEN:
• Disposition codes are evaluated and appropriate cargo status changes are determined based on customs requirements
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition codes have been processed.
Trigger Criteria:
Context: Disposition codes have been processed
Applied to: Update Cargo Status Array
Action: The system updates cargo status information
Logic Flow:
IF Disposition codes have been processed
AND The system updates cargo status information
THEN:
• The cargo status array is updated with new status codes, removing counterpart codes as needed and maintaining status history
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition codes specify quantity actions.
• Release quantities are calculated by adding or subtracting specified amounts while ensuring quantities do not become negative
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo processing is underway for a specific waybill.
Trigger Criteria:
Context: Cargo processing is underway for a specific waybill
Applied to: Multiple Cars with Same Waybill?
Action: The system evaluates waybill scope
Logic Flow:
IF Cargo processing is underway for a specific waybill
AND The system evaluates waybill scope
THEN:
• The system determines if multiple cars are associated with the same waybill and require coordinated release processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when multiple cars share the same waybill number.
Trigger Criteria:
Context: Multiple cars share the same waybill number
Applied to: Process All Related Cars
Action: The system processes waybill-level operations
Logic Flow:
IF Multiple cars share the same waybill number
AND The system processes waybill-level operations
THEN:
• All cars associated with the waybill are processed to ensure consistent cargo status and release coordination
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo status and quantities have been updated.
Trigger Criteria:
Context: Cargo status and quantities have been updated
Applied to: Verify Release Eligibility
Action: The system evaluates release eligibility
Logic Flow:
IF Cargo status and quantities have been updated
AND The system evaluates release eligibility
THEN:
• The system verifies that cargo meets all customs requirements, quantity thresholds, and status conditions for release
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo is eligible for release.
Trigger Criteria:
Context: Cargo is eligible for release
Applied to: Generate Release Messages
Action: The system processes release notifications
Logic Flow:
IF Cargo is eligible for release
AND The system processes release notifications
THEN:
• Release messages are generated with cargo details, quantities, and routing information for broker and system notifications
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo processing is complete with new status and quantity information.
Trigger Criteria:
Context: Cargo processing is complete with new status and quantity information
Applied to: Update Cargo Records
Action: The system finalizes cargo updates
Logic Flow:
IF Cargo processing is complete with new status and quantity information
AND The system finalizes cargo updates
THEN:
• Cargo records are updated in the database with new status, quantities, and processing timestamps
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when no cargo was found using car id and waybill combination.
Trigger Criteria:
Context: No cargo was found using car ID and waybill combination
Applied to: Try Car ID Only Search
Action: The system performs alternative search strategy
Logic Flow:
IF No cargo was found using car ID and waybill combination
AND The system performs alternative search strategy
THEN:
• A broader search is performed using only the car ID to locate any cargo associated with the equipment
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when no cargo records exist for the car and waybill combination.
Trigger Criteria:
Context: No cargo records exist for the car and waybill combination
Applied to: Log Cargo Not Found Error
Action: The system handles cargo not found condition
Logic Flow:
IF No cargo records exist for the car and waybill combination
AND The system handles cargo not found condition
THEN:
• An error is logged with disposition code and search criteria details for tracking and resolution
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo is not found and error has been logged.
Trigger Criteria:
Context: Cargo is not found and error has been logged
Applied to: Create Foreign Bill Record
Action: The system handles missing cargo scenario
Logic Flow:
IF Cargo is not found and error has been logged
AND The system handles missing cargo scenario
THEN:
• A foreign bill record is created to track the cargo information for future reference and processing
Business Justification: Dictates the expected operational logic and validation steps when disposition code is provided from the x4 segment.
Trigger Criteria:
Context: A disposition code is provided from the X4 segment
Applied to: Retrieve Disposition Code from DC Table
Action: The system looks up the disposition code in the DC table
Logic Flow:
IF A disposition code is provided from the X4 segment
AND The system looks up the disposition code in the DC table
THEN:
• The disposition code details are retrieved including Merlin messages and processing flags
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code lookup has been performed.
Trigger Criteria:
Context: A disposition code lookup has been performed
Applied to: Disposition Code Found?
Action: The disposition code is not found in the DC table
Logic Flow:
IF A disposition code lookup has been performed
AND The disposition code is not found in the DC table
THEN:
• An error message is generated indicating the code is not found
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code with arl (auto release) type is being processed.
Trigger Criteria:
Context: A disposition code with ARL (Auto Release) type is being processed
Applied to: ARL - Auto Release Processing
Action: The disposition code action is ARL
Logic Flow:
IF A disposition code with ARL (Auto Release) type is being processed
AND The disposition code action is ARL
THEN:
• The system generates an auto release message and sets appropriate release flags
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code with mrl (manual release) type is being processed for cprs cargo.
Trigger Criteria:
Context: A disposition code with MRL (Manual Release) type is being processed for CPRS cargo
Applied to: MRL - Manual Release for CPRS
Action: The disposition code action is MRL
Logic Flow:
IF A disposition code with MRL (Manual Release) type is being processed for CPRS cargo
AND The disposition code action is MRL
THEN:
• The system processes the manual release request and clears destination index
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code with removal type is being processed.
Trigger Criteria:
Context: A disposition code with removal type is being processed
Applied to: Process Removal Codes
Action: The disposition code action is DC removal
Logic Flow:
IF A disposition code with removal type is being processed
AND The disposition code action is DC removal
THEN:
• The system removes the specified disposition code from the cargo status array
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when disposition code with hold type is being processed.
Trigger Criteria:
Context: A disposition code with hold type is being processed
Applied to: Process Hold Codes with Location
Action: The disposition code action is DC hold
Logic Flow:
IF A disposition code with hold type is being processed
AND The disposition code action is DC hold
THEN:
• The system adds the hold code to status array and sets location information from the message
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code with release type is being processed.
Trigger Criteria:
Context: A disposition code with release type is being processed
Applied to: Process Release Codes with Released Flag
Action: The disposition code action is DC release
Logic Flow:
IF A disposition code with release type is being processed
AND The disposition code action is DC release
THEN:
• The system adds the release code to status array, sets released flag, and updates release quantities
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code with information type is being processed.
Trigger Criteria:
Context: A disposition code with information type is being processed
Applied to: Process Status Information Codes
Action: The disposition code action is DC status info
Logic Flow:
IF A disposition code with information type is being processed
AND The disposition code action is DC status info
THEN:
• The system adds the informational code to status array without changing cargo release status
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code is being added to the cargo status array.
Trigger Criteria:
Context: A disposition code is being added to the cargo status array
Applied to: Check for Duplicates in Status Array
Action: The same disposition code already exists in the status array
Logic Flow:
IF A disposition code is being added to the cargo status array
AND The same disposition code already exists in the status array
THEN:
• The system skips adding the duplicate code and continues processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when new disposition code needs to be added to the status array.
Trigger Criteria:
Context: A new disposition code needs to be added to the status array
Applied to: Check Array Capacity
Action: The status array is at maximum capacity
Logic Flow:
IF A new disposition code needs to be added to the status array
AND The status array is at maximum capacity
THEN:
• The system generates an array overflow error and stops processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when hold or release disposition code is being added to the status array.
Trigger Criteria:
Context: A hold or release disposition code is being added to the status array
Applied to: Process Counterpart Code Removal
Action: Counterpart disposition codes exist in the status array
Logic Flow:
IF A hold or release disposition code is being added to the status array
AND Counterpart disposition codes exist in the status array
THEN:
• The system removes the counterpart codes before adding the new disposition code
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when release disposition code is being processed with quantity information.
Trigger Criteria:
Context: A release disposition code is being processed with quantity information
Applied to: Update Cargo Release Quantities
Action: The disposition code affects release quantities
Logic Flow:
IF A release disposition code is being processed with quantity information
AND The disposition code affects release quantities
THEN:
• The system adds or subtracts the specified quantity from cargo release quantities with minimum value of zero
R-GCX016-cbl-04063 (+19)File: GCX016.cblBusiness Rule: Status Array Management
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record exists in the system.
Trigger Criteria:
Context: A cargo record exists in the system
Applied to: Fetch S09 Segments from Database
Action: The system needs to manage cargo status information
Logic Flow:
IF A cargo record exists in the system
AND The system needs to manage cargo status information
THEN:
• The system fetches all existing S09 status segments associated with the cargo CCN key
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record exists in the system.
Trigger Criteria:
Context: A cargo record exists in the system
Applied to: Retrieve S09 Segments from Database
Action: The cargo has existing status segments in the database
Logic Flow:
IF A cargo record exists in the system
AND The cargo has existing status segments in the database
THEN:
• The system retrieves all S09 status segments associated with the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record exists in the system.
Trigger Criteria:
Context: A cargo record exists in the system
Applied to: Create New Empty Status Array
Action: The cargo has no existing status segments in the database
Logic Flow:
IF A cargo record exists in the system
AND The cargo has no existing status segments in the database
THEN:
• The system creates a new empty S09A status array structure with initialized counters
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record has no existing s09 status segments.
Trigger Criteria:
Context: A cargo record has no existing S09 status segments
Applied to: Create Empty S09A Status Array
Action: The system attempts to fetch cargo status information
Logic Flow:
IF A cargo record has no existing S09 status segments
AND The system attempts to fetch cargo status information
THEN:
• The system creates a new empty S09A status array structure
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when s09 status segments exist for a cargo record.
Trigger Criteria:
Context: S09 status segments exist for a cargo record
Applied to: Populate S09A Array from S09 Segments
Action: The system retrieves the segments from the database
Logic Flow:
IF S09 status segments exist for a cargo record
AND The system retrieves the segments from the database
THEN:
• The system populates the S09A status array with all status entries from the retrieved segments
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when new cargo record is being processed without existing status segments.
Trigger Criteria:
Context: A new cargo record is being processed without existing status segments
Applied to: Initialize Array with Default Values
Action: The system creates an empty status array
Logic Flow:
IF A new cargo record is being processed without existing status segments
AND The system creates an empty status array
THEN:
• The system initializes the array with default status values and proper sequence numbering
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when disposition code needs to be added to cargo status and the status array has available capacity.
Trigger Criteria:
Context: A disposition code needs to be added to cargo status AND the status array has available capacity
Applied to: Add New Disposition Code to Array
Action: The system processes a new disposition code from X4 segment
Logic Flow:
IF A disposition code needs to be added to cargo status AND the status array has available capacity
AND The system processes a new disposition code from X4 segment
THEN:
• The system adds the disposition code with appropriate status flags, location information, and quantity details to the next available position in the status array
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when new disposition code has counterpart codes that must be removed and counterpart codes exist in the status array.
Trigger Criteria:
Context: A new disposition code has counterpart codes that must be removed AND counterpart codes exist in the status array
Applied to: Remove Counterpart Codes from Array
Action: The system adds a new disposition code that conflicts with existing codes
Logic Flow:
IF A new disposition code has counterpart codes that must be removed AND counterpart codes exist in the status array
AND The system adds a new disposition code that conflicts with existing codes
THEN:
• The system removes all counterpart disposition codes from the status array before adding the new code
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition codes are being processed in the status array.
Trigger Criteria:
Context: Disposition codes are being processed in the status array
Applied to: Update Status Flags in Array Elements
Action: The system evaluates disposition code types and processing requirements
Logic Flow:
IF Disposition codes are being processed in the status array
AND The system evaluates disposition code types and processing requirements
THEN:
• The system sets appropriate status flags including hold indicators, release indicators, location flags, and quantity impact flags for each array element
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when disposition codes have been removed from the status array creating gaps.
Trigger Criteria:
Context: Disposition codes have been removed from the status array creating gaps
Applied to: Compact Array After Removals
Action: The system completes code removal operations
Logic Flow:
IF Disposition codes have been removed from the status array creating gaps
AND The system completes code removal operations
THEN:
• The system compacts the array by moving remaining entries to eliminate empty positions and maintains proper sequence numbering
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when status array is at maximum capacity and a new disposition code needs to be added.
Trigger Criteria:
Context: The status array is at maximum capacity AND a new disposition code needs to be added
Applied to: Prevent Array Overflow
Action: The system attempts to add another status entry
Logic Flow:
IF The status array is at maximum capacity AND a new disposition code needs to be added
AND The system attempts to add another status entry
THEN:
• The system prevents the addition and maintains array integrity without exceeding capacity limits
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when status array processing is complete and modifications have been made to the array.
Trigger Criteria:
Context: Status array processing is complete AND modifications have been made to the array
Applied to: Move S09A Array Data to S09 Segments
Action: The system needs to persist status changes
Logic Flow:
IF Status array processing is complete AND modifications have been made to the array
AND The system needs to persist status changes
THEN:
• The system transfers all status entries from the S09A array back to properly formatted S09 database segments with correct sequence numbering
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when s09 segments have been updated with new status information.
Trigger Criteria:
Context: S09 segments have been updated with new status information
Applied to: Replace S09 Segments in Database
Action: The system completes status array processing
Logic Flow:
IF S09 segments have been updated with new status information
AND The system completes status array processing
THEN:
• The system replaces the existing S09 segments in the database with the updated segment data
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when status segments have been successfully updated in the database.
Trigger Criteria:
Context: Status segments have been successfully updated in the database
Applied to: Update Cargo Record with New Status
Action: The system completes status array management
Logic Flow:
IF Status segments have been successfully updated in the database
AND The system completes status array management
THEN:
• The system updates the cargo record with the current status description and any related status indicators
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when s09 status segments exist in the database for a cargo record.
Trigger Criteria:
Context: S09 status segments exist in the database for a cargo record
Applied to: Populate Array from S09 Segments
Action: The system needs to process status information
Logic Flow:
IF S09 status segments exist in the database for a cargo record
AND The system needs to process status information
THEN:
• The system copies all status codes, disposition codes, entry numbers, quantities, locations, and release flags from S09 segments into the S09A working array
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when status array exists and has available space.
Trigger Criteria:
Context: A status array exists and has available space
Applied to: Add Status Code to Array
Action: A new status code needs to be added to the array
Logic Flow:
IF A status array exists and has available space
AND A new status code needs to be added to the array
THEN:
• The system adds the status code along with disposition code, entry number, quantity information, location details, and release flag to the next available array position
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when status array is being populated with status codes.
Trigger Criteria:
Context: A status array is being populated with status codes
Applied to: Prevent Array Overflow
Action: The array reaches its maximum capacity limit
Logic Flow:
IF A status array is being populated with status codes
AND The array reaches its maximum capacity limit
THEN:
• The system prevents additional entries from being added to avoid array overflow
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when status array has been processed and updated.
Trigger Criteria:
Context: A status array has been processed and updated
Applied to: Move Array Back to S09 Segments
Action: The processing is complete and changes need to be persisted
Logic Flow:
IF A status array has been processed and updated
AND The processing is complete and changes need to be persisted
THEN:
• The system moves all status information from the S09A array back to S09 database segments, distributing entries across multiple sequences as needed
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when status segments have been updated in memory.
Trigger Criteria:
Context: Status segments have been updated in memory
Applied to: Replace Database Records
Action: Changes need to be committed to the database
Logic Flow:
IF Status segments have been updated in memory
AND Changes need to be committed to the database
THEN:
• The system replaces the existing S09 status segments in the database with the updated information
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when status segments exist for a cargo record and n7 equipment data is available.
Trigger Criteria:
Context: Status segments exist for a cargo record and N7 equipment data is available
Applied to: Update Array Elements
Action: Car ID information needs to be updated in the status segments
Logic Flow:
IF Status segments exist for a cargo record and N7 equipment data is available
AND Car ID information needs to be updated in the status segments
THEN:
• For CPRS cargo records, the system clears the car ID, and for other cargo types, the system updates the car initial and number from N7 segment data if available
R-GCX016-cbl-04075 (+4)File: GCX016.cblBusiness Rule: DC Table Lookup
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code is received from x4 segment. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: A disposition code is received from X4 segment
Applied to: Call GCCTBIO to Access DC Table
Action: The system performs a table lookup using GCCTBIO to access the DC table
Logic Flow:
IF A disposition code is received from X4 segment
AND The system performs a table lookup using GCCTBIO to access the DC table
THEN:
• The system retrieves the disposition code record from GCSTBRT DC table segments
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code lookup has been performed against the dc table.
Trigger Criteria:
Context: A disposition code lookup has been performed against the DC table
Applied to: DC Table Record Found?
Action: The system checks if a matching record was found in the table
Logic Flow:
IF A disposition code lookup has been performed against the DC table
AND The system checks if a matching record was found in the table
THEN:
• The system sets success status if record found or error status if record not found
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code lookup has been performed against the dc table.
Trigger Criteria:
Context: A disposition code lookup has been performed against the DC table
Applied to: Set Error Status - Code Not Found
Action: No matching record is found for the disposition code
Logic Flow:
IF A disposition code lookup has been performed against the DC table
AND No matching record is found for the disposition code
THEN:
• The system sets error status, logs the disposition code error, and returns error status to the calling process
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when valid disposition code record has been found in the dc table.
Trigger Criteria:
Context: A valid disposition code record has been found in the DC table
Applied to: Extract Disposition Code Information
Action: The system processes the found record
Logic Flow:
IF A valid disposition code record has been found in the DC table
AND The system processes the found record
THEN:
• The system extracts disposition code information, counterpart code information, processing instructions, quantity action indicators, and location processing flags
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code information has been successfully extracted from the dc table.
Trigger Criteria:
Context: Disposition code information has been successfully extracted from the DC table
Applied to: Store DC Information in Working Storage
Action: The system processes the extracted information
Logic Flow:
IF Disposition code information has been successfully extracted from the DC table
AND The system processes the extracted information
THEN:
• The system stores all DC information in working storage and returns success status
Business Justification: Establishes the required business protocol to be followed when disposition code exists in the current processing context.
Trigger Criteria:
Context: A disposition code exists in the current processing context
Applied to: Get Counterpart Code from DC Table
Action: The system needs to identify counterpart codes for removal
Logic Flow:
IF A disposition code exists in the current processing context
AND The system needs to identify counterpart codes for removal
THEN:
• The counterpart disposition code is retrieved from the DC table lookup
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when counterpart code lookup has been performed from the dc table.
Trigger Criteria:
Context: A counterpart code lookup has been performed from the DC table
Applied to: Counterpart Code Exists?
Action: The system evaluates whether counterpart processing is required
Logic Flow:
IF A counterpart code lookup has been performed from the DC table
AND The system evaluates whether counterpart processing is required
THEN:
• If counterpart code exists, proceed with array search; otherwise skip counterpart processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when valid counterpart code exists and status array contains disposition codes.
Trigger Criteria:
Context: A valid counterpart code exists and status array contains disposition codes
Applied to: Search Status Array for Matching Codes
Action: The system searches for matching counterpart codes in the array
Logic Flow:
IF A valid counterpart code exists and status array contains disposition codes
AND The system searches for matching counterpart codes in the array
THEN:
• Each array element is evaluated against the counterpart code criteria
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when array element is being evaluated against counterpart code criteria.
Trigger Criteria:
Context: An array element is being evaluated against counterpart code criteria
Applied to: Match Found?
Action: The system compares the array element disposition code with the counterpart code
Logic Flow:
IF An array element is being evaluated against counterpart code criteria
AND The system compares the array element disposition code with the counterpart code
THEN:
• If codes match, proceed with detailed matching criteria validation; otherwise continue to next element
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code in the array matches the counterpart code.
Trigger Criteria:
Context: A disposition code in the array matches the counterpart code
Applied to: Check Matching Criteria
Action: The system evaluates additional matching criteria including status info, entry number, quantity, and specific code patterns
Logic Flow:
IF A disposition code in the array matches the counterpart code
AND The system evaluates additional matching criteria including status info, entry number, quantity, and specific code patterns
THEN:
• Multiple validation checks are performed to confirm the code should be removed
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when counterpart code match has been found in the status array.
Trigger Criteria:
Context: A counterpart code match has been found in the status array
Applied to: Status Info Match?
Action: The system validates status information compatibility
Logic Flow:
IF A counterpart code match has been found in the status array
AND The system validates status information compatibility
THEN:
• If status info matches, remove the counterpart code; otherwise check entry number match
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when status info match validation has been performed and counterpart code exists in array.
Trigger Criteria:
Context: Status info match validation has been performed and counterpart code exists in array
Applied to: Entry Number Match?
Action: The system compares entry number values
Logic Flow:
IF Status info match validation has been performed and counterpart code exists in array
AND The system compares entry number values
THEN:
• If entry numbers match, remove the counterpart code; otherwise check quantity match
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when entry number match validation has been performed and counterpart code exists in array.
Trigger Criteria:
Context: Entry number match validation has been performed and counterpart code exists in array
Applied to: Quantity Match?
Action: The system compares quantity values
Logic Flow:
IF Entry number match validation has been performed and counterpart code exists in array
AND The system compares quantity values
THEN:
• If quantities match, remove the counterpart code; otherwise check specific code pattern match
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when quantity match validation has been performed and counterpart code exists in array.
Trigger Criteria:
Context: Quantity match validation has been performed and counterpart code exists in array
Applied to: Specific Code Pattern Match?
Action: The system evaluates specific code pattern matching criteria
Logic Flow:
IF Quantity match validation has been performed and counterpart code exists in array
AND The system evaluates specific code pattern matching criteria
THEN:
• If specific patterns match, remove the counterpart code; otherwise continue to next array element
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when counterpart code has been validated for removal based on matching criteria.
Trigger Criteria:
Context: A counterpart code has been validated for removal based on matching criteria
Applied to: Remove Counterpart Code from Array
Action: The system performs the removal operation
Logic Flow:
IF A counterpart code has been validated for removal based on matching criteria
AND The system performs the removal operation
THEN:
• The counterpart code is marked for removal from the status array
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when one or more counterpart codes have been removed from the status array.
Trigger Criteria:
Context: One or more counterpart codes have been removed from the status array
Applied to: Compact Remaining Array Elements
Action: The system compacts the array structure
Logic Flow:
IF One or more counterpart codes have been removed from the status array
AND The system compacts the array structure
THEN:
• Remaining array elements are shifted to eliminate empty positions
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when status array has been compacted after counterpart code removal.
Trigger Criteria:
Context: The status array has been compacted after counterpart code removal
Applied to: Update Array Element Count
Action: The system updates array metadata
Logic Flow:
IF The status array has been compacted after counterpart code removal
AND The system updates array metadata
THEN:
• The array element count is decremented to reflect the removed counterpart codes
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when current array element processing is complete (either removed or skipped).
Trigger Criteria:
Context: Current array element processing is complete (either removed or skipped)
Applied to: Continue to Next Array Element
Action: The system continues array traversal
Logic Flow:
IF Current array element processing is complete (either removed or skipped)
AND The system continues array traversal
THEN:
• Processing moves to the next available array element
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when current array element has been processed.
Trigger Criteria:
Context: Current array element has been processed
Applied to: More Elements to Check?
Action: The system checks for remaining elements to evaluate
Logic Flow:
IF Current array element has been processed
AND The system checks for remaining elements to evaluate
THEN:
• If more elements exist, continue searching; otherwise complete counterpart processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when all status array elements have been evaluated for counterpart code removal.
Trigger Criteria:
Context: All status array elements have been evaluated for counterpart code removal
Applied to: Counterpart Processing Complete
Action: The counterpart processing cycle is complete
Logic Flow:
IF All status array elements have been evaluated for counterpart code removal
AND The counterpart processing cycle is complete
THEN:
• Processing control returns to the main disposition code handling logic
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when no counterpart disposition code exists in the dc table lookup.
Trigger Criteria:
Context: No counterpart disposition code exists in the DC table lookup
Applied to: No Counterpart Action Required
Action: The system evaluates counterpart processing requirements
Logic Flow:
IF No counterpart disposition code exists in the DC table lookup
AND The system evaluates counterpart processing requirements
THEN:
• Counterpart processing is skipped and control returns to main processing
R-GCX016-cbl-04096 (+71)File: GCX016.cblBusiness Rule: Status Array Analysis
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record requires status analysis.
Trigger Criteria:
Context: A cargo record requires status analysis
Applied to: Initialize Cargo State Flags & Initialize Status Flags
Action: The status array analysis process begins
Logic Flow:
IF A cargo record requires status analysis
AND The status array analysis process begins
THEN:
• All cargo state flags (empty, held, released, PTT, proceed, arrival, export, FDA hold) are set to false/off and all quantity counters are reset to zero
• All status flags (hold, release, PTT, proceed, arrival, export, FDA hold) are set to false and quantity counters are reset to zero
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when s09a status array contains cargo disposition codes.
Trigger Criteria:
Context: The S09A status array contains cargo disposition codes
Applied to: Scan S09A Status Array Elements
Action: Status analysis is performed
Logic Flow:
IF The S09A status array contains cargo disposition codes
AND Status analysis is performed
THEN:
• Each array element is examined sequentially until all elements are processed
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code from the s09a array is being examined.
Trigger Criteria:
Context: A disposition code from the S09A array is being examined
Applied to: Hold Code? & Release Code? & PTT Code? & Proceed Code? & Arrival Code? & Export Code? & FDA Hold Code?
Action: The disposition code type is evaluated
Logic Flow:
IF A disposition code from the S09A array is being examined
AND The disposition code type is evaluated
THEN:
• If the code is classified as a hold type in the disposition code table, the hold status flag is set to true
• If the code is classified as a release type in the disposition code table, the release status flag is set to true
• If the code is classified as a PTT type in the disposition code table, the PTT status flag is set to true
• If the code is classified as a proceed type in the disposition code table, the proceed status flag is set to true
• If the code is classified as an arrival type in the disposition code table, the arrival status flag is set to true
• If the code is classified as an export type in the disposition code table, the export status flag is set to true
• If the code is classified as an FDA hold type in the disposition code table, the FDA hold status flag is set to true
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when disposition code has been identified as a hold type.
Trigger Criteria:
Context: A disposition code has been identified as a hold type
Applied to: Border or Destination Hold?
Action: The hold location is determined
Logic Flow:
IF A disposition code has been identified as a hold type
AND The hold location is determined
THEN:
• If the hold applies at the border, set border hold flag to true, otherwiseif the hold applies at destination, set destination hold flag to true
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code has been identified as a release type.
Trigger Criteria:
Context: A disposition code has been identified as a release type
Applied to: Calculate Release Quantities
Action: Release quantities are calculated
Logic Flow:
IF A disposition code has been identified as a release type
AND Release quantities are calculated
THEN:
• The quantity associated with the release code is added to the total release quantity counter
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when all disposition codes in the s09a array have been analyzed and status flags have been set.
Trigger Criteria:
Context: All disposition codes in the S09A array have been analyzed and status flags have been set
Applied to: Determine Final Cargo Status
Action: Final cargo status determination is performed
Logic Flow:
IF All disposition codes in the S09A array have been analyzed and status flags have been set
AND Final cargo status determination is performed
THEN:
• The system evaluates status flags in priority order: border hold, destination hold, released, PTT active, proceed, arrived, exported to set the final cargo status
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when status analysis has been completed and border hold flag is true.
Trigger Criteria:
Context: Status analysis has been completed and border hold flag is true
Applied to: Hold at Border
Action: Final status determination is performed
Logic Flow:
IF Status analysis has been completed and border hold flag is true
AND Final status determination is performed
THEN:
• The cargo final status is set to 'Hold at Border' indicating cargo cannot proceed past the border
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when status analysis has been completed and destination hold flag is true and border hold flag is false.
Trigger Criteria:
Context: Status analysis has been completed and destination hold flag is true and border hold flag is false
Applied to: Hold at Destination
Action: Final status determination is performed
Logic Flow:
IF Status analysis has been completed and destination hold flag is true and border hold flag is false
AND Final status determination is performed
THEN:
• The cargo final status is set to 'Hold at Destination' indicating cargo is held at the destination location
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when status analysis has been completed and release flag is true and no hold flags are true.
Trigger Criteria:
Context: Status analysis has been completed and release flag is true and no hold flags are true
Applied to: Released
Action: Final status determination is performed
Logic Flow:
IF Status analysis has been completed and release flag is true and no hold flags are true
AND Final status determination is performed
THEN:
• The cargo final status is set to 'Released' indicating cargo is cleared for movement
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when status analysis has been completed and ptt flag is true and no hold or release flags are true.
Trigger Criteria:
Context: Status analysis has been completed and PTT flag is true and no hold or release flags are true
Applied to: PTT Active
Action: Final status determination is performed
Logic Flow:
IF Status analysis has been completed and PTT flag is true and no hold or release flags are true
AND Final status determination is performed
THEN:
• The cargo final status is set to 'PTT Active' indicating permit to transfer is in effect
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when status analysis has been completed and proceed flag is true and no hold, release, or ptt flags are true.
Trigger Criteria:
Context: Status analysis has been completed and proceed flag is true and no hold, release, or PTT flags are true
Applied to: Proceed
Action: Final status determination is performed
Logic Flow:
IF Status analysis has been completed and proceed flag is true and no hold, release, or PTT flags are true
AND Final status determination is performed
THEN:
• The cargo final status is set to 'Proceed' indicating cargo can continue movement
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when status analysis has been completed and arrival flag is true and no hold, release, ptt, or proceed flags are true.
Trigger Criteria:
Context: Status analysis has been completed and arrival flag is true and no hold, release, PTT, or proceed flags are true
Applied to: Arrived
Action: Final status determination is performed
Logic Flow:
IF Status analysis has been completed and arrival flag is true and no hold, release, PTT, or proceed flags are true
AND Final status determination is performed
THEN:
• The cargo final status is set to 'Arrived' indicating cargo has reached its destination
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when status analysis has been completed and export flag is true and no other status flags are true.
Trigger Criteria:
Context: Status analysis has been completed and export flag is true and no other status flags are true
Applied to: Exported
Action: Final status determination is performed
Logic Flow:
IF Status analysis has been completed and export flag is true and no other status flags are true
AND Final status determination is performed
THEN:
• The cargo final status is set to 'Exported' indicating cargo has been exported from the country
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo status analysis process is starting.
Trigger Criteria:
Context: A cargo status analysis process is starting
Applied to: Initialize Cargo State Flags
Action: The system begins status array analysis
Logic Flow:
IF A cargo status analysis process is starting
AND The system begins status array analysis
THEN:
• All cargo state flags (hold, release, PTT, proceed, arrival, export, FDA) are set to false and quantities are initialized to zero
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when populated s09a status array exists for cargo.
Trigger Criteria:
Context: A populated S09A status array exists for cargo
Applied to: Loop Through S09A Status Array Elements
Action: The system processes status array elements
Logic Flow:
IF A populated S09A status array exists for cargo
AND The system processes status array elements
THEN:
• Each array element is examined in sequence until all elements are processed
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when status array element contains a disposition code.
Trigger Criteria:
Context: A status array element contains a disposition code
Applied to: Check Disposition Code Type
Action: The disposition code is evaluated for type classification
Logic Flow:
IF A status array element contains a disposition code
AND The disposition code is evaluated for type classification
THEN:
• The system determines if the code represents a hold condition based on predefined hold code criteria
• The system determines if the code represents a release condition based on predefined release code criteria
• The system determines if the code represents a PTT condition based on predefined PTT code criteria
• The system determines if the code represents a proceed condition based on predefined proceed code criteria
• The system determines if the code represents an arrival condition based on predefined arrival code criteria
• The system determines if the code represents an export condition based on predefined export code criteria
• The system determines if the code represents an FDA condition based on predefined FDA code criteria
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code is classified as a hold code.
Trigger Criteria:
Context: A disposition code is classified as a hold code
Applied to: Set Hold Flag
Action: The hold code is processed
Logic Flow:
IF A disposition code is classified as a hold code
AND The hold code is processed
THEN:
• The cargo hold flag is set to true
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when hold disposition code has been identified.
Trigger Criteria:
Context: A hold disposition code has been identified
Applied to: Determine Hold Location
Action: The system evaluates the hold location criteria
Logic Flow:
IF A hold disposition code has been identified
AND The system evaluates the hold location criteria
THEN:
• The hold is classified as either border hold or destination hold based on location indicators
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when hold disposition code has been identified.
Trigger Criteria:
Context: A hold disposition code has been identified
Applied to: Border or Destination Hold?
Action: The system evaluates the hold location
Logic Flow:
IF A hold disposition code has been identified
AND The system evaluates the hold location
THEN:
• The hold is classified as either border hold or destination hold based on the disposition code characteristics
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when hold disposition code applies to border location.
Trigger Criteria:
Context: A hold disposition code applies to border location
Applied to: Set Border Hold Flag
Action: The border hold condition is identified
Logic Flow:
IF A hold disposition code applies to border location
AND The border hold condition is identified
THEN:
• The border hold flag is set to true
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when hold disposition code applies to destination location.
Trigger Criteria:
Context: A hold disposition code applies to destination location
Applied to: Set Destination Hold Flag
Action: The destination hold condition is identified
Logic Flow:
IF A hold disposition code applies to destination location
AND The destination hold condition is identified
THEN:
• The destination hold flag is set to true
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code is classified as a release code.
Trigger Criteria:
Context: A disposition code is classified as a release code
Applied to: Set Release Flag
Action: The release code is processed
Logic Flow:
IF A disposition code is classified as a release code
AND The release code is processed
THEN:
• The cargo release flag is set to true and the release quantity is updated based on the disposition code quantity
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code is classified as a ptt code.
Trigger Criteria:
Context: A disposition code is classified as a PTT code
Applied to: Set PTT Flag
Action: The PTT code is processed
Logic Flow:
IF A disposition code is classified as a PTT code
AND The PTT code is processed
THEN:
• The cargo PTT flag is set to true and the PTT quantity is saved from the disposition code
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code is classified as a proceed code.
Trigger Criteria:
Context: A disposition code is classified as a proceed code
Applied to: Set Proceed Flag
Action: The proceed code is processed
Logic Flow:
IF A disposition code is classified as a proceed code
AND The proceed code is processed
THEN:
• The cargo proceed flag is set to true and the border arrival date is established
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code is classified as an arrival code.
Trigger Criteria:
Context: A disposition code is classified as an arrival code
Applied to: Set Arrival Flag
Action: The arrival code is processed
Logic Flow:
IF A disposition code is classified as an arrival code
AND The arrival code is processed
THEN:
• The cargo arrival flag is set to true
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code is classified as an export code.
Trigger Criteria:
Context: A disposition code is classified as an export code
Applied to: Set Export Flag
Action: The export code is processed
Logic Flow:
IF A disposition code is classified as an export code
AND The export code is processed
THEN:
• The cargo export flag is set to true
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code is classified as an fda code.
Trigger Criteria:
Context: A disposition code is classified as an FDA code
Applied to: Set FDA Hold Flag
Action: The FDA code is processed
Logic Flow:
IF A disposition code is classified as an FDA code
AND The FDA code is processed
THEN:
• The cargo FDA hold flag is set to true
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when all status array elements have been processed and flags are set.
Trigger Criteria:
Context: All status array elements have been processed and flags are set
Applied to: Analyze Combined Flags
Action: The system evaluates combined flag states
Logic Flow:
IF All status array elements have been processed and flags are set
AND The system evaluates combined flag states
THEN:
• The system determines if both hold and release conditions exist simultaneously
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when ptt flag is set and ptt quantity is available.
Trigger Criteria:
Context: PTT flag is set and PTT quantity is available
Applied to: Analyze Combined Flags
Action: The system validates PTT quantity criteria
Logic Flow:
IF PTT flag is set and PTT quantity is available
AND The system validates PTT quantity criteria
THEN:
• The system determines if the PTT quantity is valid and meets threshold requirements
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when release flag is set and release quantity is available.
Trigger Criteria:
Context: Release flag is set and release quantity is available
Applied to: Analyze Combined Flags
Action: The system compares release quantity to total cargo quantity
Logic Flow:
IF Release flag is set and release quantity is available
AND The system compares release quantity to total cargo quantity
THEN:
• The system determines if the release is partial (release quantity less than total quantity) or complete
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when hold flags have been set during status array analysis.
Trigger Criteria:
Context: Hold flags have been set during status array analysis
Applied to: Set Final Hold Status
Action: The system determines final cargo state
Logic Flow:
IF Hold flags have been set during status array analysis
AND The system determines final cargo state
THEN:
• The final hold status is established considering border holds, destination holds, and other hold conditions
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when release flags and quantities have been determined during status array analysis.
Trigger Criteria:
Context: Release flags and quantities have been determined during status array analysis
Applied to: Set Final Release Status
Action: The system determines final cargo state
Logic Flow:
IF Release flags and quantities have been determined during status array analysis
AND The system determines final cargo state
THEN:
• The final release status is established considering full release, partial release, and release quantities
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when ptt flags and quantities have been validated during status array analysis.
Trigger Criteria:
Context: PTT flags and quantities have been validated during status array analysis
Applied to: Set Final PTT Status
Action: The system determines final cargo state
Logic Flow:
IF PTT flags and quantities have been validated during status array analysis
AND The system determines final cargo state
THEN:
• The final PTT status is established if PTT quantity meets threshold requirements
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when release quantity is less than total cargo quantity.
Trigger Criteria:
Context: Release quantity is less than total cargo quantity
Applied to: Set Partial Release Status
Action: The system determines final cargo state
Logic Flow:
IF Release quantity is less than total cargo quantity
AND The system determines final cargo state
THEN:
• The partial release status is set to indicate incomplete release of cargo
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when all individual status flags have been set and analyzed.
Trigger Criteria:
Context: All individual status flags have been set and analyzed
Applied to: Determine Final Cargo State
Action: The system consolidates all status information
Logic Flow:
IF All individual status flags have been set and analyzed
AND The system consolidates all status information
THEN:
• The final cargo state is determined considering the priority and combination of hold, release, PTT, proceed, arrival, export, and FDA conditions
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when s09a status array contains status entries for a cargo record.
Trigger Criteria:
Context: The S09A status array contains status entries for a cargo record
Applied to: Scan S09A Status Array
Action: Status analysis is performed
Logic Flow:
IF The S09A status array contains status entries for a cargo record
AND Status analysis is performed
THEN:
• Each array element is examined sequentially until all elements are processed
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when status code is found in the s09a array.
Trigger Criteria:
Context: A status code is found in the S09A array
Applied to: Evaluate Disposition Code Type
Action: The system evaluates the disposition code
Logic Flow:
IF A status code is found in the S09A array
AND The system evaluates the disposition code
THEN:
• The code is classified as hold, release, PTT, proceed, arrival, export, or FDA hold type
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code is being evaluated from the status array.
Trigger Criteria:
Context: A disposition code is being evaluated from the status array
Applied to: Hold Code?
Action: The code is checked against hold code criteria
Logic Flow:
IF A disposition code is being evaluated from the status array
AND The code is checked against hold code criteria
THEN:
• The system determines if the code represents a hold condition and sets the hold status flag accordingly
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code is being evaluated from the status array.
Trigger Criteria:
Context: A disposition code is being evaluated from the status array
Applied to: Release Code?
Action: The code is checked against release code criteria
Logic Flow:
IF A disposition code is being evaluated from the status array
AND The code is checked against release code criteria
THEN:
• The system determines if the code represents a release condition and sets the release status flag accordingly
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code is being evaluated from the status array.
Trigger Criteria:
Context: A disposition code is being evaluated from the status array
Applied to: PTT Code?
Action: The code is checked against PTT code criteria
Logic Flow:
IF A disposition code is being evaluated from the status array
AND The code is checked against PTT code criteria
THEN:
• The system determines if the code represents a PTT condition and sets the PTT status flag accordingly
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code is being evaluated from the status array.
Trigger Criteria:
Context: A disposition code is being evaluated from the status array
Applied to: Proceed Code?
Action: The code is checked against proceed code criteria
Logic Flow:
IF A disposition code is being evaluated from the status array
AND The code is checked against proceed code criteria
THEN:
• The system determines if the code represents a proceed condition and sets the proceed status flag accordingly
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code is being evaluated from the status array.
Trigger Criteria:
Context: A disposition code is being evaluated from the status array
Applied to: Arrival Code?
Action: The code is checked against arrival code criteria
Logic Flow:
IF A disposition code is being evaluated from the status array
AND The code is checked against arrival code criteria
THEN:
• The system determines if the code represents an arrival condition and sets the arrival status flag accordingly
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code is being evaluated from the status array.
Trigger Criteria:
Context: A disposition code is being evaluated from the status array
Applied to: Export Code?
Action: The code is checked against export code criteria
Logic Flow:
IF A disposition code is being evaluated from the status array
AND The code is checked against export code criteria
THEN:
• The system determines if the code represents an export condition and sets the export status flag accordingly
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code is being evaluated from the status array.
Trigger Criteria:
Context: A disposition code is being evaluated from the status array
Applied to: FDA Hold Code?
Action: The code is checked against FDA hold code criteria
Logic Flow:
IF A disposition code is being evaluated from the status array
AND The code is checked against FDA hold code criteria
THEN:
• The system determines if the code represents an FDA hold condition and sets the FDA hold status flag accordingly
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code indicates a border hold condition.
Trigger Criteria:
Context: A disposition code indicates a border hold condition
Applied to: Set Border Hold Flag
Action: The hold location is determined to be at the border
Logic Flow:
IF A disposition code indicates a border hold condition
AND The hold location is determined to be at the border
THEN:
• The border hold status flag is set to true
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code indicates a destination hold condition.
Trigger Criteria:
Context: A disposition code indicates a destination hold condition
Applied to: Set Destination Hold Flag
Action: The hold location is determined to be at the destination
Logic Flow:
IF A disposition code indicates a destination hold condition
AND The hold location is determined to be at the destination
THEN:
• The destination hold status flag is set to true
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when release disposition code has been identified.
Trigger Criteria:
Context: A release disposition code has been identified
Applied to: Set Release Status Flag
Action: The release status is processed
Logic Flow:
IF A release disposition code has been identified
AND The release status is processed
THEN:
• The release status flag is set to true and the released quantity is added to the total released quantity counter
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when ptt disposition code has been identified.
Trigger Criteria:
Context: A PTT disposition code has been identified
Applied to: Set PTT Status Flag
Action: The PTT status is processed
Logic Flow:
IF A PTT disposition code has been identified
AND The PTT status is processed
THEN:
• The PTT status flag is set to true and the PTT quantity is validated against cargo requirements
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when proceed disposition code has been identified.
Trigger Criteria:
Context: A proceed disposition code has been identified
Applied to: Set Proceed Status Flag
Action: The proceed status is processed
Logic Flow:
IF A proceed disposition code has been identified
AND The proceed status is processed
THEN:
• The proceed status flag is set to true and the border arrival date is recorded for tracking purposes
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when arrival disposition code has been identified.
Trigger Criteria:
Context: An arrival disposition code has been identified
Applied to: Set Arrival Status Flag
Action: The arrival status is processed
Logic Flow:
IF An arrival disposition code has been identified
AND The arrival status is processed
THEN:
• The arrival status flag is set to true to indicate cargo has reached its destination
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when export disposition code has been identified.
Trigger Criteria:
Context: An export disposition code has been identified
Applied to: Set Export Status Flag
Action: The export status is processed
Logic Flow:
IF An export disposition code has been identified
AND The export status is processed
THEN:
• The export status flag is set to true to indicate cargo is being exported
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when fda hold disposition code has been identified.
Trigger Criteria:
Context: An FDA hold disposition code has been identified
Applied to: Set FDA Hold at Destination
Action: The FDA hold status is processed
Logic Flow:
IF An FDA hold disposition code has been identified
AND The FDA hold status is processed
THEN:
• The FDA hold at destination flag is set to true to indicate regulatory hold requirements
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when all status flags have been analyzed from the s09a array.
Trigger Criteria:
Context: All status flags have been analyzed from the S09A array
Applied to: Determine Final Cargo Status
Action: The final cargo status needs to be determined
Logic Flow:
IF All status flags have been analyzed from the S09A array
AND The final cargo status needs to be determined
THEN:
• The system applies priority logic where hold statuses take precedence over release statuses, and specific hold types are prioritized based on business rules
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when status analysis shows cargo has active border hold conditions.
Trigger Criteria:
Context: Status analysis shows cargo has active border hold conditions
Applied to: Hold at Border
Action: Final status determination is performed
Logic Flow:
IF Status analysis shows cargo has active border hold conditions
AND Final status determination is performed
THEN:
• The cargo status is set to 'Hold at Border' and appropriate status codes are applied
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when status analysis shows cargo has active destination hold conditions and no border holds.
Trigger Criteria:
Context: Status analysis shows cargo has active destination hold conditions and no border holds
Applied to: Hold at Destination
Action: Final status determination is performed
Logic Flow:
IF Status analysis shows cargo has active destination hold conditions and no border holds
AND Final status determination is performed
THEN:
• The cargo status is set to 'Hold at Destination' and appropriate status codes are applied
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when status analysis shows cargo has no active hold conditions and has release authorization.
Trigger Criteria:
Context: Status analysis shows cargo has no active hold conditions and has release authorization
Applied to: Released
Action: Final status determination is performed
Logic Flow:
IF Status analysis shows cargo has no active hold conditions and has release authorization
AND Final status determination is performed
THEN:
• The cargo status is set to 'Released' and cargo is authorized for movement
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when status analysis shows cargo has active ptt conditions with no holds or releases.
Trigger Criteria:
Context: Status analysis shows cargo has active PTT conditions with no holds or releases
Applied to: PTT
Action: Final status determination is performed
Logic Flow:
IF Status analysis shows cargo has active PTT conditions with no holds or releases
AND Final status determination is performed
THEN:
• The cargo status is set to 'PTT' (Proceed to Transfer) for continued processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when status analysis shows cargo has active proceed conditions with no holds, releases, or ptt status.
Trigger Criteria:
Context: Status analysis shows cargo has active proceed conditions with no holds, releases, or PTT status
Applied to: Proceed
Action: Final status determination is performed
Logic Flow:
IF Status analysis shows cargo has active proceed conditions with no holds, releases, or PTT status
AND Final status determination is performed
THEN:
• The cargo status is set to 'Proceed' allowing cargo movement to continue
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when status analysis shows cargo has active arrival or export conditions with no holds, releases, ptt, or proceed status.
Trigger Criteria:
Context: Status analysis shows cargo has active arrival or export conditions with no holds, releases, PTT, or proceed status
Applied to: Arrived/Export
Action: Final status determination is performed
Logic Flow:
IF Status analysis shows cargo has active arrival or export conditions with no holds, releases, PTT, or proceed status
AND Final status determination is performed
THEN:
• The cargo status is set to either 'Arrived' or 'Export' based on the specific condition identified
R-GCX016-cbl-04115 (+13)File: GCX016.cblBusiness Rule: Complex Cargo Status Logic
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record exists with manual release flag set.
Trigger Criteria:
Context: A cargo record exists with manual release flag set
Applied to: Manual Release Processing
Action: The system processes cargo status determination
Logic Flow:
IF A cargo record exists with manual release flag set
AND The system processes cargo status determination
THEN:
• The system clears the destination index and processes Canadian manifest coordination
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record exists and fda hold conditions are detected at destination.
Trigger Criteria:
Context: A cargo record exists and FDA hold conditions are detected at destination
Applied to: FDA Hold Status Processing
Action: The system evaluates cargo status requirements
Logic Flow:
IF A cargo record exists and FDA hold conditions are detected at destination
AND The system evaluates cargo status requirements
THEN:
• The system sets FDA hold status with specific FDA codes
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record exists with quantity information and ptt status requirements.
Trigger Criteria:
Context: A cargo record exists with quantity information and PTT status requirements
Applied to: PTT Status Management
Action: The system determines if PTT status is required
Logic Flow:
IF A cargo record exists with quantity information and PTT status requirements
AND The system determines if PTT status is required
THEN:
• The system validates PTT quantities and saves or restores PTT status accordingly
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record exists with released quantity less than total quantity.
Trigger Criteria:
Context: A cargo record exists with released quantity less than total quantity
Applied to: Partial Release Hold Processing
Action: The system evaluates partial release conditions
Logic Flow:
IF A cargo record exists with released quantity less than total quantity
AND The system evaluates partial release conditions
THEN:
• The system sets hold on piece counts status
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record exists with released quantity equal to or greater than total quantity.
Trigger Criteria:
Context: A cargo record exists with released quantity equal to or greater than total quantity
Applied to: Full Release Processing
Action: The system evaluates full release conditions
Logic Flow:
IF A cargo record exists with released quantity equal to or greater than total quantity
AND The system evaluates full release conditions
THEN:
• The system clears destination index and matches released versus total quantities
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record exists that was previously released but now shows unreleased status.
Trigger Criteria:
Context: A cargo record exists that was previously released but now shows unreleased status
Applied to: Cargo Unrelease Detection
Action: The system compares current status with previous release status
Logic Flow:
IF A cargo record exists that was previously released but now shows unreleased status
AND The system compares current status with previous release status
THEN:
• The system generates unrelease notifications
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record exists with status changes that require destination index updates.
Trigger Criteria:
Context: A cargo record exists with status changes that require destination index updates
Applied to: Destination Index Re-establishment
Action: The system determines index update is required
Logic Flow:
IF A cargo record exists with status changes that require destination index updates
AND The system determines index update is required
THEN:
• The system updates RT076 destination index and manages bond dates for arrival or export
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record exists with bond start dates requiring age calculation.
Trigger Criteria:
Context: A cargo record exists with bond start dates requiring age calculation
Applied to: Age Calculation for Cargo
Action: The system determines age calculation is required
Logic Flow:
IF A cargo record exists with bond start dates requiring age calculation
AND The system determines age calculation is required
THEN:
• The system converts Julian dates for bond start dates to calculate cargo age
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record exists with status changes requiring integration service calls. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: A cargo record exists with status changes requiring integration service calls
Applied to: Cargo Record Integration Service Calls
Action: The system determines integration service call is required
Logic Flow:
IF A cargo record exists with status changes requiring integration service calls
AND The system determines integration service call is required
THEN:
• The system calls GCCIIS for hold or release notifications and sends status change notifications
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when multiple cargo records exist with the same car id and waybill combination.
Trigger Criteria:
Context: Multiple cargo records exist with the same car ID and waybill combination
Applied to: Multi-cargo Release Verification
Action: The system needs to verify multi-cargo release status
Logic Flow:
IF Multiple cargo records exist with the same car ID and waybill combination
AND The system needs to verify multi-cargo release status
THEN:
• The system verifies all cargo with same car ID and waybill and checks release eligibility
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record exists with conditions requiring release message generation.
Trigger Criteria:
Context: A cargo record exists with conditions requiring release message generation
Applied to: Release Message Generation
Action: The system determines release message should be generated
Logic Flow:
IF A cargo record exists with conditions requiring release message generation
AND The system determines release message should be generated
THEN:
• The system creates detailed release messages including cargo status and quantities
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record exists with conditions requiring export message generation.
Trigger Criteria:
Context: A cargo record exists with conditions requiring export message generation
Applied to: Export Message Generation
Action: The system determines export message is required
Logic Flow:
IF A cargo record exists with conditions requiring export message generation
AND The system determines export message is required
THEN:
• The system generates USCS export operations message and handles export cancellation scenarios
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record exists with conditions requiring arrival message generation.
Trigger Criteria:
Context: A cargo record exists with conditions requiring arrival message generation
Applied to: Arrival Message Generation
Action: The system determines arrival message is required
Logic Flow:
IF A cargo record exists with conditions requiring arrival message generation
AND The system determines arrival message is required
THEN:
• The system generates USCS arrival operations message and handles arrival cancellation scenarios
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record exists that has completed complex status logic processing.
Trigger Criteria:
Context: A cargo record exists that has completed complex status logic processing
Applied to: Cargo Status Preservation
Action: The system reaches the end of complex status determination
Logic Flow:
IF A cargo record exists that has completed complex status logic processing
AND The system reaches the end of complex status determination
THEN:
• The system saves current status information to preserve cargo state
Business Justification: Governs the functional prerequisites and system routing when cargo shipment is being processed with a specific port code.
Trigger Criteria:
Context: A cargo shipment is being processed with a specific port code
Applied to: Is Port Code = LRD Laredo?
Action: The system checks if the port code equals 'LRD' (Laredo)
Logic Flow:
IF A cargo shipment is being processed with a specific port code
AND The system checks if the port code equals 'LRD' (Laredo)
THEN:
• The system proceeds to KCSM disposition code validation if port is Laredo, otherwise skips KCSM processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code from the x4 segment and access to the aecwrktb configuration table.
Trigger Criteria:
Context: A disposition code from the X4 segment and access to the AECWRKTB configuration table
Applied to: Search for Disposition Code in KCSM Configuration
Action: The system searches for the disposition code in the KCSM configuration data
Logic Flow:
IF A disposition code from the X4 segment and access to the AECWRKTB configuration table
AND The system searches for the disposition code in the KCSM configuration data
THEN:
• The system retrieves the KCSM configuration status for the disposition code
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code lookup result from the aecwrktb table.
Trigger Criteria:
Context: A disposition code lookup result from the AECWRKTB table
Applied to: Disposition Code Found in KCSM Table?
Action: The disposition code is found in the KCSM configuration table
Logic Flow:
IF A disposition code lookup result from the AECWRKTB table
AND The disposition code is found in the KCSM configuration table
THEN:
• The system sets the KCSM processing flag to TRUE, otherwise sets it to FALSE
R-GCX016-cbl-04132 (+12)File: GCX016.cblBusiness Rule: EDI Message Copying
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when edi 350 message with a disposition code is being processed.
Trigger Criteria:
Context: An EDI 350 message with a disposition code is being processed
Applied to: Check Disposition Code for KCSM Processing
Action: The system checks the disposition code against KCSM processing requirements
Logic Flow:
IF An EDI 350 message with a disposition code is being processed
AND The system checks the disposition code against KCSM processing requirements
THEN:
• The system determines whether KCSM transmission is required for this message
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when message requires kcsm processing based on disposition code.
Trigger Criteria:
Context: A message requires KCSM processing based on disposition code
Applied to: Validate Port is Laredo
Action: The system validates the port location
Logic Flow:
IF A message requires KCSM processing based on disposition code
AND The system validates the port location
THEN:
• The system confirms the port is Laredo before allowing KCSM transmission
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code and port validation checks have been completed.
Trigger Criteria:
Context: Disposition code and port validation checks have been completed
Applied to: KCSM Processing Required?
Action: The system evaluates all KCSM processing criteria
Logic Flow:
IF Disposition code and port validation checks have been completed
AND The system evaluates all KCSM processing criteria
THEN:
• The system either proceeds with KCSM processing or skips it based on the validation results
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when kcsm processing is required for the current message.
Trigger Criteria:
Context: KCSM processing is required for the current message
Applied to: Initialize KCSM Transmission File
Action: The system begins KCSM transmission preparation
Logic Flow:
IF KCSM processing is required for the current message
AND The system begins KCSM transmission preparation
THEN:
• The system initializes the KCSM transmission file with proper structure and parameters
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when kcsm transmission file is initialized. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: KCSM transmission file is initialized
Applied to: Copy Original EDI 350 Message Segments
Action: The system processes the original EDI 350 message
Logic Flow:
IF KCSM transmission file is initialized
AND The system processes the original EDI 350 message
THEN:
• The system copies all required message segments to the KCSM transmission structure
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when original edi message segments have been copied.
Trigger Criteria:
Context: Original EDI message segments have been copied
Applied to: Create Transmission Root Segment
Action: The system creates the transmission structure
Logic Flow:
IF Original EDI message segments have been copied
AND The system creates the transmission structure
THEN:
• The system creates a transmission root segment (A9RT) with proper identification and control information
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when transmission root segment has been created.
Trigger Criteria:
Context: Transmission root segment has been created
Applied to: Create Transmission Dependent Segments
Action: The system builds the complete transmission structure
Logic Flow:
IF Transmission root segment has been created
AND The system builds the complete transmission structure
THEN:
• The system creates transmission dependent segments (A9DP) linked to the root segment
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when transmission segments have been created.
Trigger Criteria:
Context: Transmission segments have been created
Applied to: Format EDI Data for KCSM System
Action: The system prepares data for KCSM transmission
Logic Flow:
IF Transmission segments have been created
AND The system prepares data for KCSM transmission
THEN:
• The system formats all EDI data according to KCSM system specifications and requirements
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when edi data has been formatted for kcsm system.
Trigger Criteria:
Context: EDI data has been formatted for KCSM system
Applied to: Write Message to KCSM Queue
Action: The system is ready to transmit the message
Logic Flow:
IF EDI data has been formatted for KCSM system
AND The system is ready to transmit the message
THEN:
• The system writes the formatted message to the KCSM message queue for processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when message has been written to kcsm queue.
Trigger Criteria:
Context: Message has been written to KCSM queue
Applied to: Update Transmission Parameters
Action: The system completes the transmission preparation
Logic Flow:
IF Message has been written to KCSM queue
AND The system completes the transmission preparation
THEN:
• The system updates transmission parameters including timestamps, sequence numbers, and control information
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when transmission parameters have been updated.
Trigger Criteria:
Context: Transmission parameters have been updated
Applied to: Log KCSM Transmission Details
Action: The system completes KCSM message preparation
Logic Flow:
IF Transmission parameters have been updated
AND The system completes KCSM message preparation
THEN:
• The system logs transmission details including message ID, timestamp, disposition code, and transmission status
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when kcsm transmission details have been logged.
Trigger Criteria:
Context: KCSM transmission details have been logged
Applied to: Spawn KCSM Integration Transaction
Action: The system is ready to initiate KCSM integration
Logic Flow:
IF KCSM transmission details have been logged
AND The system is ready to initiate KCSM integration
THEN:
• The system spawns a KCSM integration transaction to handle the actual transmission and processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when kcsm processing validation has been completed.
Trigger Criteria:
Context: KCSM processing validation has been completed
Applied to: Skip KCSM Processing
Action: The validation criteria indicate KCSM processing is not required
Logic Flow:
IF KCSM processing validation has been completed
AND The validation criteria indicate KCSM processing is not required
THEN:
• The system skips all KCSM processing steps and continues with normal message processing
Business Justification: Dictates the expected operational logic and validation steps when disposition code is received from x4 segment.
Trigger Criteria:
Context: A disposition code is received from X4 segment
Applied to: Query AECWRKTB DB2 Table
Action: The system searches AECWRKTB table for the disposition code configuration
Logic Flow:
IF A disposition code is received from X4 segment
AND The system searches AECWRKTB table for the disposition code configuration
THEN:
• The system returns whether KCSM processing is required for this disposition code
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code is received from x4 segment.
Trigger Criteria:
Context: A disposition code is received from X4 segment
Applied to: Format Search Key with Disposition Code
Action: The system prepares to search AECWRKTB table
Logic Flow:
IF A disposition code is received from X4 segment
AND The system prepares to search AECWRKTB table
THEN:
• The disposition code is formatted into the proper search key structure for table lookup
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code search is performed in aecwrktb table.
Trigger Criteria:
Context: A disposition code search is performed in AECWRKTB table
Applied to: Set KCSM Processing Flag = YES
Action: The disposition code is found in the AECWRKTB configuration table
Logic Flow:
IF A disposition code search is performed in AECWRKTB table
AND The disposition code is found in the AECWRKTB configuration table
THEN:
• The KCSM processing flag is set to YES to enable special KCSM processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code search is performed in aecwrktb table.
Trigger Criteria:
Context: A disposition code search is performed in AECWRKTB table
Applied to: Set KCSM Processing Flag = NO
Action: The disposition code is not found in the AECWRKTB configuration table
Logic Flow:
IF A disposition code search is performed in AECWRKTB table
AND The disposition code is not found in the AECWRKTB configuration table
THEN:
• The KCSM processing flag is set to NO to disable KCSM processing
R-GCX016-cbl-04149 (+19)File: GCX016.cblBusiness Rule: EDI 350 Message Copy Creation
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when edi 350 message with a disposition code is being processed.
Trigger Criteria:
Context: An EDI 350 message with a disposition code is being processed
Applied to: Check if KCSM Processing Required
Action: The system checks the AECWRKTB KCSM configuration table for the disposition code
Logic Flow:
IF An EDI 350 message with a disposition code is being processed
AND The system checks the AECWRKTB KCSM configuration table for the disposition code
THEN:
• The system determines if KCSM processing is required based on the configuration entry
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code from the edi 350 message. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: A disposition code from the EDI 350 message
Applied to: Disposition Code Configured for KCSM?
Action: The system looks up the disposition code in the KCSM configuration table
Logic Flow:
IF A disposition code from the EDI 350 message
AND The system looks up the disposition code in the KCSM configuration table
THEN:
• If the disposition code is found and marked for KCSM processing, proceed with EDI message copy creation, otherwise skip KCSM processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when kcsm processing is required for the current message. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: KCSM processing is required for the current message
Applied to: Initialize EDI Message Copy Variables
Action: The system begins EDI message copy creation process
Logic Flow:
IF KCSM processing is required for the current message
AND The system begins EDI message copy creation process
THEN:
• All EDI message copy variables, counters, and data structures are initialized to their default values
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when original edi 350 message with header information. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: An original EDI 350 message with header information
Applied to: Copy Original EDI Message Header
Action: The system creates a copy for KCSM transmission
Logic Flow:
IF An original EDI 350 message with header information
AND The system creates a copy for KCSM transmission
THEN:
• The original message header data is copied exactly to the transmission copy maintaining all header fields and values
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when edi 350 message with st transaction set header segment.
Trigger Criteria:
Context: An EDI 350 message with ST transaction set header segment
Applied to: Process ST Transaction Set Header
Action: The system processes the message for KCSM transmission
Logic Flow:
IF An EDI 350 message with ST transaction set header segment
AND The system processes the message for KCSM transmission
THEN:
• The ST segment is copied to the transmission file with proper formatting and sequence control
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when edi 350 message with m10 manifest information segment. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: An EDI 350 message with M10 manifest information segment
Applied to: Copy M10 Manifest Information Segment
Action: The system creates KCSM transmission copy
Logic Flow:
IF An EDI 350 message with M10 manifest information segment
AND The system creates KCSM transmission copy
THEN:
• The M10 segment with all manifest information is copied to the transmission file
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when edi 350 message with p4 port information segment. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: An EDI 350 message with P4 port information segment
Applied to: Copy P4 Port Information Segment
Action: The system creates KCSM transmission copy
Logic Flow:
IF An EDI 350 message with P4 port information segment
AND The system creates KCSM transmission copy
THEN:
• The P4 segment with all port information is copied to the transmission file
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when edi 350 message with v9 event detail segment. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: An EDI 350 message with V9 event detail segment
Applied to: Copy V9 Event Detail Segment
Action: The system creates KCSM transmission copy
Logic Flow:
IF An EDI 350 message with V9 event detail segment
AND The system creates KCSM transmission copy
THEN:
• The V9 segment with all event detail information is copied to the transmission file
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when edi 350 message being processed for kcsm transmission.
Trigger Criteria:
Context: An EDI 350 message being processed for KCSM transmission
Applied to: VID Equipment Segments Present?
Action: The system evaluates the message structure for VID segments
Logic Flow:
IF An EDI 350 message being processed for KCSM transmission
AND The system evaluates the message structure for VID segments
THEN:
• If VID equipment segments are present, they are processed and copied, otherwise the system continues to the next segment type
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when edi 350 message with vid equipment information segments. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: An EDI 350 message with VID equipment information segments
Applied to: Copy VID Equipment Information
Action: The system processes VID segments for KCSM transmission
Logic Flow:
IF An EDI 350 message with VID equipment information segments
AND The system processes VID segments for KCSM transmission
THEN:
• All VID equipment information is copied to the transmission file maintaining equipment details and relationships
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when edi 350 message with k1 remarks segments. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: An EDI 350 message with K1 remarks segments
Applied to: Copy K1 Remarks Segments
Action: The system creates KCSM transmission copy
Logic Flow:
IF An EDI 350 message with K1 remarks segments
AND The system creates KCSM transmission copy
THEN:
• All K1 remarks segments with their associated information are copied to the transmission file
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when edi 350 message with x4 customs release information segment. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: An EDI 350 message with X4 customs release information segment
Applied to: Copy X4 Customs Release Information
Action: The system creates KCSM transmission copy
Logic Flow:
IF An EDI 350 message with X4 customs release information segment
AND The system creates KCSM transmission copy
THEN:
• The X4 segment with all customs release information including disposition codes is copied to the transmission file
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when edi 350 message with n7 equipment details segment. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: An EDI 350 message with N7 equipment details segment
Applied to: Copy N7 Equipment Details
Action: The system creates KCSM transmission copy
Logic Flow:
IF An EDI 350 message with N7 equipment details segment
AND The system creates KCSM transmission copy
THEN:
• The N7 segment with all equipment details and specifications is copied to the transmission file
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when edi 350 message with se transaction set trailer segment. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: An EDI 350 message with SE transaction set trailer segment
Applied to: Copy SE Transaction Set Trailer
Action: The system completes KCSM transmission copy creation
Logic Flow:
IF An EDI 350 message with SE transaction set trailer segment
AND The system completes KCSM transmission copy creation
THEN:
• The SE trailer segment is copied to the transmission file with proper segment count and control number
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when all edi message segments have been copied for kcsm transmission.
Trigger Criteria:
Context: All EDI message segments have been copied for KCSM transmission
Applied to: Format Message for KCSM Transmission
Action: The system formats the message for KCSM transmission
Logic Flow:
IF All EDI message segments have been copied for KCSM transmission
AND The system formats the message for KCSM transmission
THEN:
• The message is formatted according to KCSM specifications with proper delimiters, segment terminators, and transmission structure
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when formatted edi message ready for kcsm transmission.
Trigger Criteria:
Context: A formatted EDI message ready for KCSM transmission
Applied to: Create Transmission Root Segment
Action: The system creates transmission control structures
Logic Flow:
IF A formatted EDI message ready for KCSM transmission
AND The system creates transmission control structures
THEN:
• A transmission root segment (A9RT) is created with proper control information, sequence numbers, and transmission identifiers
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when transmission root segment and formatted edi message data.
Trigger Criteria:
Context: A transmission root segment and formatted EDI message data
Applied to: Create Transmission Dependent Segments
Action: The system creates transmission dependent segments
Logic Flow:
IF A transmission root segment and formatted EDI message data
AND The system creates transmission dependent segments
THEN:
• Transmission dependent segments (A9DP) are created containing the EDI message data with proper linkage to the root segment
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when complete transmission root and dependent segments for kcsm message. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: Complete transmission root and dependent segments for KCSM message
Applied to: Store EDI Copy in Transmission File
Action: The system stores the EDI copy in the transmission file
Logic Flow:
IF Complete transmission root and dependent segments for KCSM message
AND The system stores the EDI copy in the transmission file
THEN:
• The EDI message copy is stored in the transmission file with proper indexing and control information for KCSM retrieval
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when edi message copy stored in the transmission file. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: An EDI message copy stored in the transmission file
Applied to: Mark Message Ready for KCSM Transmission
Action: The system completes the KCSM copy creation process
Logic Flow:
IF An EDI message copy stored in the transmission file
AND The system completes the KCSM copy creation process
THEN:
• The message is marked with appropriate status indicators showing it is ready for KCSM transmission
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when edi 350 message with a disposition code not configured for kcsm processing.
Trigger Criteria:
Context: An EDI 350 message with a disposition code not configured for KCSM processing
Applied to: Skip KCSM Processing
Action: The system checks KCSM configuration requirements
Logic Flow:
IF An EDI 350 message with a disposition code not configured for KCSM processing
AND The system checks KCSM configuration requirements
THEN:
• KCSM processing is skipped and the system continues with normal message processing without creating transmission copies
R-GCX016-cbl-04169 (+7)File: GCX016.cblBusiness Rule: Status Code Evaluation
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code of type arl (auto release) is being processed.
Trigger Criteria:
Context: A disposition code of type ARL (Auto Release) is being processed
Applied to: ARL Auto Release Code
Action: The system evaluates the disposition code type
Logic Flow:
IF A disposition code of type ARL (Auto Release) is being processed
AND The system evaluates the disposition code type
THEN:
• The auto release flag is set and the status array is re-evaluated to determine the final cargo release status
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code of type mrl (manual release) is being processed.
Trigger Criteria:
Context: A disposition code of type MRL (Manual Release) is being processed
Applied to: MRL Manual Release Code
Action: The system evaluates the disposition code type
Logic Flow:
IF A disposition code of type MRL (Manual Release) is being processed
AND The system evaluates the disposition code type
THEN:
• The manual release flag is set and CPRS manual release processing is initiated
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code of removal type is being processed.
Trigger Criteria:
Context: A disposition code of removal type is being processed
Applied to: Removal Code Type
Action: The system evaluates the disposition code type
Logic Flow:
IF A disposition code of removal type is being processed
AND The system evaluates the disposition code type
THEN:
• The removal flag is set, counterpart codes are removed from the status array, and the code is added to the status array
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code of hold type is being processed.
Trigger Criteria:
Context: A disposition code of hold type is being processed
Applied to: Hold Code Type
Action: The system evaluates the disposition code type
Logic Flow:
IF A disposition code of hold type is being processed
AND The system evaluates the disposition code type
THEN:
• The hold flag is set, location information is added, and the code is added to the status array
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code of release type is being processed.
Trigger Criteria:
Context: A disposition code of release type is being processed
Applied to: Release Code Type
Action: The system evaluates the disposition code type
Logic Flow:
IF A disposition code of release type is being processed
AND The system evaluates the disposition code type
THEN:
• The release flag is set, released status is applied, and the code is added to the status array
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code of status information type is being processed.
Trigger Criteria:
Context: A disposition code of status information type is being processed
Applied to: Status Information Code
Action: The system evaluates the disposition code type
Logic Flow:
IF A disposition code of status information type is being processed
AND The system evaluates the disposition code type
THEN:
• The information flag is set, status information is added, and the code is added to the status array
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when standard disposition code is being processed.
Trigger Criteria:
Context: A standard disposition code is being processed
Applied to: Standard Disposition Code
Action: The system evaluates the disposition code type
Logic Flow:
IF A standard disposition code is being processed
AND The system evaluates the disposition code type
THEN:
• The code is added directly to the status array without additional flag setting or special processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code needs to be added to the status array.
Trigger Criteria:
Context: A disposition code needs to be added to the status array
Applied to: Array Full?
Action: The system checks the array capacity
Logic Flow:
IF A disposition code needs to be added to the status array
AND The system checks the array capacity
THEN:
• If the array is full, the addition is skipped; if not full, the code is added to the array
R-GCX016-cbl-04177 (+18)File: GCX016.cblBusiness Rule: Final Status Determination
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo status array has been analyzed for hold conditions.
Trigger Criteria:
Context: Cargo status array has been analyzed for hold conditions
Applied to: Check Hold Location
Action: Hold status is present in the status array
Logic Flow:
IF Cargo status array has been analyzed for hold conditions
AND Hold status is present in the status array
THEN:
• System checks hold location and sets appropriate hold classification flag
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when hold status is detected in cargo status array.
Trigger Criteria:
Context: Hold status is detected in cargo status array
Applied to: Set Border Hold Status
Action: Hold location is classified as border hold
Logic Flow:
IF Hold status is detected in cargo status array
AND Hold location is classified as border hold
THEN:
• System sets border hold status flag for the cargo
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when hold status is detected in cargo status array.
Trigger Criteria:
Context: Hold status is detected in cargo status array
Applied to: Set Destination Hold Status
Action: Hold location is classified as destination hold
Logic Flow:
IF Hold status is detected in cargo status array
AND Hold location is classified as destination hold
THEN:
• System sets destination hold status flag for the cargo
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when release status is present in cargo status array.
Trigger Criteria:
Context: Release status is present in cargo status array
Applied to: Check Release Quantities
Action: Released quantity is greater than or equal to total cargo quantity
Logic Flow:
IF Release status is present in cargo status array
AND Released quantity is greater than or equal to total cargo quantity
THEN:
• System classifies as full release
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when release quantities have been validated.
Trigger Criteria:
Context: Release quantities have been validated
Applied to: Set Full Release Status
Action: Released quantity equals or exceeds total cargo quantity
Logic Flow:
IF Release quantities have been validated
AND Released quantity equals or exceeds total cargo quantity
THEN:
• System sets full release status flag for the cargo
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when release quantities have been validated.
Trigger Criteria:
Context: Release quantities have been validated
Applied to: Set Partial Release Status
Action: Released quantity is less than total cargo quantity
Logic Flow:
IF Release quantities have been validated
AND Released quantity is less than total cargo quantity
THEN:
• System sets partial release status flag for the cargo
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when ptt status is detected in cargo status array.
Trigger Criteria:
Context: PTT status is detected in cargo status array
Applied to: Validate PTT Quantities
Action: Cargo quantities meet or exceed PTT threshold requirements
Logic Flow:
IF PTT status is detected in cargo status array
AND Cargo quantities meet or exceed PTT threshold requirements
THEN:
• System validates PTT quantity eligibility
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when ptt quantities have been validated successfully.
Trigger Criteria:
Context: PTT quantities have been validated successfully
Applied to: Set PTT Status
Action: Cargo meets all PTT eligibility criteria
Logic Flow:
IF PTT quantities have been validated successfully
AND Cargo meets all PTT eligibility criteria
THEN:
• System sets PTT status flag for the cargo
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when proceed status is detected in cargo status array.
Trigger Criteria:
Context: Proceed status is detected in cargo status array
Applied to: Set Proceed with Border Date
Action: Cargo is eligible for proceed status
Logic Flow:
IF Proceed status is detected in cargo status array
AND Cargo is eligible for proceed status
THEN:
• System sets proceed status flag and assigns border arrival date
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when arrival status is detected in cargo status array.
Trigger Criteria:
Context: Arrival status is detected in cargo status array
Applied to: Set Arrival Status
Action: Cargo arrival conditions are met
Logic Flow:
IF Arrival status is detected in cargo status array
AND Cargo arrival conditions are met
THEN:
• System sets arrival status flag for the cargo
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when export status is detected in cargo status array.
Trigger Criteria:
Context: Export status is detected in cargo status array
Applied to: Set Export Status
Action: Cargo export conditions are met
Logic Flow:
IF Export status is detected in cargo status array
AND Cargo export conditions are met
THEN:
• System sets export status flag for the cargo
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when fda hold status is detected in cargo status array.
Trigger Criteria:
Context: FDA hold status is detected in cargo status array
Applied to: Set FDA Hold at Destination
Action: FDA regulatory hold is required at destination
Logic Flow:
IF FDA hold status is detected in cargo status array
AND FDA regulatory hold is required at destination
THEN:
• System sets FDA hold status flag at destination location
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when all status flags have been combined and analyzed.
Trigger Criteria:
Context: All status flags have been combined and analyzed
Applied to: Manual Release Required?
Action: Cargo conditions indicate manual intervention is required for release
Logic Flow:
IF All status flags have been combined and analyzed
AND Cargo conditions indicate manual intervention is required for release
THEN:
• System identifies manual release requirement
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when manual release requirement has been determined.
Trigger Criteria:
Context: Manual release requirement has been determined
Applied to: Set Manual Release Flag
Action: Cargo requires manual release processing
Logic Flow:
IF Manual release requirement has been determined
AND Cargo requires manual release processing
THEN:
• System sets manual release flag for the cargo
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when manual release processing has been evaluated.
Trigger Criteria:
Context: Manual release processing has been evaluated
Applied to: Unrelease Detected?
Action: System detects cargo has been unreleased from previous release status
Logic Flow:
IF Manual release processing has been evaluated
AND System detects cargo has been unreleased from previous release status
THEN:
• System identifies unrelease condition
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when unrelease condition has been detected.
Trigger Criteria:
Context: Unrelease condition has been detected
Applied to: Set Unrelease Status
Action: Cargo release status needs to be reversed
Logic Flow:
IF Unrelease condition has been detected
AND Cargo release status needs to be reversed
THEN:
• System sets unrelease status flag for the cargo
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when multiple status flags and conditions have been identified.
Trigger Criteria:
Context: Multiple status flags and conditions have been identified
Applied to: Apply Business Rules Priority
Action: Conflicting or multiple status conditions exist for the same cargo
Logic Flow:
IF Multiple status flags and conditions have been identified
AND Conflicting or multiple status conditions exist for the same cargo
THEN:
• System applies business rule priority hierarchy to determine final status precedence
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when all status conditions have been analyzed and business rule priorities applied.
Trigger Criteria:
Context: All status conditions have been analyzed and business rule priorities applied
Applied to: Set Final Cargo Status
Action: Final status determination is required
Logic Flow:
IF All status conditions have been analyzed and business rule priorities applied
AND Final status determination is required
THEN:
• System sets the definitive cargo status based on highest priority applicable condition
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when final cargo status has been determined.
Trigger Criteria:
Context: Final cargo status has been determined
Applied to: Update Cargo Record
Action: Cargo record update is required
Logic Flow:
IF Final cargo status has been determined
AND Cargo record update is required
THEN:
• System updates cargo record with final status, dates, and related status information
R-GCX016-cbl-04225 (+28)File: GCX016.cblBusiness Rule: PTT Status Management
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record is being processed for ptt status management.
Trigger Criteria:
Context: A cargo record is being processed for PTT status management
Applied to: Current Cargo Has PTT Status?
Action: The system checks the cargo's current status array for PTT indicators
Logic Flow:
IF A cargo record is being processed for PTT status management
AND The system checks the cargo's current status array for PTT indicators
THEN:
• The system identifies whether PTT status exists and proceeds with appropriate PTT processing or skips PTT management
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo has an active ptt status.
Trigger Criteria:
Context: The cargo has an active PTT status
Applied to: Save Current PTT Status
Action: PTT status management begins
Logic Flow:
IF The cargo has an active PTT status
AND PTT status management begins
THEN:
• The system saves the current PTT status details including quantities and status codes for potential restoration
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when ptt status information has been saved.
Trigger Criteria:
Context: PTT status information has been saved
Applied to: Validate PTT Quantities
Action: The system validates PTT quantities against business thresholds
Logic Flow:
IF PTT status information has been saved
AND The system validates PTT quantities against business thresholds
THEN:
• The system confirms PTT quantities are valid for continued processing or flags invalid quantities for correction
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when ptt quantities have been validated.
Trigger Criteria:
Context: PTT quantities have been validated
Applied to: Released Quantity < Total Quantity?
Action: The system compares released quantity to total quantity
Logic Flow:
IF PTT quantities have been validated
AND The system compares released quantity to total quantity
THEN:
• If released quantity is less than total quantity, maintain PTT status for partial release, otherwise proceed with full release processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when released quantity is less than total quantity indicating partial release.
Trigger Criteria:
Context: Released quantity is less than total quantity indicating partial release
Applied to: Maintain PTT Status
Action: The system processes PTT status maintenance
Logic Flow:
IF Released quantity is less than total quantity indicating partial release
AND The system processes PTT status maintenance
THEN:
• The system preserves PTT status and calculates remaining PTT quantities for future processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when ptt status is being maintained for partial release.
Trigger Criteria:
Context: PTT status is being maintained for partial release
Applied to: Calculate Remaining PTT Quantity
Action: The system calculates remaining PTT quantity by subtracting released quantity from total quantity
Logic Flow:
IF PTT status is being maintained for partial release
AND The system calculates remaining PTT quantity by subtracting released quantity from total quantity
THEN:
• The system determines the exact remaining quantity that requires continued PTT processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when remaining ptt quantity has been calculated.
Trigger Criteria:
Context: Remaining PTT quantity has been calculated
Applied to: PTT Quantity Valid?
Action: The system validates the calculated PTT quantity against business rules
Logic Flow:
IF Remaining PTT quantity has been calculated
AND The system validates the calculated PTT quantity against business rules
THEN:
• If PTT quantity is valid, update status array, otherwise restore previous PTT status
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when ptt quantity has been validated as acceptable.
Trigger Criteria:
Context: PTT quantity has been validated as acceptable
Applied to: Update PTT Status in Status Array
Action: The system updates the status array with PTT information
Logic Flow:
IF PTT quantity has been validated as acceptable
AND The system updates the status array with PTT information
THEN:
• The status array contains current PTT status with accurate remaining quantities for continued processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when released quantity equals or exceeds total quantity indicating full release.
Trigger Criteria:
Context: Released quantity equals or exceeds total quantity indicating full release
Applied to: Clear PTT Status - Full Release
Action: The system processes full release status
Logic Flow:
IF Released quantity equals or exceeds total quantity indicating full release
AND The system processes full release status
THEN:
• The system clears PTT status from the cargo record as PTT processing is complete
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when ptt quantity validation has failed or processing errors occurred.
Trigger Criteria:
Context: PTT quantity validation has failed or processing errors occurred
Applied to: Restore Previous PTT Status
Action: The system initiates PTT status restoration
Logic Flow:
IF PTT quantity validation has failed or processing errors occurred
AND The system initiates PTT status restoration
THEN:
• The system restores the previously saved PTT status information to maintain data integrity
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when ptt status processing has been completed (update, clear, or restore).
Trigger Criteria:
Context: PTT status processing has been completed (update, clear, or restore)
Applied to: PTT Status Change Required?
Action: The system evaluates if PTT status has changed from the original state
Logic Flow:
IF PTT status processing has been completed (update, clear, or restore)
AND The system evaluates if PTT status has changed from the original state
THEN:
• If PTT status has changed, proceed with logging, otherwise update cargo record directly
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when ptt status change has been identified as required.
Trigger Criteria:
Context: PTT status change has been identified as required
Applied to: Log PTT Status Change
Action: The system logs the PTT status change
Logic Flow:
IF PTT status change has been identified as required
AND The system logs the PTT status change
THEN:
• The system creates an audit record of the PTT status change with relevant details for compliance and tracking
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when ptt status processing is complete and any required logging has been performed.
Trigger Criteria:
Context: PTT status processing is complete and any required logging has been performed
Applied to: Update Cargo Record with PTT Status
Action: The system updates the cargo record with final PTT status
Logic Flow:
IF PTT status processing is complete and any required logging has been performed
AND The system updates the cargo record with final PTT status
THEN:
• The cargo record reflects the accurate PTT status and quantities for future business operations
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record is being processed for ptt status changes.
Trigger Criteria:
Context: A cargo record is being processed for PTT status changes
Applied to: Save Current PTT Status
Action: PTT status management begins
Logic Flow:
IF A cargo record is being processed for PTT status changes
AND PTT status management begins
THEN:
• The current PTT status and quantity information is saved for potential restoration
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record has a status array with multiple disposition codes.
Trigger Criteria:
Context: A cargo record has a status array with multiple disposition codes
Applied to: Analyze Status Array for PTT Codes
Action: The system analyzes the status array for PTT processing
Logic Flow:
IF A cargo record has a status array with multiple disposition codes
AND The system analyzes the status array for PTT processing
THEN:
• All PTT-related codes are identified and their positions in the array are noted
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when status array has been analyzed for ptt codes.
Trigger Criteria:
Context: The status array has been analyzed for PTT codes
Applied to: PTT Code Found?
Action: The system checks for PTT code existence
Logic Flow:
IF The status array has been analyzed for PTT codes
AND The system checks for PTT code existence
THEN:
• If PTT codes are found, proceed with PTT quantity extraction, otherwise restore previous status
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when ptt codes exist in the status array.
Trigger Criteria:
Context: PTT codes exist in the status array
Applied to: Extract PTT Quantity Information
Action: The system extracts PTT information
Logic Flow:
IF PTT codes exist in the status array
AND The system extracts PTT information
THEN:
• PTT quantity values are retrieved from the status array entries
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when ptt quantity information has been extracted from status array.
Trigger Criteria:
Context: PTT quantity information has been extracted from status array
Applied to: Validate PTT Quantity vs Released Quantity
Action: The system validates PTT quantities against released quantities
Logic Flow:
IF PTT quantity information has been extracted from status array
AND The system validates PTT quantities against released quantities
THEN:
• PTT quantities must be within acceptable ranges relative to released quantities
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when ptt quantity validation has been performed.
Trigger Criteria:
Context: PTT quantity validation has been performed
Applied to: Quantity Validation Passed?
Action: The system evaluates validation results
Logic Flow:
IF PTT quantity validation has been performed
AND The system evaluates validation results
THEN:
• If validation passes, set PTT status flag, otherwise generate PTT validation error
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when ptt quantity validation has passed successfully.
Trigger Criteria:
Context: PTT quantity validation has passed successfully
Applied to: Set PTT Status Flag
Action: The system sets PTT status
Logic Flow:
IF PTT quantity validation has passed successfully
AND The system sets PTT status
THEN:
• The PTT status flag is activated for the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when ptt status flag has been set.
Trigger Criteria:
Context: PTT status flag has been set
Applied to: Update PTT Quantity in Status Array
Action: The system updates PTT quantities
Logic Flow:
IF PTT status flag has been set
AND The system updates PTT quantities
THEN:
• The status array is updated with current PTT quantity values
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when ptt quantities have been updated in the status array.
Trigger Criteria:
Context: PTT quantities have been updated in the status array
Applied to: Partial Release Scenario?
Action: The system checks for partial release conditions
Logic Flow:
IF PTT quantities have been updated in the status array
AND The system checks for partial release conditions
THEN:
• If partial release is detected, preserve PTT status for remaining quantity, otherwise clear PTT status for released portion
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when partial release scenario has been detected.
Trigger Criteria:
Context: A partial release scenario has been detected
Applied to: Preserve PTT Status for Remaining Quantity
Action: The system processes PTT status for remaining quantity
Logic Flow:
IF A partial release scenario has been detected
AND The system processes PTT status for remaining quantity
THEN:
• PTT status is preserved for the unreleased portion of the cargo
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo is not in a partial release scenario.
Trigger Criteria:
Context: Cargo is not in a partial release scenario
Applied to: Clear PTT Status for Released Portion
Action: The system processes PTT status for released cargo
Logic Flow:
IF Cargo is not in a partial release scenario
AND The system processes PTT status for released cargo
THEN:
• PTT status is cleared for the released portion of the cargo
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when ptt processing cannot be completed or no ptt codes were found.
Trigger Criteria:
Context: PTT processing cannot be completed or no PTT codes were found
Applied to: Restore Previous PTT Status if Needed
Action: The system needs to restore previous state
Logic Flow:
IF PTT processing cannot be completed or no PTT codes were found
AND The system needs to restore previous state
THEN:
• The previously saved PTT status and quantity information is restored
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when ptt status processing has been completed.
Trigger Criteria:
Context: PTT status processing has been completed
Applied to: Status Array Changes Required?
Action: The system checks if status array updates are needed
Logic Flow:
IF PTT status processing has been completed
AND The system checks if status array updates are needed
THEN:
• If changes are required, update status array with PTT information, otherwise set cargo PTT processing flag
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when status array changes have been determined to be required.
Trigger Criteria:
Context: Status array changes have been determined to be required
Applied to: Update Status Array with PTT Information
Action: The system updates the status array
Logic Flow:
IF Status array changes have been determined to be required
AND The system updates the status array
THEN:
• The status array is updated with final PTT status and quantity information
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when ptt status management processing is complete.
Trigger Criteria:
Context: PTT status management processing is complete
Applied to: Set Cargo PTT Processing Flag
Action: The system finalizes PTT processing
Logic Flow:
IF PTT status management processing is complete
AND The system finalizes PTT processing
THEN:
• The cargo PTT processing flag is set to indicate completion
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when ptt quantity validation has failed.
Trigger Criteria:
Context: PTT quantity validation has failed
Applied to: PTT Validation Error
Action: The system processes the validation error
Logic Flow:
IF PTT quantity validation has failed
AND The system processes the validation error
THEN:
• An appropriate PTT validation error condition is set and processing continues to completion
R-GCX016-cbl-04238 (+6)File: GCX016.cblBusiness Rule: Partial vs Full Release Processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record with total quantity and released quantity values.
Trigger Criteria:
Context: A cargo record with total quantity and released quantity values
Applied to: Check Released Quantity vs Total Quantity
Action: The system compares released quantity to total quantity
Logic Flow:
IF A cargo record with total quantity and released quantity values
AND The system compares released quantity to total quantity
THEN:
• The system determines if cargo is partially released (released quantity < total quantity) or fully released (released quantity = total quantity)
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record where released quantity is less than total quantity.
Trigger Criteria:
Context: A cargo record where released quantity is less than total quantity
Applied to: Set Hold on Piece Counts Status
Action: The system processes the partial release
Logic Flow:
IF A cargo record where released quantity is less than total quantity
AND The system processes the partial release
THEN:
• The system sets cargo status to 'HOLDPCS' (Hold on Piece Counts) to indicate partial release
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record where released quantity equals or exceeds total quantity.
Trigger Criteria:
Context: A cargo record where released quantity equals or exceeds total quantity
Applied to: Set Full Release Status
Action: The system processes the full release
Logic Flow:
IF A cargo record where released quantity equals or exceeds total quantity
AND The system processes the full release
THEN:
• The system sets cargo status to indicate full release and removes any partial release indicators
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record that has been fully released.
Trigger Criteria:
Context: A cargo record that has been fully released
Applied to: Clear Destination Index
Action: The system processes the full release status
Logic Flow:
IF A cargo record that has been fully released
AND The system processes the full release status
THEN:
• The system clears the destination index field to remove destination processing requirements
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record that has been fully released and had its destination index cleared.
Trigger Criteria:
Context: A cargo record that has been fully released and had its destination index cleared
Applied to: Update Cargo Status to Released
Action: The system completes full release processing
Logic Flow:
IF A cargo record that has been fully released and had its destination index cleared
AND The system completes full release processing
THEN:
• The system updates the cargo status to 'RELEASED' or equivalent release status code
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record with partial release where released quantity is less than total quantity.
Trigger Criteria:
Context: A cargo record with partial release where released quantity is less than total quantity
Applied to: Preserve Remaining Held Quantity
Action: The system processes the partial release
Logic Flow:
IF A cargo record with partial release where released quantity is less than total quantity
AND The system processes the partial release
THEN:
• The system calculates remaining held quantity as (total quantity - released quantity) and preserves this value for future processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record that has been processed for partial release with remaining held quantity preserved.
Trigger Criteria:
Context: A cargo record that has been processed for partial release with remaining held quantity preserved
Applied to: Mark Cargo as Partially Released
Action: The system finalizes partial release processing
Logic Flow:
IF A cargo record that has been processed for partial release with remaining held quantity preserved
AND The system finalizes partial release processing
THEN:
• The system marks the cargo record with partial release status indicators and maintains tracking of unreleased portions
R-GCX016-cbl-04245 (+12)File: GCX016.cblBusiness Rule: Status Transition Logic
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record is being processed for status transition.
Trigger Criteria:
Context: A cargo record is being processed for status transition
Applied to: Manual Release Flag Set?
Action: The manual release flag is set to true
Logic Flow:
IF A cargo record is being processed for status transition
AND The manual release flag is set to true
THEN:
• The system clears the destination index and processes Canadian manifest coordination
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record is undergoing status evaluation.
Trigger Criteria:
Context: A cargo record is undergoing status evaluation
Applied to: FDA Hold at Destination?
Action: FDA hold conditions are present at the destination location
Logic Flow:
IF A cargo record is undergoing status evaluation
AND FDA hold conditions are present at the destination location
THEN:
• The system sets FDA hold status with status code 66
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record is undergoing status evaluation.
Trigger Criteria:
Context: A cargo record is undergoing status evaluation
Applied to: Arrival Status Present?
Action: Arrival status is present on the cargo
Logic Flow:
IF A cargo record is undergoing status evaluation
AND Arrival status is present on the cargo
THEN:
• The system sets arrival status and clears the destination index
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record has existing status information.
Trigger Criteria:
Context: A cargo record has existing status information
Applied to: PTT Status Present?
Action: PTT status is currently present on the cargo
Logic Flow:
IF A cargo record has existing status information
AND PTT status is currently present on the cargo
THEN:
• The system saves and preserves the current PTT status
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record has both released quantity and total quantity values.
Trigger Criteria:
Context: A cargo record has both released quantity and total quantity values
Applied to: Released Quantity < Total Quantity?
Action: The released quantity is less than the total quantity
Logic Flow:
IF A cargo record has both released quantity and total quantity values
AND The released quantity is less than the total quantity
THEN:
• The system sets hold on piece counts status to indicate partial release
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record has released quantity and total quantity values.
Trigger Criteria:
Context: A cargo record has released quantity and total quantity values
Applied to: Released Quantity = Total Quantity?
Action: The released quantity equals the total quantity exactly
Logic Flow:
IF A cargo record has released quantity and total quantity values
AND The released quantity equals the total quantity exactly
THEN:
• The system sets full release status and clears the destination index
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record is being evaluated for status changes.
Trigger Criteria:
Context: A cargo record is being evaluated for status changes
Applied to: Proceed Status Present?
Action: Proceed status is present on the cargo
Logic Flow:
IF A cargo record is being evaluated for status changes
AND Proceed status is present on the cargo
THEN:
• The system sets proceed status and updates the border arrival date
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record has hold status present.
Trigger Criteria:
Context: A cargo record has hold status present
Applied to: Hold at Border?
Action: The hold location is determined to be at the border
Logic Flow:
IF A cargo record has hold status present
AND The hold location is determined to be at the border
THEN:
• The system sets border hold status
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record has hold status present.
Trigger Criteria:
Context: A cargo record has hold status present
Applied to: Hold Status Present?
Action: The hold location is not at the border
Logic Flow:
IF A cargo record has hold status present
AND The hold location is not at the border
THEN:
• The system sets destination hold status
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record is being processed for status changes.
Trigger Criteria:
Context: A cargo record is being processed for status changes
Applied to: Export Status Present?
Action: Export status is present on the cargo
Logic Flow:
IF A cargo record is being processed for status changes
AND Export status is present on the cargo
THEN:
• The system sets export status and clears the destination index
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record has historical release status information.
Trigger Criteria:
Context: A cargo record has historical release status information
Applied to: Previously Released but Now Unreleased?
Action: The cargo was previously released but current processing indicates it is now unreleased
Logic Flow:
IF A cargo record has historical release status information
AND The cargo was previously released but current processing indicates it is now unreleased
THEN:
• The system generates unrelease notification and re-establishes the destination index
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record requires age calculation for processing decisions.
Trigger Criteria:
Context: A cargo record requires age calculation for processing decisions
Applied to: Calculate Cargo Age using Julian Date
Action: The system needs to determine cargo age
Logic Flow:
IF A cargo record requires age calculation for processing decisions
AND The system needs to determine cargo age
THEN:
• The system calculates cargo age using Julian date format
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when all status transition logic has been evaluated for a cargo record.
Trigger Criteria:
Context: All status transition logic has been evaluated for a cargo record
Applied to: Determine Final Cargo Status
Action: The system needs to finalize the cargo status
Logic Flow:
IF All status transition logic has been evaluated for a cargo record
AND The system needs to finalize the cargo status
THEN:
• The system determines and assigns the final cargo status based on all evaluated conditions
R-GCX016-cbl-04258 (+13)File: GCX016.cblBusiness Rule: Process Disposition Code for Cargo
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code from x4 segment needs to be processed for cargo.
Trigger Criteria:
Context: A disposition code from X4 segment needs to be processed for cargo
Applied to: Disposition Code Table Lookup
Action: The system looks up the disposition code in the GCSTBRT disposition code table
Logic Flow:
IF A disposition code from X4 segment needs to be processed for cargo
AND The system looks up the disposition code in the GCSTBRT disposition code table
THEN:
• The system determines if the disposition code is valid and retrieves associated processing rules
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code lookup has failed in the disposition code table.
Trigger Criteria:
Context: A disposition code lookup has failed in the disposition code table
Applied to: Disposition Code Error Handling
Action: The disposition code is not found in GCSTBRT table
Logic Flow:
IF A disposition code lookup has failed in the disposition code table
AND The disposition code is not found in GCSTBRT table
THEN:
• The system generates an error message and stops processing for this disposition code
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code is classified as arl (auto release) type.
Trigger Criteria:
Context: A disposition code is classified as ARL (Auto Release) type
Applied to: ARL Auto Release Array Re-evaluation
Action: The system processes the ARL disposition code
Logic Flow:
IF A disposition code is classified as ARL (Auto Release) type
AND The system processes the ARL disposition code
THEN:
• The system re-evaluates the entire status array and applies auto release logic without adding the code to the array
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code is classified as mrl (manual release) type for cprs cargo.
Trigger Criteria:
Context: A disposition code is classified as MRL (Manual Release) type for CPRS cargo
Applied to: Manual Release Processing for CPRS
Action: The system processes the MRL disposition code
Logic Flow:
IF A disposition code is classified as MRL (Manual Release) type for CPRS cargo
AND The system processes the MRL disposition code
THEN:
• The system processes the manual release without adding the disposition code to the status array and updates cargo status accordingly
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code requires counterpart removal and the status array contains existing codes.
Trigger Criteria:
Context: A disposition code requires counterpart removal and the status array contains existing codes
Applied to: Counterpart Disposition Code Removal
Action: The system processes a disposition code with counterpart removal requirements
Logic Flow:
IF A disposition code requires counterpart removal and the status array contains existing codes
AND The system processes a disposition code with counterpart removal requirements
THEN:
• The system removes all counterpart disposition codes from the status array before adding the new code
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code is classified as a hold code type.
Trigger Criteria:
Context: A disposition code is classified as a hold code type
Applied to: Hold Code Processing
Action: The system processes the hold disposition code
Logic Flow:
IF A disposition code is classified as a hold code type
AND The system processes the hold disposition code
THEN:
• The system adds the hold code to the status array with appropriate hold flags and location information
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when disposition code is classified as a release code type.
Trigger Criteria:
Context: A disposition code is classified as a release code type
Applied to: Release Code Processing
Action: The system processes the release disposition code
Logic Flow:
IF A disposition code is classified as a release code type
AND The system processes the release disposition code
THEN:
• The system adds the release code to the status array with release flags and updates release quantities
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code is classified as status information type.
Trigger Criteria:
Context: A disposition code is classified as status information type
Applied to: Status Info Processing
Action: The system processes the status information disposition code
Logic Flow:
IF A disposition code is classified as status information type
AND The system processes the status information disposition code
THEN:
• The system adds the information code to the status array with status info flags without affecting quantities
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code is classified as release with counterpart removal type.
Trigger Criteria:
Context: A disposition code is classified as release with counterpart removal type
Applied to: Release Code with Counterpart Removal
Action: The system processes the release disposition code with counterpart removal
Logic Flow:
IF A disposition code is classified as release with counterpart removal type
AND The system processes the release disposition code with counterpart removal
THEN:
• The system removes counterpart codes from status array and adds the release code with release flags
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code is classified as information with counterpart removal type.
Trigger Criteria:
Context: A disposition code is classified as information with counterpart removal type
Applied to: Information Code with Counterpart Removal
Action: The system processes the information disposition code with counterpart removal
Logic Flow:
IF A disposition code is classified as information with counterpart removal type
AND The system processes the information disposition code with counterpart removal
THEN:
• The system removes counterpart codes from status array and adds the information code with status info flags
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code is ready to be added to the status array.
Trigger Criteria:
Context: A disposition code is ready to be added to the status array
Applied to: Disposition Code Duplicate Prevention
Action: The system checks if the same disposition code already exists in the status array
Logic Flow:
IF A disposition code is ready to be added to the status array
AND The system checks if the same disposition code already exists in the status array
THEN:
• The system skips adding the code if a duplicate is found, otherwise proceeds with adding the code
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code has been added to the status array.
Trigger Criteria:
Context: A disposition code has been added to the status array
Applied to: Quantity Action Processing for Release Codes
Action: The system evaluates if the disposition code affects release quantities
Logic Flow:
IF A disposition code has been added to the status array
AND The system evaluates if the disposition code affects release quantities
THEN:
• The system determines whether to add, subtract, or leave release quantities unchanged based on the code type
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when disposition code requires quantity impact and current release quantities exist.
Trigger Criteria:
Context: A disposition code requires quantity impact and current release quantities exist
Applied to: Release Quantity Calculation
Action: The system processes quantity changes for add or subtract actions
Logic Flow:
IF A disposition code requires quantity impact and current release quantities exist
AND The system processes quantity changes for add or subtract actions
THEN:
• The system updates release quantities ensuring they do not go below zero for subtract actions
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when status array has been modified with new disposition codes.
Trigger Criteria:
Context: The status array has been modified with new disposition codes
Applied to: Status Array Persistence
Action: All disposition code processing is complete
Logic Flow:
IF The status array has been modified with new disposition codes
AND All disposition code processing is complete
THEN:
• The system updates the cargo S09 status segments with the modified status array information
Business Justification: Dictates the expected operational logic and validation steps when cargo was not found using primary search methods.
Trigger Criteria:
Context: Cargo was not found using primary search methods
Applied to: Car ID Available?
Action: System checks for car ID availability in the message data
Logic Flow:
IF Cargo was not found using primary search methods
AND System checks for car ID availability in the message data
THEN:
• If car ID is present, proceed with car ID search, otherwise create new foreign bill record
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when car id is available in the message data.
Trigger Criteria:
Context: Car ID is available in the message data
Applied to: Attempt Car ID Only Search
Action: System executes car ID only search using GCCUSIO with car ID index
Logic Flow:
IF Car ID is available in the message data
AND System executes car ID only search using GCCUSIO with car ID index
THEN:
• System retrieves cargo records matching the car identification
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when car id search has been executed.
Trigger Criteria:
Context: Car ID search has been executed
Applied to: Cargo Found by Car ID?
Action: System evaluates the search results
Logic Flow:
IF Car ID search has been executed
AND System evaluates the search results
THEN:
• If cargo records are found, proceed with US-CCN validation, otherwise attempt broader search
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record was found using car id search.
Trigger Criteria:
Context: Cargo record was found using car ID search
Applied to:US-CCN Matches?
Action: System compares the US-CCN key from the message with the cargo record US-CCN
Logic Flow:
IF Cargo record was found using car ID search
AND System compares the US-CCN key from the message with the cargo record US-CCN
THEN:
• IfUS-CCN keys match exactly, use the found cargo record, otherwise try broader search without US-CCN
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when us-ccn key does not match or car id search failed.
Trigger Criteria:
Context:US-CCN key does not match or car ID search failed
Applied to: Try Broader Search Without US-CCN
Action: System executes broader search criteria without US-CCN validation
Logic Flow:
IFUS-CCN key does not match or car ID search failed
AND System executes broader search criteria without US-CCN validation
THEN:
• System retrieves any cargo records matching available search criteria
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when multiple cargo records were found in broader search.
Trigger Criteria:
Context: Multiple cargo records were found in broader search
Applied to: Validate Multiple Waybill Numbers
Action: System compares waybill numbers from message against found cargo records
Logic Flow:
IF Multiple cargo records were found in broader search
AND System compares waybill numbers from message against found cargo records
THEN:
• If waybill validation passes, select best matching cargo record, otherwise create new foreign bill
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when no existing cargo record could be found or validated.
Trigger Criteria:
Context: No existing cargo record could be found or validated
Applied to: Create Foreign Bill Record
Action: System initiates foreign bill creation process
Logic Flow:
IF No existing cargo record could be found or validated
AND System initiates foreign bill creation process
THEN:
• New cargo record is created with default values and manifest information
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when new foreign bill record is being created.
Trigger Criteria:
Context: New foreign bill record is being created
Applied to: Set CPRS/USCS Status Codes
Action: System determines if cargo is CPRS or USCS type
Logic Flow:
IF New foreign bill record is being created
AND System determines if cargo is CPRS or USCS type
THEN:
• If CPRS cargo, set status to ERROR, otherwise set status to SENT
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when new cargo record has entry type code 61, 62, 63, or 69.
Trigger Criteria:
Context: New cargo record has entry type code 61, 62, 63, or 69
Applied to: Handle Master In-Bond Types 61,62,63,69
Action: System processes master in-bond entry type
Logic Flow:
IF New cargo record has entry type code 61, 62, 63, or 69
AND System processes master in-bond entry type
THEN:
• Set master in-bond flag and apply specific processing rules: 61 for immediate transport, 62 for transport export, 63 for immediate export, 69 for US-Canada-US movement
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when new cargo record has entry type code 00.
Trigger Criteria:
Context: New cargo record has entry type code 00
Applied to: Handle Border Entry Type 00
Action: System processes border entry type
Logic Flow:
IF New cargo record has entry type code 00
AND System processes border entry type
THEN:
• Clear bond information and apply default border processing rules
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when new cargo record has been initialized with entry type processing.
Trigger Criteria:
Context: New cargo record has been initialized with entry type processing
Applied to: Map Transport Type Codes
Action: System maps transport type codes from message data
Logic Flow:
IF New cargo record has been initialized with entry type processing
AND System maps transport type codes from message data
THEN:
• Assign appropriate transport category and processing flags based on transport type
R-GCX016-cbl-04283 (+13)File: GCX016.cblBusiness Rule: Process Counterpart Code Removal
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code exists in the current processing context.
Trigger Criteria:
Context: A disposition code exists in the current processing context
Applied to: Get Counterpart Code from DC Table
Action: The system needs to find counterpart codes for removal
Logic Flow:
IF A disposition code exists in the current processing context
AND The system needs to find counterpart codes for removal
THEN:
• The counterpart disposition code is retrieved from the DC table lookup
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when dc table lookup has been performed for counterpart codes.
Trigger Criteria:
Context: A DC table lookup has been performed for counterpart codes
Applied to: Counterpart Code Exists?
Action: The system evaluates the lookup result
Logic Flow:
IF A DC table lookup has been performed for counterpart codes
AND The system evaluates the lookup result
THEN:
• If no counterpart code exists, skip counterpart removal processing, otherwise proceed with status array search
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when valid counterpart disposition code exists from the dc table.
Trigger Criteria:
Context: A valid counterpart disposition code exists from the DC table
Applied to: Search Status Array for Matching Codes
Action: The system searches the status array for matching codes
Logic Flow:
IF A valid counterpart disposition code exists from the DC table
AND The system searches the status array for matching codes
THEN:
• All status array elements are examined for potential counterpart code matches
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when status array has been searched for counterpart codes.
Trigger Criteria:
Context: The status array has been searched for counterpart codes
Applied to: Match Found in Array?
Action: The system evaluates the search results
Logic Flow:
IF The status array has been searched for counterpart codes
AND The system evaluates the search results
THEN:
• If no matches are found, end the counterpart removal process, otherwise proceed with detailed matching validation
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when potential counterpart code match has been found in the status array.
Trigger Criteria:
Context: A potential counterpart code match has been found in the status array
Applied to: Status Info Matches?
Action: The system compares status information fields
Logic Flow:
IF A potential counterpart code match has been found in the status array
AND The system compares status information fields
THEN:
• If status info matches exactly, mark the element for removal, otherwise continue with entry number validation
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when status info validation failed for a counterpart code match.
Trigger Criteria:
Context: Status info validation failed for a counterpart code match
Applied to: Entry Number Matches?
Action: The system compares entry number fields
Logic Flow:
IF Status info validation failed for a counterpart code match
AND The system compares entry number fields
THEN:
• If entry numbers match exactly, mark the element for removal, otherwise continue with quantity validation
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when entry number validation failed for a counterpart code match.
Trigger Criteria:
Context: Entry number validation failed for a counterpart code match
Applied to: Quantity Matches?
Action: The system compares quantity fields
Logic Flow:
IF Entry number validation failed for a counterpart code match
AND The system compares quantity fields
THEN:
• If quantities match exactly, mark the element for removal, otherwise continue with code pattern validation
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when quantity validation failed for a counterpart code match.
Trigger Criteria:
Context: Quantity validation failed for a counterpart code match
Applied to: Code Pattern Matches?
Action: The system evaluates specific code pattern matching rules
Logic Flow:
IF Quantity validation failed for a counterpart code match
AND The system evaluates specific code pattern matching rules
THEN:
• If the code pattern matches specific business rules, mark the element for removal, otherwise continue searching
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when counterpart code has passed all validation criteria.
Trigger Criteria:
Context: A counterpart code has passed all validation criteria
Applied to: Mark Array Element for Removal
Action: The system processes the validated match
Logic Flow:
IF A counterpart code has passed all validation criteria
AND The system processes the validated match
THEN:
• The array element is marked for removal and the system continues searching for additional matches
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when current status array element has been processed.
Trigger Criteria:
Context: The current status array element has been processed
Applied to: More Elements to Check?
Action: The system evaluates remaining array elements
Logic Flow:
IF The current status array element has been processed
AND The system evaluates remaining array elements
THEN:
• If more elements exist, continue the search process, otherwise proceed to remove marked elements
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when one or more status array elements have been marked for removal.
Trigger Criteria:
Context: One or more status array elements have been marked for removal
Applied to: Remove Marked Elements from Array
Action: The system processes the removal operation
Logic Flow:
IF One or more status array elements have been marked for removal
AND The system processes the removal operation
THEN:
• All marked elements are removed from the status array
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when counterpart code elements have been removed from the status array.
Trigger Criteria:
Context: Counterpart code elements have been removed from the status array
Applied to: Compact Remaining Array Elements
Action: The system compacts the array structure
Logic Flow:
IF Counterpart code elements have been removed from the status array
AND The system compacts the array structure
THEN:
• Remaining array elements are moved to eliminate gaps and maintain proper array structure
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when status array has been compacted after counterpart removal.
Trigger Criteria:
Context: The status array has been compacted after counterpart removal
Applied to: Update Array Element Count
Action: The system finalizes the array structure
Logic Flow:
IF The status array has been compacted after counterpart removal
AND The system finalizes the array structure
THEN:
• The array element count is updated to reflect the current number of active status entries
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when no counterpart disposition code exists in the dc table.
Trigger Criteria:
Context: No counterpart disposition code exists in the DC table
Applied to: No Counterpart Action Required
Action: The system evaluates counterpart processing requirements
Logic Flow:
IF No counterpart disposition code exists in the DC table
AND The system evaluates counterpart processing requirements
THEN:
• Counterpart removal processing is skipped and the process ends normally
Business Justification: Defines the strict business conditions required to proceed when disposition code of type arl (auto release) is being processed.
Trigger Criteria:
Context: A disposition code of type ARL (Auto Release) is being processed
Applied to: ARL Auto Release - Re-evaluate Array
Action: The system encounters an ARL disposition code
Logic Flow:
IF A disposition code of type ARL (Auto Release) is being processed
AND The system encounters an ARL disposition code
THEN:
• The system re-evaluates the status array and proceeds to capacity checking
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code of type mrl (manual release) is being processed.
Trigger Criteria:
Context: A disposition code of type MRL (Manual Release) is being processed
Applied to: MRL Manual Release - Force Processing
Action: The system encounters an MRL disposition code
Logic Flow:
IF A disposition code of type MRL (Manual Release) is being processed
AND The system encounters an MRL disposition code
THEN:
• The system forces processing and proceeds to capacity checking
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when new disposition code needs to be added to the status array.
Trigger Criteria:
Context: A new disposition code needs to be added to the status array
Applied to: Array Overflow Protection
Action: The array capacity is exceeded or at maximum limit
Logic Flow:
IF A new disposition code needs to be added to the status array
AND The array capacity is exceeded or at maximum limit
THEN:
• The system terminates processing to prevent overflow and completes array modifications
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code is being added to the status array.
Trigger Criteria:
Context: A disposition code is being added to the status array
Applied to: Skip Duplicate Entry
Action: The same disposition code already exists in the array
Logic Flow:
IF A disposition code is being added to the status array
AND The same disposition code already exists in the array
THEN:
• The system skips adding the duplicate entry and completes array modifications
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when new disposition code is being added that has a defined counterpart code.
Trigger Criteria:
Context: A new disposition code is being added that has a defined counterpart code
Applied to: Remove Counterpart Code
Action: The counterpart code is found in the status array
Logic Flow:
IF A new disposition code is being added that has a defined counterpart code
AND The counterpart code is found in the status array
THEN:
• The system removes the counterpart code and compacts the array before adding the new code
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when one or more disposition codes have been removed from the status array.
Trigger Criteria:
Context: One or more disposition codes have been removed from the status array
Applied to: Compact Array Elements
Action: Array compaction is required
Logic Flow:
IF One or more disposition codes have been removed from the status array
AND Array compaction is required
THEN:
• The system shifts remaining elements to fill gaps and updates the array count
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code requires location information and border location is specified.
Trigger Criteria:
Context: A disposition code requires location information and border location is specified
Applied to: Add Border Location
Action: The system processes location information for the disposition code
Logic Flow:
IF A disposition code requires location information and border location is specified
AND The system processes location information for the disposition code
THEN:
• The system adds border location information to the status entry and updates the released flag
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code requires location information and destination location is specified.
Trigger Criteria:
Context: A disposition code requires location information and destination location is specified
Applied to: Add Destination Location
Action: The system processes location information for the disposition code
Logic Flow:
IF A disposition code requires location information and destination location is specified
AND The system processes location information for the disposition code
THEN:
• The system adds destination location information to the status entry and updates the released flag
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code requires quantity action of type add.
Trigger Criteria:
Context: A disposition code requires quantity action of type ADD
Applied to: Process Add Quantity
Action: The system processes the quantity action
Logic Flow:
IF A disposition code requires quantity action of type ADD
AND The system processes the quantity action
THEN:
• The system adds the specified quantity to the release amount and proceeds to array compaction
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code requires quantity action of type subtract.
Trigger Criteria:
Context: A disposition code requires quantity action of type SUBTRACT
Applied to: Process Subtract Quantity
Action: The system processes the quantity action
Logic Flow:
IF A disposition code requires quantity action of type SUBTRACT
AND The system processes the quantity action
THEN:
• The system subtracts the specified quantity from the release amount and proceeds to array compaction
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code is for informational purposes only.
Trigger Criteria:
Context: A disposition code is for informational purposes only
Applied to: Set Information Flag Only
Action: The system processes the information-only disposition code
Logic Flow:
IF A disposition code is for informational purposes only
AND The system processes the information-only disposition code
THEN:
• The system sets the information flag without processing quantities and proceeds to array compaction
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when array modifications have been completed including compaction and count updates.
Trigger Criteria:
Context: Array modifications have been completed including compaction and count updates
Applied to: Validate Array Integrity
Action: The system validates array integrity
Logic Flow:
IF Array modifications have been completed including compaction and count updates
AND The system validates array integrity
THEN:
• The system ensures array structure is valid and completes the array modifications process
R-GCX016-cbl-04309 (+20)File: GCX016.cblBusiness Rule: Cargo State Flag Determination
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record requires state flag analysis.
Trigger Criteria:
Context: A cargo record requires state flag analysis
Applied to: Initialize All State Flags to False
Action: The system begins cargo state flag determination process
Logic Flow:
IF A cargo record requires state flag analysis
AND The system begins cargo state flag determination process
THEN:
• All cargo state flags (empty, held, released, PTT, proceed, arrival, export, FDA) are set to false
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code exists in the cargo status array.
Trigger Criteria:
Context: A disposition code exists in the cargo status array
Applied to: Is Hold Code?
Action: The system evaluates the disposition code type
Logic Flow:
IF A disposition code exists in the cargo status array
AND The system evaluates the disposition code type
THEN:
• The system identifies if the code represents a hold condition and determines the hold location (border or destination)
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code exists in the cargo status array.
Trigger Criteria:
Context: A disposition code exists in the cargo status array
Applied to: Is Release Code?
Action: The system evaluates the disposition code for release characteristics
Logic Flow:
IF A disposition code exists in the cargo status array
AND The system evaluates the disposition code for release characteristics
THEN:
• The system determines if the code represents a release condition
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code exists in the cargo status array.
Trigger Criteria:
Context: A disposition code exists in the cargo status array
Applied to: Is PTT Code?
Action: The system evaluates the disposition code for PTT characteristics
Logic Flow:
IF A disposition code exists in the cargo status array
AND The system evaluates the disposition code for PTT characteristics
THEN:
• The system determines if the code represents a PTT condition
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code exists in the cargo status array.
Trigger Criteria:
Context: A disposition code exists in the cargo status array
Applied to: Is Proceed Code?
Action: The system evaluates the disposition code for proceed characteristics
Logic Flow:
IF A disposition code exists in the cargo status array
AND The system evaluates the disposition code for proceed characteristics
THEN:
• The system determines if the code represents a proceed condition
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code exists in the cargo status array.
Trigger Criteria:
Context: A disposition code exists in the cargo status array
Applied to: Is Arrival Code?
Action: The system evaluates the disposition code for arrival characteristics
Logic Flow:
IF A disposition code exists in the cargo status array
AND The system evaluates the disposition code for arrival characteristics
THEN:
• The system determines if the code represents an arrival condition
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code exists in the cargo status array.
Trigger Criteria:
Context: A disposition code exists in the cargo status array
Applied to: Is Export Code?
Action: The system evaluates the disposition code for export characteristics
Logic Flow:
IF A disposition code exists in the cargo status array
AND The system evaluates the disposition code for export characteristics
THEN:
• The system determines if the code represents an export condition
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code exists in the cargo status array.
Trigger Criteria:
Context: A disposition code exists in the cargo status array
Applied to: Is FDA Code?
Action: The system evaluates the disposition code for FDA characteristics
Logic Flow:
IF A disposition code exists in the cargo status array
AND The system evaluates the disposition code for FDA characteristics
THEN:
• The system determines if the code represents an FDA hold condition
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when hold disposition code is identified in the status array.
Trigger Criteria:
Context: A hold disposition code is identified in the status array
Applied to: Set Border Hold Flag
Action: The hold location is determined to be at the border
Logic Flow:
IF A hold disposition code is identified in the status array
AND The hold location is determined to be at the border
THEN:
• The border hold flag is set to true
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when hold disposition code is identified in the status array.
Trigger Criteria:
Context: A hold disposition code is identified in the status array
Applied to: Set Destination Hold Flag
Action: The hold location is determined to be at the destination
Logic Flow:
IF A hold disposition code is identified in the status array
AND The hold location is determined to be at the destination
THEN:
• The destination hold flag is set to true
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when release disposition code is identified in the status array.
Trigger Criteria:
Context: A release disposition code is identified in the status array
Applied to: Set Release Flag
Action: The system processes the release code
Logic Flow:
IF A release disposition code is identified in the status array
AND The system processes the release code
THEN:
• The release flag is set to true and release quantities are updated based on the disposition code
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when ptt disposition code is identified in the status array.
Trigger Criteria:
Context: A PTT disposition code is identified in the status array
Applied to: Set PTT Flag
Action: The system processes the PTT code
Logic Flow:
IF A PTT disposition code is identified in the status array
AND The system processes the PTT code
THEN:
• The PTT flag is set to true and PTT quantities are validated against cargo totals
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when proceed disposition code is identified in the status array.
Trigger Criteria:
Context: A proceed disposition code is identified in the status array
Applied to: Set Proceed Flag
Action: The system processes the proceed code
Logic Flow:
IF A proceed disposition code is identified in the status array
AND The system processes the proceed code
THEN:
• The proceed flag is set to true and border arrival date is established
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when arrival disposition code is identified in the status array.
Trigger Criteria:
Context: An arrival disposition code is identified in the status array
Applied to: Set Arrival Flag
Action: The system processes the arrival code
Logic Flow:
IF An arrival disposition code is identified in the status array
AND The system processes the arrival code
THEN:
• The arrival flag is set to true
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when export disposition code is identified in the status array.
Trigger Criteria:
Context: An export disposition code is identified in the status array
Applied to: Set Export Flag
Action: The system processes the export code
Logic Flow:
IF An export disposition code is identified in the status array
AND The system processes the export code
THEN:
• The export flag is set to true
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when fda disposition code is identified in the status array.
Trigger Criteria:
Context: An FDA disposition code is identified in the status array
Applied to: Set FDA Hold Flag
Action: The system processes the FDA code
Logic Flow:
IF An FDA disposition code is identified in the status array
AND The system processes the FDA code
THEN:
• The FDA hold flag is set to true and FDA location status is determined
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when both hold and release flags are set to true for a cargo record.
Trigger Criteria:
Context: Both hold and release flags are set to true for a cargo record
Applied to: Determine Partial Release Status
Action: The system analyzes the combined flag states
Logic Flow:
IF Both hold and release flags are set to true for a cargo record
AND The system analyzes the combined flag states
THEN:
• The system determines partial release status based on quantity comparisons
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when ptt flag is set to true for a cargo record.
Trigger Criteria:
Context: PTT flag is set to true for a cargo record
Applied to: Set Hold on Piece Counts
Action: The PTT quantity is insufficient compared to total cargo quantity
Logic Flow:
IF PTT flag is set to true for a cargo record
AND The PTT quantity is insufficient compared to total cargo quantity
THEN:
• The system sets hold on piece counts flag to true
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when proceed flag is set to true and border arrival date is established.
Trigger Criteria:
Context: Proceed flag is set to true and border arrival date is established
Applied to: Set Proceed Status Active
Action: The system evaluates proceed conditions
Logic Flow:
IF Proceed flag is set to true and border arrival date is established
AND The system evaluates proceed conditions
THEN:
• The proceed status is activated for the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when both export and arrival flags are set to true for a cargo record.
Trigger Criteria:
Context: Both export and arrival flags are set to true for a cargo record
Applied to: Prioritize Export Status
Action: The system resolves conflicting status flags
Logic Flow:
IF Both export and arrival flags are set to true for a cargo record
AND The system resolves conflicting status flags
THEN:
• Export status takes priority over arrival status
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when fda hold flag is set to true and fda location is at destination.
Trigger Criteria:
Context: FDA hold flag is set to true and FDA location is at destination
Applied to: Override Other Release Flags
Action: The system finalizes cargo state flags
Logic Flow:
IF FDA hold flag is set to true and FDA location is at destination
AND The system finalizes cargo state flags
THEN:
• FDA hold status overrides other release flags and takes precedence
R-GCX016-cbl-04330 (+16)File: GCX016.cblBusiness Rule: Status Change Impact Processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record exists with an active destination index.
Trigger Criteria:
Context: A cargo record exists with an active destination index
Applied to: Manual Release Processing?
Action: The cargo status is set to manual release (MRL)
Logic Flow:
IF A cargo record exists with an active destination index
AND The cargo status is set to manual release (MRL)
THEN:
• The destination index must be cleared and the cargo routing constraints removed
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record has been manually released and canadian manifest coordination is required.
Trigger Criteria:
Context: A cargo record has been manually released and Canadian manifest coordination is required
Applied to: Process Canadian Manifest Coordination
Action: The system processes the manual release
Logic Flow:
IF A cargo record has been manually released and Canadian manifest coordination is required
AND The system processes the manual release
THEN:
• The system must search for matching Canadian manifest records by waybill and generate appropriate coordination messages
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record is being processed for status change.
Trigger Criteria:
Context: A cargo record is being processed for status change
Applied to: FDA Hold at Destination?
Action: The cargo requires FDA hold at destination location
Logic Flow:
IF A cargo record is being processed for status change
AND The cargo requires FDA hold at destination location
THEN:
• The system must set FDA hold status (HOLDFDA) with appropriate FDA codes and prevent cargo release until FDA clearance
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record currently has ptt status assigned.
Trigger Criteria:
Context: A cargo record currently has PTT status assigned
Applied to: PTT Status Required?
Action: The cargo undergoes status change processing
Logic Flow:
IF A cargo record currently has PTT status assigned
AND The cargo undergoes status change processing
THEN:
• The system must save the current PTT status and validate that quantity thresholds are met before allowing status changes
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record has total quantity greater than released quantity.
Trigger Criteria:
Context: A cargo record has total quantity greater than released quantity
Applied to: Partial Release Scenario?
Action: The cargo undergoes partial release processing
Logic Flow:
IF A cargo record has total quantity greater than released quantity
AND The cargo undergoes partial release processing
THEN:
• The system must set hold on piece counts status (HOLDPCS) for the unreleased quantity portion
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record has released quantity equal to or greater than total quantity.
Trigger Criteria:
Context: A cargo record has released quantity equal to or greater than total quantity
Applied to: Full Release Conditions Met?
Action: The system evaluates full release conditions
Logic Flow:
IF A cargo record has released quantity equal to or greater than total quantity
AND The system evaluates full release conditions
THEN:
• The destination index must be cleared and all routing restrictions removed
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record was previously in released status.
Trigger Criteria:
Context: A cargo record was previously in released status
Applied to: Detect Unrelease Scenario
Action: The cargo status is being changed to a non-released status
Logic Flow:
IF A cargo record was previously in released status
AND The cargo status is being changed to a non-released status
THEN:
• The system must detect the unrelease scenario and flag it for notification processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record is undergoing arrival status processing.
Trigger Criteria:
Context: A cargo record is undergoing arrival status processing
Applied to: Arrival Status Change?
Action: The arrival status is being updated
Logic Flow:
IF A cargo record is undergoing arrival status processing
AND The arrival status is being updated
THEN:
• The system must re-establish the destination index based on the new arrival status and update routing information
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record has arrival status being processed.
Trigger Criteria:
Context: A cargo record has arrival status being processed
Applied to: Update Bond Start Date
Action: The destination index is re-established for arrival
Logic Flow:
IF A cargo record has arrival status being processed
AND The destination index is re-established for arrival
THEN:
• The bond start date must be updated to reflect the current arrival date and time
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record is being processed for export status change.
Trigger Criteria:
Context: A cargo record is being processed for export status change
Applied to: Export Status Change?
Action: The export status is being updated
Logic Flow:
IF A cargo record is being processed for export status change
AND The export status is being updated
THEN:
• The destination index must be cleared as export cargo does not require domestic destination routing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record is being processed for export with cleared destination index.
Trigger Criteria:
Context: A cargo record is being processed for export with cleared destination index
Applied to: Update Export Bond Date
Action: The export status processing occurs
Logic Flow:
IF A cargo record is being processed for export with cleared destination index
AND The export status processing occurs
THEN:
• The export bond date must be updated to reflect the current export processing date
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record requires age calculation for bond or compliance purposes.
Trigger Criteria:
Context: A cargo record requires age calculation for bond or compliance purposes
Applied to: Calculate Cargo Age Using Julian Dates
Action: Age calculation processing is triggered
Logic Flow:
IF A cargo record requires age calculation for bond or compliance purposes
AND Age calculation processing is triggered
THEN:
• The system must calculate cargo age using Julian date format and provide accurate age information
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo age has been calculated using julian dates.
Trigger Criteria:
Context: Cargo age has been calculated using Julian dates
Applied to: Update Bond Date Management
Action: Bond date management processing occurs
Logic Flow:
IF Cargo age has been calculated using Julian dates
AND Bond date management processing occurs
THEN:
• The system must update all relevant bond date management records with the calculated age information
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record has undergone status changes with updated bond date management.
Trigger Criteria:
Context: A cargo record has undergone status changes with updated bond date management
Applied to: Cross-Border Coordination Needed?
Action: The system evaluates cross-border coordination requirements
Logic Flow:
IF A cargo record has undergone status changes with updated bond date management
AND The system evaluates cross-border coordination requirements
THEN:
• The system must determine if cross-border coordination is needed based on cargo movement patterns and international requirements
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cross-border coordination has been determined as necessary.
Trigger Criteria:
Context: Cross-border coordination has been determined as necessary
Applied to: Find Matching Canadian Manifests
Action: The system searches for Canadian manifest coordination
Logic Flow:
IF Cross-border coordination has been determined as necessary
AND The system searches for Canadian manifest coordination
THEN:
• The system must find and retrieve all matching Canadian manifest records by waybill and equipment identifiers
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when matching canadian manifest records have been found.
Trigger Criteria:
Context: Matching Canadian manifest records have been found
IF Matching Canadian manifest records have been found
AND Cross-border coordination processing occurs
THEN:
• The system must generate Canadian log messages with cargo release information and cross-border status updates
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when canadian log messages have been generated for cross-border coordination.
Trigger Criteria:
Context: Canadian log messages have been generated for cross-border coordination
Applied to: Update Cross-Border Status
Action: The cross-border coordination process completes
Logic Flow:
IF Canadian log messages have been generated for cross-border coordination
AND The cross-border coordination process completes
THEN:
• The system must update the cross-border status to reflect completed coordination and maintain accurate international shipment tracking
R-GCX016-cbl-04347 (+7)File: GCX016.cblBusiness Rule: Canadian Manifest Coordination
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when us cargo record has been processed for release.
Trigger Criteria:
Context: A US cargo record has been processed for release
Applied to: Canadian Manifest Coordination Required?
Action: The system evaluates if Canadian manifest coordination is needed
Logic Flow:
IF A US cargo record has been processed for release
AND The system evaluates if Canadian manifest coordination is needed
THEN:
• Canadian manifest processing is initiated if cargo is manually released or meets specific release criteria
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when canadian manifest coordination is required for released us cargo.
Trigger Criteria:
Context: Canadian manifest coordination is required for released US cargo
Applied to: Search for Matching Canadian Manifests
Action: The system searches for matching Canadian manifests using waybill number
Logic Flow:
IF Canadian manifest coordination is required for released US cargo
AND The system searches for matching Canadian manifests using waybill number
THEN:
• Canadian cargo records are retrieved based on waybill and equipment matching criteria
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when search for canadian manifests has been initiated.
Trigger Criteria:
Context: A search for Canadian manifests has been initiated
Applied to: Retrieve Canadian Cargo Records
Action: The system retrieves Canadian cargo records by waybill
Logic Flow:
IF A search for Canadian manifests has been initiated
AND The system retrieves Canadian cargo records by waybill
THEN:
• Only active Canadian cargo records are returned, excluding deleted records and new bond created records
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when canadian cargo records have been retrieved from the database.
Trigger Criteria:
Context: Canadian cargo records have been retrieved from the database
Applied to: Matching Canadian Manifest Found?
Action: The system validates matching criteria between US and Canadian cargo
Logic Flow:
IF Canadian cargo records have been retrieved from the database
AND The system validates matching criteria between US and Canadian cargo
THEN:
• A match is confirmed if Canadian cargo exists and meets validation criteria, otherwise no match is found
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when matching canadian manifest has been found for released us cargo.
Trigger Criteria:
Context: A matching Canadian manifest has been found for released US cargo
Applied to: Generate Cross-Border Log Message
Action: The system generates a cross-border coordination log message
Logic Flow:
IF A matching Canadian manifest has been found for released US cargo
AND The system generates a cross-border coordination log message
THEN:
• A detailed log message is created containing cargo release information, waybill details, and cross-border coordination data
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cross-border log message has been generated for matching canadian cargo.
Trigger Criteria:
Context: A cross-border log message has been generated for matching Canadian cargo
Applied to: Update Canadian Manifest Status
Action: The system updates Canadian manifest status
Logic Flow:
IF A cross-border log message has been generated for matching Canadian cargo
AND The system updates Canadian manifest status
THEN:
• Canadian cargo records are updated to reflect the cross-border coordination and US cargo release status
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when canadian manifest status has been updated for cross-border coordination.
Trigger Criteria:
Context: Canadian manifest status has been updated for cross-border coordination
Applied to: Create Audit Trail for Canadian System
Action: The system creates an audit trail for the Canadian system
Logic Flow:
IF Canadian manifest status has been updated for cross-border coordination
AND The system creates an audit trail for the Canadian system
THEN:
• A complete audit record is generated documenting the cross-border cargo coordination, including timestamps, cargo details, and system integration information
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when audit trail has been created for canadian system coordination.
Trigger Criteria:
Context: An audit trail has been created for Canadian system coordination
Applied to: Place Log Message on Canadian CCN
Action: The system places the log message on the Canadian CCN
Logic Flow:
IF An audit trail has been created for Canadian system coordination
AND The system places the log message on the Canadian CCN
THEN:
• The cross-border coordination log message is successfully placed on the Canadian cargo control number for integration with Canadian customs systems
R-GCX016-cbl-04355 (+11)File: GCX016.cblBusiness Rule: Final Status Determination Logic
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record is being processed for final status determination.
Trigger Criteria:
Context: A cargo record is being processed for final status determination
Applied to: Manual Release Flag Set?
Action: The manual release flag is set to true
Logic Flow:
IF A cargo record is being processed for final status determination
AND The manual release flag is set to true
THEN:
• The system sets manual release status, clears the destination index, and processes Canadian manifest coordination
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record is being evaluated for final status and manual release is not applicable.
Trigger Criteria:
Context: A cargo record is being evaluated for final status and manual release is not applicable
Applied to: FDA Hold at Destination?
Action: FDA hold conditions are detected at the destination
Logic Flow:
IF A cargo record is being evaluated for final status and manual release is not applicable
AND FDA hold conditions are detected at the destination
THEN:
• The system sets FDA hold status and applies the appropriate FDA status code
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record has ptt status indicators present.
Trigger Criteria:
Context: A cargo record has PTT status indicators present
Applied to: PTT Status Present?
Action: The system evaluates PTT status conditions
Logic Flow:
IF A cargo record has PTT status indicators present
AND The system evaluates PTT status conditions
THEN:
• The system validates PTT quantities against established thresholds and maintains PTT status if conditions are met
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record with ptt status is being processed and quantities have been validated.
Trigger Criteria:
Context: A cargo record with PTT status is being processed and quantities have been validated
Applied to: Released Qty < Total Qty?
Action: The released quantity is less than the total quantity
Logic Flow:
IF A cargo record with PTT status is being processed and quantities have been validated
AND The released quantity is less than the total quantity
THEN:
• The system sets partial release hold status and applies hold on piece counts
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record is being evaluated for release status and released quantity equals or exceeds total quantity.
Trigger Criteria:
Context: A cargo record is being evaluated for release status and released quantity equals or exceeds total quantity
Applied to: Full Release Conditions Met?
Action: All full release conditions are met
Logic Flow:
IF A cargo record is being evaluated for release status and released quantity equals or exceeds total quantity
AND All full release conditions are met
THEN:
• The system processes full release and clears the destination index
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record has hold status present and is not in manual release or full release state.
Trigger Criteria:
Context: A cargo record has hold status present and is not in manual release or full release state
Applied to: Hold at Border?
Action: Hold conditions exist at the border location
Logic Flow:
IF A cargo record has hold status present and is not in manual release or full release state
AND Hold conditions exist at the border location
THEN:
• The system sets border hold status for the cargo
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record has hold status present and is not held at border.
Trigger Criteria:
Context: A cargo record has hold status present and is not held at border
Applied to: Hold at Destination?
Action: Hold conditions exist at the destination location
Logic Flow:
IF A cargo record has hold status present and is not held at border
AND Hold conditions exist at the destination location
THEN:
• The system sets destination hold status for the cargo
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record is not in hold status and proceed status indicators are present.
Trigger Criteria:
Context: A cargo record is not in hold status and proceed status indicators are present
Applied to: Proceed Status Present?
Action: Proceed status conditions are validated
Logic Flow:
IF A cargo record is not in hold status and proceed status indicators are present
AND Proceed status conditions are validated
THEN:
• The system sets proceed status and updates the border arrival date
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record has completed proceed status processing or is not in proceed status.
Trigger Criteria:
Context: A cargo record has completed proceed status processing or is not in proceed status
Applied to: Arrival Status Present?
Action: Arrival status indicators are present
Logic Flow:
IF A cargo record has completed proceed status processing or is not in proceed status
AND Arrival status indicators are present
THEN:
• The system sets arrival status and updates the arrival date
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record has completed arrival status processing or is not in arrival status.
Trigger Criteria:
Context: A cargo record has completed arrival status processing or is not in arrival status
Applied to: Export Status Present?
Action: Export status indicators are present
Logic Flow:
IF A cargo record has completed arrival status processing or is not in arrival status
AND Export status indicators are present
THEN:
• The system sets export status and clears the destination index
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record has completed export status processing or is not in export status.
Trigger Criteria:
Context: A cargo record has completed export status processing or is not in export status
Applied to: Unrelease Detected?
Action: Unrelease conditions are detected in the cargo status
Logic Flow:
IF A cargo record has completed export status processing or is not in export status
AND Unrelease conditions are detected in the cargo status
THEN:
• The system generates unrelease notification and restores the previous cargo status
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record has completed unrelease processing or no unrelease was detected.
Trigger Criteria:
Context: A cargo record has completed unrelease processing or no unrelease was detected
Applied to: Age Calculation Required?
Action: Age calculation is required for the cargo
Logic Flow:
IF A cargo record has completed unrelease processing or no unrelease was detected
AND Age calculation is required for the cargo
THEN:
• The system calculates cargo age using Julian date conversion and re-establishes the destination index
Business Justification: Governs the functional prerequisites and system routing when disposition code needs to be validated and processed for cargo operations.
Trigger Criteria:
Context: A disposition code needs to be validated and processed for cargo operations
Applied to: Disposition Code Table Lookup - Retrieve disposition code information from DC table including counterpart codes, quantity action flags, location requirements, and processing instructions
Action: The system performs a disposition code table lookup using the provided disposition code
Logic Flow:
IF A disposition code needs to be validated and processed for cargo operations
AND The system performs a disposition code table lookup using the provided disposition code
THEN:
• The system retrieves all associated disposition code information including counterpart codes, quantity action flags, location requirements, and processing instructions from the DC table and sets appropriate availability flags
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code is available for table lookup. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: A disposition code is available for table lookup
Applied to: Initialize DC Table Key with Disposition Code
Action: The system prepares to read the DC table
Logic Flow:
IF A disposition code is available for table lookup
AND The system prepares to read the DC table
THEN:
• The system initializes the DC table key with the disposition code value
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when dc table lookup has been performed for a disposition code. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: A DC table lookup has been performed for a disposition code
Applied to: DC Table Record Found?
Action: The system evaluates the table read results
Logic Flow:
IF A DC table lookup has been performed for a disposition code
AND The system evaluates the table read results
THEN:
• If the DC table record is found, the system proceeds to extract disposition code information, otherwise it sets the disposition code not found error flag
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when valid dc table record has been retrieved for a disposition code.
Trigger Criteria:
Context: A valid DC table record has been retrieved for a disposition code
Applied to: Extract Counterpart Code from DC-COUNTERPART-CODE & Extract Quantity Action Flag from DC-QTY-ACTION & Extract Location Requirements from DC-LOCATION-INFO & Extract Processing Instructions from DC-PROCESS-TYPE
Action: The system processes the DC table record information
Logic Flow:
IF A valid DC table record has been retrieved for a disposition code
AND The system processes the DC table record information
THEN:
• The system extracts the counterpart code value from the DC-COUNTERPART-CODE field
• The system extracts the quantity action flag from the DC-QTY-ACTION field to determine quantity processing requirements
• The system extracts location requirements from the DC-LOCATION-INFO field
• The system extracts processing instructions from the DC-PROCESS-TYPE field
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when all disposition code information has been successfully extracted from the dc table record.
Trigger Criteria:
Context: All disposition code information has been successfully extracted from the DC table record
Applied to: Set Disposition Code Information Available Flag
Action: The system completes the information extraction process
Logic Flow:
IF All disposition code information has been successfully extracted from the DC table record
AND The system completes the information extraction process
THEN:
• The system sets the disposition code information available flag to indicate successful retrieval
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code lookup has been performed against the dc table.
Trigger Criteria:
Context: A disposition code lookup has been performed against the DC table
Applied to: Set Disposition Code Not Found Error Flag
Action: The DC table record is not found for the specified disposition code
Logic Flow:
IF A disposition code lookup has been performed against the DC table
AND The DC table record is not found for the specified disposition code
THEN:
• The system sets the disposition code not found error flag
Business Justification: Defines the strict business conditions required to proceed when disposition code exists in the current processing context.
Trigger Criteria:
Context: A disposition code exists in the current processing context
Applied to: Get Counterpart Code from DC Table
Action: The system needs to find counterpart codes for removal
Logic Flow:
IF A disposition code exists in the current processing context
AND The system needs to find counterpart codes for removal
THEN:
• The system looks up the counterpart code from the DC table and sets the counterpart code found flag
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when dc table lookup has been performed for counterpart codes.
Trigger Criteria:
Context: The DC table lookup has been performed for counterpart codes
Applied to: Counterpart Code Exists?
Action: The system checks if a counterpart code was found
Logic Flow:
IF The DC table lookup has been performed for counterpart codes
AND The system checks if a counterpart code was found
THEN:
• If counterpart code exists, proceed with status array search; otherwise, skip counterpart removal processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when counterpart disposition code exists and status array contains disposition codes.
Trigger Criteria:
Context: A counterpart disposition code exists and status array contains disposition codes
Applied to: Search Status Array for Matching Codes
Action: The system searches for matching counterpart codes in the status array
Logic Flow:
IF A counterpart disposition code exists and status array contains disposition codes
AND The system searches for matching counterpart codes in the status array
THEN:
• The system iterates through all status array elements to find codes matching the counterpart code
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when system is searching through status array elements for counterpart codes.
Trigger Criteria:
Context: The system is searching through status array elements for counterpart codes
Applied to: Match Found?
Action: A status array element's disposition code is compared to the counterpart code
Logic Flow:
IF The system is searching through status array elements for counterpart codes
AND A status array element's disposition code is compared to the counterpart code
THEN:
• If codes match, proceed with additional matching criteria validation; otherwise, continue to next array element
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when matching counterpart disposition code is found in the status array.
Trigger Criteria:
Context: A matching counterpart disposition code is found in the status array
Applied to: Check Status Info Match
Action: The system validates status information compatibility
Logic Flow:
IF A matching counterpart disposition code is found in the status array
AND The system validates status information compatibility
THEN:
• The system compares status info fields and proceeds only if they match the removal criteria
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when status information matching has been validated for a counterpart code.
Trigger Criteria:
Context: Status information matching has been validated for a counterpart code
Applied to: Check Entry Number Match
Action: The system checks entry number compatibility
Logic Flow:
IF Status information matching has been validated for a counterpart code
AND The system checks entry number compatibility
THEN:
• The system compares entry numbers and proceeds only if they match or meet the removal criteria
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when entry number matching has been validated for a counterpart code.
Trigger Criteria:
Context: Entry number matching has been validated for a counterpart code
Applied to: Check Quantity Match
Action: The system checks quantity compatibility
Logic Flow:
IF Entry number matching has been validated for a counterpart code
AND The system checks quantity compatibility
THEN:
• The system compares quantities and proceeds only if they match or meet the removal criteria
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when quantity matching has been validated for a counterpart code.
Trigger Criteria:
Context: Quantity matching has been validated for a counterpart code
Applied to: Check Specific Code Patterns
Action: The system checks for specific code patterns requiring special handling
Logic Flow:
IF Quantity matching has been validated for a counterpart code
AND The system checks for specific code patterns requiring special handling
THEN:
• The system applies pattern-specific validation rules and determines if the counterpart code qualifies for removal
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when all individual matching validations have been performed for a counterpart code.
Trigger Criteria:
Context: All individual matching validations have been performed for a counterpart code
Applied to: All Matching Criteria Met?
Action: The system evaluates the combined results of all matching criteria
Logic Flow:
IF All individual matching validations have been performed for a counterpart code
AND The system evaluates the combined results of all matching criteria
THEN:
• If all criteria are met, mark the array element for removal; otherwise, continue to next array element
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when all matching criteria are satisfied for a counterpart disposition code.
Trigger Criteria:
Context: All matching criteria are satisfied for a counterpart disposition code
Applied to: Mark Array Element for Removal
Action: The system needs to prepare the array element for removal
Logic Flow:
IF All matching criteria are satisfied for a counterpart disposition code
AND The system needs to prepare the array element for removal
THEN:
• The system marks the array element for deletion and sets appropriate removal flags
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when status array element has been marked for removal.
Trigger Criteria:
Context: A status array element has been marked for removal
Applied to: Remove Element from Array
Action: The system performs the actual removal operation
Logic Flow:
IF A status array element has been marked for removal
AND The system performs the actual removal operation
THEN:
• The system removes the counterpart disposition code from the status array and sets removal tracking flags
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when one or more counterpart disposition codes have been removed from the status array.
Trigger Criteria:
Context: One or more counterpart disposition codes have been removed from the status array
Applied to: Compact Remaining Array Elements
Action: The system needs to maintain array integrity
Logic Flow:
IF One or more counterpart disposition codes have been removed from the status array
AND The system needs to maintain array integrity
THEN:
• The system shifts remaining array elements to eliminate gaps and maintains sequential order
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when status array has been compacted after counterpart code removal.
Trigger Criteria:
Context: The status array has been compacted after counterpart code removal
Applied to: Update Array Count
Action: The system needs to maintain accurate array metadata
Logic Flow:
IF The status array has been compacted after counterpart code removal
AND The system needs to maintain accurate array metadata
THEN:
• The system updates the array count to reflect the current number of active disposition codes
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when current status array element has been processed for counterpart code removal.
Trigger Criteria:
Context: The current status array element has been processed for counterpart code removal
Applied to: More Elements to Check?
Action: The system checks if more elements exist in the array
Logic Flow:
IF The current status array element has been processed for counterpart code removal
AND The system checks if more elements exist in the array
THEN:
• If more elements exist, continue processing next element; otherwise, complete counterpart removal process
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when additional status array elements exist for processing.
Trigger Criteria:
Context: Additional status array elements exist for processing
Applied to: Continue to Next Element
Action: The system needs to continue counterpart code removal evaluation
Logic Flow:
IF Additional status array elements exist for processing
AND The system needs to continue counterpart code removal evaluation
THEN:
• The system advances to the next array element and repeats the counterpart matching process
Business Justification: Ensures correct system behavior and process compliance when cargo record exists with current released quantity and a disposition code contains quantity action instructions.
Trigger Criteria:
Context: A cargo record exists with current released quantity and a disposition code contains quantity action instructions
Applied to: Release Quantity Calculation - Calculate and adjust cargo release quantities based on disposition code quantity actions with add/subtract operations and negative quantity prevention
Action: The system processes the disposition code quantity action
Logic Flow:
IF A cargo record exists with current released quantity and a disposition code contains quantity action instructions
AND The system processes the disposition code quantity action
THEN:
• The system retrieves current released quantity, applies the specified action (add or subtract), prevents negative results by setting to zero if needed, and updates the cargo status array with the new quantity
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when disposition code has action type add_quantity and contains a quantity value.
Trigger Criteria:
Context: A disposition code has action type ADD_QUANTITY and contains a quantity value
Applied to: Add Quantity to Released Amount
Action: The system processes the quantity action
Logic Flow:
IF A disposition code has action type ADD_QUANTITY and contains a quantity value
AND The system processes the quantity action
THEN:
• The system adds the disposition code quantity to the current released quantity
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when disposition code has action type subtract_quantity and contains a quantity value.
Trigger Criteria:
Context: A disposition code has action type SUBTRACT_QUANTITY and contains a quantity value
Applied to: Subtract Quantity from Released Amount
Action: The system processes the quantity action
Logic Flow:
IF A disposition code has action type SUBTRACT_QUANTITY and contains a quantity value
AND The system processes the quantity action
THEN:
• The system subtracts the disposition code quantity from the current released quantity
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when quantity subtraction operation would result in a negative released quantity.
Trigger Criteria:
Context: A quantity subtraction operation would result in a negative released quantity
Applied to: Set Released Quantity to Zero
Action: The system calculates the new released quantity
Logic Flow:
IF A quantity subtraction operation would result in a negative released quantity
AND The system calculates the new released quantity
THEN:
• The system sets the released quantity to zero instead of allowing the negative value
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code is being processed for quantity actions.
Trigger Criteria:
Context: A disposition code is being processed for quantity actions
Applied to: Check Disposition Code Quantity Action
Action: The system evaluates the disposition code action type
Logic Flow:
IF A disposition code is being processed for quantity actions
AND The system evaluates the disposition code action type
THEN:
• The system identifies whether to add quantity, subtract quantity, or perform no quantity action based on the disposition code configuration
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when new released quantity has been calculated from disposition code processing.
Trigger Criteria:
Context: A new released quantity has been calculated from disposition code processing
Applied to: Store Updated Quantity in Status Array
Action: The system completes the quantity calculation
Logic Flow:
IF A new released quantity has been calculated from disposition code processing
AND The system completes the quantity calculation
THEN:
• The system stores the updated released quantity in the appropriate cargo status array entry
R-GCX016-cbl-04397 (+10)File: GCX016.cblBusiness Rule: B530: Attempt Car ID Only Search
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when car id and us-ccn key are available for cargo search.
Trigger Criteria:
Context: A car ID and US-CCN key are available for cargo search
Applied to: Set US-CCN Key for Initial Search
Action: The system initiates cargo search with both car ID and US-CCN key parameters
Logic Flow:
IF A car ID and US-CCN key are available for cargo search
AND The system initiates cargo search with both car ID and US-CCN key parameters
THEN:
• The system should set the US-CCN key constraint and perform targeted search using car ID index
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when raw car id or equipment identifier is provided.
Trigger Criteria:
Context: A raw car ID or equipment identifier is provided
Applied to: Format Equipment ID using GCCCARFM
Action: The system needs to search for cargo by car ID
Logic Flow:
IF A raw car ID or equipment identifier is provided
AND The system needs to search for cargo by car ID
THEN:
• The system should format the equipment ID using GCCCARFM formatting rules before search
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when formatted car id and us-ccn key are available. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: Formatted car ID and US-CCN key are available
Applied to: Call GCCUSIO with Car ID Index
Action: The system performs primary cargo search
Logic Flow:
IF Formatted car ID and US-CCN key are available
AND The system performs primary cargo search
THEN:
• The system should call GCCUSIO using car ID index with US-CCN key constraint to find matching cargo
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when primary cargo search has been executed with car id and us-ccn key.
Trigger Criteria:
Context: Primary cargo search has been executed with car ID and US-CCN key
Applied to: Cargo Found with US-CCN Key?
Action: The system evaluates search results
Logic Flow:
IF Primary cargo search has been executed with car ID and US-CCN key
AND The system evaluates search results
THEN:
• The system should determine if cargo was found and validate the cargo record matches search criteria
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when primary cargo search with us-ccn key constraint returned no results.
Trigger Criteria:
Context: Primary cargo search with US-CCN key constraint returned no results
Applied to: Clear US-CCN Key Constraint
Action: The system needs to perform fallback search
Logic Flow:
IF Primary cargo search with US-CCN key constraint returned no results
AND The system needs to perform fallback search
THEN:
• The system should clear the US-CCN key constraint to enable broader search criteria
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when us-ccn key constraint has been cleared and car id is available. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context:US-CCN key constraint has been cleared and car ID is available
Applied to: Call GCCUSIO with Car ID Only
Action: The system performs secondary cargo search
Logic Flow:
IFUS-CCN key constraint has been cleared and car ID is available
AND The system performs secondary cargo search
THEN:
• The system should call GCCUSIO using car ID index without US-CCN key constraint
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when secondary cargo search has been executed with car id only.
Trigger Criteria:
Context: Secondary cargo search has been executed with car ID only
Applied to: Cargo Found without US-CCN?
Action: The system evaluates secondary search results
Logic Flow:
IF Secondary cargo search has been executed with car ID only
AND The system evaluates secondary search results
THEN:
• The system should determine if cargo was found without US-CCN key constraint
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record has been found through either primary or secondary search.
Trigger Criteria:
Context: Cargo record has been found through either primary or secondary search
Applied to: Validate Cargo Record Match
Action: The system validates the found cargo record
Logic Flow:
IF Cargo record has been found through either primary or secondary search
AND The system validates the found cargo record
THEN:
• The system should verify the cargo record matches business validation criteria
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when valid cargo record has been found and validated.
Trigger Criteria:
Context: A valid cargo record has been found and validated
Applied to: Return Found Cargo Record
Action: The system completes cargo search process
Logic Flow:
IF A valid cargo record has been found and validated
AND The system completes cargo search process
THEN:
• The system should return the found cargo record for further processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when both primary search with us-ccn key and secondary search with car id only have failed.
Trigger Criteria:
Context: Both primary search with US-CCN key and secondary search with car ID only have failed
Applied to: Set Cargo Not Found Status
Action: The system cannot locate any matching cargo records
Logic Flow:
IF Both primary search with US-CCN key and secondary search with car ID only have failed
AND The system cannot locate any matching cargo records
THEN:
• The system should set cargo not found status to indicate search failure
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo search process has completed with either success or failure.
Trigger Criteria:
Context: Cargo search process has completed with either success or failure
Applied to: Log Search Attempt Results
Action: The system finalizes search operations
Logic Flow:
IF Cargo search process has completed with either success or failure
AND The system finalizes search operations
THEN:
• The system should log search attempt results including search criteria and outcomes
R-GCX016-cbl-04408 (+13)File: GCX016.cblBusiness Rule: C200: Create Foreign Bill Record
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when foreign bill does not exist in the system.
Trigger Criteria:
Context: A foreign bill does not exist in the system
Applied to: Initialize New Cargo Record
Action: The system creates a new cargo record
Logic Flow:
IF A foreign bill does not exist in the system
AND The system creates a new cargo record
THEN:
• The cargo record is initialized with default values including cleared fields and basic structure
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when new cargo record is being created.
Trigger Criteria:
Context: A new cargo record is being created
Applied to: Set Default CPRS Status Code
Action: The cargo type is CPRS
Logic Flow:
IF A new cargo record is being created
AND The cargo type is CPRS
THEN:
• Set cargo status to ERROR with description ERROR, otherwise set status to SENT with description SENT
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when new cargo record is being created.
Trigger Criteria:
Context: A new cargo record is being created
Applied to: Initialize Broker Information Fields
Action: Broker information needs to be initialized
Logic Flow:
IF A new cargo record is being created
AND Broker information needs to be initialized
THEN:
• Clear and initialize all broker-related fields to default values
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when new cargo record with status information.
Trigger Criteria:
Context: A new cargo record with status information
Applied to: Set Default USCS Status Code
Action: The current acknowledgment status is blank or equals ACK-R
Logic Flow:
IF A new cargo record with status information
AND The current acknowledgment status is blank or equals ACK-R
THEN:
• Set default acknowledgment status to ACK orACK-R as appropriate
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when m10 segment data is available.
Trigger Criteria:
Context: M10 segment data is available
Applied to: Build M10 Manifest Information
Action: Building manifest information for new cargo
Logic Flow:
IF M10 segment data is available
AND Building manifest information for new cargo
THEN:
• Extract and assign manifest details from M10 segment to cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when new cargo record with disposition code 1j, 69, or 55.
Trigger Criteria:
Context: A new cargo record with disposition code 1J, 69, or 55
Applied to: Process Master In-Bond Entry Types 61,62,63,69
Action: The entry type is 61, 62, 63, or 69
Logic Flow:
IF A new cargo record with disposition code 1J, 69, or 55
AND The entry type is 61, 62, 63, or 69
THEN:
• Set master in-bond flag M1109 and process as master in-bond entry
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when entry type code for master in-bond processing.
Trigger Criteria:
Context: An entry type code for master in-bond processing
Applied to: Map Entry Type to Transport Type
Action: Entry type is 61, 62, 63, 69, or 00
Logic Flow:
IF An entry type code for master in-bond processing
AND Entry type is 61, 62, 63, 69, or 00
THEN:
• Map to immediate transport, transport export, immediate export, US-Canada-US movement, or border processing respectively
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record with entry type 00 (border entry).
Trigger Criteria:
Context: A cargo record with entry type 00 (border entry)
Applied to: Clear Bond Information for Border Entry
Action: Processing bond information
Logic Flow:
IF A cargo record with entry type 00 (border entry)
AND Processing bond information
THEN:
• Clear all bond-related fields and information
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record with entry number information.
Trigger Criteria:
Context: A cargo record with entry number information
Applied to: Set Bond Control Numbers
Action: Entry number starts with V
Logic Flow:
IF A cargo record with entry number information
AND Entry number starts with V
THEN:
• Place in entry number field, otherwise place in in-bond control number field
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when new cargo record being created.
Trigger Criteria:
Context: A new cargo record being created
Applied to: Initialize Cargo Quantities
Action: Quantity information needs initialization
Logic Flow:
IF A new cargo record being created
AND Quantity information needs initialization
THEN:
• Initialize all quantity fields including total quantity, release quantity, and piece counts
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when new cargo record with manifest information.
Trigger Criteria:
Context: A new cargo record with manifest information
Applied to: Set Manifest Type and Condition Codes
Action: Setting manifest classification
Logic Flow:
IF A new cargo record with manifest information
AND Setting manifest classification
THEN:
• Assign appropriate manifest type and condition codes based on cargo type and processing requirements
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when new cargo record with carrier information.
Trigger Criteria:
Context: A new cargo record with carrier information
Applied to: Assign SCAC Code and Vessel Information
Action: Assigning carrier and vessel details
Logic Flow:
IF A new cargo record with carrier information
AND Assigning carrier and vessel details
THEN:
• Set SCAC code and vessel information from manifest data
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when new cargo record with transportation details.
Trigger Criteria:
Context: A new cargo record with transportation details
Applied to: Set Country Code and Flight/Voyage Number
Action: Setting origin and transportation identifiers
Logic Flow:
IF A new cargo record with transportation details
AND Setting origin and transportation identifiers
THEN:
• Assign country code and flight or voyage number from manifest information
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when fully initialized new cargo record.
Trigger Criteria:
Context: A fully initialized new cargo record
Applied to: Store Cargo Record in Database
Action: Saving the record to the database
Logic Flow:
IF A fully initialized new cargo record
AND Saving the record to the database
THEN:
• Insert the cargo record into the database and confirm successful storage
R-GCX016-cbl-04422 (+12)File: GCX016.cblBusiness Rule: Search Status Array for Matching Codes
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when status array search operation is requested.
Trigger Criteria:
Context: A status array search operation is requested
Applied to: Start Status Array Search
Action: The search process begins
Logic Flow:
IF A status array search operation is requested
AND The search process begins
THEN:
• The system initializes the search parameters and prepares to iterate through the status array
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when status array search is initialized.
Trigger Criteria:
Context: The status array search is initialized
Applied to: Initialize Array Index to 1
Action: The system prepares to iterate through array elements
Logic Flow:
IF The status array search is initialized
AND The system prepares to iterate through array elements
THEN:
• The array index is set to position 1 to start from the first element
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when array index position is being evaluated.
Trigger Criteria:
Context: An array index position is being evaluated
Applied to: Index <= Array Count?
Action: The system checks if more elements exist to process
Logic Flow:
IF An array index position is being evaluated
AND The system checks if more elements exist to process
THEN:
• If index is less than or equal to array count, continue processing; otherwise terminate search
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when valid array index position exists.
Trigger Criteria:
Context: A valid array index position exists
Applied to: Get Current Array Element
Action: The system needs to examine a status element
Logic Flow:
IF A valid array index position exists
AND The system needs to examine a status element
THEN:
• The current array element is retrieved and made available for matching criteria evaluation
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when status array element is being evaluated for matching.
Trigger Criteria:
Context: A status array element is being evaluated for matching
Applied to: Check Status Info Match?
Action: The system checks the status information field
Logic Flow:
IF A status array element is being evaluated for matching
AND The system checks the status information field
THEN:
• If status information matches search criteria, proceed to next validation; otherwise skip to next element
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when status element has passed status information validation.
Trigger Criteria:
Context: A status element has passed status information validation
Applied to: Check Entry Number Match?
Action: The system checks the entry number field
Logic Flow:
IF A status element has passed status information validation
AND The system checks the entry number field
THEN:
• If entry number matches search criteria, proceed to quantity validation; otherwise skip to next element
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when status element has passed status information and entry number validation.
Trigger Criteria:
Context: A status element has passed status information and entry number validation
Applied to: Check Quantity Match?
Action: The system checks the quantity field
Logic Flow:
IF A status element has passed status information and entry number validation
AND The system checks the quantity field
THEN:
• If quantity matches search criteria, proceed to code pattern validation; otherwise skip to next element
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when status element has passed all previous validation criteria.
Trigger Criteria:
Context: A status element has passed all previous validation criteria
Applied to: Check Code Pattern Match?
Action: The system checks the code pattern field
Logic Flow:
IF A status element has passed all previous validation criteria
AND The system checks the code pattern field
THEN:
• If code pattern matches search criteria, mark element as found; otherwise skip to next element
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when status element has satisfied all matching criteria.
Trigger Criteria:
Context: A status element has satisfied all matching criteria
Applied to: Mark Element as Match Found
Action: The system confirms a complete match
Logic Flow:
IF A status element has satisfied all matching criteria
AND The system confirms a complete match
THEN:
• The element is marked as found and flagged for further processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when current array element has been processed.
Trigger Criteria:
Context: The current array element has been processed
Applied to: Increment Array Index
Action: The system needs to move to the next element
Logic Flow:
IF The current array element has been processed
AND The system needs to move to the next element
THEN:
• The array index is incremented by one position
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when current array element does not meet matching criteria.
Trigger Criteria:
Context: The current array element does not meet matching criteria
Applied to: Continue to Next Element
Action: The system needs to continue searching
Logic Flow:
IF The current array element does not meet matching criteria
AND The system needs to continue searching
THEN:
• The process moves to increment the array index and evaluate the next element
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when status array search has completed processing all elements.
Trigger Criteria:
Context: The status array search has completed processing all elements
Applied to: Return Match Results
Action: The system has finished evaluating the entire array
Logic Flow:
IF The status array search has completed processing all elements
AND The system has finished evaluating the entire array
THEN:
• The search results including any matching elements are returned to the calling process
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when search results have been returned.
Trigger Criteria:
Context: The search results have been returned
Applied to: End Search Process
Action: The status array search operation is complete
Logic Flow:
IF The search results have been returned
AND The status array search operation is complete
THEN:
• The search process is terminated and control returns to the calling procedure
Business Justification: Dictates the expected operational logic and validation steps when status array exists with current disposition codes.
Trigger Criteria:
Context: A status array exists with current disposition codes
Applied to: Check Current Array Count
Action: The system needs to add a new disposition code to the array
Logic Flow:
IF A status array exists with current disposition codes
AND The system needs to add a new disposition code to the array
THEN:
• The system checks the current count of entries in the status array
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when system needs to validate array capacity.
Trigger Criteria:
Context: The system needs to validate array capacity
Applied to: Get Maximum Array Limit
Action: Checking if new disposition codes can be added
Logic Flow:
IF The system needs to validate array capacity
AND Checking if new disposition codes can be added
THEN:
• The system retrieves the maximum allowed array limit from system configuration
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when current array count and maximum array limit are known.
Trigger Criteria:
Context: Current array count and maximum array limit are known
Applied to: Array Count < Maximum?
Action: The system evaluates array capacity
Logic Flow:
IF Current array count and maximum array limit are known
AND The system evaluates array capacity
THEN:
• If current array count is less than maximum limit, allow addition; otherwise prevent addition
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when array has available capacity for new entries.
Trigger Criteria:
Context: Array has available capacity for new entries
Applied to: Add Disposition Code to Array
Action: A valid disposition code needs to be added
Logic Flow:
IF Array has available capacity for new entries
AND A valid disposition code needs to be added
THEN:
• The system adds the disposition code to the next available position in the status array
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when array count equals or exceeds maximum capacity.
Trigger Criteria:
Context: Array count equals or exceeds maximum capacity
Applied to: Set Array Overflow Flag
Action: Attempting to add a new disposition code
Logic Flow:
IF Array count equals or exceeds maximum capacity
AND Attempting to add a new disposition code
THEN:
• The system sets an array overflow flag to indicate capacity exceeded condition
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when array overflow flag has been set.
Trigger Criteria:
Context: Array overflow flag has been set
Applied to: Generate Overflow Error Message
Action: Processing the overflow condition
Logic Flow:
IF Array overflow flag has been set
AND Processing the overflow condition
THEN:
• The system generates an appropriate error message indicating array capacity has been exceeded
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when overflow error message has been generated.
Trigger Criteria:
Context: An overflow error message has been generated
Applied to: Log Overflow Condition
Action: Recording the overflow event
Logic Flow:
IF An overflow error message has been generated
AND Recording the overflow event
THEN:
• The system logs the overflow condition with relevant details for operational review
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when array overflow condition has been logged.
Trigger Criteria:
Context: Array overflow condition has been logged
Applied to: Skip Code Addition
Action: Continuing with processing
Logic Flow:
IF Array overflow condition has been logged
AND Continuing with processing
THEN:
• The system skips adding the disposition code and continues without modifying the array
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when disposition code has been successfully added to the array.
Trigger Criteria:
Context: A disposition code has been successfully added to the array
Applied to: Update Array Counter
Action: Completing the addition process
Logic Flow:
IF A disposition code has been successfully added to the array
AND Completing the addition process
THEN:
• The system increments the array counter to reflect the new total count
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when array overflow condition has been detected and logged.
Trigger Criteria:
Context: Array overflow condition has been detected and logged
Applied to: Route Error to Operations
Action: Error handling is required
Logic Flow:
IF Array overflow condition has been detected and logged
AND Error handling is required
THEN:
• The system routes the overflow error to the operations team for investigation and resolution
R-GCX016-cbl-04445 (+21)File: GCX016.cblBusiness Rule: Array Compaction Process
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when array compaction process is starting.
Trigger Criteria:
Context: Array compaction process is starting
Applied to: Initialize Compaction Variables
Action: System begins array compaction operation
Logic Flow:
IF Array compaction process is starting
AND System begins array compaction operation
THEN:
• Compaction variables are initialized to default values for tracking element positions and array boundaries
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when status array contains elements that may be marked for removal.
Trigger Criteria:
Context: Status array contains elements that may be marked for removal
Applied to: Scan Status Array for Marked Elements
Action: System scans through each array position
Logic Flow:
IF Status array contains elements that may be marked for removal
AND System scans through each array position
THEN:
• Each element is evaluated to determine if it should be removed from the array
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when array element is being evaluated during compaction scan.
Trigger Criteria:
Context: An array element is being evaluated during compaction scan
Applied to: Element Marked for Removal?
Action: System checks element removal markers or status flags
Logic Flow:
IF An array element is being evaluated during compaction scan
AND System checks element removal markers or status flags
THEN:
• Element is classified as either marked for removal or to be retained in the array
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when array element has been identified for removal.
Trigger Criteria:
Context: An array element has been identified for removal
Applied to: Mark Element Position
Action: System processes the element marked for removal
Logic Flow:
IF An array element has been identified for removal
AND System processes the element marked for removal
THEN:
• Element position is recorded for subsequent removal during array compaction
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when current array element has been processed for removal evaluation.
Trigger Criteria:
Context: Current array element has been processed for removal evaluation
Applied to: Continue Scanning
Action: System moves to next array position
Logic Flow:
IF Current array element has been processed for removal evaluation
AND System moves to next array position
THEN:
• Scanning continues with the subsequent array element
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when system is scanning array elements for compaction.
Trigger Criteria:
Context: System is scanning array elements for compaction
Applied to: More Elements to Check?
Action: Current element scanning is complete
Logic Flow:
IF System is scanning array elements for compaction
AND Current element scanning is complete
THEN:
• System determines whether more elements remain to be checked or scanning phase is complete
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when array scanning is complete and elements marked for removal are identified.
Trigger Criteria:
Context: Array scanning is complete and elements marked for removal are identified
Applied to: Begin Element Shifting Process
Action: System starts the element shifting phase of compaction
Logic Flow:
IF Array scanning is complete and elements marked for removal are identified
AND System starts the element shifting phase of compaction
THEN:
• Element shifting process begins to compact the array by removing gaps
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when array contains gaps from removed elements.
Trigger Criteria:
Context: Array contains gaps from removed elements
Applied to: Identify First Gap Position
Action: System searches for the first available gap position
Logic Flow:
IF Array contains gaps from removed elements
AND System searches for the first available gap position
THEN:
• First gap position is identified as the target for element movement
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when gap position has been identified for filling.
Trigger Criteria:
Context: A gap position has been identified for filling
Applied to: Find Next Valid Element
Action: System searches for valid elements to move into the gap
Logic Flow:
IF A gap position has been identified for filling
AND System searches for valid elements to move into the gap
THEN:
• Next valid element is located for movement to the gap position
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when system is searching for elements to move during compaction.
Trigger Criteria:
Context: System is searching for elements to move during compaction
Applied to: Valid Element Found?
Action: Search for valid element is complete
Logic Flow:
IF System is searching for elements to move during compaction
AND Search for valid element is complete
THEN:
• System determines if a valid element was found orif no more elements need to be moved
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when valid element and gap position have been identified.
Trigger Criteria:
Context: A valid element and gap position have been identified
Applied to: Shift Element to Gap Position
Action: System performs element movement operation
Logic Flow:
IF A valid element and gap position have been identified
AND System performs element movement operation
THEN:
• Element is copied from its current position to the gap position in the array
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when element has been moved to a new position in the array.
Trigger Criteria:
Context: An element has been moved to a new position in the array
Applied to: Update Element Pointers
Action: System updates element tracking information
Logic Flow:
IF An element has been moved to a new position in the array
AND System updates element tracking information
THEN:
• All pointers and references are updated to reflect the element's new position
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when element has been successfully moved to a new position.
Trigger Criteria:
Context: An element has been successfully moved to a new position
Applied to: Mark Old Position as Empty
Action: System processes the element's original position
Logic Flow:
IF An element has been successfully moved to a new position
AND System processes the element's original position
THEN:
• Original position is marked as empty and available for future use
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when element has been successfully shifted to fill a gap.
Trigger Criteria:
Context: An element has been successfully shifted to fill a gap
Applied to: More Elements to Shift?
Action: System evaluates remaining elements for movement
Logic Flow:
IF An element has been successfully shifted to fill a gap
AND System evaluates remaining elements for movement
THEN:
• System determines whether more elements need to be shifted or compaction is complete
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when array compaction and element shifting is complete.
Trigger Criteria:
Context: Array compaction and element shifting is complete
Applied to: Update Array Count
Action: System calculates the new array element count
Logic Flow:
IF Array compaction and element shifting is complete
AND System calculates the new array element count
THEN:
• Array count is updated to reflect the number of valid elements remaining after compaction
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when array compaction process is complete.
Trigger Criteria:
Context: Array compaction process is complete
Applied to: Validate Array Integrity
Action: System validates the compacted array structure
Logic Flow:
IF Array compaction process is complete
AND System validates the compacted array structure
THEN:
• Array integrity is verified to ensure all elements are properly positioned and accessible
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when array integrity validation has been performed.
Trigger Criteria:
Context: Array integrity validation has been performed
Applied to: Array Structure Valid?
Action: System evaluates validation results
Logic Flow:
IF Array integrity validation has been performed
AND System evaluates validation results
THEN:
• System determines if array structure is valid orif error recovery is needed
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when array structure has been validated as correct after compaction.
Trigger Criteria:
Context: Array structure has been validated as correct after compaction
Applied to: Clear Unused Array Positions
Action: System processes unused array positions
Logic Flow:
IF Array structure has been validated as correct after compaction
AND System processes unused array positions
THEN:
• All unused positions beyond the new array boundary are cleared and reset
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when array compaction is complete and unused positions are cleared.
Trigger Criteria:
Context: Array compaction is complete and unused positions are cleared
Applied to: Set New Array Boundary
Action: System sets the new array boundary
Logic Flow:
IF Array compaction is complete and unused positions are cleared
AND System sets the new array boundary
THEN:
• Array boundary is updated to reflect the compacted size and valid element range
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when all compaction steps have been completed successfully.
Trigger Criteria:
Context: All compaction steps have been completed successfully
Applied to: Array Compaction Complete
Action: System finalizes the compaction process
Logic Flow:
IF All compaction steps have been completed successfully
AND System finalizes the compaction process
THEN:
• Array compaction is marked as complete and array is ready for normal operations
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when array structure validation has failed.
Trigger Criteria:
Context: Array structure validation has failed
Applied to: Log Array Compaction Error
Action: System detects compaction errors
Logic Flow:
IF Array structure validation has failed
AND System detects compaction errors
THEN:
• Error details are logged for troubleshooting and recovery processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when array compaction has failed validation and errors are logged.
Trigger Criteria:
Context: Array compaction has failed validation and errors are logged
Applied to: Restore Array to Previous State
Action: System performs error recovery
Logic Flow:
IF Array compaction has failed validation and errors are logged
AND System performs error recovery
THEN:
• Array is restored to its previous valid state before compaction was attempted
R-GCX016-cbl-04467 (+30)File: GCX016.cblBusiness Rule: Begin S09A Status Array Analysis
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when system is about to analyze the s09a status array.
Trigger Criteria:
Context: The system is about to analyze the S09A status array
Applied to: Initialize Analysis Variables
Action: The status analysis process begins
Logic Flow:
IF The system is about to analyze the S09A status array
AND The status analysis process begins
THEN:
• All analysis variables are initialized to default values including hold flags, release flags, PTT flags, proceed flags, arrival flags, export flags, FDA hold flags, and quantity counters
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when s09a status array exists and contains elements.
Trigger Criteria:
Context: The S09A status array exists and contains elements
Applied to: Set Array Index to First Element
Action: The system begins array processing
Logic Flow:
IF The S09A status array exists and contains elements
AND The system begins array processing
THEN:
• The array index is set to position 1 to start processing from the first element
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when system is processing the s09a status array.
Trigger Criteria:
Context: The system is processing the S09A status array
Applied to: More Elements in S09A Array?
Action: The system checks the current array index position
Logic Flow:
IF The system is processing the S09A status array
AND The system checks the current array index position
THEN:
• If the current index is within the array bounds, continue processing; otherwise, complete the analysis
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when array index points to a valid position in the s09a array.
Trigger Criteria:
Context: The array index points to a valid position in the S09A array
Applied to: Get Current Array Element
Action: The system processes the current array element
Logic Flow:
IF The array index points to a valid position in the S09A array
AND The system processes the current array element
THEN:
• The current array element is retrieved and made available for disposition code analysis
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when valid s09a array element is being processed.
Trigger Criteria:
Context: A valid S09A array element is being processed
Applied to: Extract Disposition Code
Action: The system analyzes the array element structure
Logic Flow:
IF A valid S09A array element is being processed
AND The system analyzes the array element structure
THEN:
• The disposition code is extracted from the element and made available for classification
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code has been extracted from the array element.
Trigger Criteria:
Context: A disposition code has been extracted from the array element
Applied to: Extract Status Information
Action: The system continues element analysis
Logic Flow:
IF A disposition code has been extracted from the array element
AND The system continues element analysis
THEN:
• Status information including flags and indicators are extracted from the element
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when status information has been extracted from the array element.
Trigger Criteria:
Context: Status information has been extracted from the array element
Applied to: Extract Location Information
Action: The system continues detailed element analysis
Logic Flow:
IF Status information has been extracted from the array element
AND The system continues detailed element analysis
THEN:
• Location information including border and destination indicators are extracted from the element
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when location information has been extracted from the array element.
Trigger Criteria:
Context: Location information has been extracted from the array element
Applied to: Extract Quantity Information
Action: The system completes element data extraction
Logic Flow:
IF Location information has been extracted from the array element
AND The system completes element data extraction
THEN:
• Quantity information including release quantities and totals are extracted from the element
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code has been extracted from the s09a array element.
Trigger Criteria:
Context: A disposition code has been extracted from the S09A array element
Applied to: Is Hold Code?
Action: The system evaluates the disposition code type
Logic Flow:
IF A disposition code has been extracted from the S09A array element
AND The system evaluates the disposition code type
THEN:
• If the disposition code indicates a hold status, set the hold processing flag; otherwise, continue to release code evaluation
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code has been identified as a hold code.
Trigger Criteria:
Context: The disposition code has been identified as a hold code
Applied to: Set Hold Status Flag
Action: The system processes the hold disposition
Logic Flow:
IF The disposition code has been identified as a hold code
AND The system processes the hold disposition
THEN:
• The hold status flag is set to true to indicate cargo is held
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when hold status flag has been set and location information is available.
Trigger Criteria:
Context: A hold status flag has been set and location information is available
Applied to: Is Border Hold?
Action: The system evaluates the hold location
Logic Flow:
IF A hold status flag has been set and location information is available
AND The system evaluates the hold location
THEN:
• If the hold applies to border location, set border hold flag; otherwise, set destination hold flag
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when hold has been determined to apply to border location.
Trigger Criteria:
Context: The hold has been determined to apply to border location
Applied to: Set Border Hold Flag
Action: The system processes the border hold
Logic Flow:
IF The hold has been determined to apply to border location
AND The system processes the border hold
THEN:
• The border hold flag is set to true to indicate cargo is held at border
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when hold has been determined to apply to destination location.
Trigger Criteria:
Context: The hold has been determined to apply to destination location
Applied to: Set Destination Hold Flag
Action: The system processes the destination hold
Logic Flow:
IF The hold has been determined to apply to destination location
AND The system processes the destination hold
THEN:
• The destination hold flag is set to true to indicate cargo is held at destination
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code is not a hold code.
Trigger Criteria:
Context: The disposition code is not a hold code
Applied to: Is Release Code?
Action: The system evaluates the disposition code for release status
Logic Flow:
IF The disposition code is not a hold code
AND The system evaluates the disposition code for release status
THEN:
• If the disposition code indicates a release status, set the release processing flag; otherwise, continue to PTT code evaluation
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code has been identified as a release code.
Trigger Criteria:
Context: The disposition code has been identified as a release code
Applied to: Set Release Status Flag
Action: The system processes the release disposition
Logic Flow:
IF The disposition code has been identified as a release code
AND The system processes the release disposition
THEN:
• The release status flag is set to true to indicate cargo is released
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when release status flag has been set and quantity information is available.
Trigger Criteria:
Context: A release status flag has been set and quantity information is available
Applied to: Update Release Quantity
Action: The system processes the release quantity
Logic Flow:
IF A release status flag has been set and quantity information is available
AND The system processes the release quantity
THEN:
• The release quantity is updated by adding or subtracting the specified quantity amount
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when disposition code is not a release code.
Trigger Criteria:
Context: The disposition code is not a release code
Applied to: Is PTT Code?
Action: The system evaluates the disposition code for PTT status
Logic Flow:
IF The disposition code is not a release code
AND The system evaluates the disposition code for PTT status
THEN:
• If the disposition code indicates PTT status, set the PTT processing flag; otherwise, continue to proceed code evaluation
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code has been identified as a ptt code.
Trigger Criteria:
Context: The disposition code has been identified as a PTT code
Applied to: Set PTT Status Flag
Action: The system processes the PTT disposition
Logic Flow:
IF The disposition code has been identified as a PTT code
AND The system processes the PTT disposition
THEN:
• The PTT status flag is set to true to indicate cargo can proceed to transfer
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when ptt status flag has been set.
Trigger Criteria:
Context: A PTT status flag has been set
Applied to: Save PTT Information
Action: The system processes PTT information
Logic Flow:
IF A PTT status flag has been set
AND The system processes PTT information
THEN:
• PTT information including location and quantity details are saved for later use
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code is not a ptt code.
Trigger Criteria:
Context: The disposition code is not a PTT code
Applied to: Is Proceed Code?
Action: The system evaluates the disposition code for proceed status
Logic Flow:
IF The disposition code is not a PTT code
AND The system evaluates the disposition code for proceed status
THEN:
• If the disposition code indicates proceed status, set the proceed processing flag; otherwise, continue to arrival code evaluation
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code has been identified as a proceed code.
Trigger Criteria:
Context: The disposition code has been identified as a proceed code
Applied to: Set Proceed Status Flag
Action: The system processes the proceed disposition
Logic Flow:
IF The disposition code has been identified as a proceed code
AND The system processes the proceed disposition
THEN:
• The proceed status flag is set to true to indicate cargo can proceed
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when proceed status flag has been set.
Trigger Criteria:
Context: A proceed status flag has been set
Applied to: Update Border Arrival Date
Action: The system processes the proceed status
Logic Flow:
IF A proceed status flag has been set
AND The system processes the proceed status
THEN:
• The border arrival date is updated to reflect the proceed processing date
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when disposition code is not a proceed code.
Trigger Criteria:
Context: The disposition code is not a proceed code
Applied to: Is Arrival Code?
Action: The system evaluates the disposition code for arrival status
Logic Flow:
IF The disposition code is not a proceed code
AND The system evaluates the disposition code for arrival status
THEN:
• If the disposition code indicates arrival status, set the arrival processing flag; otherwise, continue to export code evaluation
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code has been identified as an arrival code.
Trigger Criteria:
Context: The disposition code has been identified as an arrival code
Applied to: Set Arrival Status Flag
Action: The system processes the arrival disposition
Logic Flow:
IF The disposition code has been identified as an arrival code
AND The system processes the arrival disposition
THEN:
• The arrival status flag is set to true to indicate cargo has arrived
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code is not an arrival code.
Trigger Criteria:
Context: The disposition code is not an arrival code
Applied to: Is Export Code?
Action: The system evaluates the disposition code for export status
Logic Flow:
IF The disposition code is not an arrival code
AND The system evaluates the disposition code for export status
THEN:
• If the disposition code indicates export status, set the export processing flag; otherwise, continue to FDA hold code evaluation
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code has been identified as an export code.
Trigger Criteria:
Context: The disposition code has been identified as an export code
Applied to: Set Export Status Flag
Action: The system processes the export disposition
Logic Flow:
IF The disposition code has been identified as an export code
AND The system processes the export disposition
THEN:
• The export status flag is set to true to indicate cargo is being exported
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when disposition code is not an export code.
Trigger Criteria:
Context: The disposition code is not an export code
Applied to: Is FDA Hold Code?
Action: The system evaluates the disposition code for FDA hold status
Logic Flow:
IF The disposition code is not an export code
AND The system evaluates the disposition code for FDA hold status
THEN:
• If the disposition code indicates FDA hold status, set the FDA hold processing flag; otherwise, continue to next array element
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code has been identified as an fda hold code.
Trigger Criteria:
Context: The disposition code has been identified as an FDA hold code
Applied to: Set FDA Hold Status Flag
Action: The system processes the FDA hold disposition
Logic Flow:
IF The disposition code has been identified as an FDA hold code
AND The system processes the FDA hold disposition
THEN:
• The FDA hold status flag is set to true to indicate cargo is under FDA hold
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when current array element has been completely processed.
Trigger Criteria:
Context: The current array element has been completely processed
Applied to: Increment Array Index
Action: The system prepares to process the next element
Logic Flow:
IF The current array element has been completely processed
AND The system prepares to process the next element
THEN:
• The array index is incremented by 1 to point to the next element in the array
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when all elements in the s09a status array have been processed.
Trigger Criteria:
Context: All elements in the S09A status array have been processed
Applied to: Complete Status Determination
Action: The system reaches the end of the array
Logic Flow:
IF All elements in the S09A status array have been processed
AND The system reaches the end of the array
THEN:
• The status determination analysis is marked as complete with all flags and counters finalized
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when status determination analysis has been completed.
Trigger Criteria:
Context: The status determination analysis has been completed
Applied to: Return Analysis Results
Action: The system prepares to return control to the calling process
Logic Flow:
IF The status determination analysis has been completed
AND The system prepares to return control to the calling process
THEN:
• All analysis results including hold flags, release flags, PTT flags, proceed flags, arrival flags, export flags, FDA hold flags, and quantity totals are returned
R-GCX016-cbl-04498 (+18)File: GCX016.cblBusiness Rule: Analyze Combined Flag States
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo status analysis is being performed and hold flags have been set during processing and release flags have been set during processing.
Trigger Criteria:
Context: Cargo status analysis is being performed AND hold flags have been set during processing AND release flags have been set during processing
Applied to: Check Hold/Release Conflict
Action: The system evaluates flag combinations for conflicts
Logic Flow:
IF Cargo status analysis is being performed AND hold flags have been set during processing AND release flags have been set during processing
AND The system evaluates flag combinations for conflicts
THEN:
• A hold/release conflict is identified when both flag types are active simultaneously
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when hold/release conflict exists and both hold and release flags are set.
Trigger Criteria:
Context: A hold/release conflict exists AND both hold and release flags are set
Applied to: Apply Hold Priority Rule
Action: The system applies conflict resolution rules
Logic Flow:
IF A hold/release conflict exists AND both hold and release flags are set
AND The system applies conflict resolution rules
THEN:
• Hold flags take priority AND release flags are overridden AND hold status is preserved
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when ptt flag is set for cargo and cargo has defined total quantities and cargo has defined release quantities.
Trigger Criteria:
Context: PTT flag is set for cargo AND cargo has defined total quantities AND cargo has defined release quantities
Applied to: Validate PTT Quantities
Action: The system validates PTT quantity requirements
Logic Flow:
IF PTT flag is set for cargo AND cargo has defined total quantities AND cargo has defined release quantities
AND The system validates PTT quantity requirements
THEN:
• PTT quantities are valid when release quantities meet or exceed required thresholds for PTT status
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when ptt flag is set and ptt quantity validation has been performed and ptt quantities are determined to be invalid.
Trigger Criteria:
Context: PTT flag is set AND PTT quantity validation has been performed AND PTT quantities are determined to be invalid
Applied to: Clear PTT Flag
Action: The system processes invalid PTT quantities
Logic Flow:
IF PTT flag is set AND PTT quantity validation has been performed AND PTT quantities are determined to be invalid
AND The system processes invalid PTT quantities
THEN:
• PTT flag is cleared AND PTT status is removed from cargo
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when ptt flag is set and ptt quantity validation has been performed and ptt quantities are determined to be valid.
Trigger Criteria:
Context: PTT flag is set AND PTT quantity validation has been performed AND PTT quantities are determined to be valid
Applied to: Preserve PTT Status
Action: The system processes valid PTT quantities
Logic Flow:
IF PTT flag is set AND PTT quantity validation has been performed AND PTT quantities are determined to be valid
AND The system processes valid PTT quantities
THEN:
• PTT status is preserved AND PTT flag remains active
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when fda hold flag is set and cargo has destination location information.
Trigger Criteria:
Context: FDA hold flag is set AND cargo has destination location information
Applied to: FDA at Destination?
Action: The system evaluates FDA hold location requirements
Logic Flow:
IF FDA hold flag is set AND cargo has destination location information
AND The system evaluates FDA hold location requirements
THEN:
• FDA hold at destination is true when FDA requirements apply to destination location AND false when FDA requirements apply to other locations
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when fda hold flag is set and fda hold applies at destination location.
Trigger Criteria:
Context: FDA hold flag is set AND FDA hold applies at destination location
Applied to: Set FDA Hold Priority
Action: The system applies FDA override logic
Logic Flow:
IF FDA hold flag is set AND FDA hold applies at destination location
AND The system applies FDA override logic
THEN:
• FDA hold status takes highest priority AND overrides all conflicting status flags
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when fda hold priority has been established and other release flags are currently set.
Trigger Criteria:
Context: FDA hold priority has been established AND other release flags are currently set
Applied to: Override Other Release Flags
Action: The system applies FDA override logic
Logic Flow:
IF FDA hold priority has been established AND other release flags are currently set
AND The system applies FDA override logic
THEN:
• All other release flags are overridden AND cleared by FDA hold priority
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo status analysis is in progress and proceed flag evaluation is required.
Trigger Criteria:
Context: Cargo status analysis is in progress AND proceed flag evaluation is required
Applied to: Proceed Flag Set?
Action: The system evaluates proceed flag status
Logic Flow:
IF Cargo status analysis is in progress AND proceed flag evaluation is required
AND The system evaluates proceed flag status
THEN:
• Proceed flag is set when cargo is authorized to proceed AND proceed flag is not set when cargo is not authorized to proceed
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when proceed flag is set and cargo requires border arrival processing.
Trigger Criteria:
Context: Proceed flag is set AND cargo requires border arrival processing
Applied to: Set Border Arrival Status
Action: The system processes proceed flag activation
Logic Flow:
IF Proceed flag is set AND cargo requires border arrival processing
AND The system processes proceed flag activation
THEN:
• Border arrival status is set AND border arrival date is recorded
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo status analysis is in progress and export flag evaluation is required.
Trigger Criteria:
Context: Cargo status analysis is in progress AND export flag evaluation is required
Applied to: Export Flag Set?
Action: The system evaluates export flag status
Logic Flow:
IF Cargo status analysis is in progress AND export flag evaluation is required
AND The system evaluates export flag status
THEN:
• Export flag is set when cargo is designated for export AND export flag is not set when cargo is not designated for export
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when export flag is set and cargo has existing destination index information.
Trigger Criteria:
Context: Export flag is set AND cargo has existing destination index information
Applied to: Clear Destination Index
Action: The system processes export flag activation
Logic Flow:
IF Export flag is set AND cargo has existing destination index information
AND The system processes export flag activation
THEN:
• Destination index is cleared AND destination routing information is removed
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when export flag is set and destination index has been cleared.
Trigger Criteria:
Context: Export flag is set AND destination index has been cleared
Applied to: Set Export Status
Action: The system completes export flag processing
Logic Flow:
IF Export flag is set AND destination index has been cleared
AND The system completes export flag processing
THEN:
• Export status is assigned to cargo AND export processing indicators are set
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo status analysis is in progress and arrival flag evaluation is required.
Trigger Criteria:
Context: Cargo status analysis is in progress AND arrival flag evaluation is required
Applied to: Arrival Flag Set?
Action: The system evaluates arrival flag status
Logic Flow:
IF Cargo status analysis is in progress AND arrival flag evaluation is required
AND The system evaluates arrival flag status
THEN:
• Arrival flag is set when cargo has arrived at destination AND arrival flag is not set when cargo has not arrived at destination
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when arrival flag is set and cargo requires arrival status processing.
Trigger Criteria:
Context: Arrival flag is set AND cargo requires arrival status processing
Applied to: Set Arrival Status
Action: The system processes arrival flag activation
Logic Flow:
IF Arrival flag is set AND cargo requires arrival status processing
AND The system processes arrival flag activation
THEN:
• Arrival status is assigned to cargo AND arrival date and time are recorded
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when final status determination is in progress and multiple status flags are set.
Trigger Criteria:
Context: Final status determination is in progress AND multiple status flags are set
Applied to: Multiple Conflicting States?
Action: The system evaluates flag combinations for conflicts
Logic Flow:
IF Final status determination is in progress AND multiple status flags are set
AND The system evaluates flag combinations for conflicts
THEN:
• Multiple conflicting states exist when incompatible status flags are simultaneously active AND no conflicts exist when status flags are compatible
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when multiple conflicting states have been detected and business rule priorities are defined.
Trigger Criteria:
Context: Multiple conflicting states have been detected AND business rule priorities are defined
Applied to: Apply Business Rule Priority
Action: The system resolves status conflicts
Logic Flow:
IF Multiple conflicting states have been detected AND business rule priorities are defined
AND The system resolves status conflicts
THEN:
• Highest priority business rule is applied AND lower priority rules are subordinated according to established hierarchy
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when business rule priority has been applied and winning status has been determined.
Trigger Criteria:
Context: Business rule priority has been applied AND winning status has been determined
Applied to: Set Primary Status Flag
Action: The system finalizes status assignment
Logic Flow:
IF Business rule priority has been applied AND winning status has been determined
AND The system finalizes status assignment
THEN:
• Primary status flag is set to the highest priority status AND primary status becomes the active cargo status
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when primary status flag has been set and conflicting flags still exist.
Trigger Criteria:
Context: Primary status flag has been set AND conflicting flags still exist
Applied to: Clear Conflicting Flags
Action: The system completes conflict resolution
Logic Flow:
IF Primary status flag has been set AND conflicting flags still exist
AND The system completes conflict resolution
THEN:
• All conflicting flags are cleared AND only the primary status flag remains active
R-GCX016-cbl-04517 (+14)File: GCX016.cblBusiness Rule: Process Canadian Manifest Coordination
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when us cargo record exists with equipment information.
Trigger Criteria:
Context: A US cargo record exists with equipment information
Applied to: Get Equipment ID from US Cargo
Action: The system initiates Canadian manifest coordination processing
Logic Flow:
IF A US cargo record exists with equipment information
AND The system initiates Canadian manifest coordination processing
THEN:
• The equipment ID is extracted from the US cargo record for Canadian database search
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when equipment id has been extracted from us cargo record.
Trigger Criteria:
Context: An equipment ID has been extracted from US cargo record
Applied to: Search Canadian Cargo Database
Action: The system searches the Canadian cargo database
Logic Flow:
IF An equipment ID has been extracted from US cargo record
AND The system searches the Canadian cargo database
THEN:
• The system retrieves Canadian cargo records matching the equipment ID
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when search has been performed in the canadian cargo database using equipment id.
Trigger Criteria:
Context: A search has been performed in the Canadian cargo database using equipment ID
Applied to: Canadian Cargo Found?
Action: The system evaluates the search results
Logic Flow:
IF A search has been performed in the Canadian cargo database using equipment ID
AND The system evaluates the search results
THEN:
• The system determines if Canadian cargo records were found and routes processing accordingly
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when canadian cargo records have been found for the equipment id.
Trigger Criteria:
Context: Canadian cargo records have been found for the equipment ID
Applied to: Validate Canadian Record Status
Action: The system validates the record status
Logic Flow:
IF Canadian cargo records have been found for the equipment ID
AND The system validates the record status
THEN:
• The system checks that records are not deleted and have valid processing status
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when canadian cargo records have been retrieved and status validated.
Trigger Criteria:
Context: Canadian cargo records have been retrieved and status validated
Applied to: Record Valid?
Action: The system evaluates record validity
Logic Flow:
IF Canadian cargo records have been retrieved and status validated
AND The system evaluates record validity
THEN:
• The system determines if records are valid for processing or should be excluded due to deletion or invalid status
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when valid canadian cargo records exist and us cargo equipment id is available.
Trigger Criteria:
Context: Valid Canadian cargo records exist and US cargo equipment ID is available
Applied to: Match Equipment ID with Canadian Cargo
Action: The system performs equipment ID matching
Logic Flow:
IF Valid Canadian cargo records exist and US cargo equipment ID is available
AND The system performs equipment ID matching
THEN:
• The system compares US cargo equipment ID with Canadian cargo equipment ID for exact match
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when equipment id comparison has been performed between us and canadian cargo records.
Trigger Criteria:
Context: Equipment ID comparison has been performed between US and Canadian cargo records
Applied to: Equipment ID Matches?
Action: The system evaluates the match results
Logic Flow:
IF Equipment ID comparison has been performed between US and Canadian cargo records
AND The system evaluates the match results
THEN:
• The system determines if equipment IDs match exactly and routes to appropriate processing path
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when us and canadian cargo records have matching equipment ids.
Trigger Criteria:
Context: US and Canadian cargo records have matching equipment IDs
Applied to: Generate Cross-Border Log Message
Action: The system generates cross-border coordination log
Logic Flow:
IF US and Canadian cargo records have matching equipment IDs
AND The system generates cross-border coordination log
THEN:
• The system creates a log message with US cargo details, Canadian cargo details, and coordination timestamp
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when us and canadian cargo records are successfully matched and cross-border log generated.
Trigger Criteria:
Context: US and Canadian cargo records are successfully matched and cross-border log generated
Applied to: Update Canadian CCN with US Release Status
Action: The system updates Canadian CCN record
Logic Flow:
IF US and Canadian cargo records are successfully matched and cross-border log generated
AND The system updates Canadian CCN record
THEN:
• The Canadian cargo record is updated with US release status, release quantities, and coordination timestamp
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when canadian ccn has been updated with us release status.
Trigger Criteria:
Context: Canadian CCN has been updated with US release status
Applied to: Create Audit Trail Entry
Action: The system creates audit trail entry
Logic Flow:
IF Canadian CCN has been updated with US release status
AND The system creates audit trail entry
THEN:
• The system records coordination details, timestamp, user information, and status changes in audit trail
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when audit trail entry has been created for cross-border coordination.
Trigger Criteria:
Context: Audit trail entry has been created for cross-border coordination
Applied to: Send Notification to Canadian System
Action: The system sends notification to Canadian system
Logic Flow:
IF Audit trail entry has been created for cross-border coordination
AND The system sends notification to Canadian system
THEN:
• The system transmits notification message with cargo release details and coordination status to Canadian system
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when notification has been sent to canadian system.
Trigger Criteria:
Context: Notification has been sent to Canadian system
Applied to: Log Coordination Complete
Action: The system logs coordination completion
Logic Flow:
IF Notification has been sent to Canadian system
AND The system logs coordination completion
THEN:
• The system records successful coordination completion with timestamp and processing details
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when canadian cargo search returns no results or canadian records are invalid or equipment ids do not match.
Trigger Criteria:
Context: Canadian cargo search returns no results OR Canadian records are invalid OR equipment IDs do not match
Applied to: No Canadian Match Found
Action: The system processes no match condition
Logic Flow:
IF Canadian cargo search returns no results OR Canadian records are invalid OR equipment IDs do not match
AND The system processes no match condition
THEN:
• The system routes to no match processing path without updating Canadian records
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when no matching canadian cargo records were found or records were invalid.
Trigger Criteria:
Context: No matching Canadian cargo records were found or records were invalid
Applied to: Log No Match Status
Action: The system logs no match status
Logic Flow:
IF No matching Canadian cargo records were found or records were invalid
AND The system logs no match status
THEN:
• The system records no match condition with equipment ID, search criteria, and timestamp for audit purposes
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cross-border coordination is complete or no canadian match was found and logged.
Trigger Criteria:
Context: Cross-border coordination is complete OR no Canadian match was found and logged
Applied to: Continue Processing
Action: The system continues processing
Logic Flow:
IF Cross-border coordination is complete OR no Canadian match was found and logged
AND The system continues processing
THEN:
• The system proceeds with normal US cargo processing workflow
R-GCX016-cbl-04532 (+7)File: GCX016.cblBusiness Rule: Calculate Cargo Age Using Julian Dates
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record is being processed for age calculation.
Trigger Criteria:
Context: A cargo record is being processed for age calculation
Applied to: Bond Start Date Available?
Action: The system checks the bond start date field in the cargo record
Logic Flow:
IF A cargo record is being processed for age calculation
AND The system checks the bond start date field in the cargo record
THEN:
• If bond start date is present, proceed with age calculation; if bond start date is missing or blank, skip age calculation and end the process
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when valid bond start date exists in the cargo record.
Trigger Criteria:
Context: A valid bond start date exists in the cargo record
Applied to: Convert Bond Start Date to Julian Format
Action: The system needs to calculate cargo age
Logic Flow:
IF A valid bond start date exists in the cargo record
AND The system needs to calculate cargo age
THEN:
• Convert the bond start date to Julian format using the date conversion utility
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when current system date is available.
Trigger Criteria:
Context: The current system date is available
Applied to: Convert Current Date to Julian Format
Action: Age calculation is being performed
Logic Flow:
IF The current system date is available
AND Age calculation is being performed
THEN:
• Convert the current system date to Julian format using the date conversion utility
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when both bond start date and current date are converted to julian format.
Trigger Criteria:
Context: Both bond start date and current date are converted to Julian format
Applied to: Calculate Age in Days Current Julian - Bond Start Julian
Action: The system performs age calculation
Logic Flow:
IF Both bond start date and current date are converted to Julian format
AND The system performs age calculation
THEN:
• Calculate age in days by subtracting bond start Julian date from current Julian date
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo age in days has been calculated.
Trigger Criteria:
Context: Cargo age in days has been calculated
Applied to: Age > Threshold for Destination Indexing?
Action: The system evaluates destination indexing requirements
Logic Flow:
IF Cargo age in days has been calculated
AND The system evaluates destination indexing requirements
THEN:
• If age is greater than the destination indexing threshold, set destination index required flag; otherwise clear the destination index flag
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo age exceeds the destination indexing threshold.
Trigger Criteria:
Context: Cargo age exceeds the destination indexing threshold
Applied to: Set Destination Index Required Flag
Action: The system processes destination indexing requirements
Logic Flow:
IF Cargo age exceeds the destination indexing threshold
AND The system processes destination indexing requirements
THEN:
• Set the destination index required flag to indicate that destination indexing is needed
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo age does not exceed the destination indexing threshold.
Trigger Criteria:
Context: Cargo age does not exceed the destination indexing threshold
Applied to: Clear Destination Index Flag
Action: The system processes destination indexing requirements
Logic Flow:
IF Cargo age does not exceed the destination indexing threshold
AND The system processes destination indexing requirements
THEN:
• Clear the destination index flag to indicate that destination indexing is not required
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo age has been calculated and destination index requirements determined.
Trigger Criteria:
Context: Cargo age has been calculated and destination index requirements determined
Applied to: Update Cargo Record with Age Information
Action: The system completes age calculation processing
Logic Flow:
IF Cargo age has been calculated and destination index requirements determined
AND The system completes age calculation processing
THEN:
• Update the cargo record with the calculated age information and destination index flag status
R-GCX016-cbl-04540 (+11)File: GCX016.cblBusiness Rule: Search for Matching Canadian Manifests
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when us cargo record exists with equipment information.
Trigger Criteria:
Context: A US cargo record exists with equipment information
Applied to: Extract Equipment ID from US Cargo
Action: The system initiates Canadian manifest search process
Logic Flow:
IF A US cargo record exists with equipment information
AND The system initiates Canadian manifest search process
THEN:
• The equipment ID is extracted from the US cargo record for database query purposes
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when equipment id has been extracted from us cargo record.
Trigger Criteria:
Context: An equipment ID has been extracted from US cargo record
Applied to: Query Canadian Cargo Database
Action: The system queries the Canadian cargo database
Logic Flow:
IF An equipment ID has been extracted from US cargo record
AND The system queries the Canadian cargo database
THEN:
• All Canadian cargo records matching the equipment ID are retrieved from the database
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when query has been executed against the canadian cargo database.
Trigger Criteria:
Context: A query has been executed against the Canadian cargo database
Applied to: Canadian Record Found?
Action: The system evaluates the query results
Logic Flow:
IF A query has been executed against the Canadian cargo database
AND The system evaluates the query results
THEN:
• If Canadian records are found, proceed to record validation, otherwise check for more equipment IDs to process
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when canadian cargo records have been found for the equipment id.
Trigger Criteria:
Context: Canadian cargo records have been found for the equipment ID
Applied to: Validate Record Status
Action: The system validates each record's status
Logic Flow:
IF Canadian cargo records have been found for the equipment ID
AND The system validates each record's status
THEN:
• Record status is checked against valid status criteria for further processing eligibility
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when canadian cargo record status has been validated.
Trigger Criteria:
Context: A Canadian cargo record status has been validated
Applied to: Record Status Valid?
Action: The system determines record validity
Logic Flow:
IF A Canadian cargo record status has been validated
AND The system determines record validity
THEN:
• If record status is valid, proceed to usability check, otherwise skip to next equipment ID processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when canadian cargo record has valid status.
Trigger Criteria:
Context: A Canadian cargo record has valid status
Applied to: Check Record Usability
Action: The system checks record usability criteria
Logic Flow:
IF A Canadian cargo record has valid status
AND The system checks record usability criteria
THEN:
• Record is evaluated against usability requirements including deletion status and bond creation flags
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when canadian cargo record has been checked for usability.
Trigger Criteria:
Context: A Canadian cargo record has been checked for usability
Applied to: Record Usable?
Action: The system evaluates usability criteria
Logic Flow:
IF A Canadian cargo record has been checked for usability
AND The system evaluates usability criteria
THEN:
• If record is usable, add to matching records list, otherwise proceed to check for more equipment IDs
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when canadian cargo record is determined to be valid and usable.
Trigger Criteria:
Context: A Canadian cargo record is determined to be valid and usable
Applied to: Add to Matching Records List
Action: The system processes the matching record
Logic Flow:
IF A Canadian cargo record is determined to be valid and usable
AND The system processes the matching record
THEN:
• The Canadian cargo record is added to the collection of matching manifests for further processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when canadian cargo record has been added to the matching records list.
Trigger Criteria:
Context: A Canadian cargo record has been added to the matching records list
Applied to: Log Cross-Border Coordination
Action: The system logs the cross-border coordination
Logic Flow:
IF A Canadian cargo record has been added to the matching records list
AND The system logs the cross-border coordination
THEN:
• The cargo release information is logged to the GCX105 system for audit trail and tracking
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when processing has completed for current equipment id.
Trigger Criteria:
Context: Processing has completed for current equipment ID
Applied to: More Equipment IDs?
Action: The system checks for additional equipment IDs to process
Logic Flow:
IF Processing has completed for current equipment ID
AND The system checks for additional equipment IDs to process
THEN:
• If more equipment IDs exist, return to equipment ID extraction, otherwise proceed to return matching results
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when all equipment ids have been processed for canadian manifest matching.
Trigger Criteria:
Context: All equipment IDs have been processed for Canadian manifest matching
Applied to: Return Matching Canadian Manifests
Action: The system completes the search process
Logic Flow:
IF All equipment IDs have been processed for Canadian manifest matching
AND The system completes the search process
THEN:
• All matching Canadian cargo records are returned for cross-border cargo coordination
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when no canadian cargo records are found for any equipment id.
Trigger Criteria:
Context: No Canadian cargo records are found for any equipment ID
Applied to: No Matching Records Found
Action: The system completes the database search
Logic Flow:
IF No Canadian cargo records are found for any equipment ID
AND The system completes the database search
THEN:
• An empty result set is prepared for return to indicate no matching Canadian manifests were found
R-GCX016-cbl-04552 (+12)File: GCX016.cblBusiness Rule: Validate PTT Quantities
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record with ptt status and release quantity information in the status array.
Trigger Criteria:
Context: A cargo record with PTT status and release quantity information in the status array
Applied to: Released Quantity > 0?
Action: The system evaluates the released quantity value
Logic Flow:
IF A cargo record with PTT status and release quantity information in the status array
AND The system evaluates the released quantity value
THEN:
• If released quantity is greater than zero, proceed to compare with total quantity, otherwise set no release status
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record with positive released quantity and known total quantity.
Trigger Criteria:
Context: A cargo record with positive released quantity and known total quantity
Applied to: Released Quantity = Total Quantity?
Action: The system compares released quantity to total quantity
Logic Flow:
IF A cargo record with positive released quantity and known total quantity
AND The system compares released quantity to total quantity
THEN:
• If released quantity equals total quantity, set full release status and clear hold flags, otherwise set partial release status
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo record where released quantity equals total quantity.
Trigger Criteria:
Context: A cargo record where released quantity equals total quantity
Applied to: Set Full Release Status
Action: The system processes the full release condition
Logic Flow:
IF A cargo record where released quantity equals total quantity
AND The system processes the full release condition
THEN:
• Set the cargo status to full release and prepare for hold flag clearing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record with full release status confirmed.
Trigger Criteria:
Context: A cargo record with full release status confirmed
Applied to: Clear Hold Flags
Action: The system processes hold flag updates
Logic Flow:
IF A cargo record with full release status confirmed
AND The system processes hold flag updates
THEN:
• Clear all hold-related status flags from the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record where released quantity is greater than zero but less than total quantity.
Trigger Criteria:
Context: A cargo record where released quantity is greater than zero but less than total quantity
Applied to: Set Partial Release Status
Action: The system processes the partial release condition
Logic Flow:
IF A cargo record where released quantity is greater than zero but less than total quantity
AND The system processes the partial release condition
THEN:
• Set the cargo status to partial release and calculate remaining quantity
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record with partial release status and known total and released quantities.
Trigger Criteria:
Context: A cargo record with partial release status and known total and released quantities
Applied to: Calculate Remaining Quantity
Action: The system calculates remaining quantities
Logic Flow:
IF A cargo record with partial release status and known total and released quantities
AND The system calculates remaining quantities
THEN:
• Subtract released quantity from total quantity to determine remaining held quantity
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record with calculated remaining quantity after partial release.
Trigger Criteria:
Context: A cargo record with calculated remaining quantity after partial release
Applied to: Remaining Quantity > 0?
Action: The system validates the remaining quantity value
Logic Flow:
IF A cargo record with calculated remaining quantity after partial release
AND The system validates the remaining quantity value
THEN:
• If remaining quantity is greater than zero, set hold on piece counts status, otherwise maintain PTT status flag
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record with positive remaining quantity after partial release.
Trigger Criteria:
Context: A cargo record with positive remaining quantity after partial release
Applied to: Set Hold on Piece Counts Status
Action: The system processes piece count hold requirements
Logic Flow:
IF A cargo record with positive remaining quantity after partial release
AND The system processes piece count hold requirements
THEN:
• Set hold on piece counts status for the remaining unreleased quantity
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record with partial release or hold on piece counts status.
Trigger Criteria:
Context: A cargo record with partial release or hold on piece counts status
Applied to: Maintain PTT Status Flag
Action: The system updates status flags
Logic Flow:
IF A cargo record with partial release or hold on piece counts status
AND The system updates status flags
THEN:
• Maintain the PTT status flag to indicate proceed-to-transfer eligibility
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo record where released quantity is zero or negative.
Trigger Criteria:
Context: A cargo record where released quantity is zero or negative
Applied to: Set No Release Status
Action: The system processes release status determination
Logic Flow:
IF A cargo record where released quantity is zero or negative
AND The system processes release status determination
THEN:
• Set the cargo status to no release and maintain current hold status
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record with no release status and existing hold conditions.
Trigger Criteria:
Context: A cargo record with no release status and existing hold conditions
Applied to: Maintain Current Hold Status
Action: The system updates hold status flags
Logic Flow:
IF A cargo record with no release status and existing hold conditions
AND The system updates hold status flags
THEN:
• Maintain the current hold status without modification
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo record with determined ptt status, release conditions, and hold flags.
Trigger Criteria:
Context: A cargo record with determined PTT status, release conditions, and hold flags
Applied to: Update Status Array with PTT Flags
Action: The system updates the status array
Logic Flow:
IF A cargo record with determined PTT status, release conditions, and hold flags
AND The system updates the status array
THEN:
• Apply all determined PTT flags, release status, and hold conditions to the cargo status array
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record with updated status array containing ptt flags and release conditions.
Trigger Criteria:
Context: A cargo record with updated status array containing PTT flags and release conditions
Applied to: Save PTT Status for Processing
Action: The system completes PTT quantity validation
Logic Flow:
IF A cargo record with updated status array containing PTT flags and release conditions
AND The system completes PTT quantity validation
THEN:
• Save the final PTT status determination for use in downstream processing
R-GCX016-cbl-04565 (+17)File: GCX016.cblBusiness Rule: Call GCCTBIO to Read DC Table
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code lookup is required. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: A disposition code lookup is required
Applied to: Set Table Type to 'DC'
Action: The system prepares to read disposition code information
Logic Flow:
IF A disposition code lookup is required
AND The system prepares to read disposition code information
THEN:
• The table type is set to 'DC' to identify the disposition code table
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when specific disposition code needs to be looked up.
Trigger Criteria:
Context: A specific disposition code needs to be looked up
Applied to: Set Key to Disposition Code
Action: The system prepares the table lookup key
Logic Flow:
IF A specific disposition code needs to be looked up
AND The system prepares the table lookup key
THEN:
• The disposition code value is assigned as the search key
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when table type is set to 'dc' and key is assigned. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: Table type is set to 'DC' and key is assigned
Applied to: Call GCCTBIO for DC Table Read
Action: The system needs to retrieve disposition code details
Logic Flow:
IF Table type is set to 'DC' and key is assigned
AND The system needs to retrieve disposition code details
THEN:
• GCCTBIO service is called to read from the DC table
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when database call has been executed. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: A database call has been executed
Applied to: Database Call Successful?
Action: The system checks the operation result
Logic Flow:
IF A database call has been executed
AND The system checks the operation result
THEN:
• The operation is validated as successful or failed based on return status
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when successful database operation has completed.
Trigger Criteria:
Context: A successful database operation has completed
Applied to: Record Found?
Action: The system checks for record existence
Logic Flow:
IF A successful database operation has completed
AND The system checks for record existence
THEN:
• The system determines whether the disposition code record was found or not found
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code record has been found in the table.
Trigger Criteria:
Context: A disposition code record has been found in the table
Applied to: Extract Disposition Code Details
Action: The system processes the retrieved record
Logic Flow:
IF A disposition code record has been found in the table
AND The system processes the retrieved record
THEN:
• Disposition code details including description and processing attributes are extracted
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code details have been extracted.
Trigger Criteria:
Context: Disposition code details have been extracted
Applied to: Get Counterpart Code Information
Action: The system processes counterpart relationships
Logic Flow:
IF Disposition code details have been extracted
AND The system processes counterpart relationships
THEN:
• Related counterpart disposition codes are identified and retrieved
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when counterpart code information has been retrieved.
Trigger Criteria:
Context: Counterpart code information has been retrieved
Applied to: Get Processing Instructions
Action: The system needs processing guidance
Logic Flow:
IF Counterpart code information has been retrieved
AND The system needs processing guidance
THEN:
• Specific processing instructions for the disposition code are obtained
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when processing instructions have been successfully retrieved.
Trigger Criteria:
Context: Processing instructions have been successfully retrieved
Applied to: Set Found Flag to True
Action: The lookup operation completes successfully
Logic Flow:
IF Processing instructions have been successfully retrieved
AND The lookup operation completes successfully
THEN:
• The found flag is set to true to indicate successful record retrieval
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when found flag has been set to true.
Trigger Criteria:
Context: The found flag has been set to true
Applied to: Return Success Status
Action: The lookup operation is complete
Logic Flow:
IF The found flag has been set to true
AND The lookup operation is complete
THEN:
• A success status is returned to the calling process
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when database operation has failed.
Trigger Criteria:
Context: A database operation has failed
Applied to: Retry Needed?
Action: The system evaluates retry eligibility
Logic Flow:
IF A database operation has failed
AND The system evaluates retry eligibility
THEN:
• A decision is made whether to retry the operation based on error type and retry count
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when retry is needed for a failed operation.
Trigger Criteria:
Context: A retry is needed for a failed operation
Applied to: Increment Retry Counter
Action: The system prepares for retry
Logic Flow:
IF A retry is needed for a failed operation
AND The system prepares for retry
THEN:
• The retry counter is incremented to track attempt number
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when retry counter has been incremented.
Trigger Criteria:
Context: The retry counter has been incremented
Applied to: Max Retries Exceeded?
Action: The system checks retry limits
Logic Flow:
IF The retry counter has been incremented
AND The system checks retry limits
THEN:
• The system determines if maximum retry attempts have been exceeded
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when database operation has failed and retries are exhausted or not applicable.
Trigger Criteria:
Context: A database operation has failed and retries are exhausted or not applicable
Applied to: Log Database Error
Action: The system handles the error condition
Logic Flow:
IF A database operation has failed and retries are exhausted or not applicable
AND The system handles the error condition
THEN:
• The database error is logged with relevant details for analysis
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when database error has been logged.
Trigger Criteria:
Context: A database error has been logged
Applied to: Set Error Status
Action: The system prepares error response
Logic Flow:
IF A database error has been logged
AND The system prepares error response
THEN:
• An error status is set to indicate operation failure
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when error status has been set.
Trigger Criteria:
Context: An error status has been set
Applied to: Return Error Status
Action: The lookup operation concludes with failure
Logic Flow:
IF An error status has been set
AND The lookup operation concludes with failure
THEN:
• An error status is returned to the calling process
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when successful database operation completed but no record was found.
Trigger Criteria:
Context: A successful database operation completed but no record was found
Applied to: Set Not Found Flag
Action: The system processes the not found condition
Logic Flow:
IF A successful database operation completed but no record was found
AND The system processes the not found condition
THEN:
• The not found flag is set to indicate the disposition code does not exist
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when not found flag has been set.
Trigger Criteria:
Context: The not found flag has been set
Applied to: Return Not Found Status
Action: The lookup operation concludes with no record found
Logic Flow:
IF The not found flag has been set
AND The lookup operation concludes with no record found
THEN:
• A not found status is returned to the calling process
R-GCX016-cbl-04583 (+5)File: GCX016.cblBusiness Rule: Check Status Info Match
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when current disposition code with status information fields and an array element with corresponding status information fields are available for comparison.
Trigger Criteria:
Context: A current disposition code with status information fields and an array element with corresponding status information fields are available for comparison
Applied to: Check Status Info Match - Compare disposition code status information fields including location codes, entry types, and processing flags
Action: The system compares status information fields between the current disposition code and array element
Logic Flow:
IF A current disposition code with status information fields and an array element with corresponding status information fields are available for comparison
AND The system compares status information fields between the current disposition code and array element
THEN:
• The system marks the status information as matching if all status information fields are identical, otherwise marks as non-matching
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when current disposition code location code and an array element location code are available for comparison.
Trigger Criteria:
Context: A current disposition code location code and an array element location code are available for comparison
Applied to: Check Location Code Match
Action: The system compares the location codes between current disposition code and array element
Logic Flow:
IF A current disposition code location code and an array element location code are available for comparison
AND The system compares the location codes between current disposition code and array element
THEN:
• The system proceeds to next comparison field if location codes match, otherwise continues to mark as non-matching status information
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when current disposition code entry type and an array element entry type are available for comparison.
Trigger Criteria:
Context: A current disposition code entry type and an array element entry type are available for comparison
Applied to: Check Entry Type Match
Action: The system compares the entry types between current disposition code and array element
Logic Flow:
IF A current disposition code entry type and an array element entry type are available for comparison
AND The system compares the entry types between current disposition code and array element
THEN:
• The system proceeds to processing flags check if entry types match, otherwise continues to mark as non-matching status information
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when current disposition code processing flags and an array element processing flags are available for comparison.
Trigger Criteria:
Context: A current disposition code processing flags and an array element processing flags are available for comparison
Applied to: Check Processing Flags Match
Action: The system compares the processing flags between current disposition code and array element
Logic Flow:
IF A current disposition code processing flags and an array element processing flags are available for comparison
AND The system compares the processing flags between current disposition code and array element
THEN:
• The system marks as matching status info if processing flags match, otherwise marks as non-matching status information
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when all status information fields including location codes, entry types, and processing flags have been successfully matched between current disposition code and array element.
Trigger Criteria:
Context: All status information fields including location codes, entry types, and processing flags have been successfully matched between current disposition code and array element
Applied to: Mark as Matching Status Info
Action: The system completes the status information comparison process
Logic Flow:
IF All status information fields including location codes, entry types, and processing flags have been successfully matched between current disposition code and array element
AND The system completes the status information comparison process
THEN:
• The system marks the status information as matching and returns the positive match result
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when at least one status information field including location codes, entry types, or processing flags differs between current disposition code and array element.
Trigger Criteria:
Context: At least one status information field including location codes, entry types, or processing flags differs between current disposition code and array element
Applied to: Mark as Non-Matching Status Info
Action: The system completes the status information comparison process
Logic Flow:
IF At least one status information field including location codes, entry types, or processing flags differs between current disposition code and array element
AND The system completes the status information comparison process
THEN:
• The system marks the status information as non-matching and returns the negative match result
R-GCX016-cbl-04589 (+20)File: GCX016.cblBusiness Rule: Check Entry Number Match
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo message with x4 segment is being processed.
Trigger Criteria:
Context: A cargo message with X4 segment is being processed
Applied to: Entry Number Present in X4-04?
Action: The system checks for entry number in X4-04 field
Logic Flow:
IF A cargo message with X4 segment is being processed
AND The system checks for entry number in X4-04 field
THEN:
• If entry number is present, continue with entry number validation, otherwise fail validation
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when entry number is present in x4-04 field.
Trigger Criteria:
Context: An entry number is present in X4-04 field
Applied to: Extract Entry Number Pattern
Action: The system extracts the entry number pattern
Logic Flow:
IF An entry number is present in X4-04 field
AND The system extracts the entry number pattern
THEN:
• The entry number pattern is analyzed to determine if it is a broker entry number, bond control number, or in-bond entry reference
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when entry number pattern has been extracted from x4-04.
Trigger Criteria:
Context: An entry number pattern has been extracted from X4-04
Applied to: Entry Number Type?
Action: The system analyzes the entry number format
Logic Flow:
IF An entry number pattern has been extracted from X4-04
AND The system analyzes the entry number format
THEN:
• The entry number is classified as either broker entry number, bond control number, or in-bond entry reference based on its format characteristics
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when entry number has been classified as a broker entry number.
Trigger Criteria:
Context: An entry number has been classified as a broker entry number
Applied to: Validate Broker Entry Number Format
Action: The system validates the broker entry number format
Logic Flow:
IF An entry number has been classified as a broker entry number
AND The system validates the broker entry number format
THEN:
• The broker entry number must conform to established format rules and pass validation checks
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when entry number has been classified as a bond control number.
Trigger Criteria:
Context: An entry number has been classified as a bond control number
Applied to: Validate Bond Control Number Format
Action: The system validates the bond control number format
Logic Flow:
IF An entry number has been classified as a bond control number
AND The system validates the bond control number format
THEN:
• The bond control number must conform to established format rules and pass validation checks
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when entry number has been classified as an in-bond entry reference.
Trigger Criteria:
Context: An entry number has been classified as an in-bond entry reference
Applied to: Validate In-Bond Entry Reference Format
Action: The system validates the in-bond entry reference format
Logic Flow:
IF An entry number has been classified as an in-bond entry reference
AND The system validates the in-bond entry reference format
THEN:
• The in-bond entry reference must conform to established format rules and pass validation checks
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when entry number has been validated for format and identified as v37 entry type.
Trigger Criteria:
Context: An entry number has been validated for format and identified as V37 entry type
Applied to: Apply Special V37 Entry Validation
Action: The system applies V37 specific validation rules
Logic Flow:
IF An entry number has been validated for format and identified as V37 entry type
AND The system applies V37 specific validation rules
THEN:
• The entry number must pass V37 specific validation criteria including special format and business rule requirements
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when entry number has been validated for format and is not a v37 entry type.
Trigger Criteria:
Context: An entry number has been validated for format and is not a V37 entry type
Applied to: Standard Entry Number Validation
Action: The system applies standard validation rules
Logic Flow:
IF An entry number has been validated for format and is not a V37 entry type
AND The system applies standard validation rules
THEN:
• The entry number must pass standard validation criteria including format and business rule requirements
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when entry number has undergone format validation (either v37 special or standard).
Trigger Criteria:
Context: An entry number has undergone format validation (either V37 special or standard)
Applied to: Entry Number Format Valid?
Action: The system checks if the entry number format is valid
Logic Flow:
IF An entry number has undergone format validation (either V37 special or standard)
AND The system checks if the entry number format is valid
THEN:
• If format is valid, proceed to check against cargo records, otherwise fail the validation process
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when entry number has passed format validation.
Trigger Criteria:
Context: An entry number has passed format validation
Applied to: Check Entry Number Against Cargo Records
Action: The system checks the entry number against cargo records
Logic Flow:
IF An entry number has passed format validation
AND The system checks the entry number against cargo records
THEN:
• The entry number is compared with existing cargo records to determine if there is a match
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when entry number has been checked against cargo records.
Trigger Criteria:
Context: An entry number has been checked against cargo records
Applied to: Entry Number Matches Cargo?
Action: The system verifies if there is a match
Logic Flow:
IF An entry number has been checked against cargo records
AND The system verifies if there is a match
THEN:
• If entry number matches cargo records, set validation success, otherwise log mismatch error
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when entry number matches the cargo records.
Trigger Criteria:
Context: An entry number matches the cargo records
Applied to: Set Entry Number Validation Success
Action: The system sets validation success status
Logic Flow:
IF An entry number matches the cargo records
AND The system sets validation success status
THEN:
• The entry number validation success flag is set and processing continues with broker validation checks
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when entry number does not match cargo records.
Trigger Criteria:
Context: An entry number does not match cargo records
Applied to: Log Entry Number Mismatch Error
Action: The system logs the mismatch error
Logic Flow:
IF An entry number does not match cargo records
AND The system logs the mismatch error
THEN:
• An entry number mismatch error is logged and validation process fails
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when entry number has been successfully validated against cargo records.
Trigger Criteria:
Context: An entry number has been successfully validated against cargo records
Applied to: Broker Entry Number?
Action: The system checks if it is a broker entry number
Logic Flow:
IF An entry number has been successfully validated against cargo records
AND The system checks if it is a broker entry number
THEN:
• If it is a broker entry number, validate against broker tables, otherwise check if it is a bond control number
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when entry number has been identified as a broker entry number.
Trigger Criteria:
Context: An entry number has been identified as a broker entry number
Applied to: Validate Against Broker Tables
Action: The system validates against broker tables
Logic Flow:
IF An entry number has been identified as a broker entry number
AND The system validates against broker tables
THEN:
• The broker entry number must exist in broker tables and meet authorization requirements
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when entry number is not a broker entry number.
Trigger Criteria:
Context: An entry number is not a broker entry number
Applied to: Bond Control Number?
Action: The system checks if it is a bond control number
Logic Flow:
IF An entry number is not a broker entry number
AND The system checks if it is a bond control number
THEN:
• If it is a bond control number, validate against bond records, otherwise check if it is an in-bond reference
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when entry number has been identified as a bond control number.
Trigger Criteria:
Context: An entry number has been identified as a bond control number
Applied to: Validate Against Bond Records
Action: The system validates against bond records
Logic Flow:
IF An entry number has been identified as a bond control number
AND The system validates against bond records
THEN:
• The bond control number must exist in bond records and meet validity requirements
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when entry number is not a broker entry number or bond control number.
Trigger Criteria:
Context: An entry number is not a broker entry number or bond control number
Applied to: In-Bond Reference?
Action: The system checks if it is an in-bond reference
Logic Flow:
IF An entry number is not a broker entry number or bond control number
AND The system checks if it is an in-bond reference
THEN:
• If it is an in-bond reference, validate against in-bond records, otherwise complete validation process
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when entry number has been identified as an in-bond reference.
Trigger Criteria:
Context: An entry number has been identified as an in-bond reference
Applied to: Validate Against In-Bond Records
Action: The system validates against in-bond records
Logic Flow:
IF An entry number has been identified as an in-bond reference
AND The system validates against in-bond records
THEN:
• The in-bond reference must exist in in-bond records and meet validity requirements
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when all required entry number validations have been completed successfully.
Trigger Criteria:
Context: All required entry number validations have been completed successfully
Applied to: Set Entry Number Validation Complete
Action: The system sets validation complete status
Logic Flow:
IF All required entry number validations have been completed successfully
AND The system sets validation complete status
THEN:
• The entry number validation process is marked as complete and successful
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when any entry number validation step has failed or entry number is not present.
Trigger Criteria:
Context: Any entry number validation step has failed or entry number is not present
Applied to: Entry Number Validation Failed
Action: The system processes validation failure
Logic Flow:
IF Any entry number validation step has failed or entry number is not present
AND The system processes validation failure
THEN:
• The entry number validation process is marked as failed and appropriate error handling is initiated
R-GCX016-cbl-04610 (+18)File: GCX016.cblBusiness Rule: Check Quantity Match
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when disposition code is being processed for cargo.
Trigger Criteria:
Context: A disposition code is being processed for cargo
Applied to: Disposition Code Affects Quantities?
Action: The system checks if the disposition code affects release quantities
Logic Flow:
IF A disposition code is being processed for cargo
AND The system checks if the disposition code affects release quantities
THEN:
• The system should proceed with quantity processing only if the disposition code has quantity impact, otherwise skip quantity calculations
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code with add_quantity action and a valid quantity value from x4 segment.
Trigger Criteria:
Context: A disposition code with ADD_QUANTITY action and a valid quantity value from X4 segment
Applied to: Add to Release Quantity
Action: The system processes the quantity addition
Logic Flow:
IF A disposition code with ADD_QUANTITY action and a valid quantity value from X4 segment
AND The system processes the quantity addition
THEN:
• The system should add the X4 segment quantity to the current cargo release quantity
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code with subtract_quantity action and a valid quantity value from x4 segment.
Trigger Criteria:
Context: A disposition code with SUBTRACT_QUANTITY action and a valid quantity value from X4 segment
Applied to: Subtract from Release Quantity
Action: The system processes the quantity subtraction
Logic Flow:
IF A disposition code with SUBTRACT_QUANTITY action and a valid quantity value from X4 segment
AND The system processes the quantity subtraction
THEN:
• The system should subtract the X4 segment quantity from the current cargo release quantity
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when calculated release quantity and the total cargo quantity.
Trigger Criteria:
Context: A calculated release quantity and the total cargo quantity
Applied to: Release Quantity > Total Quantity?
Action: The release quantity exceeds the total cargo quantity
Logic Flow:
IF A calculated release quantity and the total cargo quantity
AND The release quantity exceeds the total cargo quantity
THEN:
• The system should set the release quantity equal to the total cargo quantity to prevent over-release
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when calculated release quantity that may be negative.
Trigger Criteria:
Context: A calculated release quantity that may be negative
Applied to: Release Quantity < 0?
Action: The release quantity is less than zero
Logic Flow:
IF A calculated release quantity that may be negative
AND The release quantity is less than zero
THEN:
• The system should set the release quantity to zero to prevent negative release values
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when broker entry quantity and the corresponding manifest quantity.
Trigger Criteria:
Context: A broker entry quantity and the corresponding manifest quantity
Applied to: Broker Quantity Matches Manifest?
Action: The broker quantity does not match the manifest quantity
Logic Flow:
IF A broker entry quantity and the corresponding manifest quantity
AND The broker quantity does not match the manifest quantity
THEN:
• The system should generate a quantity mismatch notification for broker review
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when detected quantity mismatch between broker entry and manifest.
Trigger Criteria:
Context: A detected quantity mismatch between broker entry and manifest
Applied to: Generate Quantity Mismatch Notification
Action: The system processes the mismatch notification
Logic Flow:
IF A detected quantity mismatch between broker entry and manifest
AND The system processes the mismatch notification
THEN:
• The system should generate a detailed notification message and prepare it for broker delivery
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when prepared quantity mismatch notification and broker contact information.
Trigger Criteria:
Context: A prepared quantity mismatch notification and broker contact information
Applied to: Send Email to Broker
Action: The system sends the notification
Logic Flow:
IF A prepared quantity mismatch notification and broker contact information
AND The system sends the notification
THEN:
• The system should deliver the notification via email to the appropriate broker
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo with release quantity and total quantity values.
Trigger Criteria:
Context: A cargo with release quantity and total quantity values
Applied to: Partial Release Scenario?
Action: The release quantity is greater than zero but less than the total quantity
Logic Flow:
IF A cargo with release quantity and total quantity values
AND The release quantity is greater than zero but less than the total quantity
THEN:
• The system should identify this as a partial release scenario requiring special handling
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo in partial release scenario with remaining unreleased quantities.
Trigger Criteria:
Context: A cargo in partial release scenario with remaining unreleased quantities
Applied to: Set Hold on Piece Counts Status
Action: The system processes the partial release
Logic Flow:
IF A cargo in partial release scenario with remaining unreleased quantities
AND The system processes the partial release
THEN:
• The system should set hold status on the remaining piece counts to prevent unauthorized release
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo with release quantity equal to or greater than total quantity.
Trigger Criteria:
Context: A cargo with release quantity equal to or greater than total quantity
Applied to: Full Release Achieved?
Action: The system evaluates release completeness
Logic Flow:
IF A cargo with release quantity equal to or greater than total quantity
AND The system evaluates release completeness
THEN:
• The system should identify this as full release achievement
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo that has achieved full release status.
Trigger Criteria:
Context: A cargo that has achieved full release status
Applied to: Clear Destination Index
Action: The system processes the full release
Logic Flow:
IF A cargo that has achieved full release status
AND The system processes the full release
THEN:
• The system should clear the destination index to indicate no further destination processing required
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo with cleared destination index and full quantity release.
Trigger Criteria:
Context: A cargo with cleared destination index and full quantity release
Applied to: Set Full Release Status
Action: The system updates cargo status
Logic Flow:
IF A cargo with cleared destination index and full quantity release
AND The system updates cargo status
THEN:
• The system should set the cargo status to full release
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo with updated quantities and status.
Trigger Criteria:
Context: A cargo with updated quantities and status
Applied to: PTT Validation Required?
Action: The system evaluates PTT requirements
Logic Flow:
IF A cargo with updated quantities and status
AND The system evaluates PTT requirements
THEN:
• The system should determine if PTT validation is necessary based on cargo type and disposition code
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo requiring ptt validation with specific quantity limits.
Trigger Criteria:
Context: A cargo requiring PTT validation with specific quantity limits
Applied to: Validate PTT Quantity Limits
Action: The system validates PTT quantities
Logic Flow:
IF A cargo requiring PTT validation with specific quantity limits
AND The system validates PTT quantities
THEN:
• The system should check that quantities are within established PTT limits
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when ptt quantity validation results.
Trigger Criteria:
Context: PTT quantity validation results
Applied to: PTT Quantity Valid?
Action: The quantities meet all PTT validation criteria
Logic Flow:
IF PTT quantity validation results
AND The quantities meet all PTT validation criteria
THEN:
• The system should proceed with PTT status assignment
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo with valid ptt quantities.
Trigger Criteria:
Context: A cargo with valid PTT quantities
Applied to: Set PTT Status with Quantity
Action: The system assigns PTT status
Logic Flow:
IF A cargo with valid PTT quantities
AND The system assigns PTT status
THEN:
• The system should set PTT status and record the associated quantities
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo with ptt quantities that exceed validation limits.
Trigger Criteria:
Context: A cargo with PTT quantities that exceed validation limits
Applied to: Reject PTT - Quantity Exceeded
Action: The system processes the PTT rejection
Logic Flow:
IF A cargo with PTT quantities that exceed validation limits
AND The system processes the PTT rejection
THEN:
• The system should reject PTT status and maintain current cargo status
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo with processed and validated quantity changes.
Trigger Criteria:
Context: A cargo with processed and validated quantity changes
Applied to: Update Cargo Record with New Quantities
Action: The system updates the cargo record
Logic Flow:
IF A cargo with processed and validated quantity changes
AND The system updates the cargo record
THEN:
• The system should save all new quantity values and status changes to the cargo record
R-GCX016-cbl-04629 (+8)File: GCX016.cblBusiness Rule: Call GCCUSIO with Car ID Index
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when car id is provided for cargo search and database index is set to car id optimization. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: A car ID is provided for cargo search AND database index is set to Car ID optimization
Applied to: Call GCCUSIO with Car Index
Action: The system calls GCCUSIO with Car ID index parameters
Logic Flow:
IF A car ID is provided for cargo search AND database index is set to Car ID optimization
AND The system calls GCCUSIO with Car ID index parameters
THEN:
• The database query executes with index optimization for faster cargo retrieval
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when database call to gccusio has been executed. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: A database call to GCCUSIO has been executed
Applied to: Database Call Successful?
Action: The system checks the database call completion status
Logic Flow:
IF A database call to GCCUSIO has been executed
AND The system checks the database call completion status
THEN:
• IF the database call was successful THEN proceed to validate cargo record ELSE log database error and set error status
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when database call has completed successfully. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: A database call has completed successfully
Applied to: Cargo Record Valid?
Action: The system validates the returned cargo record
Logic Flow:
IF A database call has completed successfully
AND The system validates the returned cargo record
THEN:
• IF a valid cargo record is found THEN extract cargo information ELSE attempt broader search without US-CCN
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo information has been extracted from a valid record.
Trigger Criteria:
Context: Cargo information has been extracted from a valid record
Applied to: Car ID Matches?
Action: The system verifies the Car ID match between request and retrieved record
Logic Flow:
IF Cargo information has been extracted from a valid record
AND The system verifies the Car ID match between request and retrieved record
THEN:
• IF the Car ID matches exactly THEN set cargo found flag and return cargo record ELSE attempt broader search without US-CCN
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when primary cargo search by car id has failed to find matching records. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: Primary cargo search by Car ID has failed to find matching records
Applied to: Call GCCUSIO with Relaxed Parameters
Action: The system initiates a broader search without US-CCN constraints
Logic Flow:
IF Primary cargo search by Car ID has failed to find matching records
AND The system initiates a broader search without US-CCN constraints
THEN:
• The database query executes with relaxed search parameters to find potential cargo matches
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when broader search with relaxed parameters has been executed.
Trigger Criteria:
Context: A broader search with relaxed parameters has been executed
Applied to: Broader Search Successful?
Action: The system evaluates the broader search completion status
Logic Flow:
IF A broader search with relaxed parameters has been executed
AND The system evaluates the broader search completion status
THEN:
• IF the broader search was successful THEN validate relaxed search results ELSE set cargo not found status
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when broader search has completed successfully.
Trigger Criteria:
Context: A broader search has completed successfully
Applied to: Valid Results Found?
Action: The system validates the quality and usability of relaxed search results
Logic Flow:
IF A broader search has completed successfully
AND The system validates the quality and usability of relaxed search results
THEN:
• IF valid results are found THEN set cargo found flag and return cargo record ELSE set cargo not found status
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when both primary car id search and broader search have failed to find valid cargo records.
Trigger Criteria:
Context: Both primary Car ID search and broader search have failed to find valid cargo records
Applied to: Set Cargo Not Found Status
Action: The system determines no cargo can be located for the given Car ID
Logic Flow:
IF Both primary Car ID search and broader search have failed to find valid cargo records
AND The system determines no cargo can be located for the given Car ID
THEN:
• Set cargo not found status to indicate unsuccessful search completion
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when database call to gccusio has failed. ⚠️ COBOL Technical Logic
Trigger Criteria:
Context: A database call to GCCUSIO has failed
Applied to: Log Database Error
Action: The system processes the database failure
Logic Flow:
IF A database call to GCCUSIO has failed
AND The system processes the database failure
THEN:
• Log the database error for troubleshooting AND set error status to indicate system failure
R-GCX016-cbl-04638 (+14)File: GCX016.cblBusiness Rule: Process Master In
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when x4 segment is received with an entry type code.
Trigger Criteria:
Context: An X4 segment is received with an entry type code
Applied to: Entry Type Code?
Action: The entry type code is evaluated for master in-bond eligibility
Logic Flow:
IF An X4 segment is received with an entry type code
AND The entry type code is evaluated for master in-bond eligibility
THEN:
• Entry types 61, 62, 63, and 69 are classified as master in-bond entries requiring special processing, while all other entry types proceed to standard processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo has entry type code 61.
Trigger Criteria:
Context: Cargo has entry type code 61
Applied to: Entry Type 61 - Master In-Bond
Action: Master in-bond processing is initiated
Logic Flow:
IF Cargo has entry type code 61
AND Master in-bond processing is initiated
THEN:
• The cargo is classified for immediate transport processing and master in-bond flag is set
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo has entry type code 62.
Trigger Criteria:
Context: Cargo has entry type code 62
Applied to: Entry Type 62 - Master In-Bond
Action: Master in-bond processing is initiated
Logic Flow:
IF Cargo has entry type code 62
AND Master in-bond processing is initiated
THEN:
• The cargo is classified for transport export processing and master in-bond flag is set
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo has entry type code 63.
Trigger Criteria:
Context: Cargo has entry type code 63
Applied to: Entry Type 63 - Master In-Bond
Action: Master in-bond processing is initiated
Logic Flow:
IF Cargo has entry type code 63
AND Master in-bond processing is initiated
THEN:
• The cargo is classified for immediate export processing and master in-bond flag is set
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo has entry type code 69.
Trigger Criteria:
Context: Cargo has entry type code 69
Applied to: Entry Type 69 - Master In-Bond
Action: Master in-bond processing is initiated
Logic Flow:
IF Cargo has entry type code 69
AND Master in-bond processing is initiated
THEN:
• The cargo is classified for US-Canada-US movement processing and master in-bond flag is set
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when master in-bond entry requires bond validation.
Trigger Criteria:
Context: A master in-bond entry requires bond validation
Applied to: Validate Bond Control Number
Action: The bond control number is checked against the bond database
Logic Flow:
IF A master in-bond entry requires bond validation
AND The bond control number is checked against the bond database
THEN:
• The bond must exist and be active for processing to continue, otherwise a bond validation error is generated
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when valid entry type code (61, 62, 63, or 69) has been identified.
Trigger Criteria:
Context: A valid entry type code (61, 62, 63, or 69) has been identified
Applied to: Map Entry Type to Transport Type
Action: Transport type mapping is performed
Logic Flow:
IF A valid entry type code (61, 62, 63, or 69) has been identified
AND Transport type mapping is performed
THEN:
• Entry type 61 maps to immediate transport, 62 maps to transport export, 63 maps to immediate export, and 69 maps to US-Canada-US movement
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when transport type has been determined from the entry type mapping.
Trigger Criteria:
Context: A transport type has been determined from the entry type mapping
Applied to: Set Transport Type in Cargo Record
Action: The cargo record is updated
Logic Flow:
IF A transport type has been determined from the entry type mapping
AND The cargo record is updated
THEN:
• The transport type field in the cargo record is set to the mapped value
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when transport type has been set in the cargo record.
Trigger Criteria:
Context: Transport type has been set in the cargo record
Applied to: Update In-Bond Status Flags
Action: In-bond status flags are updated
Logic Flow:
IF Transport type has been set in the cargo record
AND In-bond status flags are updated
THEN:
• Master in-bond processing flag is set and appropriate status indicators are activated
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when in-bond status flags have been updated.
Trigger Criteria:
Context: In-bond status flags have been updated
Applied to: Validate Regulatory Compliance
Action: Regulatory compliance check is performed
Logic Flow:
IF In-bond status flags have been updated
AND Regulatory compliance check is performed
THEN:
• All required documentation, permits, and regulatory conditions must be satisfied for the specific entry type
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when regulatory compliance check has passed.
Trigger Criteria:
Context: Regulatory compliance check has passed
Applied to: Set Master In-Bond Processing Flag
Action: Master in-bond flag is set
Logic Flow:
IF Regulatory compliance check has passed
AND Master in-bond flag is set
THEN:
• The cargo is marked for master in-bond processing and subsequent operations will recognize this special status
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when master in-bond processing flag has been set.
Trigger Criteria:
Context: Master in-bond processing flag has been set
Applied to: Update Cargo Record with In-Bond Details
Action: Cargo record is updated with in-bond details
Logic Flow:
IF Master in-bond processing flag has been set
AND Cargo record is updated with in-bond details
THEN:
• All relevant in-bond fields including entry type, transport type, bond number, and processing flags are populated in the cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo record has been updated with in-bond details.
Trigger Criteria:
Context: Cargo record has been updated with in-bond details
Applied to: Log Master In-Bond Processing
Action: Processing log is created
Logic Flow:
IF Cargo record has been updated with in-bond details
AND Processing log is created
THEN:
• An audit record is generated documenting the master in-bond processing including entry type, bond number, and processing timestamp
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when bond control number validation has failed.
Trigger Criteria:
Context: Bond control number validation has failed
Applied to: Generate Bond Validation Error
Action: Bond validation error is generated
Logic Flow:
IF Bond control number validation has failed
AND Bond validation error is generated
THEN:
• An error message is created indicating invalid or inactive bond number and processing is directed to error handling
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when regulatory compliance check has failed.
Trigger Criteria:
Context: Regulatory compliance check has failed
Applied to: Generate Compliance Error
Action: Compliance error is generated
Logic Flow:
IF Regulatory compliance check has failed
AND Compliance error is generated
THEN:
• An error message is created indicating specific compliance failure and processing is directed to error handling
R-GCX016-cbl-04653 (+16)File: GCX016.cblBusiness Rule: Build M10 Manifest Information
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when m10 manifest segment is received.
Trigger Criteria:
Context: An M10 manifest segment is received
Applied to: Extract SCAC Code from M10 & Extract Transport Type & Extract Country Code & Extract Vessel Name/Flight Number & Extract Voyage/Flight Number & Extract Manifest Quantity & Extract Manifest Type Code & Extract Condition Response Code
Action: The system processes the M10 segment
Logic Flow:
IF An M10 manifest segment is received
AND The system processes the M10 segment
THEN:
• The SCAC code is extracted from the M10 segment and stored for manifest processing
• The transport type is extracted from the M10 segment and stored for manifest processing
• The country code is extracted from the M10 segment and stored for manifest processing
• The vessel name or flight number is extracted from the M10 segment and stored for manifest processing
• The voyage or flight number is extracted from the M10 segment and stored for manifest processing
• The manifest quantity is extracted from the M10 segment and stored for manifest processing
• The manifest type code is extracted from the M10 segment and stored for manifest processing
• The condition response code is extracted from the M10 segment and stored for manifest processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when scac code has been extracted from the m10 segment.
Trigger Criteria:
Context: A SCAC code has been extracted from the M10 segment
Applied to: Validate SCAC Code Format
Action: The system validates the SCAC code format
Logic Flow:
IF A SCAC code has been extracted from the M10 segment
AND The system validates the SCAC code format
THEN:
• The SCAC code is verified to meet standard format requirements or validation error is flagged
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when transport type has been extracted from the m10 segment.
Trigger Criteria:
Context: A transport type has been extracted from the M10 segment
Applied to: Validate Transport Type
Action: The system validates the transport type
Logic Flow:
IF A transport type has been extracted from the M10 segment
AND The system validates the transport type
THEN:
• The transport type is verified against valid transportation modes or validation error is flagged
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when country code has been extracted from the m10 segment.
Trigger Criteria:
Context: A country code has been extracted from the M10 segment
Applied to: Validate Country Code
Action: The system validates the country code
Logic Flow:
IF A country code has been extracted from the M10 segment
AND The system validates the country code
THEN:
• The country code is verified against valid country identifiers or validation error is flagged
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when all m10 segment fields have been extracted and validated.
Trigger Criteria:
Context: All M10 segment fields have been extracted and validated
Applied to: All Required Fields Present?
Action: The system checks for required field completeness
Logic Flow:
IF All M10 segment fields have been extracted and validated
AND The system checks for required field completeness
THEN:
• If all required fields are present and valid, processing continues to build manifest record, otherwise missing data error is generated
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when all required m10 segment fields are present and validated.
Trigger Criteria:
Context: All required M10 segment fields are present and validated
Applied to: Build Manifest Information Record
Action: The system builds the manifest information record
Logic Flow:
IF All required M10 segment fields are present and validated
AND The system builds the manifest information record
THEN:
• A complete manifest record is constructed with SCAC code, transport type, country code, vessel information, voyage number, quantity, manifest type, and condition response code
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when complete manifest information record has been built.
Trigger Criteria:
Context: A complete manifest information record has been built
Applied to: Integrate into Cargo Record
Action: The system integrates the manifest into the cargo record
Logic Flow:
IF A complete manifest information record has been built
AND The system integrates the manifest into the cargo record
THEN:
• The manifest information is linked and stored with the corresponding cargo record
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when manifest information has been successfully integrated into cargo record.
Trigger Criteria:
Context: Manifest information has been successfully integrated into cargo record
Applied to: Update Manifest Status
Action: The system updates manifest status
Logic Flow:
IF Manifest information has been successfully integrated into cargo record
AND The system updates manifest status
THEN:
• The manifest status is updated to reflect successful processing and integration
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when manifest information has been successfully integrated and status updated.
Trigger Criteria:
Context: Manifest information has been successfully integrated and status updated
Applied to: Log Manifest Integration
Action: The system logs the manifest integration
Logic Flow:
IF Manifest information has been successfully integrated and status updated
AND The system logs the manifest integration
THEN:
• An audit log entry is created documenting the successful manifest integration with relevant details
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when required m10 segment fields are missing or validation has failed.
Trigger Criteria:
Context: Required M10 segment fields are missing or validation has failed
Applied to: Generate Missing Data Error
Action: The system detects missing or invalid data
Logic Flow:
IF Required M10 segment fields are missing or validation has failed
AND The system detects missing or invalid data
THEN:
• A missing data error is generated identifying the specific fields that are missing or invalid
Business Justification: Ensures correct system behavior and process compliance when status array element s09a-entry exists in the cargo status array.
Trigger Criteria:
Context: A status array element S09A-ENTRY exists in the cargo status array
Applied to: Extract Status Info Code from S09A-STATUS-INFO
Action: The system needs to extract the disposition code for processing
Logic Flow:
IF A status array element S09A-ENTRY exists in the cargo status array
AND The system needs to extract the disposition code for processing
THEN:
• The system retrieves the status info code from the S09A-STATUS-INFO field of the current array element
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when disposition code has been extracted from the status array element.
Trigger Criteria:
Context: A disposition code has been extracted from the status array element
Applied to: Is Status Info Code Valid Format?
Action: The system validates the code format for length and character requirements
Logic Flow:
IF A disposition code has been extracted from the status array element
AND The system validates the code format for length and character requirements
THEN:
• The system determines if the code format is valid or invalid based on predefined format rules
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when valid format disposition code needs to be validated against the dc table.
Trigger Criteria:
Context: A valid format disposition code needs to be validated against the DC table
Applied to: Perform DC Table Lookup via GCCTBIO
Action: The system calls GCCTBIO to lookup the disposition code in the GCSTBRT DC table
Logic Flow:
IF A valid format disposition code needs to be validated against the DC table
AND The system calls GCCTBIO to lookup the disposition code in the GCSTBRT DC table
THEN:
• The system searches for the disposition code and returns whether the code exists in the reference table
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when disposition code lookup has been performed against the dc table.
Trigger Criteria:
Context: A disposition code lookup has been performed against the DC table
Applied to: Disposition Code Found in DC Table?
Action: The system evaluates the lookup results
Logic Flow:
IF A disposition code lookup has been performed against the DC table
AND The system evaluates the lookup results
THEN:
• The system determines if the disposition code was found in the table or not found
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code has been found in the dc reference table.
Trigger Criteria:
Context: A disposition code has been found in the DC reference table
Applied to: Extract Code Definition from DC-DESCRIPTION
Action: The system extracts the code properties
Logic Flow:
IF A disposition code has been found in the DC reference table
AND The system extracts the code properties
THEN:
• The system retrieves the code description from DC-DESCRIPTION, counterpart code from DC-COUNTERPART-CODE, and processing instructions from the DC table
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when disposition code has been successfully found in the dc table and its properties extracted.
Trigger Criteria:
Context: A disposition code has been successfully found in the DC table and its properties extracted
Applied to: Set Code Validation Flag to Valid
Action: The system completes the validation process
Logic Flow:
IF A disposition code has been successfully found in the DC table and its properties extracted
AND The system completes the validation process
THEN:
• The system sets the code validation flag to valid status and stores the extracted code definition and properties
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when disposition code has been extracted from the status array.
Trigger Criteria:
Context: A disposition code has been extracted from the status array
Applied to: Log Invalid Code Format Error
Action: The code format validation fails due to invalid length or character composition
Logic Flow:
IF A disposition code has been extracted from the status array
AND The code format validation fails due to invalid length or character composition
THEN:
• The system logs an invalid code format error and sets the validation flag to invalid
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when valid format disposition code has been looked up in the dc table.
Trigger Criteria:
Context: A valid format disposition code has been looked up in the DC table
Applied to: Log Code Not Found Error
Action: The disposition code is not found in the reference table
Logic Flow:
IF A valid format disposition code has been looked up in the DC table
AND The disposition code is not found in the reference table
THEN:
• The system logs a code not found error and sets the validation flag to invalid
R-GCX016-cbl-04678 (+20)File: GCX016.cblBusiness Rule: Extract Status Information
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when s09a array element is being processed.
Trigger Criteria:
Context: A S09A array element is being processed
Applied to: Extract Status Info Code
Action: The system accesses the status information code field
Logic Flow:
IF A S09A array element is being processed
AND The system accesses the status information code field
THEN:
• The status code is extracted and made available for further processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when status information contains location data.
Trigger Criteria:
Context: Status information contains location data
Applied to: Parse Location Code
Action: The system processes the location code field
Logic Flow:
IF Status information contains location data
AND The system processes the location code field
THEN:
• The location code is parsed and prepared for location-specific processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when status information is being processed.
Trigger Criteria:
Context: Status information is being processed
Applied to: Location Code Present?
Action: The system evaluates the location code field
Logic Flow:
IF Status information is being processed
AND The system evaluates the location code field
THEN:
• The system determines if location code exists and routes to appropriate processing (border, destination, or no location)
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when location code indicates border location processing.
Action: The system processes destination location data
Logic Flow:
IF Location code indicates destination location processing
AND The system processes destination location data
THEN:
• Destination location information is extracted and stored for destination-specific cargo processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when status information contains processing flag data.
Trigger Criteria:
Context: Status information contains processing flag data
Applied to: Parse Processing Flags
Action: The system processes the flag fields
Logic Flow:
IF Status information contains processing flag data
AND The system processes the flag fields
THEN:
• Processing flags are parsed and made available for cargo status determination
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when status information contains release flag data.
Trigger Criteria:
Context: Status information contains release flag data
Applied to: Extract Released Flag
Action: The system processes the released flag field
Logic Flow:
IF Status information contains release flag data
AND The system processes the released flag field
THEN:
• The released flag status is extracted and stored for release processing logic
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when status information contains hold flag data.
Trigger Criteria:
Context: Status information contains hold flag data
Applied to: Extract Hold Flag
Action: The system processes the hold flag field
Logic Flow:
IF Status information contains hold flag data
AND The system processes the hold flag field
THEN:
• The hold flag status is extracted and stored for hold processing logic
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when status information contains ptt flag data.
Trigger Criteria:
Context: Status information contains PTT flag data
Applied to: Extract PTT Flag
Action: The system processes the PTT flag field
Logic Flow:
IF Status information contains PTT flag data
AND The system processes the PTT flag field
THEN:
• The PTT flag status is extracted and stored for transfer processing logic
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when status information contains proceed flag data.
Trigger Criteria:
Context: Status information contains proceed flag data
Applied to: Extract Proceed Flag
Action: The system processes the proceed flag field
Logic Flow:
IF Status information contains proceed flag data
AND The system processes the proceed flag field
THEN:
• The proceed flag status is extracted and stored for proceed processing logic
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when status information contains regulatory indicator data.
Trigger Criteria:
Context: Status information contains regulatory indicator data
Applied to: Parse Regulatory Indicators
Action: The system processes regulatory indicator fields
Logic Flow:
IF Status information contains regulatory indicator data
AND The system processes regulatory indicator fields
THEN:
• Regulatory indicators are parsed and prepared for compliance processing
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when status information contains fda regulatory data.
Trigger Criteria:
Context: Status information contains FDA regulatory data
Applied to: Extract FDA Hold Indicator
Action: The system processes the FDA hold indicator field
Logic Flow:
IF Status information contains FDA regulatory data
AND The system processes the FDA hold indicator field
THEN:
• The FDA hold indicator is extracted and stored for FDA compliance processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when status information contains customs regulatory data.
Trigger Criteria:
Context: Status information contains customs regulatory data
Applied to: Extract Customs Hold Indicator
Action: The system processes the customs hold indicator field
Logic Flow:
IF Status information contains customs regulatory data
AND The system processes the customs hold indicator field
THEN:
• The customs hold indicator is extracted and stored for customs compliance processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when status information contains seizure indicator data.
Trigger Criteria:
Context: Status information contains seizure indicator data
Applied to: Extract Seizure Indicator
Action: The system processes the seizure indicator field
Logic Flow:
IF Status information contains seizure indicator data
AND The system processes the seizure indicator field
THEN:
• The seizure indicator is extracted and stored for seizure processing logic
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when status information contains entry number data.
Trigger Criteria:
Context: Status information contains entry number data
Applied to: Extract Entry Number
Action: The system processes the entry number field
Logic Flow:
IF Status information contains entry number data
AND The system processes the entry number field
THEN:
• The entry number is extracted and stored for customs entry processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when status information contains quantity data.
Trigger Criteria:
Context: Status information contains quantity data
Applied to: Extract Quantity Information
Action: The system processes quantity fields
Logic Flow:
IF Status information contains quantity data
AND The system processes quantity fields
THEN:
• Quantity information is extracted and stored for quantity-based processing logic
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when status information contains date stamp data.
Trigger Criteria:
Context: Status information contains date stamp data
Applied to: Extract Date Stamps
Action: The system processes date stamp fields
Logic Flow:
IF Status information contains date stamp data
AND The system processes date stamp fields
THEN:
• Date stamps are extracted and stored for time-based processing logic
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when all status information has been extracted from the array element.
Trigger Criteria:
Context: All status information has been extracted from the array element
Applied to: Validate Status Consistency
Action: The system performs consistency validation checks
Logic Flow:
IF All status information has been extracted from the array element
AND The system performs consistency validation checks
THEN:
• The system determines if the status information is valid and consistent for processing
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when status information has been extracted and validated.
Trigger Criteria:
Context: Status information has been extracted and validated
Applied to: Status Valid?
Action: The system evaluates the overall validity of the status data
Logic Flow:
IF Status information has been extracted and validated
AND The system evaluates the overall validity of the status data
THEN:
• The system determines if status is valid and routes to appropriate processing (set flags or log invalid status)
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when status information has been validated as correct and consistent.
Trigger Criteria:
Context: Status information has been validated as correct and consistent
Applied to: Set Status Flags
Action: The system processes valid status data
Logic Flow:
IF Status information has been validated as correct and consistent
AND The system processes valid status data
THEN:
• Appropriate status flags are set based on the extracted information for subsequent cargo processing
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when status information has been determined to be invalid or inconsistent.
Trigger Criteria:
Context: Status information has been determined to be invalid or inconsistent
Applied to: Log Invalid Status
Action: The system encounters invalid status data
Logic Flow:
IF Status information has been determined to be invalid or inconsistent
AND The system encounters invalid status data
THEN:
• The invalid status information is logged for audit purposes and error tracking
R-GCX016-cbl-04699 (+11)File: GCX016.cblBusiness Rule: Apply Hold Priority Rule
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when cargo status array contains multiple disposition codes including potential fda hold codes.
Trigger Criteria:
Context: A cargo status array contains multiple disposition codes including potential FDA hold codes
Applied to: Check for FDA Hold Codes
Action: The system evaluates disposition codes for FDA holds (A3 codes) in the status array
Logic Flow:
IF A cargo status array contains multiple disposition codes including potential FDA hold codes
AND The system evaluates disposition codes for FDA holds (A3 codes) in the status array
THEN:
• FDA hold codes are identified and given highest priority precedence over all other hold and release codes
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when fda hold codes are detected in the cargo status array.
Trigger Criteria:
Context: FDA hold codes are detected in the cargo status array
Applied to: Apply FDA Hold Priority - Highest Precedence
Action: The system resolves conflicting disposition codes with FDA holds present
Logic Flow:
IF FDA hold codes are detected in the cargo status array
AND The system resolves conflicting disposition codes with FDA holds present
THEN:
• FDA hold status is set as the final cargo status with highest regulatory precedence, and cargo status is set to HOLDFDA
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when customs hold codes are present in the status array and no fda hold codes exist.
Trigger Criteria:
Context: Customs hold codes are present in the status array and no FDA hold codes exist
Applied to: Apply Customs Hold Priority
Action: The system evaluates hold code priorities for customs holds
Logic Flow:
IF Customs hold codes are present in the status array and no FDA hold codes exist
AND The system evaluates hold code priorities for customs holds
THEN:
• Customs hold codes are given priority over release codes and proceed codes but lower priority than FDA holds
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when release codes are present in the status array and no fda or customs hold codes exist.
Trigger Criteria:
Context: Release codes are present in the status array and no FDA or customs hold codes exist
Applied to: Apply Release Code Priority
Action: The system evaluates release code priorities
Logic Flow:
IF Release codes are present in the status array and no FDA or customs hold codes exist
AND The system evaluates release code priorities
THEN:
• Release codes are processed and applied to determine cargo release status based on quantity validation
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when ptt status conditions are present and cargo has partial release quantities.
Trigger Criteria:
Context: PTT status conditions are present and cargo has partial release quantities
Applied to: Apply PTT Priority for Partial Release
Action: The system evaluates PTT priority against other disposition codes
Logic Flow:
IF PTT status conditions are present and cargo has partial release quantities
AND The system evaluates PTT priority against other disposition codes
THEN:
• PTT status is applied for partial release scenarios while maintaining hold status on remaining quantities
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when proceed codes are present in the status array and no higher priority hold or release codes exist.
Trigger Criteria:
Context: Proceed codes are present in the status array and no higher priority hold or release codes exist
Applied to: Apply Proceed Priority
Action: The system evaluates proceed code priorities
Logic Flow:
IF Proceed codes are present in the status array and no higher priority hold or release codes exist
AND The system evaluates proceed code priorities
THEN:
• Proceed codes are applied to set cargo proceed status with appropriate location and timing information
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when hold codes are resolved and location validation determines border location.
Trigger Criteria:
Context: Hold codes are resolved and location validation determines border location
Applied to: Set Border Hold Status
Action: The system sets hold status for border location
Logic Flow:
IF Hold codes are resolved and location validation determines border location
AND The system sets hold status for border location
THEN:
• Border hold status is applied to the cargo with appropriate border location identifiers
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when hold codes are resolved and location validation determines destination location.
Trigger Criteria:
Context: Hold codes are resolved and location validation determines destination location
Applied to: Set Destination Hold Status
Action: The system sets hold status for destination location
Logic Flow:
IF Hold codes are resolved and location validation determines destination location
AND The system sets hold status for destination location
THEN:
• Destination hold status is applied to the cargo with appropriate destination location identifiers
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo has release codes and quantity validation is performed.
Trigger Criteria:
Context: Cargo has release codes and quantity validation is performed
Applied to: Set Full Release Status
Action: Released quantity is greater than or equal to total cargo quantity
Logic Flow:
IF Cargo has release codes and quantity validation is performed
AND Released quantity is greater than or equal to total cargo quantity
THEN:
• Full release status is set for the cargo and all hold conditions are cleared
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when cargo has release codes and quantity validation shows partial release.
Trigger Criteria:
Context: Cargo has release codes and quantity validation shows partial release
Applied to: Set Partial Release with Hold on Pieces
Action: Released quantity is less than total cargo quantity
Logic Flow:
IF Cargo has release codes and quantity validation shows partial release
AND Released quantity is less than total cargo quantity
THEN:
• Partial release status is set with HOLDPCS (hold pieces) status applied to remaining unreleased quantities
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when all disposition codes have been evaluated and priorities assigned.
Trigger Criteria:
Context: All disposition codes have been evaluated and priorities assigned
Applied to: Set Final Cargo Status Based on Priority Rules
Action: The system resolves final cargo status based on priority hierarchy
Logic Flow:
IF All disposition codes have been evaluated and priorities assigned
AND The system resolves final cargo status based on priority hierarchy
THEN:
• Final cargo status is set according to the highest priority rule: FDA holds > customs holds > releases > PTT > proceed codes
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when final cargo status has been determined through priority rule resolution.
Trigger Criteria:
Context: Final cargo status has been determined through priority rule resolution
Applied to: Update Status Array with Resolved Status
Action: The system updates the status array with resolved status
Logic Flow:
IF Final cargo status has been determined through priority rule resolution
AND The system updates the status array with resolved status
THEN:
• Status array is updated with the final resolved disposition codes and conflicting codes are removed or superseded
R-GCX016-cbl-04711 (+8)File: GCX016.cblBusiness Rule: Search Canadian Cargo Database
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when equipment id is provided for cross-border matching.
Trigger Criteria:
Context: Equipment ID is provided for cross-border matching
Applied to: Execute Database Query on Canadian Cargo Records
Action: System executes database query on Canadian cargo records
Logic Flow:
IF Equipment ID is provided for cross-border matching
AND System executes database query on Canadian cargo records
THEN:
• Database query is performed to search for matching Canadian cargo records
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when database query is executed on canadian cargo records.
Trigger Criteria:
Context: Database query is executed on Canadian cargo records
Applied to: Search by Equipment ID Match
Action: System searches by equipment ID match
Logic Flow:
IF Database query is executed on Canadian cargo records
AND System searches by equipment ID match
THEN:
• Canadian cargo records are filtered based on equipment ID matching criteria
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when equipment id search has been performed on canadian cargo database.
Trigger Criteria:
Context: Equipment ID search has been performed on Canadian cargo database
Applied to: Canadian Cargo Records Found?
Action: System checks if Canadian cargo records are found
Logic Flow:
IF Equipment ID search has been performed on Canadian cargo database
AND System checks if Canadian cargo records are found
THEN:
• System determines if records exist and routes processing accordingly - if records found proceed to validation, if no records found log no valid records
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when canadian cargo records have been found for the equipment id.
Trigger Criteria:
Context: Canadian cargo records have been found for the equipment ID
Applied to: Validate Canadian Record Status
Action: System validates Canadian record status
Logic Flow:
IF Canadian cargo records have been found for the equipment ID
AND System validates Canadian record status
THEN:
• Record status is checked to determine if record is valid for cross-border processing
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when canadian record status has been validated.
Trigger Criteria:
Context: Canadian record status has been validated
Applied to: Record Valid for Processing?
Action: System checks if record is valid for processing
Logic Flow:
IF Canadian record status has been validated
AND System checks if record is valid for processing
THEN:
• System routes to appropriate processing path - if valid return record, if deleted exclude record, if unusable exclude record
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when canadian cargo record has been identified as deleted.
Trigger Criteria:
Context: Canadian cargo record has been identified as deleted
Applied to: Exclude Deleted Records
Action: System processes record validation results
Logic Flow:
IF Canadian cargo record has been identified as deleted
AND System processes record validation results
THEN:
• Deleted record is excluded from processing and system logs no valid Canadian records found
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when canadian cargo record has been identified as unusable.
Trigger Criteria:
Context: Canadian cargo record has been identified as unusable
Applied to: Exclude Unusable Records
Action: System processes record validation results
Logic Flow:
IF Canadian cargo record has been identified as unusable
AND System processes record validation results
THEN:
• Unusable record is excluded from processing and system logs no valid Canadian records found
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when canadian cargo record has been validated as suitable for processing.
Trigger Criteria:
Context: Canadian cargo record has been validated as suitable for processing
Applied to: Return Valid Canadian Cargo Record
Action: System processes valid record
Logic Flow:
IF Canadian cargo record has been validated as suitable for processing
AND System processes valid record
THEN:
• Valid Canadian cargo record is returned for cross-border coordination
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when no canadian cargo records exist or all found records are deleted or all found records are unusable.
Trigger Criteria:
Context: No Canadian cargo records exist OR all found records are deleted OR all found records are unusable
Applied to: Log No Valid Canadian Records Found
Action: System completes Canadian cargo record search and validation
Logic Flow:
IF No Canadian cargo records exist OR all found records are deleted OR all found records are unusable
AND System completes Canadian cargo record search and validation
THEN:
• System logs that no valid Canadian records were found and continues with cross-border coordination
Business Justification: Defines the strict business conditions required to proceed when cargo record exists in the system.
Trigger Criteria:
Context: A cargo record exists in the system
Applied to: US Cargo Released?
Action: The system checks the cargo release status
Logic Flow:
IF A cargo record exists in the system
AND The system checks the cargo release status
THEN:
• The system determines if the cargo is released and proceeds with cross-border processing or terminates the process
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when us cargo has been released and equipment id is available.
Trigger Criteria:
Context: US cargo has been released and equipment ID is available
Applied to: Find Matching Canadian Manifests
Action: The system searches for Canadian manifest records using the equipment ID
Logic Flow:
IF US cargo has been released and equipment ID is available
AND The system searches for Canadian manifest records using the equipment ID
THEN:
• The system retrieves all matching Canadian manifest records for cross-border coordination
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when system has searched for canadian manifest records.
Trigger Criteria:
Context: The system has searched for Canadian manifest records
Applied to: Canadian Manifest Found?
Action: The search results are evaluated
Logic Flow:
IF The system has searched for Canadian manifest records
AND The search results are evaluated
THEN:
• If Canadian manifest records are found, continue processing; otherwise terminate cross-border log generation
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when canadian manifest records have been found.
Trigger Criteria:
Context: Canadian manifest records have been found
Applied to: Extract Cargo Details
Action: The system extracts cargo details from both US and Canadian records
Logic Flow:
IF Canadian manifest records have been found
AND The system extracts cargo details from both US and Canadian records
THEN:
• All relevant cargo information including waybill, car ID, and cargo descriptions are captured for cross-border coordination
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when cargo details have been extracted.
Trigger Criteria:
Context: Cargo details have been extracted
Applied to: Capture Status Changes
Action: The system captures status change information
Logic Flow:
IF Cargo details have been extracted
AND The system captures status change information
THEN:
• All status transitions including timestamps, disposition codes, and release quantities are recorded for the audit trail
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when status changes have been captured.
Trigger Criteria:
Context: Status changes have been captured
Applied to: Build Cross-Border Coordination Info
Action: The system builds cross-border coordination information
Logic Flow:
IF Status changes have been captured
AND The system builds cross-border coordination information
THEN:
• Border crossing details, customs release information, and coordination data are assembled for Canadian system notification
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cross-border coordination information has been built.
Trigger Criteria:
Context: Cross-border coordination information has been built
Applied to: Format Audit Trail Message
Action: The system formats the audit trail message
Logic Flow:
IF Cross-border coordination information has been built
AND The system formats the audit trail message
THEN:
• The message is structured with proper headers, cargo details, and status information according to cross-border communication protocols
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when audit trail message has been formatted.
Trigger Criteria:
Context: The audit trail message has been formatted
Applied to: Include Equipment ID Information
Action: Equipment ID information is included in the message
Logic Flow:
IF The audit trail message has been formatted
AND Equipment ID information is included in the message
THEN:
• Car initial, car number, and other equipment identifiers are added to enable proper cargo tracking across borders
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when equipment id information has been included.
Trigger Criteria:
Context: Equipment ID information has been included
Applied to: Add Release Status Details
Action: Release status details are added to the message
Logic Flow:
IF Equipment ID information has been included
AND Release status details are added to the message
THEN:
• Release quantities, disposition codes, release dates, and customs clearance information are included in the log message
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when release status details have been added.
Trigger Criteria:
Context: Release status details have been added
Applied to: Add Border Crossing Information
Action: Border crossing information is added to the message
Logic Flow:
IF Release status details have been added
AND Border crossing information is added to the message
THEN:
• Border location codes, crossing dates, and customs port information are included to complete the cross-border coordination data
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when border crossing information has been added.
Trigger Criteria:
Context: Border crossing information has been added
Applied to: Generate Log Message for Canadian System
Action: The log message is generated for the Canadian system
Logic Flow:
IF Border crossing information has been added
AND The log message is generated for the Canadian system
THEN:
• A complete cross-border log message is created with all cargo details, status changes, and coordination information formatted for Canadian system consumption
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when log message has been generated for the canadian system.
Trigger Criteria:
Context: The log message has been generated for the Canadian system
Applied to: Send Message to Canadian CCN
Action: The message is sent to Canadian CCN
Logic Flow:
IF The log message has been generated for the Canadian system
AND The message is sent to Canadian CCN
THEN:
• The cross-border log message is successfully transmitted to the Canadian system for cargo coordination and tracking
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when message has been sent to canadian ccn.
Trigger Criteria:
Context: The message has been sent to Canadian CCN
Applied to: Update Audit Trail
Action: The audit trail is updated
Logic Flow:
IF The message has been sent to Canadian CCN
AND The audit trail is updated
THEN:
• The cross-border log message transmission is recorded with timestamp, message content, and transmission status for compliance and tracking purposes
R-GCX016-cbl-04733 (+9)File: GCX016.cblBusiness Rule: Query Canadian Cargo Database
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when equipment id needs to be used for canadian cargo database search.
Trigger Criteria:
Context: An equipment ID needs to be used for Canadian cargo database search
Applied to: Format Equipment ID for Search
Action: The system prepares the search parameters
Logic Flow:
IF An equipment ID needs to be used for Canadian cargo database search
AND The system prepares the search parameters
THEN:
• The equipment ID is formatted according to database requirements
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when formatted equipment id is available for search.
Trigger Criteria:
Context: A formatted equipment ID is available for search
Applied to: Execute Database Query with Equipment ID Index
Action: The system executes the database query
Logic Flow:
IF A formatted equipment ID is available for search
AND The system executes the database query
THEN:
• The database is searched using equipment ID index for optimal performance
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when canadian cargo record has been retrieved from the database.
Trigger Criteria:
Context: A Canadian cargo record has been retrieved from the database
Applied to: Validate Canadian Record Status
Action: The system validates the record status
Logic Flow:
IF A Canadian cargo record has been retrieved from the database
AND The system validates the record status
THEN:
• The record status is checked for validity and active status
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when canadian cargo record status has been validated.
Trigger Criteria:
Context: A Canadian cargo record status has been validated
Applied to: Record Valid and Active?
Action: The system checks if the record is valid and active
Logic Flow:
IF A Canadian cargo record status has been validated
AND The system checks if the record is valid and active
THEN:
• The record is classified as either valid and active or invalid/inactive
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when canadian cargo record is determined to be valid and active.
Trigger Criteria:
Context: A Canadian cargo record is determined to be valid and active
Applied to: Return Canadian Cargo Record
Action: The system processes the successful match
Logic Flow:
IF A Canadian cargo record is determined to be valid and active
AND The system processes the successful match
THEN:
• The valid Canadian cargo record is returned for further processing
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when valid canadian cargo record has been successfully retrieved.
Trigger Criteria:
Context: A valid Canadian cargo record has been successfully retrieved
Applied to: Log Equipment ID Match Success
Action: The system completes the successful match process
Logic Flow:
IF A valid Canadian cargo record has been successfully retrieved
AND The system completes the successful match process
THEN:
• The equipment ID match success is logged for audit trail
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when database error occurs during canadian cargo search.
Trigger Criteria:
Context: A database error occurs during Canadian cargo search
Applied to: Handle Database Error
Action: The system encounters the error condition
Logic Flow:
IF A database error occurs during Canadian cargo search
AND The system encounters the error condition
THEN:
• The database error is handled according to error handling procedures
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when database error has occurred or no initial match was found.
Trigger Criteria:
Context: A database error has occurred or no initial match was found
Applied to: Retry Search?
Action: The system evaluates retry conditions
Logic Flow:
IF A database error has occurred or no initial match was found
AND The system evaluates retry conditions
THEN:
• The system decides whether to attempt an alternate search method or terminate the search
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when primary equipment id search has failed or returned no results.
Trigger Criteria:
Context: The primary equipment ID search has failed or returned no results
Applied to: Execute Alternate Search Method
Action: The system determines that alternate search should be attempted
Logic Flow:
IF The primary equipment ID search has failed or returned no results
AND The system determines that alternate search should be attempted
THEN:
• An alternate search method is executed to find Canadian cargo records
Rule Belongs to : GCX016.cbl
Business Justification: Dictates the expected operational logic and validation steps when all search methods have been exhausted without finding matching canadian cargo.
Trigger Criteria:
Context: All search methods have been exhausted without finding matching Canadian cargo
Applied to: Return No Match Found
Action: The system determines no match can be found
Logic Flow:
IF All search methods have been exhausted without finding matching Canadian cargo
AND The system determines no match can be found
THEN:
• A no match found result is returned to the calling process
Business Justification: Governs the functional prerequisites and system routing when cargo record exists with total quantity and released quantity values.
Trigger Criteria:
Context: A cargo record exists with total quantity and released quantity values
Applied to: Calculate Remaining Quantity
Action: The system processes quantity calculations for release determination
Logic Flow:
IF A cargo record exists with total quantity and released quantity values
AND The system processes quantity calculations for release determination
THEN:
• The remaining quantity is calculated as total quantity minus released quantity
Rule Belongs to : GCX016.cbl
Business Justification: Governs the functional prerequisites and system routing when remaining quantity has been calculated from total and released quantities.
Trigger Criteria:
Context: A remaining quantity has been calculated from total and released quantities
Applied to: Remaining Quantity >= 0?
Action: The calculated remaining quantity is less than zero
Logic Flow:
IF A remaining quantity has been calculated from total and released quantities
AND The calculated remaining quantity is less than zero
THEN:
• The system logs a quantity validation error and sets remaining quantity to zero
Rule Belongs to : GCX016.cbl
Business Justification: Ensures correct system behavior and process compliance when valid remaining quantity exists for a cargo record.
Trigger Criteria:
Context: A valid remaining quantity exists for a cargo record
Applied to: Partial Release?
Action: The remaining quantity is greater than zero
Logic Flow:
IF A valid remaining quantity exists for a cargo record
AND The remaining quantity is greater than zero
THEN:
• The cargo is marked as partially released
Rule Belongs to : GCX016.cbl
Business Justification: Defines the strict business conditions required to proceed when cargo record has remaining quantity equal to zero.
Trigger Criteria:
Context: A cargo record has remaining quantity equal to zero
Applied to: Mark as Fully Released
Action: The system evaluates release status
Logic Flow:
IF A cargo record has remaining quantity equal to zero
AND The system evaluates release status
THEN:
• The cargo is marked as fully released
Rule Belongs to : GCX016.cbl
Business Justification: Establishes the required business protocol to be followed when cargo has been marked as either partially released or fully released.
Trigger Criteria:
Context: Cargo has been marked as either partially released or fully released
Applied to: Update Cargo Quantity Status
Action: The quantity calculation process is complete
Logic Flow:
IF Cargo has been marked as either partially released or fully released
AND The quantity calculation process is complete
THEN:
• The cargo quantity status is updated in the system