Workflow Completion Callback

Last update:2023-02-27 16:14:42

Description

This callback is used to notify that workflow processing is complete.

Request Description

POST request

Responses

Parameter Type Description
eventId string Event ID
eventCode string Event code. The event code of completed workflow is WORKFLOW_FINISH
data string Notification content in JSON format

In which, the content structure of the “data” is as follows:

Parameter Type Description
id string Task ID
state int Task status :
3 (success)
4 (failure)
workflowId int Workflow ID
targetId string VideoId of the video to be processed
output list Output result, empty when the task is not finished
startTime int Start time, second-level UNIX timestamp
finishTime int End time, second-level UNIX timestamp, empty when the task is not finished

Specifically, the content of the “output” is as follows:

Parameter Type Description
targetId string For Cloud VoD it’s videoId

Example

Output Example

{
	"eventId": "123",
	"eventCode": "WORKFLOW_FINISH",
	"data": "{\"id\":\"007f4ffa016d100013a881f500000000\",\"output\":[{\"targetId\":\"00cabfbf016d100012a4844200000000\"}],\"startTime\":1567671406,\"state\":3,\"targetId\":\"ff77d22a016c1000514250cd00000000\",\"transNo\":\"007f4fe2016d10007b1b612e00000000\",\"workflowId\":\"007eba5b016d1000c10b74c100000000\"}"
}

Is the content of this document helpful to you?
Yes
I have suggestion
Submitted successfully! Thank you very much for your feedback, we will continue to strive to do better!