Skip to content
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 hasNextTask operation checks an SOE task group job to see if there are remaining tasks.

Request parameters

ParameterDetails

taskGroupJobId

(Required)

The ID of the task group job to check for remaining tasks.

f

The response format. The default format is html.

Values: html | json | pjson

JSON Response syntax

The following is the syntax of a response:

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
{
 "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 hasNextTask operation to check if an SOE task group job has remaining tasks.

Request URL and parameter:

Use dark colors for code blocksCopy
1
https://organization.example.com/<context>/rest/services/<SampleService>/TopographicProductionServer/workflows/taskgroups/hasNextTask
Use dark colors for code blocksCopy
1
2
taskGroupJobId=0C1AD6CD-04AC-430F-9A5D-3F9768755D68
f=json

JSON Response example

The following example of a successful response indicates there are three tasks remaining in the specified SOE task group job:

Use dark colors for code blocksCopy
1
2
3
4
5
6
{
 "taskCount": 3,
 "hasNextTask": true,
 "nextTaskOperationId": "b6eb10f0-25f5-4f89-8ce1-38294760a5fb",
 "success": true
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.