We have a need to generate reports on model assignment hierarchies in Aris, to a predefined deapth. For example, our metamodel adoption allows one policy to be broken down into subpolices. That is, we on definition level can have something like this:

A
   A1
   A2
   A3
      A31
      A32
B
   B1
   B2
   B3
 

Is there possibly a general example of report/script code that as a starting point takes a given model, identifies objects A and B, and on object definition traverses the tree and outputs some information (attributes) of all the objects?

Given such an example, I can adopt to any object/model type and tree depth.

Tags: ARIS Report javascript