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

工作流活动

上次更新日期 2026年4月27日

等待外部任务然后继续

UiPath.Persistence.Activites.ExternalTask.WaitForExternalTaskAndResume

描述

暂停当前工作流的执行,直到指定操作完成为止。要指定操作,必须提供从“创建外部任务”活动检索到的ExternalTaskData对象。操作完成后,系统将继续执行工作流。

项目兼容性

Windows - 旧版 | Windows | 跨平台

Windows、Windows - 旧版配置

设计器面板
  • TaskObject(Input) - The Action you want to suspend, stored in a ExternalTaskData variable. This variable can be obtained from a Create External Task activity, This field supports ExternalTaskData variables only.
  • TaskAction - The type of action taken by the user to complete the Action. For example, a type of action that can be taken by a user is "submit".
  • TaskObject(Output) - The updated Task object obtained from Orchestrator after the execution of this activity.
属性面板

常见

  • “出错时继续”- 指定在活动引发错误时是否应继续自动化操作。该字段仅支持“布尔值”(True 和 False)。默认值为 False。因此,如果该字段为空且活动引发错误,系统将停止执行项目。如果该值设为“True”,则无论出现何种错误,系统都将继续执行项目。

    备注:

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

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

  • “状态消息” - 此属性字段中指定的消息与此活动暂停的工作流一起显示在 Orchestrator 中。此字段仅支持字符串和String变量。

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

输入

  • TaskObject(Input) - The Action you want to suspend, stored in a ExternalTaskData variable. This variable can be obtained from a Create External Task activity, This field supports ExternalTaskData variables only.

其他

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

输出

  • TaskAction - The type of action taken by the user to complete the Action. For example, a type of action that can be taken by a user is "submit".
  • TaskObject(Output) - The updated Task object obtained from Orchestrator after the execution of this activity.

跨平台配置

  • TaskObject(Input) - The Action you want to suspend, stored in a ExternalTaskData variable. This variable can be obtained from a Create External Task activity, This field supports ExternalTaskData variables only.
  • TaskAction - The type of action taken by the user to complete the Action. For example, a type of action that can be taken by a user is "submit".
  • TaskObject(Output) - The updated Task object obtained from Orchestrator after the execution of this activity.
高级选项
  • “出错时继续”- 指定在活动引发错误时是否应继续自动化操作。该字段仅支持“布尔值”(True 和 False)。默认值为 False。因此,如果该字段为空且活动引发错误,系统将停止执行项目。如果该值设为“True”,则无论出现何种错误,系统都将继续执行项目。

    备注:

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

  • “状态消息” - 此属性字段中指定的消息与此活动暂停的工作流一起显示在 Orchestrator 中。此字段仅支持字符串和String变量。

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

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

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新