Add a document or batch to a queue
To add a document or batch to a queue, use an event handler. For more information about writing event handlers, see "Setting queues" topic in API help. You can add each document or batch to as many queues as desired.
Usually, you use an existing queue. However, it is possible to add the document or batch to a new queue. In this case, the queue is defined when the document or batch is added to it.
The document or batch remains in the queue throughout processing, until it is deleted from the database. You can also remove it from a queue using an event handler.