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 preProcessing and dataExtraction complete. Each operation receives its parameters resolved against the current job's resources, such as the following:

  • [SourceWorkspace]\\BM\\ContourL
  • [AOILayer]\\Extent
  • [SheetID]

The following map-altering operations work against the layout and data prepared by earlier steps:

  • MapResource
  • LayerProperties
  • Contours
  • EGB
  • ASG
  • Grid
  • Anno
  • PMI
  • CreateMask
  • ApplyMask

Workflow operations such as the following integrate with ArcGIS Workflow Manager to fan out additional jobs and reconcile data:

  • CreateTaskGroup
  • CreateTask
  • CreateVersion
  • PublishData

Expected values

Each operation is a JSON object with the syntax shown in Operation syntax. The following properties are required:

  • name
  • type
  • id
  • parameters

The remaining properties are used by specific operation types. For example, the following properties:

  • jobTemplateId
  • extendedProperties
  • task

apply to the following operations:

  • CreateTask
  • CreateTaskGroup

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:

    1. MapResource
    2. ASG
    3. LayerProperties (one per layer that needs filtering)
    4. Contours
    5. [spot-height operations]
    6. EGB
    7. CalculateDefaultValues/CalculateMetrics
    8. [selection and offset operations]
    9. Grid
    10. Anno
    11. PMI
    12. CreateMask
    13. 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 CreateTaskGroup and CreateTask operations require a valid jobTemplateId value that corresponds with a job template in ArcGIS Workflow Manager. The extendedProperties values must match the values in the job template's extended properties tables.

  • The validation, resetSelection, and properties optional 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 by id:
    • productVersions.operationOverrides
    • excludedOperations
  • Keep operation name values descriptive, for example, Update Contour Layer, so that messages and logs are readable.
  • For CreateTask, see details after the CreateTask example for rules on the values for the following:
    • assignTo.onCreate
    • assignTo.onFail
  • 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:

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{
	"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 CreateTask (type 25) example, drawn from a topographic workflow product definition, creates a child job that uses the parent job's sheet identifier and AOI:

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{
	"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.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.