Package com.logicaldoc.robot
Class RobotTool
java.lang.Object
com.logicaldoc.robot.RobotTool
Utility methods to deal with Robots from within Automation
- Since:
- 9.2
- Author:
- Marco Meschieri - LogicalDOC
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionactionToken(String command, Object... args) Produces an action token to use in robot's answer.ask(String robotName, String question, RobotHistory transaction) Asks a question to a robotAsks a question to a robotopenDocument(com.logicaldoc.core.document.Document document) Generates the command token to open a documentopenDocument(com.logicaldoc.core.folder.Folder folder) Generates the command token to open a folder
- 
Constructor Details- 
RobotToolpublic RobotTool()
 
- 
- 
Method Details- 
askAsks a question to a robot- Parameters:
- robotName- Name of the robot to ask
- question- The question
- transaction- The current session
- Returns:
- The answer from the robot
 
- 
askAsks a question to a robot- Parameters:
- robotName- Name of the robot to ask
- question- The question
- username- The current user
- Returns:
- The answer from the robot
 
- 
actionTokenProduces an action token to use in robot's answer. A command token generates a link that allows the user to take an action in the Robot's chat- Parameters:
- command- Mame of the command(eg: OpenDocument)
- args- The arguments for the command
- Returns:
- The command token
 
- 
openDocumentGenerates the command token to open a document- Parameters:
- document- The document to open
- Returns:
- the
 
- 
openDocumentGenerates the command token to open a folder- Parameters:
- folder- The folder to open
- Returns:
- the
 
 
-