All Products
Search
Document Center

Data Management:Database clone

最終更新日:Nov 15, 2024

This topic describes how to configure approval processes for database clone tickets.

Precautions

The default approval template takes effect if you do not configure approval processes for database clone tickets under the Approval Rule Validation checkpoint. In the Switch Approval Template dialog box, you can Modify the default approval template.

Configuration items

Checkpoints

When a user submits a database clone ticket, Data Management (DMS) checks whether the ticket conforms to the rules specified under the checkpoint. Approval Rule Validation: In DMS, the database clone tickets are processed based on the rules specified under the Approval Rule Validation checkpoint. You can use the default rules provided in the template database of security rules or Create a rule.

Actions

An action in a security rule is an operation that DMS performs when the IF condition in the rule is met. For example, DMS can forbid the submission of a ticket, select an approval process, approve a ticket, or reject a ticket. An action in a security rule shows the purpose of the security rule. An action name consists of the prefix @act. and the display name of the action. Each module provides different actions for different checkpoints. The following table describes the actions provided for the checkpoints in Database Clone.

Action

Description

@act.forbid_submit_order

Forbids the submission of the ticket. The statement is in the following format: @act.forbid_submit_order 'Reasons for forbidding the submission of the ticket'.

@act.do_not_approve

Specifies the ID of an approval template. For more information, see Configure approval processes.

@act.choose_approve_template

@act.choose_approve_template_with_reason

The following is an example of the DSL statement for a rule:

if  1 > 0
then  
  @act.choose_approve_template 853
end

Template database

DMS provides a large number of predefined security rule templates. You can enable the templates or modify the templates based on your business requirements. The template provided in Database Clone: Approval process for database clone

Modify the default approval template

  1. Log on to the DMS console V5.0.
  2. Move the pointer over the 2023-01-28_15-57-17.png icon in the upper-left corner and choose All functions > Security and Specifications > Security Rules.

    Note

    If you use the DMS console in normal mode, choose Security and Specifications > Security Rules in the top navigation bar.

  3. Find the rule set of the target database and click Edit in the Actions column.

  4. Go to the Details page of Security Rules. In the left-side navigation pane, choose Database Development > Database Clone.

  5. In the row of Default approval template for database clone, click Edit in the Actions column.

  6. In the Change Configuration Item dialog box, click Switch Approval Template.

  7. In the Switch Approval Template dialog box, find the target approval template and click Select in the Actions column.

    Note

    You can also click Reset to Free of Approval to skip the approval for tickets.

  8. Click Submit.

Create a rule

  1. Log on to the DMS console V5.0.
  2. Move the pointer over the 2023-01-28_15-57-17.png icon in the upper-left corner and choose All functions > Security and Specifications > Security Rules.

    Note

    If you use the DMS console in normal mode, choose Security and Specifications > Security Rules in the top navigation bar.

  3. Find the rule set of the target database and click Edit in the Actions column.

  4. Go to the Details page of Security Rules. In the left-side navigation pane, choose Database Development > Database Clone.

  5. Select Basic Configuration Item for Checkpoints. Then, click Create Rule, and configure the following items:

    Configuration item

    Required

    Description

    Checkpoints

    Yes

    The checkpoint under which you want to create the security rule. One checkpoint is provided in Database Clone: Approval Rule Validation.

    Template Database

    No

    The template that you want to use to create the security rule. DMS provides a large number of security rule templates. After you select a checkpoint, click Load from Template Database and select a template. For more information about available templates, see Configuration items.

    Rule Name

    Yes

    The name of the custom security rule.

    Note

    If you load a rule template from Template Database, the rule name is automatically entered.

    Rule DSL

    Yes

    The DSL statement that you want to use to configure the security rule. For more information, see DSL syntax for security rules.

    Note

    If you load a rule template from Template Database, the rule name is automatically entered.

  6. Click Submit.

  7. Enable the rule.

    Note

    The new rule is Disabled by default. To enable this rule, click Enable in the Actions column, and then click OK.