Add rule to dynamically create asset folders
Add rule is the rule that
lets you add the assets to the asset system in a specified folder.
The Add rule is executed on the assets that are being imported. You
can also create folders dynamically based on the common field
values of the assets.
Consider the following
Assume that you want to
categorize the assets of the Oracle Configured Databases based on
the name of the database. The Add rule lets you create the folders
dynamically based on the field value. The assets are then added to
the folder that is created based on the field value.
To create asset folders dynamically with an Add
Go to Manage >
From the taskbar, select
In the Create or Edit
Reconciliation Rule wizard, in the Specify Rule details panel type
the rule name.
From the Rule type
drop-down list, select Add
From the Asset type
drop-down list select Oracle
In the Save in box,
browse and select the folder where you want to save the rule and
In the Select Rule
Conditions and Actions panel, select Add Condition.
In the Add Condition
dialog box, select If an asset being
imported does not exist in the asset system and click
In the Select Rule
Condition and Actions panel, select Add Action.
In the Add Action dialog
box, select Add an asset being
imported to the specified folder.
Click the Browse (...)
icon and click New in the
Select Folder dialog box.
In the Custom Folder
dialog box, select Folder based on
In the Fields list,
select Database Name and
Click OK in the Select Folder dialog box and
click Next in the Specify
Rule Conditions and Actions panel.
Click Finish in the Summary panel.
If you add this rule to
the asset import job for the Oracle Configured Databases, different
folders are created with the name of the databases and the assets
are added to the proper folders.
Go to Manage > Assets
> Reconciliation Rules. Browse to the folder where you created
the rule and check if the rule appears in the folder.