Replicate Job Data (Workflow Manager)

License Level:BasicStandardAdvanced

Summary

Replicates the Workflow Manager configuration from a parent repository to child repositories using Workflow Manager for Server. Each child repository becomes an identical copy (replica) of the parent repository.

Learn more about Workflow Manager Replication

Usage

Syntax

CreateJobDataReplica_wmx (Input_Parent_Repository_URL, Input_Parent_Repository_Name, Input_Multi_Name)
ParameterExplanationData Type
Input_Parent_Repository_URL

The URL for the parent repository as the Workflow Manager service URL, for example, http://localhost/arcgis/rest/services/parent/wmserver.

String
Input_Parent_Repository_Name

The name of the parent repository that will be distributing the Workflow Manager jobs and configuration elements.

String
Input_Multi_Name
[[child_name, connected, URL],...]

The child repositories that will be updated with the parent repository configuration.

  • child_name—The name of the child repository.
  • connected—Specify "true" if the child is participating in connected replication and both parent and child workflow manager services are published and online. Specify "false" if the child is participating in disconnected replication. In this case, only the parent workflow manager service is published and online.
  • URL—If connected is "true", specify the URL of the child repository. If connected is "false", specify a folder location to contain the configuration file exported from the parent repository. This configuration file can be used with the Import Job Data tool to replicate the parent to this disconnected repository.

Value Table

Code Sample

CreateJobDataReplica example (stand-alone Python script)

In this example, a replica of the workflow manager 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)

Environments

This tool does not use any geoprocessing environments

Related Topics

Licensing Information

ArcGIS for Desktop Basic: No
ArcGIS for Desktop Standard: Requires Workflow Manager
ArcGIS for Desktop Advanced: Requires Workflow Manager
3/4/2014