FRAMES | NO FRAMES Description | Parameters | Examples | Response
getJobExecutionDetails (Operation)
URL http://<BatchValidation-url>/getJobExecutionDetails
Parent Resource Batch Validation

Description

Returns details for a job execution. A canceled scheduled job may return the details of the last execution. This operation returns a JSON object of multiple name/value pairs.

Execution details vary by status. Execution details for a job that has not executed will contain an error. Status for successful execution will contain status, message, start and finish time.

Parameters

Parameter Details
jobId Description: The batch job jobId

f Description: Response format. The default response format is html.

Values: html | json

Example Usage

Example 1: Return details for a job that executed successfully:

http://localhost:6080/arcgis/rest/services/reviewer/MapServer/exts/DataReviewerServer/BatchValidation/getJobExecutionDetails?jobId=2dca5d78-7ddd-4f3c-a9b0-0aa670f478c1&f=pjson

JSON Response Syntax

{
  "status": "Succeeded",
  "messages": "Executing (ExecuteBatchJob): ExecuteBatchJobScript C:\\arcgisserver\\data\\rev2.sde 1 c:\\arcgisserver\\directories\\arcgisuploads\\services\\ExecuteBatchJob.GPServer\\i05fd3d59-cd5a-448b-968f-94e2ecd5f73b\\sde_dupsCheck.rbj # # false\r\nStart Time: Thu Nov 03 16:38:01 2011\r\nExecuting: ExecuteBatchJobScript C:\\arcgisserver\\data\\rev2.sde 1 c:\\arcgisserver\\directories\\arcgisuploads\\services\\ExecuteBatchJob.GPServer\\i05fd3d59-cd5a-448b-968f-94e2ecd5f73b\\sde_dupsCheck.rbj # # false\r\nStart Time: Thu Nov 03 16:38:01 2011\r\nRunning script ExecuteBatchJobScript...\r\nRunning ExecuteBatchJob GP Tool with parameters: \n reviewer_workspace=C:\\arcgisserver\\data\\rev2.sde \n session_id=1 \n batch_job_file=c:\\arcgisserver\\directories\\arcgisuploads\\services\\ExecuteBatchJob.GPServer\\i05fd3d59-cd5a-448b-968f-94e2ecd5f73b\\sde_dupsCheck.rbj \n production_workspace= \n analysis_area= \n changed_features_only=false\r\nExecuting: ExecuteBatchJob C:\\arcgisserver\\data\\rev2.sde 1 c:\\arcgisserver\\directories\\arcgisuploads\\services\\ExecuteBatchJob.GPServer\\i05fd3d59-cd5a-448b-968f-94e2ecd5f73b\\sde_dupsCheck.rbj # # ALL_FEATURES\r\nStart Time: Thu Nov 03 16:38:05 2011\r\nConnecting to Reviewer workspace...\r\nAccessing Reviewer batch job...\r\nReading Session ID...\r\nOpening Batch Job...\r\nValidating Session ID...\r\nLoading Reviewer Session...\r\nSetting environment properties...\r\nValidating Batch Job...\r\nRunning Batch Job...\r\nWriting errors to reviewer table...\r\n28 Record(s) Written to Reviewer Table\r\nGenerating Output...\r\nBatch Job executed successfully...\r\nSucceeded at Thu Nov 03 16:38:12 2011 (Elapsed Time: 7.00 seconds)\r\nCompleted script ExecuteBatchJobScript...\r\nSucceeded at Thu Nov 03 16:38:12 2011 (Elapsed Time: 11.00 seconds)\r\nSucceeded at Thu Nov 03 16:38:12 2011 (Elapsed Time: 11.00 seconds)\r\n",
  "gpJobId": "jd9ae1fb5c31a407383549413851ce55e",
  "gpUrl": "http://localhost:6080/arcgis/rest/services/ExecuteBatchJob/GPServer/ExecuteBatchJob",
  "startTimeUtc": 1320363480000,
  "finishTimeUtc": 1320363499000
}

JSON Response Example

Return details for a job that has not yet executed:

{
  "error" : {
    "code" : -1,
    "message" : "The execution of job with ID \u00277babe830-fdf3-4f07-be66-7d88ecfd6edc\u0027 has not yet started."
  }
}