PreProcessCreateTruckVisitHandlerCustomGroovyImpl

Main N4 Entity

TruckVisitDetails

Functionality

Road Module 
Create Truck Visit 
(via API only)

Description

Allows validation of truck visit details prior to creation or retrieval. 
Added for Matson - needs some generalization.

Interface Method(s) and Injected Data

Method: execute(Map parameters)

Map contents:

CachedGateStage.class.getName(), 
                                             CachedGateStage stage 
RoadField.TVDTLS_GOS_TV_KEY, 
                                             Long gosTvKey 
RoadField.TVDTLS_TRUCK_ID,     String truckId 
RoadField.TVDTLS_TRK_COMPANY, 
                                            String inTruckingCoId  
ArgoRefField.BIZU_GKEY,      Long inTruckingCoGkey

RoadField.TVDTLS_TRUCK_LICENSE_NBR, 
                                            String inTruckLicenseNbr 
RoadField.TVDTLS_BAT_NBR, 
                                            String inBatNbr 
RoadField.TVDTLS_DRIVER_CARD_ID, 
                                            String inDriverCardId 
RoadField.TVDTLS_DRIVER_LICENSE_NBR, 
                                             String DriverLicenseNbr

Values passed in are those extracted from the create-truck-visit xml message.

Exception/Transaction Handling

Exceptions raised in the groovy will be returned to the API caller. Execution is terminated with attempting to create or retrieve a truck visit.

Availability

2.1+