- 发行说明
- 入门指南
- 安装和升级
- Activities (活动)
- 操作
- 流程
先决条件
- 您位于正确的 Orchestrator 文件夹上下文中。
- 您有权查看和管理流程。
生成表单以向队列提供输入
- 在 Orchestrator 中创建队列。
- Create a consumer automation project that processes items from the queue and passes data into third-party systems as imposed by the specific business scenario.
- 创建一个队列触发器,每当将新项目添加到该队列时,该触发器就会启动使用者流程。
对于拥有队列所在文件夹的相应访问权限的用户,队列将在 Action Center 网站中的“流程”页面上变为可用。这意味着您需要在 Orchestrator 中在文件夹级别为用户分配具有以下权限的角色:
- View on Queues
- View,Edit,Delete on Transactions
生成表单以向作业提供输入
- 在自动化项目的主要
.xaml文件中创建包含输入参数的工作流,并将其发布到 Orchestrator。 - Deploy a process from the above package, and provide default values for the input parameters if any.
对于拥有流程所在文件夹的相应访问权限的用户,流程将在 Action Center 网站中的“流程”页面上变为可用。这意味着您需要在文件夹级别为用户分配具有以下权限的角色:
- View on Processes
- View,Edit,Delete on Jobs
通过文件上传触发无人值守流程
作为 RPA 开发者,您可以使用并入“创建表单任务”活动(UiPath.Persistence.Activities 活动包版本 1.1.8 及更高版本)中的表单设计器来构建无人值守流程,以接受来自业务用户的文件作为输入。流程的设计包含用于上传文件的特殊参数。一个参数可上传单个文件。您可以使用两种主要类型的参数来触发流程:
_storage 参数
- 在 Studio 中的“参数”选项卡下,将
_storage后缀添加到要求上传文件的参数的名称中,并将“方向”设置为“输入”,因为它是业务用户的输入。 - In Queues, add the
_storagesuffix to the property name in the Queue schema.
存储桶参数
-
在 Studio 中的“参数”选项卡下,添加参数(例如
BucketName),以指定将文件上传到的实际存储桶。 -
In Orchestrator, configure the storage bucket and set it as a value for the BucketName argument by navigating to the process' folder > Automations > Processes > Edit > Runtime arguments.
-
在“队列”中,在队列架构中添加
BucketName属性,并为"default"键输入存储桶的名称。 -
要指定不同于当前工作流或队列的存储文件夹路径,请添加参数
BucketFolderPath,并为其提供默认值,方法与上述相同。... "UserFile_storage": { "$id": "#/properties/UserFile_storage", "type": "string", "title": "Upload Document", "default": "FileName", "examples": [ "User FileName" ] }, "BucketName": { "$id": "#/properties/BucketName", "type": "string", "title": "BucketName", "default": "ActionsTest", "examples": [ "User FileName" ] }, ...... "UserFile_storage": { "$id": "#/properties/UserFile_storage", "type": "string", "title": "Upload Document", "default": "FileName", "examples": [ "User FileName" ] }, "BucketName": { "$id": "#/properties/BucketName", "type": "string", "title": "BucketName", "default": "ActionsTest", "examples": [ "User FileName" ] }, ...
使用文件上传触发无人值守流程
- 导航到左侧菜单上的“流程”。
- 运行一个允许上传文件的流程,方法是将鼠标指针悬停在相应的图块上,然后单击“运行流程”。
- 表单显示为右侧窗格。
- 填写字段并附加文件。
- 单击“提交”。
通过示例工作流了解如何使用队列架构通过文件上传控制触发无人值守流程。
业务用户体验
- 登录到 Action Center 网站。
- 导航到“流程”。
- 通过单击“运行”来启动流程。如果流程包含输入参数,则会显示一个表单。
- 填写输入参数的值,然后单击“提交”。
- 单击“刷新”以查看事务的最新状态。
- 工作流已暂停,并生成了一个操作。
- 完成操作后,工作流将继续。
- 完成后,用户可以导航到“详细信息”页面以查看/复制输出。