Import Job Data (Workflow Manager)

Available with Workflow Manager license.

Summary

Imports configuration and job information from a Workflow Manager (Classic) repository to a destination repository. This tool is most useful for setting up a repository similar to an existing repository, disconnected repository replica creation, and changing synchronization.

Usage

  • The Repository Name parameter is the name of the Workflow Manager (Classic) repository to which you will connect.

  • The Input JXL/Acknowledgement file is generated using the Export Job Data tool.

  • The Merge parameter allows you to append the contents of the input JXL file to the existing configuration in your database. If the Merge parameter is not checked, the existing contents of the specified repository will be deleted.

Parameters

LabelExplanationData Type
Input JXL/Acknowledgement

The JXL file that contains the jobs and configuration elements generated using the Export Job Data tool.

File
Merge

Specifies whether contents of the destination Workflow Manager (Classic) repository should be combined rather than overwritten with the contents of the input configuration file.

  • Checked—Combines the contents of the destination Workflow Manager (Classic) database with the contents of the input configuration file.
  • Unchecked—Replaces the entire contents of the destination Workflow Manager (Classic) database with the contents of the input configuration file.

Boolean
Input Database Path
(Optional)

The Workflow Manager (Classic) connection file that contains the connection information to the destination repository. If no connection file is specified, the current default Workflow Manager (Classic) database in the project will be used.

File
Repository Name
(Optional)

The name of the repository as specified in the Workflow Manager (Classic) system settings. This name should be unique within all the repositories in your cluster. If the repository name is not specified, the current default Workflow Manager (Classic) repository name will be used.

String

Derived Output

LabelExplanationData Type
Status

The result of the import job data operation. Returns 0 on success.

Long

arcpy.wmx.ImportJobData(Input_File, Input_Merge, {Input_DatabasePath}, {Input_Repository_Name})
NameExplanationData Type
Input_File

The JXL file that contains the jobs and configuration elements generated using the Export Job Data tool.

File
Input_Merge

Specifies whether contents of the destination Workflow Manager (Classic) repository should be combined rather than overwritten with the contents of the input configuration file.

  • COMBINECombines the contents of the destination Workflow Manager (Classic) database with the contents of the input configuration file.
  • REPLACEReplaces the entire contents of the destination Workflow Manager (Classic) database with the contents of the input configuration file.
Boolean
Input_DatabasePath
(Optional)

The Workflow Manager (Classic) connection file that contains the connection information to the destination repository. If no connection file is specified, the current default Workflow Manager (Classic) database in the project will be used.

File
Input_Repository_Name
(Optional)

The name of the repository as specified in the Workflow Manager (Classic) system settings. This name should be unique within all the repositories in your cluster. If the repository name is not specified, the current default Workflow Manager (Classic) repository name will be used.

String

Derived Output

NameExplanationData Type
Output_Status

The result of the import job data operation. Returns 0 on success.

Long

Code sample

ImportJobData example 1 (stand-alone Python script)

Import the configuration, with job information, of a Workflow Manager (Classic) repository, replacing the existing contents of the destination repository.

# Import arcpy module
import arcpy

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

# Script arguments
Input_File = "C:\\Temp\\WMXRepository.jxl"
Input_Merge = "REPLACE"
Input_DatabasePath = "C:\\Program Files\\WMX\\Database\\wmx.jtc"
Input_Repository_Name = "WMXRepository"

# Process: Import Job Data
arcpy.ImportJobData_wmx(Input_File, Input_Merge, Input_DatabasePath, Input_Repository_Name)
ImportJobData example 2 (stand-alone Python script)

Import the configuration, with job information, of a Workflow Manager (Classic) repository, merging the contents of the .jxl file with the existing contents of the destination repository.

# Import arcpy module
import arcpy

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

# Script arguments
Input_File = "C:\\Temp\\WMXRepository.jxl"
Input_Merge = "COMBINE"
Input_DatabasePath = "C:\\Program Files\\WMX\\Database\\wmx.jtc"
Input_Repository_Name = "WMXRepository"

# Process: Import Job Data
arcpy.ImportJobData_wmx(Input_File, Input_Merge, Input_DatabasePath, Input_Repository_Name)

Environments

This tool does not use any geoprocessing environments.

Licensing information

  • Basic: No
  • Standard: Requires Workflow Manager
  • Advanced: Requires Workflow Manager

Related topics