Execute Reviewer Batch Job (Data Reviewer)

Zusammenfassung

Runs a Reviewer batch job on a workspace and writes the results to a Reviewer session.

Verwendung

Syntax

ExecuteBatchJob_Reviewer (Reviewer_Workspace, Session_Name, Batch_Job_File, {Production_Database}, {Version})
ParameterErläuterungDatentyp
Reviewer_Workspace

The workspace where the Reviewer batch job results are going to be written.

Workspace
Session_Name

The name of the Reviewer session that is going to store the features and records reported by the batch job.

String
Batch_Job_File

The path to the Reviewer batch job file that is going to be executed.

File
Production_Database
(optional)

The production database on which you want to run the Reviewer batch job.

Workspace
Version
(optional)

The ArcSDE geodatabase version on which to run the Reviewer batch job.

String

Codebeispiel

ExecuteReviewerBatchJob example (stand-alone Python script)

In the following example, the SoCal_GeoOnGeoChecks.rbj batch job, is run on the Edit_Sample geodatabase. The results are written to the Geo On Geo session.

# Name: ExecuteReviewerBatchJob.py
# Description: Creates a reviewer session in a geodatabase
# Author: ESRI
# Date: June 2010

# Import arcpy module
import arcpy

# Check out a Data Reviewer extension license
arcpy.CheckOutExtension("datareviewer")

# Import the Data Reviewer toolbox - you may have to alter this path
arcpy.ImportToolbox(r'C:/Program Files/ArcGIS/Desktop10.0/ArcToolbox/Toolboxes/Data Reviewer Tools.tbx')

# Path to the data and batch job file
Edit_Sample_gdb = r'C:\SampleData\Edit_Sample.gdb'
SoCal_GeoOnGeoChecks_rbj = r'C:/SampleData/Batch_Jobs/SoCal_GeoOnGeoChecks.rbj'

# Execute Reviewer Batch Job function
arcpy.ExecuteBatchJob_Reviewer(Edit_Sample_gdb, "Geo On Geo", SoCal_GeoOnGeoChecks_rbj)

# Check in the Data Reviewer extension
arcpy.CheckInExtension("datareviewer")

Umgebungen

Dieses Werkzeug verwendet keine Geoverarbeitungsumgebungen.

Verwandte Themen

Lizenzinformationen

ArcView: Erfordert Data Reviewer
ArcEditor: Erfordert Data Reviewer
ArcInfo: Erfordert Data Reviewer

9/16/2010