Import Job Data (Workflow Manager)
Summary
This tool allows you to import an existing Workflow Manager configuration into another repository. This tool is most useful for disconnected repository synchronization since it takes in a JTC connection and repository name.
Usage
-
The Repository Name parameter is a property of a Workflow Manager repository that you can connect to.
The Input JXL/Acknowledgement file is generated by using the Export Job Data tool.
By checking the Merge option you are appending the contents of the input JXL file to an existing one. If the Merge option is not checked, the existing contents of the repository specified will be wiped out.
Syntax
Parameter | Explanation | Data Type |
Input_File |
The JXL file that contains all the jobs and configuration elements generated using the Export Job Data tool. | File |
Input_Merge |
Choose whether contents of the workflow manager repository should be combined instead of being overwritten with the contents of the new configuration file.
| Boolean |
Input_DatabasePath (Optional) |
The Workflow Manager connection file that contains the connection information to the destination repository. | File |
Input_Repository_Name |
The name of the repository as specified in the Workflow Manager system settings. This is a name that should be unique with all the repositories in your cluster. | String |
Code Sample
Import Job Data.
# Import arcpy module import arcpy # Check out any necessary licenses arcpy.CheckOutExtension("JTX") # Script arguments Input_DatabasePath = arcpy.GetParameterAsText(0) Input_Merge = arcpy.GetParameterAsText(1) Input_File = arcpy.GetParameterAsText(2) Input_Repository_Name = arcpy.GetParameterAsText(3) # Process: Import Job Data arcpy.ImportJobData_WMX(Input_File, Input_Merge, Input_DatabasePath, Input_Repository_Name)