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

工作流活动

上次更新日期 2026年2月20日

启动作业并获取引用

UiPath.Persistence.Activities.Job.StartJobAndGetReference

描述

在 Orchestrator 中使用参数调用作业并获取相应的作业对象,以便在工作流执行期间随时等待作业完成。如果您的工作流使用此活动调用另一个工作流,则必须将 Robot 连接到 Orchestrator,并且Robot 角色还需要具有对流程和环境的“查看”权限,以及对作业的“查看”“编辑”“创建”权限。该活动在执行它的 Robot 下运行。

项目兼容性

Windows - 旧版 | Windows | 跨平台

Windows、Windows - 旧版配置

设计器面板
  • ProcessName (mandatory) - The Display name of the Process you want to use for the job as it appears in Orchestrator (it could be found in Additional Settings field of the process settings. For example, if the name of the Package is InvoiceScan and you named the process Invoice Scanner, the string in this field should be Invoice Scanner). This field supports strings and String variables only.
  • Job Arguments - The arguments you want to use when invoking a job in Orchestrator. Modifying Out and In/Out arguments maps them back to the workflow after task completion. This field supports Dictionary<String,Argument> objects only.
  • 作业对象(输出)- 创建任务后从 Orchestrator 作为 JobData 对象返回的作业对象。可以将此对象传递给“等待作业然后继续”活动,以便在作业完成之前暂停工作流的执行。
属性面板

常见

  • 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 秒)。

输入

  • Orchestrator 文件夹路径- 与当前流程所在的不同的Orchestrator 文件夹的路径,您要从中开始作业。要了解有关 Orchestrator 文件夹的更多信息,请访问文件夹。对于传统文件夹,此属性只能用于浮动机器人,并且仅在当前用户在目标文件夹中具有正确的任务权限时才可用。对于新式文件夹,不支持文件夹路径覆盖。此字段仅支持字符串和String变量。

    备注:

    当必须从当前文件夹以外的文件夹启动或查询作业时,才必须使用“Orchestrator 文件夹路径”属性。如果执行此操作的用户没有目标文件夹所需的权限,则作业启动将失败并引发严重错误。请访问文件夹权限,了解有关文件夹权限的信息。

  • Job Arguments - The arguments you want to use when invoking a job in Orchestrator. Modifying Out and In/Out arguments maps them back to the workflow after task completion. This field supports Dictionary<String,Argument> objects only.

  • ProcessName (mandatory) - The Display name of the Process you want to use for the job as it appears in Orchestrator (it could be found in Additional Settings field of the process settings. For example, if the name of the Package is InvoiceScan and you named the process Invoice Scanner, the string in this field should be Invoice Scanner). This field supports strings and String variables only.

其他

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

输出

  • 作业对象(输出)- 创建任务后从 Orchestrator 作为 JobData 对象返回的作业对象。可以将此对象传递给“等待作业然后继续”活动,以便在作业完成之前暂停工作流的执行。

跨平台配置

  • ProcessName (mandatory) - The Display name of the Process you want to use for the job as it appears in Orchestrator (it could be found in Additional Settings field of the process settings. For example, if the name of the Package is InvoiceScan and you named the process Invoice Scanner, the string in this field should be Invoice Scanner). This field supports strings and String variables only.
  • Job Arguments - The arguments you want to use when invoking a job in Orchestrator. Modifying Out and In/Out arguments maps them back to the workflow after task completion. This field supports Dictionary<String,Argument> objects only.
  • 作业对象(输出)- 创建任务后从 Orchestrator 作为 JobData 对象返回的作业对象。可以将此对象传递给“等待作业然后继续”活动,以便在作业完成之前暂停工作流的执行。
高级选项

常见

  • 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 秒)。

输入

  • Orchestrator 文件夹路径- 与当前流程所在的不同的Orchestrator 文件夹的路径,您要从中开始作业。要了解有关 Orchestrator 文件夹的更多信息,请访问文件夹。对于传统文件夹,此属性只能用于浮动机器人,并且仅在当前用户在目标文件夹中具有正确的任务权限时才可用。对于新式文件夹,不支持文件夹路径覆盖。此字段仅支持字符串和String变量。
    备注:

    当必须从当前文件夹以外的文件夹启动或查询作业时,才必须使用“Orchestrator 文件夹路径”属性。如果执行此操作的用户没有目标文件夹所需的权限,则作业启动将失败并引发严重错误。请访问文件夹权限,了解有关文件夹权限的信息。

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

此页面有帮助吗?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath Logo
信任与安全
© 2005-2026 UiPath。保留所有权利。