Trading Networks 10.7 | Administering Trading Networks | Understanding webMethods Trading Networks | Document Delivery | Scheduled Delivery
 
Scheduled Delivery
Scheduled delivery for a partner uses a scheduled delivery queue, a scheduled delivery service, a delivery schedule, and delivery tasks.
There are two types of scheduled delivery queues:
*Private queues, each with a delivery schedule and delivery service you define. Each private queue delivers documents to only one partner.
*Public queues, each with its own delivery schedule and delivery service you define. Each public queue can deliver documents to multiple partners.
To use scheduled delivery for a partner, you indicate which queue to use in the partner’s profile; that is, you specify the partner’s private queue or one of the public queues. You then specify the queue to use for a document on the Deliver Document By processing action.
Trading Networks automatically uses reliable delivery with scheduled delivery.Trading Networks creates a delivery task that invokes the scheduled delivery service and places the task in the specified queue, and that keeps track of Trading Networks’s attempts to redeliver the document.
A scheduled delivery service delivers a batch of documents to the receiving partner. You can associate the same scheduled delivery service with multiple queues. The options for scheduled delivery services are as follows:
*Trading Networks provides one built-in scheduled delivery service that uses FTP to deliver documents to a single destination. The service opens a connection, delivers all documents, and then closes the connection.
*You can create scheduled delivery services and register them with Trading Networks.
At the times the queue schedule indicates, Trading Networks invokes the scheduled delivery service to deliver the documents in the queue. The service acts on all delivery tasks in the queue whose status is QUEUED. These QUEUED delivery tasks include all delivery tasks that are in the queue when the service is invoked and any new tasks that are added to the queue before the delivery service ends. The scheduled delivery service tries to deliver the document to the receiving partner and indicates whether the delivery was successful or not. The status of the delivery task is updated accordingly. If a document cannot be delivered, Trading Networks leaves the delivery task with the QUEUED status so the scheduled delivery service will to try to deliver the document again at the next scheduled time.
Trading Networks automatically uses reliable delivery with scheduled delivery, but you must specify the Save Document to Database pre-processing action on the processing rule. In the receiving partner's profile, you specify the number of times to try to redeliver a document to the partner. If Trading Networks retries the maximum number of times and delivery is unsuccessful, it changes the task status to FAILED.