Updates the time variables of a task flow.
Debugging
Request parameters
| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| Action | String | Yes | UpdateTaskFlowTimeVariables |
The operation that you want to perform. Set the value to UpdateTaskFlowTimeVariables. |
| Tid | Long | No | 3*** |
The ID of the tenant. Note The ID of the tenant is displayed when you move the pointer over the profile picture
in the upper-right corner of the Data Management (DMS) console. For more information,
see the "View information about the current tenant" section of the Manage DMS tenants topic.
|
| DagId | Long | Yes | 43**** |
The ID of the node. You can call the GetTaskInstanceRelation operation to query the node ID. |
| TimeVariables | String | Yes | {"variables":[ {"name":"var", "pattern":"yyyy-MM-dd|+0m+0h-2d+0w+0M+1y"} ]} |
The time variables of the task flow. |
TimeVariables is a JSON string. Example:
Json
{
"variables":[
{
"name":"var",// Variable name
/*
Variable format
As shown in the example, the date can have one or more offsets, including minutes (m), hours (h), days (d), weeks (w), months (M), or years (y). The offsets are optional, and you can specify the offsets in a different order than described here.
*/
"pattern":"yyyy-MM-dd|+0d"
},
{
"name":"test",
"pattern":"yyyy-MM-dd|+0d"
}
]
}
Response parameters
| Parameter | Type | Example | Description |
|---|---|---|---|
| RequestId | String | 39557312-28D5-528F-9554-80C0700EB489 |
The ID of the request. You can use the ID to locate logs and troubleshoot issues. |
| ErrorCode | String | UnknownError |
The error code returned if the request failed. |
| ErrorMessage | String | UnknownError |
The error message returned if the request failed. |
| Success | Boolean | true |
Indicates whether the request was successful. Valid values:
|
Examples
Sample requests
http(s)://dms-enterprise.aliyuncs.com/?Action=UpdateTaskFlowTimeVariables
&TimeVariables={"variables":[ {"name":"var", "pattern":"yyyy-MM-dd|+0m+0h-2d+0w+0M+1y"} ]}
&Common request parameters
Sample responses
XML format
HTTP/1.1 200 OK
Content-Type:application/xml
<UpdateTaskFlowTimeVariablesResponse>
<RequestId>39557312-28D5-528F-9554-80C0700EB489</RequestId>
<Success>true</Success>
</UpdateTaskFlowTimeVariablesResponse>
JSON format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "39557312-28D5-528F-9554-80C0700EB489",
"Success" : true
}
Error codes
For a list of error codes, see Service error codes.