ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

WorkflowPath

  • Summary
  • Discussion
  • Properties
  • Code sample

Summary

The WorkflowPath object provides access to the attributes of a path contained within a job Workflow.

Discussion

The WorkflowPath object supports describing a path and navigating through the workflow.

Properties

PropertyExplanationData Type
description
(Read Only)

The description of the path, also known as the path name.

String
fromStep
(Read Only)

The ID of the WorkflowStep object the path originates from.

Integer
toStep
(Read Only)

The ID of the destination WorkflowStep object the path is headed towards.

Integer

Code sample

WorkflowPath example

The following script obtains a workflow path's description and the step IDs of the steps that go into and out of the path.

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]

# Access the paths following the first step in the workflow
paths = step.nextSteps

# Access the first path and print the ID of the step it leads to
path = paths[0]

print('The ID of the step that follows the first step is ' + str(path.toStep))

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS

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

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2021 Esri. | Privacy | Legal