Notifies a waiting execution how to proceed.
Operation description
-
When a template contains a special task such as an approval task, OOS sets the execution state to Waiting while the task runs.
-
In Debug mode, call this operation to specify the next task after an execution is created or a task completes.
-
When a high-risk task awaits approval, call this operation to approve or reject the execution.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
oos:NotifyExecution |
update |
*execution
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
Region where the execution resides. |
cn-hangzhou |
| ExecutionId |
string |
Yes |
Execution ID. |
exec-xxx |
| NotifyType |
string |
Yes |
Notification type. Valid values:
|
Approve |
| NotifyNote |
string |
No |
Notification description. |
Approved |
| TaskName |
string |
No |
Name of the next task to run. |
describeInstance |
| TaskExecutionId |
string |
No |
Task execution ID. |
task-exec-xxx |
| ExecutionStatus |
string |
No |
Final state of the terminated execution. Valid only when NotifyType is set to CompleteExecution. |
Success |
| Parameters |
string |
No |
Parameters for the next task. Valid only when NotifyType is set to ExecuteTask. |
{} |
| LoopItem |
string |
No |
Child node items in a loop task. |
i-xxx |
| TaskExecutionIds |
string |
No |
Task execution IDs. |
["exec-79c321c11003a97c","exec-79c321c11003aqw97cz"] |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
Request ID. |
491DF8C2-34C9-4679-9DB3-4C0F49B129AC |
Examples
Success response
JSON format
{
"RequestId": "491DF8C2-34C9-4679-9DB3-4C0F49B129AC"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.