FRAMES | NO FRAMES Description | Parameters | Examples | Response
Job
URL http://<jobs-url>/<jobId>
Supported Operations Assign  Unassign  Update  Create Version  Close  Reopen  Delete  Send Notification
Parent Resource Jobs
Child Resources Notes  Attachments  Holds  Dependencies  Activity Log  Workflow  Extended Properties

Description

Represents the fundamental properties of a job in the ArcGIS Workflow Manager system.

Parameters

Parameter Details
f Description: The response format. The default response format is html.

Values: html | json

Example Usage

Example 1: URL for job ID 5 in the "Workflow" service on sampleserver.

http://sampleserver/arcgis/rest/services/Workflow/WMServer/jobs/5

JSON Response Syntax

{
  "id": <jobId>,
  "name": "<jobName>",
  "description": "<description>",
  "createdBy": "<createdByUsername>",
  "ownedBy": "<ownedByUsername>",
  "assignedTo": "<assignedTo>",
  "assignedType": <assignedType>,  // Valid values: 0 (unassigned), 1 (user), 2 (group)
  "jobTypeId": <jobTypeId>,
  "parentJobId": <parentJobId>,
  "childJobIds": [ <childJobId1>, <childJobId2>, ... ],
  "priority": <priorityValue>,
  "stage": <stage>,  // Valid values: 1 (created), 2 (ready to work), 3 (working), 4 (done working), 5 (closed)
  "status": <statusId>,
  "percentageComplete": <percentage>,
  "dataWorkspaceId": "<dataWorkspaceId>",
  "versionName": "<jobVersionName>",
  "parentVersion": "<parentVersionName>",
  "createdDate": <createdDate>,
  "startDate": <startDate>,
  "startedDate": <startedDate>,
  "dueDate": <dueDate>,
  "endDate": <endDate>,
  "aoi": <polygon>,
  "poi": <multipoint>, // Added at 10.4
  "versionExists": <true | false>,  // Added at 10.1
  "versionInfo": [  // Added at 10.1
    { "dataWorkspaceId": <dataWorkspaceId1>, "name": <versionName1>, "parent": <parentVersionName1>, "created": <true | false>, "owner": "<owner1>" },
    { "dataWorkspaceId": <dataWorkspaceId2>, "name": <versionName2>, "parent": <parentVersionName2>, "created": <true | false>, "owner": "<owner2>" },
    ...
  ],
  "pendingDays": <pendingDays>  // Added at 10.1
}

JSON Response Example

{
  "id": 42,
  "name": "JOB_42",
  "description": "",
  "createdBy": "amiller",
  "ownedBy": "amiller",
  "assignedTo": "cjones",
  "assignedType": 1
  "jobTypeId": 3,
  "parentJobId": 0,
  "childJobIds": [ 50, 51, 52 ],
  "priority": 5,
  "stage": 3,
  "status": 8,
  "percentageComplete": 50,
  "dataWorkspaceId": "{39FD6B70-DA49-4F91-BD9D-0F2F0A8FEC26}",
  "versionName": "sde.JOB_42",
  "parentVersion": "sde.DEFAULT",
  "createdDate": 1230768000000,
  "startDate": 1230768000000,
  "startedDate": 1230940800000,
  "dueDate": 1233360000000,
  "endDate": null,
  "aoi": { "rings": [ [ [-117, 34], [-117, 35], [-116, 35], [-116, 34], [-117, 34] ] ], "spatialReference": { "wkid": 4326 } }, //job has an AOI
  "poi": null,
  "versionExists": false,
  "versionInfo": [
    { "dataWorkspaceId": "{39FD6B70-DA49-4F91-BD9D-0F2F0A8FEC26}", "name": "sde.JOB_42", "parent": "sde.DEFAULT", "created": false, "owner": "cjones" },
    { "dataWorkspaceId": "{9AD22CFB-3AA3-40C1-9427-B7BB027D261F}", "name": "qa.JOB_42", "parent": "qa.DEFAULT", "created": true, "owner": "cjones" }
  ],
  "pendingDays": 7
}

{
  "id": 401,
  "name": "JOB_401",
  "description": "",
  "createdBy": "cjones",
  "ownedBy": "cjones",
  "assignedTo": "amiller",
  "assignedType": 1
  "jobTypeId": 3,
  "parentJobId": 0,
  "relationshipType":1,
  "childJobIds": [],
  "priority": 5,
  "stage": 3,
  "status": 8,
  "percentageComplete": 50,
  "dataWorkspaceId": "",
  "versionName": "sde.JOB_401",
  "parentVersion": "sde.DEFAULT",
  "createdDate": 1441925450000,
  "startDate": 1441886400000,
  "startedDate": 1441925461000,
  "dueDate": 1441886400000,
  "endDate": null,
  "aoi": null, //job has no AOI
  "poi": { "points":[[-81.788051213049528,26.874566948631184]], "spatialReference": { "wkid":4326, "latestWkid": 4326 } }, //job has a POI
  "versionExists": false,
  "versionInfo": [],
  "pendingDays": 22
}