Replicates the ArcGIS Workflow Manager (Classic) configuration from a parent repository to child repositories using ArcGIS Workflow Manager (Classic) Server. Each child repository becomes an identical copy (replica) of the parent repository.Learn more about Workflow Manager (Classic) Replication
The Workflow Manager (Classic) extension allows you to have distributed repositories across multiple servers or locations to support distributed workforces. These repositories participate in what is referred to as Workflow Manager (Classic) Clusters. The repositories participating in the cluster are identified as parent or child. For more information, see Workflow Manager (Classic) replication.
The repository specified by the Parent Repository URL and Parent Repository Name parameters must be the repository that contains the data to be distributed to all the other participants of the cluster. The parent repository must be published as the Workflow Manager (Classic) service for both connected and disconnected replication.
The Replicate Job Data tool deletes the configuration of child repositories and imports a copy of the parent database configuration in every child repository in the cluster. This ensures that all the servers participating in the distributed repositories have identical configurations.
The child repositories that are participating in the cluster are specified in the Child Repository Names and URLs parameter. Three pieces of information are specified in this parameter: Repository name, Connected, and URL.
- Repository name—The name of the child repository.
- Connected—Specifies whether the repository is a connected or disconnected.
- true—The child repository is a connected repository. This means that the Workflow Manager (Classic) server is installed and configured for this repository. Both the parent repository and the child repository must be published as Workflow Manager (Classic) services and the servers must be online.
- false—The child repository is a disconnected repository. This means that the Workflow Manager (Classic) server is not installed and the child repository is not published as Workflow Manager (Classic) services.
- if Connected is true, this is the URL of the child repository.
- if Connected is false, this is the folder location to store the configuration file exported from the parent repository. The configuration file can be used with the Import Job Data tool to replicate the parent to this disconnected repository.
To perform disconnected replication using the Replicate Job Data tool, the parent repository must be published as Workflow Manager (Classic) services and the server must be online.
arcpy.wmx.CreateJobDataReplica(Input_Parent_Repository_URL, Input_Parent_Repository_Name, Input_Multi_Name)
The URL for the parent repository as the Workflow Manager (Classic) service URL, for example, http://localhost/arcgis/rest/services/parent/wmserver.
The name of the parent repository that will be distributing the Workflow Manager (Classic) jobs and configuration elements.
[[child_name, connected, URL],...]
The child repositories that will be updated with the parent repository configuration.
The result of the replicate operation. Returns 0 on success.
A table view of job synchronization information.
CreateJobDataReplica example (stand-alone script)
In this example, a replica of the Workflow Manager (Classic) parent repository Redlands is created in the Ohio and Arizona repositories.
# Import arcpy module import arcpy # Check out any necessary licenses arcpy.CheckOutExtension("JTX") # Local variables: Input_Parent_Repository_URL = "http://ServerName/arcgis/rest/services/ServerObjectName/WMServer" Input_Parent_Repository_Name = "Redlands_Repository" Input_Multi_Name = "Ohio_Repository true http://ohioServer/arcgis/rest/services/SO/WMServer;AZ_Repository true http://AZServer/arcgis/rest/services/SO/JTServer" # Process: Replicate Job Data arcpy.CreateJobDataReplica_wmx(Input_Parent_Repository_URL, Input_Parent_Repository_Name, Input_Multi_Name)
This tool does not use any geoprocessing environments.
- Basic: No
- Standard: Requires Workflow Manager
- Advanced: Requires Workflow Manager