Execute Reviewer Batch Job (Data Reviewer)

Summary

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

Usage

Syntax

ExecuteBatchJob_Reviewer (Reviewer_Workspace, Session_Name, Batch_Job_File, {Production_Database}, {Version})
ParameterExplanationData Type
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

Code Sample

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")

Environments

This tool does not use any geoprocessing environments

Related Topics

Licensing Information

ArcView: Requires Data Reviewer
ArcEditor: Requires Data Reviewer
ArcInfo: Requires Data Reviewer

Published 6/28/2010