Engineering Publishing - Determining recursion depth
![]() Hi, I am reporting on an RMM model which has a recurring query
eg
rmm/ArchitectureElements/ArchitectureElement/Aggregates/ArchitectureElement (for level 1) rmm/ArchitectureElements/ArchitectureElement/Aggregates/ArchitectureElement/Aggregates/ArchitectureElement (for Level 2) rmm/ArchitectureElements/ArchitectureElement/Aggregates/ArchitectureElement/Aggregates/ArchitectureElement/Aggregates/ArchitectureElement (for Level 3)
Setting a container with a Segment of 2 and recuring depth of 4 gets all of the items I am after however I can not determine what depth the items are.
It appears that RPE only increments the _element_level when a package is found and not when a block contains another block.
My structure is similar to this
Top Package
I want to use recursion and set datasource to "Top Package" and recurse through each element and publish it like
Level 1 - Top Package
If the _element_level is limited to packages only (why???) and how can I achieve what I am after.
My initial thoughts are get the query in the recursion container and count the /Aggregates/ArchitectureElement/ but I can not find a way to get the query.
Any suggestions on how to solve this very welcome
Thanks |