使用长时间运行的工作流
Processes that require logical fragmentation or human intervention (validations, approvals, exception handling) such as invoice processing and performance reviews, are handled with a set of instruments in the UiPath suite: a dedicated project template in Studio called Orchestration Process, resource allocation capabilities in Orchestrator, and actions within Action Center.
Broadly, you configure your workflow using activities from the Persistence, IntelligentOCR,and ML.Services activity packages. The workflow can be configured so that a suspended job can only be resumed if certain requirements have been met. Only after the requirements have been met, resources are allocated for job resumption, thus ensuring no waste in consumption.
In Orchestrator this is marked by having the job suspended, awaiting for requirements to be met, and then having the job resumed and executed as usual. Depending on which pair you use, completion requirements change, and the Orchestrator response adjusts accordingly.
作业
队列
| Activities (活动) | 用例 |
|---|---|
|
引入队列条件,例如处理队列项目。 暂停主作业后,需要通过辅助作业处理队列项目。此流程完成后,主作业将继续。根据您配置工作流的方式,恢复的作业可以使用从已处理的队列项目中获取的输出数据。 |
操作
表单操作
外部操作
| Activities (活动) | 用例 |
|---|---|
| 引入在 Action Center 中作为操作发现的用户干预条件。
作业暂停后,将在 Action Center 中生成操作(在 Studio 中配置)。 Only after action completion, is the job resumed. 外部操作可由对操作具有“编辑”权限并有权访问关联文件夹的任何用户来完成。 |
文档验证操作
| Activities (活动) | 用例 |
|---|---|
|
引入在 Action Center 中作为操作发现的用户干预条件。 作业暂停后,将在 Action Center 中生成操作(在 Studio 中配置)。 Only after action completion, is the job resumed. Document Validation actions need to be completed by the assigned user. User assignment can be handled directly in Action Center, or through the Assign Tasks activity. 为了使机器人能够上传、下载和删除存储桶中的数据,需要向其授予适当的权限。 这可以通过使用以下内容更新机器人角色来完成:
|
文档分类操作
| Activities (活动) | 用例 |
|---|---|
|
引入在 Action Center 中作为操作发现的用户干预条件。 作业暂停后,将在 Action Center 中生成操作(在 Studio 中配置)。 Only after action completion, is the job resumed. Document Classification actions need to be completed by the assigned user. User assignment can be handled directly in Action Center, or through the Assign Tasks activity. 为了使机器人能够上传、下载和删除存储桶中的数据,需要向其授予适当的权限。 这可以通过使用以下内容更新机器人角色来完成:
|
数据标签操作
| Activities (活动) | Use case |
|---|---|
|
引入在 Action Center 中作为操作发现的用户干预条件。 作业暂停后,将在 Action Center 中生成操作(在 Studio 中配置)。 Only after action completion, is the job resumed. 数据标签操作需要连接到 AI Center 租户。 |
Duration
| 活动 | 用例 |
|---|---|
|
引入一个时间间隔作为延迟,在此期间工作流将暂停。 延迟过后,将继续作业。 |
Job fragments are not restricted to being executed by the same Robot. They can be executed by any Robot that is available when the job is resumed and ready for execution. This also depends on the execution target configured when defining the job. Details here.
示例
我定义了要由特定机器人(例如 X、Y 和 Z)执行的作业。当我启动作业时,只有 Z 可用,因此 Z 会执行我的作业,直到作业暂停以等待用户验证。在验证之后,并且作业继续,只有 X 可用,因此 X 会执行作业。
- 从监控的角度来看,无论是否由不同的机器人进行分段或执行,此类作业都被视为一个作业。
- 无法将暂停的作业分配给机器人,只能分配恢复的作业。
要查看恢复挂起作业所需的触发器,请查看“作业详细信息”窗口上的“触发器” 选项卡。
要上传文档数据:
要在下载后删除文档数据: