Melaporkan task yang berhasil.
Deskripsi operasi
Catatan Penggunaan
Pada layanan sebelumnya (Serverless Workflow), langkah task yang menggunakan ReportTaskSucceeded dengan pola callback waitForCallback menunjukkan bahwa task tersebut telah berhasil dieksekusi.
Pada layanan baru (CloudFlow), langkah task yang menggunakan ReportTaskSucceeded dengan mode callback TaskMode: WaitForCustomCallback menunjukkan bahwa task tersebut telah berhasil dieksekusi.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
fnf:ReportTaskSucceeded |
get |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| TaskToken |
string |
Yes |
Token dari task yang ingin Anda laporkan eksekusinya. Token task ini diteruskan ke layanan yang dipanggil, seperti Message Service (MNS) atau Function Compute. Untuk MNS, nilai parameter ini dapat diperoleh dari sebuah message. Untuk Function Compute, nilai parameter ini dapat diperoleh dari sebuah event. Untuk informasi selengkapnya, lihat Service integration modes. |
emptyString |
| Output |
string |
Yes |
Informasi output dari task yang ingin Anda laporkan keberhasilannya. |
{"key":"value"} |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Parameter respons. |
||
| EventId |
integer |
ID dari event. |
1 |
| RequestId |
string |
ID permintaan. |
testRequestId |
Contoh
Respons sukses
JSONformat
{
"EventId": 1,
"RequestId": "testRequestId"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ActionNotSupported | The requested API operation '%s' is incorrect. Please check. | |
| 400 | APIVersionNotSupported | The requested API version '%s' is not supported yet. Please check. | |
| 400 | EntityTooLarge | The payload size exceeds maximum allowed size (%s bytes). | |
| 400 | InvalidArgument | Parameter error. | |
| 400 | MissingRequiredHeader | The HTTP header '%s' must be specified. | |
| 400 | MissingRequiredParams | The HTTP query '%s' must be specified. | |
| 400 | TaskAlreadyCompleted | Task %s has already completed. | |
| 500 | InternalServerError | An internal error has occurred. Please retry. | |
| 403 | AccessDenied | The resources doesn't belong to you. | |
| 403 | InvalidAccessKeyID | The AccessKey ID %s is invalid. | |
| 403 | RequestTimeTooSkewed | The difference between the request time %s and the current time %s is too large. | |
| 403 | SignatureNotMatch | The request signature we calculated does not match the signature you provided. Check your access key and signing method. | |
| 415 | UnsupportedMediaType | The content type must be "application/json". | |
| 429 | ResourceThrottled | The request is throttled. Please try again later. | |
| 409 | TaskInvalidState | Task is in an invalid state, please retry. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.