ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • 帮助
  • Sign Out
ArcGIS Desktop

ArcGIS Online

专为贵组织打造的制图平台

ArcGIS Desktop

全面的专业性 GIS

ArcGIS Enterprise

面向企业的 GIS

ArcGIS Developers

用于构建位置感知应用程序的工具

ArcGIS Solutions

适用于行业的免费模板地图和应用程序

ArcGIS Marketplace

获取适用于组织的应用程序和数据

  • 文档
  • 支持
Esri
  • 登录
user
  • 我的个人资料
  • 登出

ArcMap

  • 主页
  • 入门
  • 地图
  • 分析
  • 管理数据
  • 工具
  • 扩展模块

WorkflowStep

  • 描述
  • 讨论
  • 属性
  • 代码示例

描述

WorkflowStep 对象可用于访问作业中包含的步骤的属性 Workflow。

讨论

WorkflowStep 支持通过工作流描述步骤并导航。

属性

属性说明数据类型
ID
(只读)

WorkflowStep 的 ID。

Integer
name
(只读)

WorkflowStep 的名称。

String
nextSteps
(只读)

遵循工作流中此步骤的 WorkflowStep ID 列表。

Integer

代码示例

WorkflowStep 示例 1

以下脚本将在作业的工作流中搜索与特定步骤名称对应的步骤 ID 以及与特定步骤 ID 对应的步骤名称。

import arcpy
import arcpywmx

#Establish a connection to a Workflow database
conn = arcpywmx.Connect(r'c:\test\Workflow.jtc')

#Access a Job
job = conn.getJob(99999)

#Access a the job's workflow
workflow = job.getWorkflow()

#Access the first step in the workflow
step = workflow.steps[0]

#Print the name of the first step
print(step.name)

#Find the step IDs of all the steps named "Clean Up" in the workflow
stepIDs = [x.ID for x in workflow.steps if x.name == "Clean Up"]

#Print the step IDs of the steps named "Clean Up"
print(stepIDs)

#Find the step name of the step with the ID of 123
stepName = [y.name for y in workflow.steps if y.ID == 123]

#Print the name of the step with an ID of 123
print("The step name for ID 123 is " + stepName[0])

ArcGIS Desktop

  • 主页
  • 文档
  • 支持

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

关于 Esri

  • 关于我们
  • 招贤纳士
  • Esri 博客
  • 用户大会
  • 开发者峰会
Esri
分享您的想法。
Copyright © 2021 Esri. | 隐私政策 | 法律声明