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

Priority

  • Summary
  • Discussion
  • Properties
  • Code sample

Summary

The Priority object provides access to a priority configuration element in the Workflow Manager (Classic) database.

Discussion

The priority assigns a level of importance to the work to be completed as part of the job.

Properties

PropertyExplanationData Type
description
(Read Only)

A description about the Priority.

String
name
(Read Only)

The name of the Priority.

String
value
(Read Only)

The value of the Priority.

Integer

Code sample

The following script creates a job and assigns a high priority to it.

import arcpy
import arcpywmx

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

# Get a list of Priorities in Workflow database
priorities = conn.config.getPriorities()

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

# Find the id of high priority and use he value to change the job priority
for high in priorities:
     if high.name == 'High':
         job.priority = high.value

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