Set Data Workspace (Topographic Production)

サマリー

Sets the data workspace for the chosen job to the appropriate database based on the production type of the job.

注意:

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

注意:

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

ヒント:

It is recommended that current Workflow Manager (Classic) users begin new projects using the services-driven version of ArcGIS Workflow Manager for ArcGIS Pro.

使用法

  • For the 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.

  • The tool ensures that other Workflow Manager (Classic) steps, such as the Import/Launch Mapping Items step, use the appropriate data as defined by the production type.

  • This tool should only be run after Set Production Properties. Extended properties defined by the Set Production Properties tool are required to exist on the job before this tool can run successfully.

  • The parent version assigned to the selected job will be the default parent version for the assigned data workspace.

  • Creates a version in the data workspace. The version name will be the same as the job name.

  • Creates an .sde connection file to the job version. The file will be created in the Geodatabases folder in the path set in the TOPO_PRODUCTION_PROPERTIES.Current_Job_Path extended property.

パラメーター

ラベル説明データ タイプ
Job ID

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

Long
Input Database Path
(オプション)

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

File

派生した出力

ラベル説明データ タイプ
Updated Job ID

The job ID of the updated Workflow Manager (Classic) job.

Long

arcpy.topographic.SetDataWorkspace(job_id, {database_path})
名前説明データ タイプ
job_id

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

Long
database_path
(オプション)

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

File

派生した出力

名前説明データ タイプ
updated_job_id

The job ID of the updated Workflow Manager (Classic) job.

Long

コードのサンプル

SetDataWorkspace example (stand-alone script)

This script sets the data workspace for a job.

# Name: SetDataWorkspace_sample.py
# Description: Sets the data workspace for a job.

# Import System Modules
import arcpy

# Check Out Extensions
arcpy.CheckOutExtension('Foundation')
arcpy.CheckOutExtension('JTX')

# Setting the environment
arcpy.env.overwriteOutput = True

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

# Calling the Set Data Workspace tool sets the data workspace for a job
arcpy.topographic.SetDataWorkspace(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')
arcpy.CheckInExtension('JTX')

環境

このツールは、ジオプロセシング環境を使用しません。

ライセンス情報

  • Basic: No
  • Standard: 次のものが必要 Production Mapping and Workflow Manager
  • Advanced: 次のものが必要 Production Mapping and Workflow Manager

関連トピック