tencent cloud

Workflow Callback
Last updated: 2025-09-09 20:46:30
Workflow Callback
Last updated: 2025-09-09 20:46:30

Feature Overview

Cloud Infinite supports custom configuration of the callback URLs. When the workflow is enabled, after each instance is executed, the system will send an HTTP POST request to this URL, with the notification content included in the request body. You can confirm the progress and status of the workflow instance processing through the configured callback address in a timely manner, so that you can perform other business operations.

Callback Content

When the workflow starts or ends, the system will send callback content to your configured callback address, including the full node data. The content display is as follows:
<EventName>WorkflowFinish</EventName>
<WorkflowExecution>
<RunId>i5f17a1fb400411ee88345254008e464b</RunId>
<BucketId>test-1234567890</BucketId>
<Object>car.mp4</Object>
<CosHeaders>
<Key>Content-Type</Key>
<Value>video/mp4</Value>
</CosHeaders>
<WorkflowId>w4699c83bde714bfd8d7f5dbd9b680f79</WorkflowId>
<WorkflowName>test</WorkflowName>
<CreateTime>2023-08-21 17:23:21+0800</CreateTime>
<State>Success</State>
<Tasks>
<Type>SmartCover</Type>
<CreateTime>2023-08-21 17:24:54+0800</CreateTime>
<EndTime>2023-08-21 17:25:10+0800</EndTime>
<State>Success</State>
<JobId>j9679e59e400411eebd82718e65e03ae1</JobId>
<Name>SmartCover_1659689887115</Name>
<ResultInfo>
<ObjectCount>1</ObjectCount>
<ObjectInfo>
<ObjectName>/car.mp4_i5f17a1fb400411ee88345254008e464b.jpg</ObjectName>
<ObjectUrl>https://test-1234567890.cos.ap-chongqing.myqcloud.com/car.mp4_i5f17a1fb400411ee88345254008e464b.jpg</ObjectUrl>
</ObjectInfo>
</ResultInfo>
</Tasks>
<Tasks>
<Type>Transcode</Type>
<CreateTime>2023-08-21 17:23:22+0800</CreateTime>
<EndTime>2023-08-21 17:24:54+0800</EndTime>
<State>Success</State>
<JobId>j5f3e43d6400411eeae8e85430d2a07f5</JobId>
<Name>Transcode_1655896067644</Name>
<TemplateId>t09f9da59ed3c44ecd8ea1778e5ce5669c</TemplateId>
<TemplateName>HLS-265-FHD</TemplateName>
<ResultInfo>
<ObjectCount>1</ObjectCount>
<ObjectInfo>
<ObjectName>car.mp4.m3u8</ObjectName>
<ObjectUrl>https://test-1234567890.cos.ap-chongqing.myqcloud.com/car.mp4.m3u8</ObjectUrl>
</ObjectInfo>
</ResultInfo>
</Tasks>
</WorkflowExecution>
The data content is as follows:
Node Name (Keyword)
Parent Node
Description
Type
Response
None
Container for saving results
Container
The content of container node Response:
Node Name (Keyword)
Parent Node
Description
Type
EventName
Response
Fixed value, for WorkflowFinish or WorkflowStart
String
WorkflowExecution
Response
Detailed information of the workflow
Container
The content of container node WorkflowExecution:
Node Name (Keyword)
Parent Node
Description
Type
WorkflowId
Response.WorkflowExecution
Workflow ID
String
WorkflowName
Response.WorkflowExecution
Name of the workflow
String
RunId
Response.WorkflowExecution
Workflow instance ID
String
State
Response.WorkflowExecution
The status of an instance, which can be either Success or Failed. If any Task is Failed, this instance is deemed as Failed.
String
BucketId
Response.WorkflowExecution
Bucket of the processed file
String
Object
Response.WorkflowExecution
Filename processed by the instance
String
CreateTime
Response.WorkflowExecution
Instance Creation Time
String
CosHeaders
Response.WorkflowExecution
Custom Header list set during upload of the Object; no such content if not set
Container array
Tasks
Response.WorkflowExecution
Task information list
Container array
The content of container node CosHeaders:
Node Name (Keyword)
Parent Node
Description
Type
Key
Response.WorkflowExecution.CosHeaders
Custom Header name
String
Value
Response.WorkflowExecution.CosHeaders
Custom Header value
String
The content of container node Tasks:
Node Name (Keyword)
Parent Node
Description
Type
Type
Response.WorkflowExecution.Tasks
Task type
String
CreateTime
Response.WorkflowExecution.Tasks
Task creation time
String
EndTime
Response.WorkflowExecution.Tasks
Completion time of the task
String
State
Response.WorkflowExecution.Tasks
Task Status
Submitted: submitted, pending execution
Running: executing
Success: execution successful
Failed: execution failed
Pause: task is paused. When a queue is paused, pending tasks become paused.
Cancel: task cancelled
String
JobId
Response.WorkflowExecution.Tasks
Task ID
String
Name
Response.WorkflowExecution.Tasks
Task node name in the workflow
String
TemplateId
Response.WorkflowExecution.Tasks
Template ID used by the task
String
TemplateName
Response.WorkflowExecution.Tasks
Template name used by the task
String
ResultInfo
Response.WorkflowExecution.Tasks
Task result details
Container
The content of container node ResultInfo:
Node Name (Keyword)
Parent Node
Description
Type
ObjectCount
Response.WorkflowExecution.Tasks.ResultInfo
Output object detail array size
Int
ObjectInfo
Response.WorkflowExecution.Tasks.ResultInfo
Output object details
Container array
SpriteObjectInfoCount
Response.WorkflowExecution.Tasks.ResultInfo
Sprite sheet object detail array size
Int
SpriteObjectInfo
Response.WorkflowExecution.Tasks.ResultInfo
Sprite sheet object details
Container array
The content of container node SpriteObjectInfo:
Node Name (Keyword)
Parent Node
Description
Type
ObjectName
Response.WorkflowExecution.Tasks.ResultInfo.SpriteObjectInfo
Object Name
String
ObjectUrl
Response.WorkflowExecution.Tasks.ResultInfo.SpriteObjectInfo
Object URL
String
The content of container node ObjectInfo:
Node Name (Keyword)
Parent Node
Description
Type
ObjectName
Response.WorkflowExecution.Tasks.ResultInfo.ObjectInfo
Object Name
String
ObjectUrl
Response.WorkflowExecution.Tasks.ResultInfo.ObjectInfo
Object URL
String

Practical Example

Case 1: in XML format

<EventName>WorkflowFinish</EventName>
<WorkflowExecution>
<RunId>i5f17a1fb400411ee88345254008e464b</RunId>
<BucketId>test-1234567890</BucketId>
<Object>car.mp4</Object>
<CosHeaders>
<Key>Content-Type</Key>
<Value>video/mp4</Value>
</CosHeaders>
<WorkflowId>w4699c83bde714bfd8d7f5dbd9b680f79</WorkflowId>
<WorkflowName>test</WorkflowName>
<CreateTime>2023-08-21 17:23:21+0800</CreateTime>
<State>Success</State>
<Tasks>
<Type>SmartCover</Type>
<CreateTime>2023-08-21 17:24:54+0800</CreateTime>
<EndTime>2023-08-21 17:25:10+0800</EndTime>
<State>Success</State>
<JobId>j9679e59e400411eebd82718e65e03ae1</JobId>
<Name>SmartCover_1659689887115</Name>
<ResultInfo>
<ObjectCount>1</ObjectCount>
<ObjectInfo>
<ObjectName>/car.mp4_i5f17a1fb400411ee88345254008e464b.jpg</ObjectName>
<ObjectUrl>https://test-1234567890.cos.ap-chongqing.myqcloud.com/car.mp4_i5f17a1fb400411ee88345254008e464b.jpg</ObjectUrl>
</ObjectInfo>
</ResultInfo>
</Tasks>
<Tasks>
<Type>Transcode</Type>
<CreateTime>2023-08-21 17:23:22+0800</CreateTime>
<EndTime>2023-08-21 17:24:54+0800</EndTime>
<State>Success</State>
<JobId>j5f3e43d6400411eeae8e85430d2a07f5</JobId>
<Name>Transcode_1655896067644</Name>
<TemplateId>t09f9da59ed3c44ecd8ea1778e5ce5669c</TemplateId>
<TemplateName>HLS-265-FHD</TemplateName>
<ResultInfo>
<ObjectCount>1</ObjectCount>
<ObjectInfo>
<ObjectName>car.mp4.m3u8</ObjectName>
<ObjectUrl>https://test-1234567890.cos.ap-chongqing.myqcloud.com/car.mp4.m3u8</ObjectUrl>
</ObjectInfo>
</ResultInfo>
</Tasks>
</WorkflowExecution>

Case 2: in JSON format

{
"EventName": "WorkflowFinish",
"WorkflowExecution": {
"RunId": "i5f17a1fb400411ee88345254008e464b",
"BucketId": "test-1234567890",
"Object": "car.mp4",
"CosHeaders": [{
"Key": "Content-Type",
"Value": "video/mp4"
}],
"WorkflowId": "w4699c83bde714bfd8d7f5dbd9b680f79",
"WorkflowName": "test",
"CreateTime": "2023-08-21 17:23:21+0800",
"State": "Success",
"Tasks": [{
"Type": "SmartCover",
"CreateTime": "2023-08-21 17:24:54+0800",
"EndTime": "2023-08-21 17:25:10+0800",
"State": "Success",
"JobId": "j9679e59e400411eebd82718e65e03ae1",
"Name": "SmartCover_1659689887115",
"SmartCover": {
"format": "jpg",
"count": "1"
},
"ResultInfo": {
"ObjectCount": 1,
"ObjectInfo": [{
"ObjectName": "/car.mp4_i5f17a1fb400411ee88345254008e464b.jpg",
"ObjectUrl": "https://test-1234567890.cos.ap-chongqing.myqcloud.com/car.mp4_i5f17a1fb400411ee88345254008e464b.jpg"
}]
}
}, {
"Type": "Transcode",
"CreateTime": "2023-08-21 17:23:22+0800",
"EndTime": "2023-08-21 17:24:54+0800",
"State": "Success",
"JobId": "j5f3e43d6400411eeae8e85430d2a07f5",
"Name": "Transcode_1655896067644",
"TemplateId": "t09f9da59ed3c44ecd8ea1778e5ce5669c",
"TemplateName": "HLS-265-FHD",
"ResultInfo": {
"ObjectCount": 1,
"ObjectInfo": [{
"ObjectName": "car.mp4.m3u8",
"ObjectUrl": "https://test-1234567890.cos.ap-chongqing.myqcloud.com/car.mp4.m3u8"
}]
}
}]
}
}


Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback