Examples: sign method

This agent signs the forms in the current database.

import lotus.domino.*;

public class JavaAgent extends AgentBase {

  public void NotesMain() {

    try {
      Session session = getSession();
      AgentContext agentContext = session.getAgentContext();

      // (Your code goes here) 
      Database db = agentContext.getCurrentDatabase();
      db.sign(Database.DBSIGN_DOC_FORM);

    } catch(Exception e) {
      e.printStackTrace();
    }
  }
}