Document

 

 

 

CreateDocument

Functional Area

Gate

Execution Level

Transaction/Truck Visit

Transaction Type(s)

Gate: Deliver Break-Bulk (DB), Deliver Chassis (DC), Dray Off (DE), Deliver Import (DI), Deliver Empty (DM), Receive Break-Bulk (RB), Receive Chassis (RC), Receive Export (RE), Dray In (RI), Receive Empty (RM), Through Container (TC)

Truck Visit IN, Truck Visit OUT

Client Type(s)

UI and Gate API

Related Business Task(s)

PrintDocument (on page 1)

CreateTruckVisitDocument (on page 1)

Field(s)

None

Alternate Name(s)

CreateDocument(on-trouble)

Description

The business task creates and saves a gate document. If you want to create a document that includes the Truck Turn Time and Out Time, include the CreateDocument business task at the last stage, such as the outgate stage, for the gate transaction type. To create a truck routing ticket, see CreateTruckVisitDocument (on page 1).

The N4 Gate API response shows only the FATAL errors as separate messages. To get all the SEVERE error messages in the Gate API response, you must configure a trouble document and include the CreateDocument(on-trouble) business task at the gate stage with Trouble Document Type ID.

Parameters

For more information on setting parameters, see Business Tasks form (on page 1).

Dependencies

You must include the PrintDocument (on page 1) business task to print the gate document created.

Timing

Custom Code

Any custom code associated with the business task is executed following the execution of this business task and has no impact on it.

 

CreateTransactionDocuments

Functional Area

Gate

Execution Level

Truck Visit

Transaction Type(s)

Truck Visit IN and Truck Visit OUT

Client Type(s)

UI and Gate API

Related Business Task(s)

PrintTransactionDocuments (on page 1)

Field(s)

None

Alternate Name(s)

CreateTransactionDocuments (on-trouble)

Description

The business task enables you to create gate transaction level documents at the truck visit level, when a gate stage is completed either through the UI or a gate API. When you use this business task, the gate workflow does not create the gate documents when you complete a gate transaction; instead, it waits until all the gate transactions for a gate stage are completed and then creates the gate transaction level documents when you complete the gate stage.

You may use this business task when you want the gate document to include truck visit level details that are not available when you complete a gate transaction but are available when you complete a gate stage either through the UI or a gate API. Some examples of such information include:

Parameters

None

Dependencies

Timing

Custom Code

Any custom code associated with the business task is executed following the execution of this business task and has no impact on it.

 

CreateTruckVisitDocument

The business task creates and saves a gate document for the truck visit details and all of the associated gate transactions details.

You can include the messages for each gate transaction in a truck visit gate document. In the document layout, the messages for a truck visit gate document are in the argo:Messages element located inside the argo:trkTransaction element. In addition, you can use the RouteLayout.xsl as a default document layout for the truck visit gate document.

Functional Area

Gate

Execution Level

Truck Visit

Transaction Type(s)

Gate: Truck Visit IN, Truck Visit OUT

Timing

To create a trouble ticket when the truck visit itself has an error and needs to be sent to the trouble desk, you must include the business task for the on-trouble timing.

When you include the CreateTruckVisitDocument and PrintDocument (on page 1) business tasks for the on-trouble timing, N4 creates one trouble ticket for the truck visit and any gate transactions regardless of whether you create the truck visit from the N4 interface or use any of the truck visit process gate APIs, such as create-truck-visit, process-truck, or stage-done.

Client Type(s)

UI and Gate API

Parameters

docTypeId: Specify the existing document ID that you want to create at the selected gate stage. To create a document ID, see Document form (on page 1).

For more information on setting parameters, see Business Tasks form (on page 1).

Dependencies

You must also include the PrintDocument (on page 1) business task to print the gate document created.

Related Business Task(s)

CreateDocument (on page 1)

Custom Code

Any custom code associated with the business task is executed following the execution of this business task and has no impact on it.

Field(s)

None

 

PrintAllDocumentsAtTrouble

Sends the latest version of each type of gate document that was created from the start of the truck visit to the GOS. If you include this business task, N4 executes it only when the trouble clerk processes the truck visit.

Gate stage

Truck Visit IN

Truck Visit OUT

 

 

PrintAllDocumentsFromScreen

Sends a print command to the Gate Operating System (GOS) with the ticket data for all the gate transactions for a truck visit. N4 executes this business task only if the print command is submitted from the N4 interface, the <GateStage> tab (on page 1), or the Trouble Transactions tab (on page 1).

Gate stage

Truck Visit IN

Truck Visit OUT

 

 

PrintDocument

Functional Area

Gate

Execution Level

Transaction/Truck Visit

Transaction Type(s)

Gate: Deliver Break-Bulk (DB), Deliver Chassis (DC), Dray Off (DE), Deliver Import (DI), Deliver Empty (DM), Receive Break-Bulk (RB), Receive Chassis (RC), Receive Export (RE), Dray In (RI), Receive Empty (RM), Through Container (TC)

Truck Visit IN, Truck Visit OUT

Client Type(s)

UI and Gate API

Related Business Task(s)

PrintAllDocumentsAtTrouble (on page 1)

PrintAllDocumentsFromScreen (on page 1)

PrintDocumentAtTrouble (on page 1)

Field(s)

None

Alternate Name(s)

PrintDocument(on-trouble)

Description

The business task prompts a user to select a printer to print a gate document.

If the PrintDocument business task is submitted from the screen, it prints directly and not via the GOS. However, if the PrintDocument business task is submitted via a Web Service request, it assumes that a GOS is present and does not attempt to print directly.

Parameters

If you use the Gate API to print the ticket, you can specify the number of copies to be printed in the no-of-copies attribute of the document element. For more information about the attribute, see the gate-types.xsd file on your application server.

For more information on setting parameters, see Business Tasks form (on page 1).

Dependencies

If you include PrintDocument business task, you must include the CreateDocument (on page 1) or CreateTruckVisitDocument (on page 1) business tasks that creates the gate document that you want to print.

Timing

To print a trouble ticket when the truck visit itself has an error and needs to be sent to the trouble desk, you must include the business task for the on-trouble timing.

Custom Code

Any custom code associated with the business task is executed following the execution of this business task and has no impact on it.

 

PrintDocumentAtTrouble

Use this business task only for an automated gate. The PrintDocumentAtTrouble business task is similar to the PrintDocument (on page 1) business task except that it prints the gate document only when submitted by the clerk at the trouble stage. In addition, the business task sends the document as an XML to the GOS via a Web Service call.

docTypeId: Use this parameter to specify the existing document ID that you want to create at the selected gate stage. To create a document ID, see Document form (on page 1).

For more information on setting parameters, see Business Tasks form (on page 1).

If a document is printed as part of the normal flow and not by the trouble clerk, N4 assumes that the printing is handled by the GOS from data provided in response to GOS requests.

Gate stage

Deliver Break-Bulk (DB)

Deliver Chassis (DC)

Dray Off (DE)

Deliver Import (DI)

Deliver Empty (DM)

Receive Break-Bulk (RB)

Receive Chassis (RC)

Receive Export (RE)

Dray In (RI)

Receive Empty (RM)

Through Container (TC)

 

 

PrintTransactionDocuments

Functional Area

Gate

Execution Level

Truck Visit

Transaction Type(s)

Truck Visit IN and Truck Visit OUT

Client Type(s)

UI and Gate API

Related Business Task(s)

CreateTransactionDocuments (on page 1)

Field(s)

None

Alternate Name(s)

PrintTransactionDocuments (on-trouble)

Description

The business task enables you to print gate transaction level documents at the truck visit level, when a gate stage is completed either through the UI or a gate API. When you use this business task, the gate workflow does not print the gate documents when you complete a gate transaction; instead, it waits until all the gate transactions for a gate stage are completed and then prints the gate transaction level documents when you complete the gate stage.

You may use this business task when you want the gate document to include truck visit level details that are not available when you complete a gate transaction but are available when you complete a gate stage either through the UI or a gate API. Some examples of such information include:

Parameters

None

Dependencies

Timing

Custom Code

Any custom code associated with the business task is executed following the execution of this business task and has no impact on it.