queryTaskStatus

Updated at:

Endpoint: console-rpa.aliyun.com/rpa/openapi/task/queryTaskStatus

HTTP method: GET

Response format: JSON

Description: Queries the status of a specific task.

Request parameters

Parameter

Type

Required

Example

Description

taskId

String

Yes

3226a05a-98b9-4d48-8529-b8fb7e4561c6

The unique ID of the task.

Response parameters

For information about common response parameters, see Response results. The data object contains the following parameters.

Parameter

Type

Example

Description

status

String

error

The status of the task.

statusName

String

Terminated with error

The status name.

result

String

The client disconnected, terminating the task.

A message that provides details about the status.

hciTodoId

String

9aa0aeab-****

  • If the automation workflow sends an HCI notification, this parameter contains the ID of the most recent notification.

  • This parameter is returned only if an HCI notification is sent.

  • For more information about HCI, see HCI.

hciTodoDetail

String

The automation workflow is waiting for the user to complete the guided actions before continuing...

  • If the automation workflow sends an HCI notification, this parameter contains the content of the most recent notification.

  • This parameter is returned only if an HCI notification is sent.

  • For more information about HCI, see HCI.

Examples

Example request:

https://console-rpa.aliyun.com/rpa/openapi/task/queryTaskStatus?<common request parameters>
&taskId=3226a05a-98b9-4d48-8529-b8fb7e4561c6

Example response:

{
    "requestId":"244d2757-79bd-46c1-af79-d0d4df2fdeb7",
    "success":true,
    "code":0,
    "msg":"Call successful.",
    "msgCode":"result.success",
    "data":{
        "status":"notready",
        "statusName":"Not ready",
        "result":"The robot is not ready because it is not in an idle state."
    },
    "pager":null
}