История страницы
Property |
---|
Название
(англ)
Описание
(англ)
Mandatory field | Description | Type | Filling example | Note |
---|---|---|---|---|
Action | Download file | Yes | The action downloads a file from the file storage and saves it to the local file system of the agent under which the action was launched |
Before downloading a file, the action must connect to file storage using the endpoint and access token it receives from the agent, which in turn receives them from the configuration service | ||
Parameters |
Remote file(s) |
Yes | JSON |
object, which is an array in which each element contains a set of meta information about the file (id, name, content type, and location of the file). This allows the action to download one or more files as needed. | Robin.RemoteFile | [ { |
Этот параметр ЦС-сервис (уточнить какой именно и какой метод) формирует на основе связей между выходными параметрами предыдущей задачи и входными параметрами текущей роботизированной задачи и передает в робот как параметр. Далее робот подставляет этот параметр при вызове действия.
Должен использоваться метод GET
This parameter is formed by the CA service (specify which one and which method) on the basis of links between the output parameters of the previous task and the input parameters of the current robotic task and passed to the robot as a parameter. Then the robot substitutes this parameter when calling the action. The GET method must be used | ||
Result | File path(s) | Yes |
An array in which each element contains the path to a file on the local file system of the agent under which it was saved | Robin.FilePath | [ C:\Users\<User>\Application Data\Robin Platform\2.0.0\Runs\Host\User\<task_execution_id_id>\in\CC28BA9D-346B-4743-99FE-2AE5938030F6\File.txt, C:\Users\<User>\Application Data\Robin Platform\2.0.0\Runs\Host\User\<task_execution_id_id>\in\CC28BA9D-346B-4743-99FE-2AE5938030F6\File2.txt, ] |
Замечание на счет папки
Я бы для имени папки вместо id сессии использовал бы id экземпляра задачи, которое легко можно передать агенту вместе с другими параметрами робота. Тогда легче находить нужные файлы конкретной задачи (робота).
Note about the folder I would use the id of the task instance for the folder name instead of the session id, which can easily be passed to the agent along with other robot parameters. Then it would be easier to find the necessary files of a particular task (robot). Given the comment, an alternative folder name for the robot's input files |
: C:\Users\<User>\Application Data\Robin Platform\2.0.0\Runs\Host\User\<task_execution_id_id>\in\ |
and a variant folder name for the robot's output files: C:\Users\<User>\Application Data\Robin Platform\2.0.0\Runs\Host\User\<task_execution_id_id>\out\ |
The file itself will have the same name under which it was saved in the storage folder |