Get Batch Run Details
- URL:
https://<DataReviewerServer-url>/Reviewer Results/getBatchRunDetails
- Required Capability:Data Reviewer Server
- Related Resources:Reviewer Results, Get Layer Definition, Get Results, Update Lifecycle Status, Write Feature As Result, Write Result
- Version Introduced:10.1
Description
License:The ArcGIS Data Reviewer for Server extension is required in order to use this resource.
Returns a featureset that contains batch run information in JSON feature objects retrieved the REVBATCHRUNTABLE and the REVCHECKRUNTABLE. The returned featureset will not include geometries. The featureset holds a list of fields and field aliases, and an array of attribute values for the batch run IDs. See the ArcGIS Data Reviewer for Server REST API Reference for more information on feature objects.
The batchRunStatus field in the returned featureset can contain the following values:
- 0 – Successful
- 1 – Successful with errors
- 2 – Successful with warnings
- 3 – Successful with errors and warnings
- 4 – Failed
The batchRunContext field in the returned featureset can contain the following values:
- 0 – Desktop
- 1 – Engine
- 2 – Server
This operation requires a JSON array of batch run IDs. Find batch run IDs by checking the batchRunId property of a job's execution details or by clicking a job ID in the Batch Validation list. Delimit items in the array with a comma.
Request parameters
Parameter | Details |
|---|---|
| batchRunIds | Description: A JSON array of batch run IDs. |
f | Description: The response format. The default response format is html. Values: html | json |
Example usage
Example 1: Retrieve batch run information for a single ID:
JSON response example
{
"fieldAliases": {
"batchRunId": "BatchRunId",
"batchJobFile": "BatchJobFile",
"batchRunContext": "BatchRunContext",
"batchRunStatus": "BatchRunStatus",
"batchRunStartTime": "BatchRunStartTime",
"batchRunEndTime": "BatchRunEndTime",
"totalResults": "TotalResults",
"totalValidated": "TotalValidated"
},
"fields": [
{
"name": "batchRunId",
"type": "esriFieldTypeGlobalID"
},
{
"name": "batchJobFile",
"type": "esriFieldTypeString"
},
{
"name": "batchRunContext",
"type": "esriFieldTypeInteger"
},
{
"name": "batchRunStatus",
"type": "esriFieldTypeInteger"
},
{
"name": "batchRunStartTime",
"type": "esriFieldTypeDate"
},
{
"name": "batchRunEndTime",
"type": "esriFieldTypeDate"
},
{
"name": "totalResults",
"type": "esriFieldTypeInteger"
},
{
"name": "totalValidated",
"type": "esriFieldTypeInteger"
}
],
"features": [
{
"attributes": {
"batchRunId": "{64D035A5-2E03-4D78-B6B8-86D033FE8F00}",
"batchJobFile": "C:\\arcgisserver\\directories\\arcgissystem\\arcgisuploads\\services\\ExecuteBatchJob.GPServer\\i5b623f4a-f4f4-4271-86ea-bfadcd48dfa0\\SewerUC2011_wo_Valency.rbj",
"batchRunContext": 2,
"batchRunStatus": 0,
"batchRunStartTime": 1332126739000,
"batchRunEndTime": 1332126790000,
"totalResults": 333,
"totalValidated": 109839
}
}
]
}