StageDoneInterceptor

Main N4 Entity

TruckVisitDetails

Functionality

Road Module 
Stage Done

Description

Intercepts various points of the "Stage Done"/"Proceed to Next Stage" processing.

Interface Method(s) and Injected Data

void preProcess( 
    Gate                       inGate, 
    CachedGateStage   inStage, 
    TruckVisitDetails     inTvdtls, 
    Long                       inScanSetKey 
)

Called at the start of the stage done processing.

void preWorkflow( 
    Gate                       inGate, 
    CachedGateStage   inStage, 
    TruckVisitDetails     inTvdtls, 
    Long                       inScanSetKey 
)

Called after truck visit checks and submission of any outstanding transactions (if so configured) and determination of the next stage. Immediately before the on-submit gate tasks are executed.

void postWorkflow( 
    TransactionAndVisitHolder  inDao 
)

Called immediately after the on-submit gate tasks have been executed.

void postProcess( 
    TransactionAndVisitHolder  inDao 
)

Called at the end of the stage done processing. ie after stats update and clearing of scans.

Exception/Transaction Handling

Exceptions raised will terminate the advancement of the stage.

Availability

2.2+