updateProcessedDoc (AgentContext - Java)

Marks a document as processed by an agent.

Defined in



public void updateProcessedDoc(Document doc)
    throws NotesException


Document doc

The document to be marked as processed. Cannot be null.


Use this method in conjunction with getUnprocessedDocuments, unprocessedFTSearch, and unprocessedSearch in an agent that runs on all new and modified documents.

This method marks a document so subsequent invocations of the same agent recognize the document as processed. You must explicitly mark a document with this method. No implicit marking occurs in a Java agent.

If a marked document is modified, it is unmarked and will be processed by the next invocation of the agent.

This method marks a document as processed only for the particular agent from which it is called. Using this method in one agent has no effect on the documents that another agent processes.