tencent cloud

Cloud Object Storage

Release Notes and Announcements
Release Notes
Announcements
Product Introduction
Overview
Features
Use Cases
Strengths
Concepts
Regions and Access Endpoints
Specifications and Limits
Service Regions and Service Providers
Billing
Billing Overview
Billing Method
Billable Items
Free Tier
Billing Examples
Viewing and Downloading Bill
Payment Overdue
FAQs
Getting Started
Console
Getting Started with COSBrowser
User Guide
Creating Request
Bucket
Object
Data Management
Batch Operation
Global Acceleration
Monitoring and Alarms
Operations Center
Data Processing
Content Moderation
Smart Toolbox
Data Processing Workflow
Application Integration
User Tools
Tool Overview
Installation and Configuration of Environment
COSBrowser
COSCLI (Beta)
COSCMD
COS Migration
FTP Server
Hadoop
COSDistCp
HDFS TO COS
GooseFS-Lite
Online Tools
Diagnostic Tool
Use Cases
Overview
Access Control and Permission Management
Performance Optimization
Accessing COS with AWS S3 SDK
Data Disaster Recovery and Backup
Domain Name Management Practice
Image Processing
Audio/Video Practices
Workflow
Direct Data Upload
Content Moderation
Data Security
Data Verification
Big Data Practice
COS Cost Optimization Solutions
Using COS in the Third-party Applications
Migration Guide
Migrating Local Data to COS
Migrating Data from Third-Party Cloud Storage Service to COS
Migrating Data from URL to COS
Migrating Data Within COS
Migrating Data Between HDFS and COS
Data Lake Storage
Cloud Native Datalake Storage
Metadata Accelerator
GooseFS
Data Processing
Data Processing Overview
Image Processing
Media Processing
Content Moderation
File Processing Service
File Preview
Troubleshooting
Obtaining RequestId
Slow Upload over Public Network
403 Error for COS Access
Resource Access Error
POST Object Common Exceptions
API Documentation
Introduction
Common Request Headers
Common Response Headers
Error Codes
Request Signature
Action List
Service APIs
Bucket APIs
Object APIs
Batch Operation APIs
Data Processing APIs
Job and Workflow
Content Moderation APIs
Cloud Antivirus API
SDK Documentation
SDK Overview
Preparations
Android SDK
C SDK
C++ SDK
.NET(C#) SDK
Flutter SDK
Go SDK
iOS SDK
Java SDK
JavaScript SDK
Node.js SDK
PHP SDK
Python SDK
React Native SDK
Mini Program SDK
Error Codes
Harmony SDK
Endpoint SDK Quality Optimization
Security and Compliance
Data Disaster Recovery
Data Security
Cloud Access Management
FAQs
Popular Questions
General
Billing
Domain Name Compliance Issues
Bucket Configuration
Domain Names and CDN
Object Operations
Logging and Monitoring
Permission Management
Data Processing
Data Security
Pre-signed URL Issues
SDKs
Tools
APIs
Agreements
Service Level Agreement
Privacy Policy
Data Processing And Security Agreement
Contact Us
Glossary

Workflow Callback

PDF
Mode fokus
Ukuran font
Terakhir diperbarui: 2026-01-12 23:16:39

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"
}]
}
}]
}
}



Bantuan dan Dukungan

Apakah halaman ini membantu?

masukan