Export Job Data (Workflow Manager)

Summary

This tool will export the database repository to a folder location. This tool requires that you have Workflow Manager server installed and configured across all participating nodes.

Usage

Syntax

ExportJobData_wmx (Input_Repository_Name, Input_Folder, Input_DatabasePath, Input_Export_Since, Output_Status)
ParameterExplanationData Type
Input_Repository_Name

The name of the Workflow Manager repository that contains the configuration to be shared.

String
Input_Folder

This is the location of the JXL file output from the tool. This folder can be on a local or a network drive.

Folder
Input_DatabasePath

The Workflow Manager connection file for the database to be exported. If no connection file is specified, the application will use the current default database.

File
Input_Export_Since

By specifying a date, the JXL exported will only contain changes that occurred between the current date and the specified time. The input should be the time format for the current machine's locale.

Date
Output_Status

The export status will be 0 upon success or a negative number upon failure. The negative number will be useful to search for the reason why there is a failure.

Long

Code Sample

ExportJobData example (stand-alone Python script)

Export the contents of the database repository to a folder location.

# Import arcpy module
import arcpy

# Check out any necessary licenses
arcpy.CheckOutExtension("JTX")

# Install location of ArcGIS Workflow Manager might vary.
arcpy.ImportToolbox(r"C:\Program Files\WMX\Toolboxes\Workflow Manager Tools.tbx")

# Local variables:
Input_Repository_Name = "Redlands_Repository"
Input_Folder = "C:\Temp"
Input_DatabasePath = "C:\\Program Files\\WMX\\Database\\wmx.jtc"
Input_Export_Since = "12/09/2009"

# Process: Export Job Data
arcpy.ExportJobData_WMX(Input_Repository_Name, Input_Folder, Input_DatabasePath, Input_Export_Since)

Environments

This tool does not use any geoprocessing environments

Related Topics

Licensing Information

ArcView: No
ArcEditor: Requires Workflow Manager
ArcInfo: Requires Workflow Manager

9/28/2012