Melaporkan tugas yang berhasil.
Deskripsi operasi
Usage notes
In the previous service (Serverless Workflow), the task step that uses ReportTaskSucceeded to call back pattern: waitForCallback indicates that the current task has been executed successfully.
In the new service (CloudFlow), the task step that uses ReportTaskSucceeded to call back TaskMode: WaitForCustomCallback indicates that the current task has been executed successfully.
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 tugas yang eksekusinya ingin Anda laporkan. Token tugas diteruskan ke layanan yang dipanggil, seperti Message Service (MNS) atau Function Compute. Untuk MNS, nilai parameter ini dapat diperoleh dari Paket. Untuk Function Compute, nilai parameter ini dapat diperoleh dari event. Untuk informasi selengkapnya, lihat Mode integrasi layanan. |
emptyString |
| Output |
string |
Yes |
Informasi output tugas yang eksekusinya berhasil dan ingin Anda laporkan. |
{"key":"value"} |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| EventId |
integer |
The ID of the event. |
1 |
| RequestId |
string |
The request ID. |
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.