Creating Rule Folders in ONE Web

  • 29 April 2024
  • 0 replies
  • 46 views
Creating Rule Folders in ONE Web
Badge

Hi Community I’m Antonio, a Professional Services Consultant here at Ataccama. 

Assets created in ONE do not come with the option of being sorted into folders out of the box. This guide will demonstrate how to set up folders for rules, but can be used for other asset types and isn’t specific to rules.

 

In this guide we will describe how to set up a custom attribute ‘ruleFolderValueList’ on rules which will hold data from a list of values, then create new navigation sections in the tool where we can apply AQL expressions to filter rules based on our set criteria. This will allow us to split rules into folders based on the value that has been entered into the custom attribute. The process and results outlined have only been tested in v13.9.3 and v14.5.0 of the ONE Web application.

 

Create Value List

First we will create the list of values. To do this follow the below steps

Go to Global Settings > Metadata Model.

Metadata model list

 

Select Create entity.

Provide the following information:

Name of the value that you are adding.

HIiL8qDtZiRRcWgzXtfWaJagngKOv1aJT_hUrXx5d-OUvgPFGQYDaS_Ri6qCIlxZvpnGiO8KDGw0igyJ72a_rp7bi71JITcaDyr0eYINe84tYf-8qDcY4jsp7kmwxbcr5JC_v3wpN0g3pMOWFyai1ds

Property names and types.
For the purpose of this tutorial, we are adding property name, with type String.

X5fm_paKwb4zhABLqpjHzUbEYWMMagqayTpnVEJXqHQhxVaRyuN3Vxbjtv44fozM6BVTmJRRhbC8k4hTSZadpzv1mHOpQcxl_xa_a3ZBtfpfsZ-c_rEiNc-ppKEM95gAHhwE47p69jdkRrWhJLmuXKk

 

Select Save.

Go to the Metadata Model tab again, search for the valueList entity, and open it.

In the properties list, select Add property and provide the following:

Name: Name of the value list that you have created.

Type: Embedded object array.

Object: Reference the object that you have created earlier in List of Values.

M5JIzUdLhMLxbmU0rtdxsUhSad8jR5-NgJ9QlXxofChvVWzsSLv4eTspqg6SLuxGnwX1RvwRkz_7hVr_v4HFE2HXC5peT9d4IEmAxzX5kMbDJJj3vxTapq0fU2I0DVPKwv-kBu8_2RTq7lHgHjJXvus

 

Select Save.

Go to System Changes to publish changes.


 

Next we will need to apply the value list to rules

Navigate to the Global Settings > Metadata Model tab and search for the rule entity.

On the entity details page:

  1. In Properties, select Add Property and specify the following:
    1. If you want to enable assigning only one value, provide the following:
      1. Name: Must match the name of the value list that you have created.
      2. Type: Referenced object.
      3. Object: Reference the object that you have created earlier in valueLists.

-UdqUXRBtHSI6Y0I-qcsB3IHfRkXGj973-I7ey9C3w1WH3bue4FMegxu_HKg7GUY-BCMKZlMm5Qt692LFfzG9PIIgRY3NIEo1Pw_XLSouxBVISu34REY7ToUtQoRSTaHnOzFtg7iWBjTx1rAbDlfT2c

  1. After the property is added, select the property name to see details.
  2. (Optional) This step changes how the list is displayed in the application. If enabled, the list is shown as a property, with an Add option next to the property name, and not as a list of entities.

valueList property

  1. a. In Traits, select Add mmd trait and set the Trait name to valueList:property. Add MMD trait
  2. Select Save.
  3. Go to System Changes and publish the changes.

 

Add items to list

To add new items to an existing list:

  1. Go to Global Settings > List of Values.
  2. Add names of the values you wish to use to separate rules into folders and select Save.Dh5MEeD5GPf_UyqIAKkdS-63x6ErJCI6LbwrYbyYsQoy8_PW5eO2xlPSFYStLuXe57fwz1R84wZGYvM5gJcs4aGkJd_6IILHJtOo7vNnVsIlHuOFO7_zclhu2CmKFD6jKDhe83nM8hvvCDpuZnWZwqg
  3. Publish the changes

Create Section for rule folders

Navigate to the Global Settings > Navigation

  1. Under Data Quality select Add child and select Section group as navigation item type.cShislss8BaaDPdpiavfkFMAfDg4pqlEfYgsJ0SfP8luauaXtPHcuCZP9C5OaeaUW1mqx3d8e0emfqzasN0B50wjXTA0yrokpnXWFOoMj3H-OjwRRimlNCNGcFMG2mn_0JxSyvbNk1SlVG1Hwovjers
  2. Save and publish 
  3. Under this new navigation item select Add child and select Listing as navigation item type, Rule as Listing Node, and a suitable name for the folder.
    X36B5Sva_NNFUtC8HtwrgOnmpTNxgk2a4LMnkhD-2Luw5i2KyNyaFPiyHa5g8YxQJs9tkLeX7FC5vu-C1j4lN3He8NydIN9CUBXncPoNRAe3a1kNiE0MJpnLCoB1sK7MY78vQy1NGYZlmv0aCU7WsVc
  4. Save and publish
  5. Repeat for all necessary folders

 

Adding Rules to a folder

Navigate to Data Quality > Rule Folders.

  1. When on the rule folder page select Edit page4fO78j1j-qFHWEoiaLQLFUfIma34w0rfhxzC2JXRDo3Ujcs2iCBA8Pddcv_w0M8KnN3hfwoXmOoiUzDof-LmfdCRvP8PNk_H5QxlFNrIcpybJ9rP2YO96fe34JuHHp5PLBaCoaQIWL-VyhAfajYN1y0
  2. Enter the following AQL Expression ruleFolderValueList.name='folder1' where ‘folder1’ is the valueList entry and ruleFolderValueList.name is the custom property we have added to rules.
    bzaIi4qO78Z7xQQ1YXNjY4ygVVagE1PIg9VMxbes33zmLqy2us4iIIQ_l120SO0ur8PAOxKHZvtdas-DUjqG0rWSdFazS3F-9Tnzy8KcqGXgzrMpRRetItebK_gbZd1CnEK3akm2diMwZUWvL9GjTsw
  3. Repeat for all rule folders, changing the value list entry from the expression as needed.
  4. Once values have been entered for ruleFolderValueList on rules by either editing existing assets or creating new assets, these folders will begin to get populated.R2Pm2TxluPNHNT917WQCWXhkJRFcvyUWgS-2WIM7emKFTG7Zxf7YoD_kVGWUvynNBQbNBztT9reqkZpPfUGjMHRR7aS-Qmh4JeW9_e4Tk0r0FWe_A8ALOU78Jy-SuzDqONJGMxmVsfBGXQ0NoEt6rj4

Change display name of rule folder value

The property ruleFolderValueList will appear as ‘Rule Folder Value List’ on rules if following this guide exactly. To clean this up and change the display name you can do the following:

  1. Navigate to Global Settings > Metadata Model > rule.
  2. Select the property ruleFolderValueList and Add MMD trait fe:mmdProperty with the following property.YEhh5qHkTtG2CB4YbHMm4kaa8CgcDjWUS6rNsq9PVeH-AhDODpIxoMWu1kWM_qnD1RtYAtGvkDl_bhIxmtC_0nSPI-ul4C_9xmatnyzndgD9M1I9TZerpCAWkrnrncd5BLat_dxUs8_mvcmhMXWtYWE

After these steps have been completed, you will see distinct folders in the ONE Web application as shown below. Keep in mind this doesn’t act as a new location for assets as we are only filtering out what is visible on the page, meaning adding rules to these folders will not remove them from the ordinary list of rules and they will only be visible in these folders once a value has been assigned to the ruleFolder custom attribute within a particular rule.

Thanks for reading, please share any questions or thoughts in the comments below.


0 replies

Be the first to reply!

Reply