Creates a workflow instance, such as a data backfill workflow instance, based on configurations.
Operation description
DataWorks Basic Edition or higher is required.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectId |
integer |
Yes |
The project ID. |
100 |
| EnvType |
string |
No |
The project environment. Valid values:
|
Prod |
| WorkflowId |
integer |
Yes |
The ID of the workflow to which the instance belongs. This parameter is set to 1 for auto triggered tasks. |
1 |
| Name |
string |
Yes |
The name. |
WorkflowInstance1 |
| Periods |
object |
No |
The configuration of the data backfilling period. |
|
| BizDates |
array<object> |
Yes |
The data timestamps. You can specify up to seven data timestamps. |
|
|
object |
No |
|||
| StartBizDate |
string |
Yes |
The data timestamp at which the data starts to be backfilled. Configure this parameter in the |
2024-11-20 |
| EndBizDate |
string |
Yes |
The data timestamp at which data is no longer backfilled. Configure this parameter in the |
2024-11-24 |
| StartTime |
string |
No |
The start time of data backfill. Configure this parameter in the If you configure this parameter, you must also configure the EndTime parameter. |
00:00:00 |
| EndTime |
string |
No |
The end time of data backfill. Configure this parameter in the If you configure this parameter, you must also configure the StartTime parameter. |
23:59:59 |
| Type |
string |
Yes |
The type of the workflow instance. Valid values:
|
SupplementData |
| WorkflowParameters |
string |
No |
The workflow parameters. This parameter takes effect when a specific workflow is specified ( |
"key=value" format: key1=value1 key2=value2 JSON format: {"key1":"value1", "key2": "value2"} |
| TaskParameters |
string |
No |
The task-specific parameters. The value is in the JSON format. The key specifies the task ID. You can call the GetTask operation to obtain the format of the value by querying the script parameters. |
{ "1001": "key1=val2 key2=val2", "1002": "key1=val2 key2=val2" } |
| AutoStartEnabled |
boolean |
No |
The default value is true. |
true |
| DefaultRunProperties |
object |
No |
The runtime configuration. |
|
| RootTaskIds |
array |
No |
The list of root task IDs.
|
|
|
integer |
No |
The task ID. |
1234 |
|
| IncludeTaskIds |
array |
No |
The IDs of the tasks to run. |
|
|
integer |
No |
The task ID. |
1234 |
|
| ExcludeTaskIds |
array |
No |
The IDs of the tasks not to run. |
|
|
integer |
No |
The task ID. |
4321 |
|
| IncludeProjectIds |
array |
No |
The IDs of the projects to run. |
|
|
integer |
No |
The project ID. |
100 |
|
| ExcludeProjectIds |
array |
No |
The IDs of the projects not to run. |
|
|
integer |
No |
The project ID. |
200 |
|
| Mode |
string |
No |
The data backfill mode. Default value: ManualSelection. Required when Type is set to SupplementData.
|
ManualSelection |
| Analysis |
object |
No |
The analysis configuration. Required when Type = SupplementData. |
|
| Enabled |
boolean |
No |
Specifies whether to enable the analysis feature. Required when Type = SupplementData. |
true |
| Blocked |
boolean |
No |
Specifies whether to block execution if the analysis fails. Required when Type = SupplementData. |
true |
| RunPolicy |
object |
No |
The run policy. If the parameter is left empty, the task configuration is used. |
|
| StartTime |
string |
No |
The start time of running. Configure this parameter in the |
00:00:00 |
| EndTime |
string |
No |
The end time of running. Configure this parameter in the |
23:59:59 |
| Type |
string |
No |
The time period type. This parameter is required if you configure the RunPolicy parameter. Valid values:
|
Daily |
| Immediately |
boolean |
No |
Specifies whether a task whose scheduled run time is in the future can be run immediately. Default value: false. |
false |
| Alert |
object |
No |
The alert settings. |
|
| Type |
string |
No |
The alerting policy. Valid values:
|
Succes |
| NoticeType |
string |
No |
The alert notification method. Valid values:
|
Sms |
| Parallelism |
integer |
No |
The task concurrency. Values from 2 to 10 indicate concurrency. A value of 1 indicates sequential execution. Required when Type = SupplementData. |
2 |
| Order |
string |
No |
The execution order. Default value: Asc.
|
Asc |
| RuntimeResource |
string |
No |
The custom scheduling resource group ID. If left empty, the task configuration is used. |
S_res_group_524258031846018_1684XXXXXXXXX |
| Priority |
integer |
No |
The execution priority, range: 1–11. A higher value indicates higher priority. |
1 |
| PriorityWeightStrategy |
string |
No |
The priority weighting policy.
|
Upstream |
| Comment |
string |
No |
The reason for the creation. |
create for test |
| Tags |
array<object> |
No |
The task tag list. |
|
|
object |
No |
|||
| Value |
string |
No |
The tag value. |
tagValue |
| Key |
string |
No |
The tag key. |
tagKey |
| TagCreationPolicy |
string |
No |
The tag creation policy. Valid values:
|
Append |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. It is used to locate logs and troubleshoot problems. |
22C97E95-F023-56B5-8852-B1A77A17XXXX |
| OperationId |
string |
The ID of the operation. You can use this field to query the results of the creation operation through the GetCreateWorkflowInstancesResult interface. |
e15ad21c-b0e9-4792-8f55-b037xxxxxxxx |
Examples
Success response
JSON format
{
"RequestId": "22C97E95-F023-56B5-8852-B1A77A17XXXX",
"OperationId": "e15ad21c-b0e9-4792-8f55-b037xxxxxxxx"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.