Domino Code Fragment
Code Name* CurrentAgent property | Date* 04/28/2024 | Source (or email address if you prefer)* Rlatulippe@romac.com IP address:.18.218.70.93 | |
Description* This example prints the name of the current agent. | Type* Java | Categories* (Misc) |
Implementation: | Required Client: | Server: |
Limitations: | Comments: |
public class currentagentagent extends AgentBase
{
public void NotesMain()
{
try
{
Session s = getSession();
AgentContext ac = s.getAgentContext();
Agent agent = ac.getCurrentAgent();
String name = agent.getName();
System.out.println
("Current Agent is \"" + name + "\"");
}
catch (Exception e)
{
e.printStackTrace();
}
}
}