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

HoldType

  • Summary
  • Discussion
  • Properties
  • Code sample

Summary

The HoldType object provides access to the hold types configuration element in the Workflow Manager (Classic) database.

Discussion

The hold types are a template for the holds used to suspend the job activity for an indefinite amount of time. The information about a hold is never deleted from the system and can be queried. A hold may be applied to a job for reasons including the following:

  • Insufficient funding
  • Technical problems
  • Missing data
  • Lack of resources

Properties

PropertyExplanationData Type
ID
(Read Only)

The ID of the HoldType.

Integer
name
(Read Only)

The name of the HoldType.

String

Code sample

The following script gets the hold types in the Workflow Manager (Classic) database and adds a budget hold to a job.

import arcpy
import arcpywmx

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

# Get a list of Hold types in Workflow database
hold_types = conn.config.getHoldTypes()

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

# Find the id of Budget Hold hold type and add a hold on the job
for hold in hold_types:
     if hold.name == 'Budget Hold':
         job.addHold(hold.id,comment="Insufficient funds for digitization.")

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