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 Summary
Constructors -
Method Summary
Modifier 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
-
RobotTool
public RobotTool()
-
-
Method Details
-
ask
Asks a question to a robot- Parameters:
robotName
- Name of the robot to askquestion
- The questiontransaction
- The current session- Returns:
- The answer from the robot
-
ask
Asks a question to a robot- Parameters:
robotName
- Name of the robot to askquestion
- The questionusername
- The current user- Returns:
- The answer from the robot
-
actionToken
Produces 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
-
openDocument
Generates the command token to open a document- Parameters:
document
- The document to open- Returns:
- the
-
openDocument
Generates the command token to open a folder- Parameters:
folder
- The folder to open- Returns:
- the
-