DataWorks allows users who are assigned the Workspace Manager role to configure request processing policies for saving a Data Integration node in workspaces. This topic describes how to create a request processing policy for Data Integration nodes.

Background information

Approval Center allows the user that is assigned the Workspace Manager role to use a combination of a source and a destination to specify the Data Integration nodes on which the operation requests must be processed. The operations that trigger request processing include the operation of saving a node on the Data Integration or DataStudio page. For example, in a request processing policy that is configured for Data Integration nodes, the user that is assigned the Workspace Manager role specifies the mysql_1 data source as a source and the odps_1 data source as a destination. When a developer saves a node that matches the specified source and destination, the request processing procedure is triggered. The developer can proceed to the save operation only after the request is approved in Approval Center.

Limits

  • Only users of DataWorks Enterprise Edition can create a request processing policy for Data Integration nodes.
  • You have permissions to manage all workspaces only if you log on to the DataWorks console by using an Alibaba Cloud account or as a RAM user to which the AliyunDataWorksFullAccess policy is attached. The request processing policy that you create takes effect only for workspaces on which you have management permissions.
  • A user that is assigned the Workspace Manager role can manage only workspaces to which the user belongs. The request processing policy that you create takes effect only for workspaces to which you belong.

Create a request processing policy

  1. Go to the page on which you can create request processing policies for Data Integration nodes.
    1. Log on to the DataWorks console.
    2. In the left-side navigation pane, click Workspaces.
    3. In the top navigation bar, select the region where your workspace resides. On the Workspaces page, find your workspace and click DataStudio in the Actions column.
    4. On the DataStudio page, click the Icon icon in the upper-left corner and choose All Products > More > Approval Center.
    5. In the left-side navigation pane of the page that appears, choose Policies > Data Integration.
  2. On the Data Integration page, click Create Policy in the upper-right corner and configure the parameters in the Create Policy wizard.

Enter the basic information

Configure Basic Information sectionSet the Policy Name and Purpose parameters based on the actual scenario to which the approval policy applies.

Specify the data range

You must specify the data range to which the request processing policy applies based on your business scenario. You can determine the Data Integration nodes on which the operation requests must be processed based on a combination of a source and a destination. After the request processing policy is configured and takes effect, the request processing procedure is triggered when a developer saves a node that matches the specified source and destination. The developer can proceed to the save operation only after the request is approved in Approval Center.

When you specify the data range, take note of the following items:
  • You can select multiple workspaces.
    Note
    • You have permissions to manage all workspaces only if you log on to the DataWorks console by using an Alibaba Cloud account or as a RAM user to which the AliyunDataWorksFullAccess policy is attached. The request processing policy that you create takes effect only for workspaces on which you have management permissions.
    • A user that is assigned the Workspace Manager role can manage only workspaces to which the user belongs. The request processing policy that you create takes effect only for workspaces to which you belong.
  • You can click Add to add a combination of a source and a destination for a specific workspace. To add multiple combinations of sources and destinations for the workspace, repeat the add operation.

Configure the notification methods

Three notification methods are supported: text messages, emails, and DingTalk chatbots. Configure Notification Method sectionAfter you configure the notification methods, notifications are sent to approvers based on the configured notification methods when a permission application is submitted for approval.
Note In the Configure Processing Links step, you can specify approvers on each approval node.
  • To ensure that the approvers can receive approval notifications by using text messages or emails, you must add the approvers as alert contacts of DataWorks. For more information, see Configure and view alert contacts.
  • To ensure that the approvers can receive notifications by using a DingTalk chatbot, select Custom Keywords when you set the Security Settings parameter in the Add Robot dialog box. Then, enter DataWorks in the Custom Keywords field. Make sure that the other check boxes are cleared when you set the Security Settings parameter.

    If you do not add DataWorks as a custom keyword or you select other check boxes when you set the Security Settings parameter, the approvers cannot receive notifications by using the DingTalk chatbot.

Configure the approval nodes

Configure Processing Links sectionWhen you configure the approval nodes, take note of the following items:
  • The approval nodes are sequentially connected. After you configure the approval policy, the approval process specified in the approval policy sequentially flows from node to node. After an approver on an approval node gives approval, the approvers on the next approval node receive a notification and then start approval.
  • You can specify different roles as approvers on different approval nodes. The following roles are supported: DataWorks workspace roles, DataWorks workspace member, table owner, Alibaba Cloud account, and MaxCompute roles.
    Note
    • When an application is submitted for approval, DataWorks sends notifications to the approvers on the approval nodes based on the notification methods configured in the preceding step. You must add the approvers as alert contacts of DataWorks. For more information, see Configure and view alert contacts.
    • If multiple users that assume the same role are specified as approvers on an approval node, notifications are sent to all the approvers. In this case, if one of the approvers on an approval node gives approval, the application is forwarded to the next approval node.

Enable or disable a request processing policy

After you create a request processing policy, you can click Apply or Stopped in the Actions column of the policy to enable or disable the policy. After the request processing policy is disabled, the save operation that is performed on a node on the DataStudio or Data Integration page does not trigger the request processing procedure. You can also click View, Edit, or Delete in the Actions column of a request processing policy to view, edit, or delete the policy.

What to do next

You can view the requests that are waiting to be processed by your account and process the requests. For more information, see Process and view applications. You can also view historical processing records on the Processing Records page.