Synchronize Job Data (Workflow Manager)
Récapitulatif
This tool will synchronize multiple Workflow Manager repositories with identical configurations. This tool requires that you have Workflow Manager server installed and configured across all participating nodes.
Utilisation
-
The Parent Repository contains the data is to be distributed to all the other participants of the cluster.
A child repository is a collection of child nodes that are participating in the cluster.
Syntaxe
Paramètre | Explication | Type de données |
Input_Parent_Repository_URL |
The URL for the parent repository will be the Workflow Manager server URL. For example, http://localhost/arcgis/services/parent/wmserver. | String |
Input_Parent_Repository_Name |
The parent repository that will be distributing the Workflow Manager jobs and configuration elements. | String |
Input_Multi_Name [[child_repository, server status, URL, last sync time],...] | The collection of repositories that will participate as children in the cluster. | Value Table |
Exemple de code
In this example, changes to the workflow manager repository are getting synchronized between two repositories.
# Import arcpy module
import arcpy
# Check out any necessary licenses
arcpy.CheckOutExtension("JTX")
# Local variables:
Input_Parent_Repository_URL = "http://ServerName/arcgis/services/ServerObjectName/WMServer"
Input_Parent_Repository_Name = "Redlands_Repository"
Input_Multi_Name = "Ohio_Repository true http://ohioServer/arcgis/services/SO/WMServer 2011-08-08 12:00;
AZ_Repository true http://AZServer/arcgis/services/SO/WMServer 2011-08-08 12:00"
# Process: Export Job Data
arcpy.SynchronizeJobData_WMX(Input_Parent_Repository_URL, Input_Parent_Repository_Name, Input_Multi_Name)