robot
2022.10
false
- 入门指南
- 安装和升级
- 机器人类型
- 机器人组件
- 许可
- 将机器人连接到 Orchestrator
- 流程与活动
- 日志记录
- 特定场景
- 监管
- 故障排除
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。
新发布内容的本地化可能需要 1-2 周的时间才能完成。 

机器人用户指南
上次更新日期 2025年6月4日
机器人能够满足各种自动化需求。当您使用 Robot API 时,这些功能会显著增强,从而为您提供量身定制的体验来创建特定于域的界面。
Robot API 只能用于管理您自己的作业,不能用于其他用户。仅可从安装机器人的计算机上访问。API 与机器人版本相同,并且每个更新都提供向后兼容性。
| 机器人版本 | API 22.4.x | API 21.10.x | API 20.10.x | API 19.10.x | 
|---|---|---|---|---|
| Robot 22.4.x |  |  |  |  | 
| Robot 21.10.x |  |  |  |  | 
| Robot 20.10.x |  |  |  |  | 
| Robot 19.10.x |  |  |  |  | 
使用机器人 API 时需要 
            
            UiPath.Robot.api 库。您可以通过 https://uipath.pkgs.visualstudio.com/Public.Feeds/_packaging/UiPath-Official/nuget/v3/index.json 订阅源下载。
            您可以使用以下 .NET 机器人客户端调用:
var processes = await client.GetProcesses(); 
var myProcess = processes.Single(process => process.Name == "MyProcess"); 
var job = myProcess.ToJob();var processes = await client.GetProcesses(); 
var myProcess = processes.Single(process => process.Name == "MyProcess"); 
var job = myProcess.ToJob();var job = new Job("812e908a-7609-4b81-86db-73e3c1438be4");var job = new Job("812e908a-7609-4b81-86db-73e3c1438be4");{ 
await client.RunJob(job); 
} 
catch (Exception ex) 
{ 
Console.WriteLine(ex.ToString()); 
}{ 
await client.RunJob(job); 
} 
catch (Exception ex) 
{ 
Console.WriteLine(ex.ToString()); 
}job.InputArguments = {["numbers"] = new int[] { 1, 2, 3 }}; 
await client.RunJob(job);job.InputArguments = {["numbers"] = new int[] { 1, 2, 3 }}; 
await client.RunJob(job);var jobOutput = await client.RunJob(job); 
Console.WriteLine(jobOutput.Arguments["sumOfNumbers"]);var jobOutput = await client.RunJob(job); 
Console.WriteLine(jobOutput.Arguments["sumOfNumbers"]);job.StatusChanged += (sender, args) => Console.WriteLine($"{((Job)sender).ProcessKey}: {args.Status}"); 
await client.RunJob(job);job.StatusChanged += (sender, args) => Console.WriteLine($"{((Job)sender).ProcessKey}: {args.Status}"); 
await client.RunJob(job);