Skip to content
URL:
https://<root>/<serviceName>/TopographicProductionServer/workflows/taskgroups/insertTasks
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 insertTasks operation inserts operation tasks into an existing SOE task group job's product definition.

Request parameters

ParameterDetails

taskGroupJobId

(Required)

The ID of the existing SOE task group job that the tasks will be inserted to.

productName

(Required)

The name of the product definition that contains the task operations to be inserted.

insertAt

(Required)

The string indicating where the new tasks should be inserted in the task group.

Values: Start | End | Next | <operation ID> | <operation name>

  • Start—The operations are inserted at the start of the operations in the specified SOE task group job.
  • End—The operations are inserted at the end of the operations in the specified SOE task group job.
  • Next—The operations are inserted before the next operation that will be run in the specified SOE task group job.
  • Operation ID or name—The operations are inserted before the operation associated with the ID or name specified.

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
{
 "insertTasks": <the count of tasks inserted>,
 "success": <true | false>
}

Example usage

Use the insertTasks operation to insert tasks into an SOE task group job.

Request URL and parameter:

Use dark colors for code blocksCopy
1
https://organization.example.com/<context>/rest/services/<SampleService>/TopographicProductionServer/workflows/taskgroups/insertTasks
Use dark colors for code blocksCopy
1
2
3
4
taskGroupJobId=B1123255-CCE0-4580-B793-77C34E5121E3
productName=MGCPRework
insertAt=Next
f=json

JSON Response example

The following example of a successful response used a product definition that contained two task operations.

Use dark colors for code blocksCopy
1
2
3
4
{
 "insertTasks": 2,
 "success": true
}

JSON Response example

The following is an example error response:

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
{
 "error": {
  "code": -2147211775,
  "message": "No task group found with the specified parameters.",
  "details": [

  ]
 }
}

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