История страницы
Wait for one robot to finish Version 3
Action group: Robot management
...
Description
The action waits for one robot to finish, and it is possible to launch a robot and pass it not only the input parameter as a dictionary, but also receive the output parameter "Dictionary" from it, so that data can be passed by a robot that launches another robot.
Action icon
Parameters
Input parameters
Robot ID
Timeout, ms - Limit time to wait for a response from the agent that the robot is finished. It is measured in milliseconds. If "-1" is specified, the action waits indefinitely for a response from the agent.
Output parameters
Result
Settings
Property | Description | Type | Filling example | Mandatory field |
---|---|---|---|---|
Parameters | ||||
Robot ID | Robot ID | Robin.String | Yes | |
Timeout, ms | The maximum time to wait for a response from the agent about the completion of the robot. Measured in milliseconds. If «-1» is specified, the action waits for a response from the agent indefinitely. | Robin.Numeric | Yes | |
Results | ||||
Result | Dictionary with the results of the robot | Robin.Dictionary |
Special conditions of use
If the robot is not completed within the specified waiting time, display an error with the robot ID and name.
Example of use
Task
Wait for the robot running locally to terminate and, afterwards, display a dialog box with the message "Robot terminated".
Solution
Use the action "Start robot", "Wait for one robot to finish", "Message".
Implementation
- Assemble a robot scheme consisting of actions:
- Set the parameters for the "Start robot" action.
- Set the parameters for the "Wait for one robot to finish" action.
- Set the parameters for the "Message" action.
- Click on the "Start" button in the top panel.
Result
The program robot completed successfully.
A dialog box about the success of the robot termination is displayed.
Ожидать окончания одного робота Версия 3
Группа действий: Управление роботами
Описание
Действие ожидает окончания работы одного робота, при этом есть возможность запустить робота и передать ему не только входной параметр в виде словаря, а также получать от него выходной параметр "Словарь", чтобы можно было передавать данные роботом, который запускает другого робота.
Иконка действия
Параметры
Входные параметры
Идентификатор робота
Тайм-аут, мс - Предельное время ожидания ответа от агента о завершении работы робота. Измеряется в миллисекундах. Если указано "-1", действие ждет ответа от агента бесконечно долго.
Выходные параметры
Словарь
Настройки
...
Свойство
...
Англ. наименование
...
Описание
...
Тип
...
Robot ID
...
Особые условия использования
Если робот не был завершен в пределах заданного времени ожидания, то отображать ошибку ,в которой будет указан идентификатор и имя робота.
Пример использования
Задача
Ожидать окончания работы робота, запущенного локально и, после, вывести диалоговое окно с сообщением "Робот завершил работу".
Решение
Воспользоваться действием "Запустить робота", "Ожидать окончания одного робота", "Сообщение".
Реализация
...
Результат:
Программный робот отработал успешно.
Отображено диалоговое окно об успешности окончания работы робота.