Description
Represents a single spatial notification change rule.
Parameters
Parameter |
Details |
f |
Description: The response format. The default response format is html.
Values: html | json |
Example Usage
Example 1: URL for a single change rule in the "Workflow" service on sampleserver.
http://sampleserver/arcgis/rest/services/Workflow/WMServer/spatialNotification/changeRules/{46D22CFB-3AA3-40C1-9427-B7BB027D26EA}
JSON Response Syntax
{
"id": "<ruleId>",
"name": "<ruleName>",
"description": "<description>",
"summarize": <true | false>,
"notifier": <notifier>,
"evaluators": [ <evaluator1>, <evaluator2>, ... ]
}
JSON Response Example
{
"id": "{B59AC85A-F2E8-44FB-932E-9FBB56902D0F}",
"name": "Airport feature changes",
"description": "Tracks all edits to airport features.",
"summarize": false,
"notifier": {
"type": "email",
"name": "Email Notifier",
"subject": "Spatial notification for airport feature changes",
"message": "There have been changes to the Airports feature class.",
"senderEmail": "noreply@example.com",
"senderName": "Workflow Alerts",
"subscribers": [ "cjones@example.com", "gisdept@example.com" ],
"attachJobAttachments": false
},
"evaluators": [
{
"type": "aoi",
"name": "AOI Condition Evaluator",
"relation": "esriSpatialRelIntersects",
"inverse": false,
"useJobAOI": false,
"aoi": { "rings": [ [ [-117, 34], [-117, 35], [-116, 35], [-116, 34], [-117, 34] ] ], "spatialReference": { "wkid": 4326 } }
},
{
"type": "multiDataset",
"name": "Dataset Condition Evaluator",
"datasetConfigurations": [
{
"name": "Airport edits",
"dataWorkspaceId": "{39FD6B70-DA49-4F91-BD9D-0F2F0A8FEC26}",
"dataset": "sde.Airports",
"changeFields": "*",
"changeCondition": 0,
"whereConditions": []
}
]
}
]
}