活动
最新
False
横幅背景图像
工作流活动
上次更新日期 2024年4月22日

停止作业

用于停止或终止 Orchestrator 上的作业。 请注意,为了在 Studio 中执行此方法,必须将机器人连接到 Orchestrator,并且机器人角色还需要具有对作业的创建编辑权限,以及对流程和环境的查看权限。 该方法在执行它的 Robot 下运行。

定义

命名空间: UiPath Activities.System.API

程序集: UiPath.System.Activities.Api(在 UiPath.System.Activities.Api.dll 中)

重载

  
StopJob(OrchestratorJob, StopStrategy)根据特定策略停止 Orchestrator 中的作业:终止或停止。
StopJob(OrchestratorJob, StopStrategy, String)根据特定策略从指定的文件夹路径停止 Orchestrator 中的作业:终止或停止。
StopJob(OrchestratorJob, StopStrategy, String, Int32)根据特定策略从指定的文件夹路径停止 Orchestrator 中的作业:终止或停止。

StopJob(OrchestratorJob, StopStrategy)

根据特定策略停止 Orchestrator 中的作业:终止或停止。

void StopJob(
	OrchestratorJob job,
	StopStrategy strategy
)void StopJob(
	OrchestratorJob job,
	StopStrategy strategy
)
job OrchestratorJob
指定要停止或终止的作业。
strategy StopStrategy
选择作业停止方式:
  • Stop - 以安全的方式停止作业。
  • Kill - 强制停止作业,无论在何处执行。

StopJob(OrchestratorJob, StopStrategy, String)

根据特定策略从指定的文件夹路径停止 Orchestrator 中的作业:终止或停止。

void StopJob(
	OrchestratorJob job,
	StopStrategy strategy,
	string folderPath
)void StopJob(
	OrchestratorJob job,
	StopStrategy strategy,
	string folderPath
)
job OrchestratorJob
指定要停止或终止的作业。
strategy StopStrategy
选择作业停止方式:
  • Stop - 以安全的方式停止作业。
  • Kill - 强制停止作业,无论在何处执行。
folderPath 字符串
指定作业所在文件夹的路径(如果与运行流程的文件夹不同)。 此字段仅支持字符串值,并使用 / 作为分隔符来表示子文件夹。 例如 "Finance/Accounts Payable"

StopJob(OrchestratorJob, StopStrategy, String, Int32)

根据特定策略从指定的文件夹路径停止 Orchestrator 中的作业:终止或停止。

void StopJob(
	OrchestratorJob job,
	StopStrategy strategy,
	string folderPath,
	int timeoutMS
)void StopJob(
	OrchestratorJob job,
	StopStrategy strategy,
	string folderPath,
	int timeoutMS
)
job OrchestratorJob
指定要停止或终止的作业。
strategy StopStrategy
选择作业停止方式:
  • Stop - 以安全的方式停止作业。
  • Kill - 强制停止作业,无论在何处执行。
folderPath 字符串
指定作业所在文件夹的路径(如果与运行流程的文件夹不同)。 此字段仅支持字符串值,并使用 / 作为分隔符来表示子文件夹。 例如 "Finance/Accounts Payable"
timeoutMS Int32
指定等待时间 (以毫秒为单位)。如果超出该时间活动未运行,就会引发错误。默认值为 30000 毫秒 (30 秒)。

此页面是否有帮助?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath 白色徽标
信任与安全
© 2005-2024 UiPath. All rights reserved.