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

StatusType

  • Summary
  • Discussion
  • Properties
  • Code sample

Summary

The StatusType object provides access to the status type configuration elements in the Workflow Manager (Classic) database.

Discussion

The status types are a template for the statuses used to describe the states that a job moves through during its execution.

Properties

PropertyExplanationData Type
caption
(Read Only)

A caption about the StatusType.

String
description
(Read Only)

A description about the StatusType.

String
ID
(Read Only)

The ID of the StatusType.

Integer
name
(Read Only)

The name of the StatusType.

String

Code sample

StatusType example

The following script gets the status types in the Workflow Manager (Classic) database.

import arcpy
import arcpywmx

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

#Get a list of Status Types in the Workflow database
statustypes = conn.config.getStatusTypes()

#Access a Workflow Job 
job = conn.createJob(job_type_name="Landbase Updates")

#Find the name of the status type with an id of 2 and use the value to change the job's status
for statustypeid in statustypes:
     if statustypeid.ID == 2:
         job.status = statustypeid.name

#Print the name of the job's new status
print(job.status)

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