Description
The operations array is the ordered sequence of steps that the Topographic Production Service runs to build a finished product. Each entry is a JSON object identifying an operation type (such as a geoprocessing tool wrapper, a mask-creation step, an annotation conversion, a contour build, a workflow task creation, or a custom script) along with its parameters. Operations consume resources declared in resources, read and write feature classes in the extraction database, and can drive ArcGIS Workflow Manager job and version creation.
How it is used
Operations run in array order after pre and data complete. Each operation receives its parameters resolved against the current job's resources, such as the following:
[Source Workspace]\\ B M\\ Contour L [AOI Layer]\\ Extent [Sheet I D]
The following map-altering operations work against the layout and data prepared by earlier steps:
MapResource LayerProperties ContoursEGBASGGridAnnoPMICreateMask ApplyMask
Workflow operations such as the following integrate with ArcGIS Workflow Manager to fan out additional jobs and reconcile data:
CreateTask Group CreateTask CreateVersion PublishData
Expected values
Each operation is a JSON object with the syntax shown in Operation syntax. The following properties are required:
nametypeidparameters
The remaining properties are used by specific operation types. For example, the following properties:
jobTemplate Id extendedProperties task
apply to the following operations:
CreateTask CreateTask Group
The following operation type values are available:
1—A custom operation that allows custom geoprocessing script tools to be run.2—The ASG operation creates adjoining sheets guide data.3—The EGB operation creates elevation guide band data.4—The Grid operation creates grids for a map.5—The PMI operation populates map sheet information.6—The Anno operation converts labels to annotations.7—The CreateMask operation creates polygon masks for features.8—The ApplyMask operation applies layer masking properties to a map.9—The Contours operation creates contour features.10—The FeatureOffset operation applies offsets to features.11—The MapResource operation updates data sources in the map.12—The LayerProperties operation sets map layer properties.16—The Spots operation generates spot heights.17—The ThinSpotHeights operation thins spot heights.20—The SelectionOperation operation uses an expression to select features to which a list of field-value pairs are applied.23—The CreateTaskGroup operation creates a Workflow Manager parent job.25—The CreateTask operation creates a Workflow Manager child job.26—The CreateVersion operation creates the corresponding database version for a job.27—The PublishData operation reconciles versions by publishing local data to the parent version on the service.
Behavior and relationships
-
Order matters. A typical map product definition such as MTM25, sequences operations as follows:
MapResource ASGLayer(one per layer that needs filtering)Properties Contours- [spot-height operations]
EGBCalculate/Default Values CalculateMetrics - [selection and offset operations]
GridAnnoPMICreateMask ApplyMask
Reordering can break downstream steps that depend on data produced earlier.
-
Operations reference data through resources declared in
resources. A missing resource or a renamed resource causes parameter substitution to fail. -
The
CreateandTask Group Createoperations require a validTask jobvalue that corresponds with a job template in ArcGIS Workflow Manager. TheTemplate Id extendedvalues must match the values in the job template's extended properties tables.Properties -
The
validation,reset, andSelection propertiesoptional JSON objects affect when parameter values are checked and whether the current selection is cleared before the operation runs.
User considerations
- Use stable GUIDs for
id. Other operations and the following reference operations byid:productVersions.operation Overrides excludedOperations
- Keep operation
namevalues descriptive, for example,Update Contour Layer, so that messages and logs are readable. - For
Create, see details after the CreateTask example for rules on the values for the following:Task assignTo.on Create assignTo.on Fail
- Refer to the map product definitions in the Topographic Mapping product files to learn more about how operations are used.
Operation syntax
An operation is defined with the following syntax:
{
"name": "<the name of the operation>",
"type": <the value indicating the type of operation>,
"id": <the ID associated with the operation>,
"description": "<the string describing the operation>",
"properties": {
"type": "PropertySet",
"propertySetItems": [
"<item 1>",
"<item 2>"
]
},
"parameters": [
{
"name": "<name of parameter>",
"type": "<type of parameter>",
"value": "<value of parameter>"
},
{
"name": "<name of parameter>",
"type": "<type of parameter>",
"value": "<value of parameter>"
},
...
],
"jobTemplateId": "<the ID of the Workflow Manager job template to use>",
"extendedProperties": [
{
"identifier": "<the name of the extended properties table>.<the name of the field in the extended properties table>",
"value": "<the dynamic variable for the field value>"
},
{
"identifier": "<the name of the extended properties table>.<the name of the field in the extended properties table>",
"value": "<the dynamic variable for the field value>"
},
...
],
"task": {
"updateJobName": "<the updated name of the new child job>",
"levelOfEffort": <the number of hours set based on average level of effort for the type of work the task is associated with>,
"startOn": "<the planned start UTC date and time in ISO 8601 format>",
"endOn": "<the planned end UTC date and time in ISO 8601 format>",
"assignTo": {
"onCreate": "< empty | [default] | user name | group name | operation ID >",
"onFail": "< empty | [default] | user name | group name | operation ID >"
},
"isRework": < true | false >
}
}Example
The following Create (type 25) example, drawn from a topographic workflow product definition, creates a child job that uses the parent job's sheet identifier and AOI:
{
"name": "AutoCartoChildTaskJob",
"type": 25,
"id": "9304E21A-8BD0-4DC5-A0B8-D0DE1FDC6B62",
"description": "Automated cartography",
"validation": 1,
"resetSelection": true,
"properties": {
"type": "PropertySet",
"propertySetItems": [
"Pause",
"After"
]
},
"parameters": [
{
"name": "jobName",
"type": "",
"value": "AutoCarto_MTM_[SheetID]"
},
{
"name": "aoi",
"type": "",
"value": "[AOILayer]\\Extent"
}
],
"jobTemplateId": "SUhg9C8bRTCdlPjhsY8kVw",
"extendedProperties": [
{
"identifier": "tps_taskproperties.tpsparentjobid",
"value": "[Job]\\Id"
},
{
"identifier": "tps_taskproperties.taskoperationid",
"value": ""
},
{
"identifier": "tps_taskproperties.tpsurl",
"value": "[Workflow]\\TPSUrl"
},
{
"identifier": "tps_taskproperties.tpslocaljobfolder",
"value": "[Workflow]\\LocalJobFolder"
},
{
"identifier": "tps_taskproperties.tpsproductname",
"value": ""
},
{
"identifier": "tps_taskproperties.tpsproductversion",
"value": ""
},
{
"identifier": "tps_taskproperties.tpsopenproprojectitem",
"value": ""
},
{
"identifier": "tps_taskproperties.tpsoutputtype",
"value": "pdf"
}
],
"task": {
"updateJobName": "",
"levelOfEffort": 24,
"startOn": "2026-04-27T23:13:17Z",
"endOn": "2026-04-30T23:13:17Z",
"assignTo": {
"onCreate": "Data Editors",
"onFail": ""
},
"isRework": false
}
}Refer to the map product definitions in the Topographic Mapping product files to learn more about how operations are used.