1. In the robot to which the parameter will be passed, you must create a variable to which the parameter will be written and select the "Robot input parameter" option:



  2. Export a finished robot to be run with another robot (extension ".robin-robot"):



  3. In the robot scheme from which another robot will be launched, select the "Run" action from the "Processes" action group.



  4. In the action parameters under "Set Process", select "By the file path" from the drop-down list.

  5. In the "Process file" line, enter the path to the ROBIN Robot Player application (%USERPROFILE%/AppData/Local/Programs/RobinPlatform/2.0.0/RobotPlayer/RobotPlayer.exe).

  6. In the "Arguments" field, specify a string of the following format: -r "path to the finished robot" -p "path to the file with parameters".



Parameters are passed by means of an xml-file. This xml file can have any name, but the order and name of its elements must be unchangeable. The user changes values only in the line with the InOutResource element:

  • value of the attribute "name" is the name of the variable to which we pass the parameter. This variable must be created in the robot to which we pass the parameter. The robot that passes the parameter may not have such a variable;

  • in the value of the InOutResource element it is necessary to specify the type of the variable to which the passed parameter will be written and the passed value, i.e. the parameter itself;

  • if the robot needs to pass several parameters, it is necessary to copy the InOutResource element the required number of times and write the parameter values into it.

XML file structure:

<?xml version="1.0" encoding="utf-16"?>

<ActionInOut xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" schemaVersion="5.1.0" scenarioLogLevel="ActionDeveloperDebug">

            <InOutResources>

            <InOutResource name="The name of the variable in the robot to be run; the passed value/parameter will be written to it"><![CDATA[<Type of transferred value>Transferred value/parameter</Type of transferred value>]]></InOutResource>

            </InOutResources>

            <ActionBreakpoints />

            <ActionLogLevels />

</ActionInOut>

  • Нет меток