- URL:
- https://<root>/<serviceName>/TopographicProductionServer/workflows/taskgroups/hasNextTask
- Methods:
GETPOST- Required Capability:
- Requires a Professional or Professional Plus user type account and a Topographic Mapping server extension license.
- Version Introduced:
- 12.0
Description
The has operation checks an SOE task group job to see if there are remaining tasks.
Request parameters
| Parameter | Details |
|---|---|
(Required) | The ID of the task group job to check for remaining tasks. |
| The response format. The default format is Values: |
JSON Response syntax
The following is the syntax of a response:
{
"taskCount": <the number of tasks left in the task group job>,
"hasNextTask": <true | false>,
"nextTaskOperationId": "<the operation ID of the next task>",
"success": <true | false>,
"error": {
"extendedCode": <the code associated with the error message>,
"message": "<message about the error>",
"details": [
<more details about the error>
]
}
}Example usage
Use the has operation to check if an SOE task group job has remaining tasks.
Request URL and parameter:
https://organization.example.com/<context>/rest/services/<SampleService>/TopographicProductionServer/workflows/taskgroups/hasNextTasktaskGroupJobId=0C1AD6CD-04AC-430F-9A5D-3F9768755D68
f=jsonJSON Response example
The following example of a successful response indicates there are three tasks remaining in the specified SOE task group job:
{
"taskCount": 3,
"hasNextTask": true,
"nextTaskOperationId": "b6eb10f0-25f5-4f89-8ce1-38294760a5fb",
"success": true
}