115116117118119120121122123124125
if( c.handlingEvent == null ) { new InspectUnhandledCargo( cargo ).inspect(); return; } HandlingEventType handlingEventType = c.handlingEvent.handlingEventType().get(); // Step 2 - Delegate inspection switch( handlingEventType ) {
135136137138139140141142143144145
NextHandlingEvent nextEvent = null; Date time = null; String port = null; String voyageNumber = null; Voyage voyage; HandlingEventType type = null; String wrongPort = null; String wrongVoyage = null; // First cargo with id 11 is not routed