Domino Code Fragment
Code Name* LastExitStatus property | Date* 04/28/2024 | Source (or email address if you prefer)* Rlatulippe@romac.com IP address:.18.191.216.163 | |
Description* This example prints the last exit status of the current agent. | Type* Java | Categories* (Misc) |
Implementation: | Required Client: | Server: |
Limitations: | Comments: |
public class lastexitstatusagent extends AgentBase
{
public void NotesMain()
{
try
{
Session s = getSession();
AgentContext ac = s.getAgentContext();
int status = ac.getLastExitStatus();
System.out.println("Last exit status was " + status);
}
catch (Exception e)
{
e.printStackTrace();
}
}
}