Skip To Content

Set Production Properties

Summary

Updates the production properties extended properties table of a job based on its production type to ensure that the job and any associated tasks use the correct data and maps.

Caution:

This tool is designed to be run as a step in a Workflow Manager workflow. Running this tool outside of Workflow Manager does not honor all Workflow Manager constraints such as job assignment, dependencies, or holds and may cause a job to enter an unusable state.

Caution:

This tool is intended for use with the Topographic Mapping production workflows and will not support an improperly configured Workflow Manager repository. Sample workflows and instructions for configuring Topographic Mapping production workflows are available as part of the product files for Esri Production Mapping.

Usage

  • In Topographic Mapping production workflows, a production type defines the database and maps that will be used to perform a type of production work such as MGCP data extraction or TM50 cartography.

  • This tool requires that the PRODUCTION_TYPE extended property is configured with a valid production type. Production types are defined by your Workflow Manager administrator as part of configuring the Topographic Mapping production workflows.

  • The tool ensures that other workflow steps, such as Open Map, use the appropriate map as defined by the production type.

Syntax

SetProductionProperties_topographic (job_id, {database_path})
ParameterExplanationData Type
job_id

The ID of the Workflow Manager job that will be updated.

Long
database_path
(Optional)

The Workflow Manager database connection file (.jtc) that contains the job information. If no connection file is specified, the current default workflow manager database will be used.

File

Derived Output

NameExplanationData Type
updated_job_id

The ID of the updated Workflow Manager job.

Long

Code sample

SetProductionProperties example (stand-alone script)

This script locates the record in the Topographic_Production_Type table that has the same Production Type Name as the job number and copies the Data Source Name, Portal Item Name, and Portal Item URL values to the Topographic_Production_Properties table.

# Name: SetProductionProperties_sample.py
# Description: Locates the record in the Topographic_Production_Type table that has the same Production Type Name as the job
# and copies the Data Source Name, Portal Item Name, and Portal Item URL values to the Topographic_Production_Properties table.

# Import System Modules
import arcpy

# Check Out Extensions
arcpy.CheckOutExtension('foundation')

# Setting the environment
arcpy.env.overwriteOutput = True

# Setting Local Variables
job_id = 646
database_path = r"C:\Data\Workflows\Testing.jtc"

# Calling the Set Production Properties tool to set production property values for the job
arcpy.topographic.SetProductionProperties(job_id, database_path)

# Getting all messages, warnings, and errors from the tool run and printing the results back to the user
messages = arcpy.GetMessages(0)
warnings = arcpy.GetMessages(1)
errors = arcpy.GetMessages(2)
arcpy.AddMessage('Tool Messages: {}\nTool Warnings: {}\nTool Errors{}\n'.format(messages, warnings, errors))

# Check In Extensions
arcpy.CheckInExtension('foundation')

Environments

This tool does not use any geoprocessing environments.

Licensing information

  • Basic: No
  • Standard: Requires Production Mapping
  • Advanced: Requires Production Mapping

Related topics