public interface Agent
Modifier and Type | Interface and Description |
---|---|
static interface |
Agent.AgentRunContext |
Modifier and Type | Method and Description |
---|---|
Agent.AgentRunContext |
createAgentContext()
Initializes the AgentRunContext in which the agent should run, for defining
settings like re-opening the database as the signer, which document the agent
should run on, timeouts etc.
|
Optional<Document> |
getAgentSavedData()
The returned document is created when you save an agent, and it is stored in
the same database as the agent.
The document replicates, but is not displayed in views. Each time you edit and re-save an agent, its saved data document is deleted and a new, blank one is created. |
List<String> |
getAliases()
Gets any aliases for the agent.
|
String |
getComment()
Gets any comment the developer has assigned for the agent
|
String |
getName()
Gets the agent's Name
|
int |
getNoteID()
NoteID location of the agent's design element, specific only for this replica
of the Database
|
Database |
getParentDatabase()
Database containing the agent
|
String |
getUNID()
Domino UNID of the agent's design element
|
boolean |
isEnabled()
Gets whether or not the agent is set to be run on a schedule and is enabled
|
boolean |
isRunAsWebUser()
Gets whether or not the agent should run as the web user instead of the
signer
|
void |
run(Agent.AgentRunContext runCtx)
Runs the agent with the specific agent context
|
void |
runOnServer(boolean suppressPrintToConsole)
Runs the agent on the server
|
void |
runOnServer(int noteIdParamDoc,
boolean suppressPrintToConsole)
Runs the agent on the server
|
String getName()
List<String> getAliases()
Database getParentDatabase()
String getUNID()
int getNoteID()
String getComment()
boolean isEnabled()
boolean isRunAsWebUser()
Optional<Document> getAgentSavedData()
Optional
describing the saved agent data, or an empty one if there is no saved dataAgent.AgentRunContext createAgentContext()
void run(Agent.AgentRunContext runCtx)
runCtx
- AgentRunContext that defines run settingsvoid runOnServer(boolean suppressPrintToConsole)
suppressPrintToConsole
- true to not write "Print" statements in the
agent code to the server consolevoid runOnServer(int noteIdParamDoc, boolean suppressPrintToConsole)
noteIdParamDoc
- note id of parameter documentsuppressPrintToConsole
- true to not write "Print" statements in the
agent code to the server consoleCopyright © 2019–2021 HCL. All rights reserved.