FRAMES | NO FRAMES | Description | Parameters | Examples | Response |
URL | http://<steps-url>/markAsDone |
---|---|
Parent Resource | Steps |
executionResult
response property and their meanings are as follows:
1
: The step executed successfully2
: Dependent on a step in another job3
: Dependent on a stage in another job4
: Dependent on a status in another job5
: Blocked by an active job hold6
: Dependent on a previous step in this job's workflow7
: The step was marked as complete8
: The step is assigned to another user9
: The step is assigned to another group10
: The job is assigned to another user/group11
: The job is closed12
: The step is configured for a different platform (desktop vs. server)13
: Invalid step14
: Dependent on another job15
: The step is not the current workflow stepParameter | Details |
---|---|
f | Description: The response format. The default response format is html. Values: html | json |
user | Required Description: The username of the client. |
steps | Required Description: The current steps to mark as complete. This list is a comma delimited list of step IDs. |
Example 1: URL for marking steps 12 and 14 as complete on job ID 5 in the "Workflow" service on sampleserver.
http://sampleserver/arcgis/rest/services/Workflow/WMServer/jobs/5/workflow/steps/markAsDone?user=cjones&steps=12,14{ "executeInfo": [ { "hasReturnCode": <true | false>, "returnCode": <returnCode1>, "threwError": <true | false>, "errorCode": <errorCode1>, "errorDescription": "<errorDescription1>", "jobId": <jobId>, "stepId": <stepId1>, "executionResult": <executionResult1>, "hasConflicts": <true | false>, "conflicts": { "jobId": <jobId>, "stepId": <stepId1>, "spawnsConcurrency": <true | false>, "options": [ { "returnCode": <returnCode1>, "steps": [ { "id": <stepId11>, "name": "<stepName11>" }, { "id": <stepId12>, "name": "<stepName12>" }, ... ] }, { "returnCode": <returnCode2>, "steps": [ { "id": <stepId21>, "name": "<stepName21>" }, { "id": <stepId22>, "name": "<stepName22>" }, ... ] }, ... ] } }, { "hasReturnCode": <true | false>, "returnCode": <returnCode2>, "threwError": <true | false>, "errorCode": <errorCode2>, "errorDescription": "<errorDescription2>", "jobId": <jobId>, "stepId": <stepId2>, "executionResult": <executionResult2>, "hasConflicts": <true | false>, "conflicts": { ... } }, ... ] }
{ "executeInfo": [ { "hasReturnCode": true, "returnCode": 1, "threwError": false, "errorCode": 0, "errorDescription": "", "jobId": 5, "stepId": 12, "executionResult": 1, "hasConflicts": false, "conflicts": null }, { "hasReturnCode": true, "returnCode": 2, "threwError": false, "errorCode": 0, "errorDescription": "", "jobId": 5, "stepId": 14, "executionResult": 1, "hasConflicts": true, "conflicts": { "jobId": 5, "stepId": 13, "spawnsConcurrency": false, "options": [ { "returnCode": 2, "steps": [ { "id": 18, "name": "Publish Edits" }, { "id": 21, "name": "Make Additional Edits" } ] } ] } } ] }