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
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 |
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
- Log on to the DMS console V5.0.
- In the top navigation bar, choose .
- Find the rule set of the target database and click Edit in the Actions column.
- Go to the Details page of Security Rules. In the left-side navigation pane, choose .
- In the row of Default approval template for database clone, click Edit in the Actions column.
- In the Change Configuration Item dialog box, click Switch Approval Template.
- 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.
- Click Submit.
Create a rule
- Log on to the DMS console V5.0.
- In the top navigation bar, choose .
- Find the rule set of the target database and click Edit in the Actions column.
- Go to the Details page of Security Rules. In the left-side navigation pane, choose .
- 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. - Click Submit.
- 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.