GetProcessDefinition
Retrieves the details of an approval policy based on the specified process definition ID.
Operation description
Request description
This operation queries all information about a specific approval process definition by using the specified
Idparameter.Idis required and must be a valid process definition ID.The returned information includes but is not limited to the basic attributes, rule conditions, notification service configurations, and approval nodes of the process definition.
If the request is successful, the data containing the complete process definition object is returned. If the request fails, the corresponding error code and message are provided to help troubleshoot the issue.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:GetProcessDefinition |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Id |
string |
Yes |
The process definition ID. |
f0d6d578-a305-40ac-ba1e-0a09f64cbc69 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The API request ID. |
0bc5df3a17***903790e8e8a |
| ProcessDefinition |
object |
The process definition. |
|
| Id |
string |
The process definition ID. |
210001039767 |
| Name |
string |
The name of the process definition. |
MaxCompute table approval |
| Description |
string |
The description of the business process. |
Order business data approval process |
| Type |
string |
The process definition type. Valid values:
|
MaxCompute |
| SubType |
string |
The subtype. Valid values:
|
Table |
| IsSystem |
boolean |
Indicates whether the policy is the default system policy. |
false |
| Enabled |
boolean |
Indicates whether the policy is enabled. |
true |
| RuleConditions |
array<object> |
The list of effective rules for the approval policy. |
|
|
object |
The effective rule for the approval policy. |
||
| Type |
string |
The condition type. Valid values:
|
odpsProject |
| Expression |
string |
The conditional expression in the |
((#odpsProject=='PX_BEIJING_TEST')) |
| Scope |
string |
The effective stage of the rule. Valid values:
|
Deployment |
| NotificationServices |
array<object> |
The notification service configurations. |
|
|
object |
The notification service. |
||
| Channel |
string |
The notification channel. Valid values:
|
DingRobot |
| Extension |
string |
The extended information in JSON format, such as |
{"atAll":"true"} |
| Receiver |
string |
The receiver. If |
https://dingtalk.com |
| ApprovalNodes |
array<object> |
The list of approval nodes. |
|
|
array<object> |
The approval node. |
||
| Id |
string |
The node ID. |
7a809b6a-2a62-4c6c-9c23-c2a145e3877d |
| Name |
string |
The node name. |
default-name |
| AccountType |
string |
The type of approver for the node. Valid values:
|
TableOrProjectAdministrator |
| Assignees |
array |
The semantics vary based on the
|
|
|
string |
The approver. |
213463068144525171 |
|
| ExtensionProperties |
object |
The additional declarations required for different
|
{"449656": "role_project_admin,role_project_pe"} |
|
any |
The extended description. |
{ "449656": "role_project_admin,role_project_pe" } |
Examples
Success response
JSON format
{
"RequestId": "0bc5df3a17***903790e8e8a",
"ProcessDefinition": {
"Id": "210001039767",
"Name": "MaxCompute table approval",
"Description": "Order business data approval process",
"Type": "MaxCompute",
"SubType": "Table",
"IsSystem": false,
"Enabled": true,
"RuleConditions": [
{
"Type": "odpsProject",
"Expression": "((#odpsProject=='PX_BEIJING_TEST'))",
"Scope": "Deployment"
}
],
"NotificationServices": [
{
"Channel": "DingRobot",
"Extension": "{\"atAll\":\"true\"}",
"Receiver": "https://dingtalk.com"
}
],
"ApprovalNodes": [
{
"Id": "7a809b6a-2a62-4c6c-9c23-c2a145e3877d",
"Name": "default-name",
"AccountType": "TableOrProjectAdministrator",
"Assignees": [
"213463068144525171"
],
"ExtensionProperties": {
"key": "{\n \"449656\": \"role_project_admin,role_project_pe\"\n }"
}
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.