Creates a temporary workflow instance based on the specified configurations.
Operation description
DataWorks Basic Edition or later is required to use this operation.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:ExecuteAdhocWorkflowInstance |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| EnvType |
string |
No |
The project environment. Valid values:
Valid values:
|
Prod |
| Name |
string |
Yes |
The name. |
WorkflowInstance1 |
| ProjectId |
integer |
Yes |
The project ID. |
100 |
| Owner |
string |
Yes |
The account ID of the owner. |
1000 |
| BizDate |
integer |
No |
The business date. The value is a timestamp. |
1710239005403 |
| Tasks |
array<object> |
Yes |
The list of tasks. |
|
|
array<object> |
No |
|||
| Name |
string |
Yes |
The name of the task. |
SQL node. |
| Type |
string |
Yes |
The task type. |
ODPS_SQL |
| Owner |
string |
Yes |
The account ID of the owner. |
1000 |
| Timeout |
integer |
No |
The timeout period for task execution, in seconds. |
3600 |
| Script |
object |
No |
The script information. |
|
| Content |
string |
No |
The script content. |
echo "helloWorld" |
| Parameters |
string |
No |
The list of script parameters. |
para1=$bizdate |
| RuntimeResource |
object |
Yes |
The runtime environment configurations, such as the resource group information. |
|
| ResourceGroupId |
string |
Yes |
The identifier of the scheduling resource group configured for task execution. |
S_res_group_524258031846018_1684XXXXXXXXX |
| Image |
string |
No |
The ID of the image configured for task execution. |
i-xxxxxx |
| Cu |
string |
No |
The CU consumption configured for task execution. |
0.25 |
| DataSource |
object |
No |
The associated data source information. |
|
| Name |
string |
No |
The name of the data source. |
mysql_test |
| Inputs |
object |
No |
The input information. |
|
| Variables |
array<object> |
No |
The list of variable definitions. |
|
|
object |
No |
|||
| Name |
string |
No |
The variable name. |
key1 |
| Value |
string |
No |
The variable value. Specify it in the |
upstream_task_output:key1 |
| Outputs |
object |
No |
The output information. |
|
| TaskOutputs |
array<object> |
No |
The list of task output definitions. |
|
|
object |
No |
|||
| Output |
string |
No |
The output identifier. Example: pre.odps_sql_demo_0. |
pre.odps_sql_demo_0 |
| Variables |
array<object> |
No |
The list of variable definitions. |
|
|
object |
No |
|||
| Name |
string |
No |
The variable name. |
key1 |
| Type |
string |
No |
The type. Valid values:
Valid values:
|
Constant |
| Value |
string |
No |
The variable value. |
value1 |
| Dependencies |
array<object> |
No |
The dependency information. |
|
|
object |
No |
|||
| UpstreamOutput |
string |
No |
The output identifier of the upstream task. Required when DependencyType is set to Normal. |
pre.odps_sql_demo_0 |
| ClientUniqueCode |
string |
Yes |
The client unique code of the task, which uniquely identifies the task. |
Task_0bc5213917368545132902xxxxxxxx |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID, which is used to locate logs and troubleshoot issues. |
22C97E95-F023-56B5-8852-B1A77A17XXXX |
| WorkflowInstanceId |
integer |
The workflow instance ID. |
1234 |
Examples
Success response
JSON format
{
"RequestId": "22C97E95-F023-56B5-8852-B1A77A17XXXX",
"WorkflowInstanceId": 1234
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.