Using a Pre rule to set the values of the common fields

Pre rule is the rule that is executed before the assets are added to the asset system. Use the Pre rule to discard the asset before it is added to the asset system or to set the values of the fields before the asset is added. The asset system provides a Predefined rule that sets the values of the Confidentiality, Integrity, and Availability fields to NotDefined. The rule is applicable to all the asset types.

See Common fields for all asset types.

Similarly, you can create a Pre Rule to set the values of the common fields.

Consider the following scenario:

Assume, that you want to set the name of the asset owner as xyz before the asset is added to the asset system.

To set the values of the common fields

  1. Go to Manage > Reconciliation Rules.

  2. From the taskbar, select Create Rule.

  3. In the Create or Edit Reconciliation Rule wizard, in the Specify Rule details panel type the rule name.

  4. From the Rule type drop-down list, select Pre Rule.

  5. From the Asset type drop-down list select the asset type for which you want to create the rule.

  6. In the Save in box, browse and select the folder where you want to save the rule and click Next.

  7. In the Select Rule Conditions and Actions panel, select Add Condition.

  8. In the Add Condition dialog box, select If an asset being imported exists in the asset system and click OK.

  9. In the Select Rule Condition and Actions panel, select Add Action.

  10. In the Add Action dialog box, select Set the field value of an existing asset as specified.

    Select the field Asset Owner and type the value xyz and click OK.

  11. Click Finish in the Summary panel.

    Go to Manage > Assets > Reconciliation Rules. Browse to the folder where you created the rule and check if the rule appears in the folder.

More Information

Using an Add rule to dynamically create asset folders

Using an Update rule to update the existing field values

Using a Post rule to mark the assets as control points