Domino Code Fragment
Code Name* NumActions property | Date* 04/28/2024 | Source (or email address if you prefer)* Rlatulippe@romac.com IP address:.3.147.61.122 | |
Description* This agent prints the number of each action in the action message. | Type* Java | Categories* (Misc) |
Implementation: | Required Client: | Server: |
Limitations: | Comments: |
public class numactionsagent extends AgentBase
{
public void NotesMain()
{
try
{
Session s = getSession();
Log log = s.createLog("Counting actions");
Vector v = new Vector();
v.addElement(s.getUserName());
log.openMailLog(v, "Here's your log");
log.logAction("Action number " +
log.getNumActions());
log.logAction("Action number " +
log.getNumActions());
log.logAction("Action number " +
log.getNumActions());
log.close();
}
catch (Exception e)
{
e.printStackTrace();
}
}
}