Rules
If you have a Data Quality Administrator role, you can use the Data Storage Optimizer rules engine to simplify data management by setting up rules and rule definitions to enable automation tasks such as data tiering and deletion. The rules engine can automatically handle processes like tiering data from one source to another or purging. By automating these processes, you can save time and effort while minimizing the potential for errors, making data management more efficient. See Manage users.
The rules framework in Data Storage Optimizer enables you to define, execute, and manage rules. The workflow within the rules framework should occur in the following order:
- Create a rule definition. You create a rule definition by setting the criteria and the action. The rule criteria define the rule that is translated and evaluated into a query for execution against every qualifying resource.
- Create a rule. A rule action can perform an array of tasks.
Creating a rule definition to tier files
Perform the following steps to create a rule definition to tier files:
Procedure
On the Menu, click Management.
The Manage Your Environment page opens.On the Rules card, click Add New, and then select Add Rule Definition from the menu.
The Rule Definition page opens.Enter a name and description for your rule definition.
In the Rule Criteria section, click File to set the object type.
Click Create a Condition to define your rule's conditions.
In Attribute, select Business Terms.
In Operator, select the operator that you want to use. For example, Contains.
NoteAvailable operators will depend on the selected attribute.In Value, select the value you want to use. For example, Cold.
NoteValue will vary based on the chosen operator.In the Rule Actions section, click Add Action and select Start Process.
In Select Process, click Move and then in Destination Data Asset, select your data target for tiering.
Click Save.
The rule definition is saved, and file tiering begins.
Results
In the data source, stub files are created to rehydrate the tiered files, as needed. See Rehydration.
Creating a rule definition to purge files
Perform the following steps to create a rule definition to purge files:
Procedure
On the Menu, click Management.
The Manage Your Environment page opens.On the Rules card, click Add New, and then select Add Rule Definition from the menu.
The Rule Definition page opens.Enter a name and description for your rule definition.
In the Rule Criteria section, click File to set the object type.
Click Create a Condition to define your rule's conditions.
In Attribute, select Business Terms.
In Operator, select the operator that you want to use. For example, Contains.
NoteAvailable operators will depend on the selected attribute.In Value, select the value you want to use. For example, Frozen.
NoteValue will vary based on the chosen operator.In the Rule Actions section, click Add Action and select Start Process.
In Select Process, click Delete.
Click Save.
The rule definition is saved, and file purging begins.
Results
Creating a rule
Perform the following steps to create a new rule:
Procedure
On the Menu, click Management.
The Manage Your Environment page opens.On the Rules card, click Add New, and then select Add Rule from the menu.
The Add Rule page opens.Enter the Rule Name and select the Source Data Asset.
In Select rule definition, select the rule definition if you have already created it or click Create Rule Definition to create a rule definition.
To execute the rule, select Run rule definition now. Alternatively, if you want to schedule the rule to run, see step 6.
Select Add Schedule to set the schedule to Daily or On a date.
Click Apply.
The rule is created and applied.
Results