Get Job AOI (Workflow Manager)
Summary
Gets the job's area of interest (AOI) layer as a feature layer. This layer can be used to perform other analysis by plugging the output into other geoprocessing tools in a model.
Usage
-
The Input Job ID must be for a job that currently exists in the repository and has an AOI defined. If an AOI doesn't exist, an empty output will be generated.
Syntax
GetJobAOI_wmx (Input_JobID, aoi_Layer, {Input_DatabasePath})
Parameter | Explanation | Data Type |
Input_JobID |
The ID for the job's AOI retrieved. | String |
aoi_Layer |
The layer name for the AOI retrieved. | Feature layer |
Input_DatabasePath (Optional) |
The Workflow Manager database connection file for the input job. | File |
Code Sample
GetJobAOI example (stand-alone Python script)
Gets the job's area of interest (AOI) layer as a feature layer.
# Import arcpy module import arcpy # Check out any necessary licenses arcpy.CheckOutExtension("JTX") # Install location of ArcGIS Workflow Manager might vary. arcpy.ImportToolbox(r"C:\Program Files\WMX\Toolboxes\Workflow Manager Tools.tbx") # Script arguments Input_DatabasePath = arcpy.GetParameterAsText(0) Input_JobID = arcpy.GetParameterAsText(1) # Local variables: AOI_Layer = "AOILayer_Job1" # Process: Get Job AOI arcpy.GetJobAOI_WMX(Input_JobID, AOI_Layer, Input_DatabasePath)
Environments
This tool does not use any geoprocessing environments
Licensing Information
ArcView: No
ArcEditor: Requires Workflow Manager
ArcInfo: Requires Workflow Manager
9/28/2012