Description
A JSON array of custom operations that the Topographic Production Service runs after the files for a map product have been created.
post is the extension point for steps that need to act on the finished output—copying, renaming, transforming, or notifying downstream systems—rather than steps that build the map itself.
How it is used
After dataExtraction and operations complete and the output package is written, the service iterates the post array in order and runs each entry. Each entry is an operation object that follows the same syntax described under operations—typically custom operations (type 1) that wrap a geoprocessing script tool.
Expected values
An array of operation objects. Each entry uses the operation syntax documented in operations. Custom operations (type 1) are the most common choice because they let you run any geoprocessing script tool against the finished product.
Behavior and relationships
postruns after the package described by outputPackage has been produced. Use it to act on the package or its files.Processing postoperations can reference resources (such asProcessing [orPackage]\\ Output Package [) the same wayJob]\\ Id operationsentries do.- Failures in
postdo not invalidate the produced map files, but they are recorded on the job and surface through the following:Processing [Job]\\ Has Errors [Job]\\ Messages
User considerations
- Keep
poststeps idempotent when possible so jobs can be safely rerun.Processing - Use stable GUIDs for each operation's ID so
excludedand productVersions.operationOverrides can target them per version.Operations - Refer to the map product definitions in the Topographic Mapping product files for working examples of post-processing operations.
Example
"postProcessing": [
{
"name": "CopyFileToStaging",
"type": 1,
"id": "E51092DF-FC78-4D98-AA20-7E0FBD718840",
"description": "Copies a PDF to the jobs staging directory.",
"toolName": "CustomCopyTool.atbx",
"toolBox": "C:\\Data\\Tools\\Custom\\CustomTools.atbx",
"messageLevel": "info",
"validation": 0,
"parameters": [
{
"name": "fileName",
"value": "C:\\Documents\\MyPDFs\\InfoPage.pdf"
},
{
"name": "stagingDirectory",
"value": "[PACKAGE]\\StagingDirectory"
}
]
}
]