activities
latest
false
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。
UiPath logo, featuring letters U and I in white

工作流活动

上次更新日期 2026年3月6日

等待作业然后继续

UiPath.Persistence.Activities.Job.WaitForJobAndResume

描述

暂停当前工作流的执行,直到指定作业完成为止。要指定作业,必须提供从“启动作业并获取引用”活动中检索到的JobData对象。作业完成后,系统将继续执行工作流。

作业可以具有以下状态:

  • docs image 待处理 - 如果作业排队等待同一机器人,或者正在尝试与该机器人建立连接(只有同一机器人上的不同作业可以排队),则该作业处于此状态。
  • docs image 正在运行 - 如果作业已与开始执行制定流程的机器人建立了连接,则该作业处于此状态。
  • docs image 成功 - 如果作业已由机器人正确执行并且已完成运行,或者已使用停止按钮停止,则该作业处于此状态。
  • docs image Faulted - A job is in this state if it failed to start or the process threw an unhandled error during execution.
    备注:

    出现故障的作业必须手动重新启动。

  • docs image 正在停止- 单击 Orchestrator 中的停止按钮时触发的中间状态。作业会在处于安全状态时立刻取消。这可以使用“应停止”活动在工作流中实现。
  • docs image 正在终止- 单击 Orchestrator 中的“终止”按钮时触发的中间状态。默认情况下,清理后台作业每三个小时运行一次,并会将处于“正在终止”状态已至少一天的作业转换为“发生故障”。
  • docs image 已暂停- 触发的中间状态,其目的是允许用户干预或完成中间流程。由 Studio 中的相应活动触发。详情请参阅此处
  • 继续- 满足分段工作流的条件(用户干预、中间流程完成)时触发中间状态。由 Studio 中的相应活动触发。详情请参阅此处
  • docs image Stopped - A job is in this state if it stopped (by using the Kill button, or by canceling it from the system tray) before it finished executing without throwing any errors.

恢复作业后,它将转换为“正在运行”状态。

项目兼容性

Windows - 旧版 | Windows | 跨平台

Windows、Windows - 旧版配置

设计器面板
  • Job Object (Input) - The Job you want to suspend, stored in a JobData variable. This variable can be obtained from a Start Job and Get Reference activity, This field supports only JobData variables.
  • Job Object - The updated Job object obtained from Orchestrator after the execution of this activity.
属性面板

常见

  • ContinueOnError - Specifies if the automation should continue even when the activity throws an error. This field only supports Boolean values (True, False). The default value is False. As a result, if the field is blank and an error is thrown, the execution of the project stops. If the value is set to True, the execution of the project continues regardless of any error.

    备注:

    如果“Try Catch 异常处理”中包含该活动且“出错时继续”属性的值为“True”,则系统在执行项目时不会捕获任何错误。

  • “显示名称”- 活动的显示名称。

  • StatusMessage - The message specified in this property field is displayed in Orchestrator alongside the workflow that is suspended by this activity. This field supports strings and String variables only.

  • “超时(毫秒)”- 指定最长等待时间(以毫秒为单位),如果超出该时间后活动并未运行,系统便会抛出错误。默认值为 30000 毫秒(30 秒)。

输入

  • Job Object (Input) - The Job you want to suspend, stored in a JobData variable. This variable can be obtained from a Start Job and Get Reference activity, This field supports only JobData variables.

其他

  • “私有”- 选中后将不再以“Verbose”级别记录变量和参数的值。

输出

  • Job Object - The updated Job object obtained from Orchestrator after the execution of this activity.

跨平台配置

  • Job Object (Input) - The Job you want to suspend, stored in a JobData variable. This variable can be obtained from a Start Job and Get Reference activity, This field supports only JobData variables.
  • Job Object - The updated Job object obtained from Orchestrator after the execution of this activity.
高级选项
  • ContinueOnError - Specifies if the automation should continue even when the activity throws an error. This field only supports Boolean values (True, False). The default value is False. As a result, if the field is blank and an error is thrown, the execution of the project stops. If the value is set to True, the execution of the project continues regardless of any error.

    备注:

    如果“Try Catch 异常处理”中包含该活动且“出错时继续”属性的值为“True”,则系统在执行项目时不会捕获任何错误。

  • “超时(毫秒)”- 指定最长等待时间(以毫秒为单位),如果超出该时间后活动并未运行,系统便会抛出错误。默认值为 30000 毫秒(30 秒)。

  • StatusMessage - The message specified in this property field is displayed in Orchestrator alongside the workflow that is suspended by this activity. This field supports strings and String variables only.

  • 描述
  • 项目兼容性
  • Windows、Windows - 旧版配置
  • 跨平台配置

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新