Queries the information about a workflow task by task ID, including the workflow ID and the status and result of the task. You can query only the workflow task data of the last year.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ice:GetWorkflowTask |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TaskId |
string |
No |
The ID of the workflow task. |
******4215e042b3966ca5441e****** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
******0C-7870-15FE-B96F-8880BB****** |
| WorkflowTask |
object |
The information about the workflow task. |
|
| TaskId |
string |
The ID of the workflow task. |
******4215e042b3966ca5441e****** |
| Status |
string |
The task state. Valid values:
Valid values:
|
Succeed |
| TaskInput |
string |
The input of the workflow task. |
{ "Type": "Media", "Media": "******30706071edbfe290b488******" } |
| CreateTime |
string |
The time when the task was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
2023-01-04T02:05:17Z |
| FinishTime |
string |
The time when the task was complete. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
2023-01-04T02:06:19Z |
| Workflow |
object |
The workflow Information. |
|
| WorkflowId |
string |
The workflow ID. |
******63dca94c609de02ac0d1****** |
| Name |
string |
The workflow name. |
Super-resolution transcoding workflow |
| Status |
string |
The workflow state. Valid values:
Valid values:
|
Active |
| Type |
string |
The workflow type. Valid values:
Valid values:
|
Common |
| CreateTime |
string |
The time when the workflow was created. |
2022-11-27T10:02:12Z |
| ModifiedTime |
string |
The time when the workflow was last modified. |
2022-11-29T02:06:19Z |
| ActivityResults |
string |
The results for all nodes of the workflow task. |
Jsonformat,Content varies based on workflow configuration. |
| UserData |
string |
The user-defined field that was specified when the workflow task was submitted. |
{"NotifyAddress":"http://xx.xx.xxx"} |
Examples
Success response
JSON format
{
"RequestId": "******0C-7870-15FE-B96F-8880BB******",
"WorkflowTask": {
"TaskId": "******4215e042b3966ca5441e******",
"Status": "Succeed",
"TaskInput": "{\n \"Type\": \"Media\",\n \"Media\": \"******30706071edbfe290b488******\"\n}",
"CreateTime": "2023-01-04T02:05:17Z",
"FinishTime": "2023-01-04T02:06:19Z",
"Workflow": {
"WorkflowId": "******63dca94c609de02ac0d1******",
"Name": "Super-resolution transcoding workflow",
"Status": "Active",
"Type": "Common",
"CreateTime": "2022-11-27T10:02:12Z",
"ModifiedTime": "2022-11-29T02:06:19Z\n"
},
"ActivityResults": "Jsonformat,Content varies based on workflow configuration.",
"UserData": "{\"NotifyAddress\":\"http://xx.xx.xxx\"}"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.