Hi Sidd,
If your users are ok with seeing all the descriptions in a single attribute, you could basically substitute the node names with the node descriptions (by querying the code set tables) and store that result in a second attribute that's set for display-only. This is an example you might try with a change notification registered to changes to the hierarchy node attribute. Here, we have a hierarchy called "Catalog Manager Folder Hierarchy" and the node value is "ROOTS.ALLDESKTAB.CONFCLASSRMTBLS". The results of this query return a single result of "Roots.All Desks + Tables.Conference + Classroom Tables" which is more reader friendly.
DECLARE
@NodeString nvarchar(200) = 'ROOTS.ALLDESKTAB.CONFCLASSRMTBLS',
@HierarchyName nvarchar(200) = 'Catalog Manager Folder Hierarchy',
@NodeSeparator nchar(1) = '.';
WITH t AS (
SELECT value, idx = CHARINDEX(@NodeSeparator + value + @NodeSeparator, @NodeSeparator + @NodeString + @NodeSeparator)
,CSD.*
FROM STRING_SPLIT(@NodeString, @NodeSeparator)
INNER JOIN B_CODE_SET_DETAIL AS CSD ON value = CSD.CODE
INNER JOIN B_CODE_SET AS CS ON CSD.CODE_SET_ID = CS.CODE_SET_ID
WHERE CS.NAME = @HierarchyName
)
SELECT 'LongDescription' = STUFF((SELECT '.' + DESCRIPTION FROM t ORDER BY idx FOR XML PATH('')),1,1,'')
If the users don't like seeing that combined in a single field, then I think you could definitely get away with 4 additional, separate attributes that contain the individual pieces of the node. If you do go that route, you could probably accomplish that with a VTL business rule. So you wouldn't need to set up a new change notification.
I hope that helps!
Josh
------------------------------
Joshua Swett | Sr Applications Engineer
Steelcase, Inc | 2696251984
------------------------------