I´m searching for a report or a functionality in ARIS, that is able to find all objects in a group that don´t occure in any model.
I thought there would be a standard functionality in ARIS that would help me with this problem but I couldn´t find it.
Can anyone help me with this question?
Kind regards
Marco
David Tse on
If you go to administration, you can right click the database and do re-organize. This will remove all unused objects (assuming you are looking for just removing the objects).
Here is some code for a custom script I built. This is the part that finds the unused objects. The actual script goes through all objects in a database, finds unused objects and moves them to an "unused" folder. It will check back in 35 days and remove the object if it is not used. If it is used, it will move it to the appropriate object folder.
var oOutput = Context.createOutputObject(); // Output object var nLocale = Context.getSelectedLanguage(); // Selected database language //var aModels = ArisData.getSelectedModels(); // Array of selected models var oSelGroups = ArisData.getSelectedGroups(); var countUnusedObjects = 0; for (var n = 0; n < oSelGroups.length;n++) { var aObjects = oSelGroups[n].ObjDefList(true); for (var i = 0; i < aObjects.length; i++) { var objectName = aObjects[i].Name(nLocale); var objectGroup = aObjects[i].Group().Path(nLocale); var objectType = aObjects[i].Type(); var objCount = aObjects[i].OccList().length if (objCount == 0) { //THIS IS THE UNUSED OBJECT, DO SOMETHING WITH IT countUnusedObjects++; } } } oOutput.OutputLn("", "Arial", 10, Constants.C_BLACK, Constants.C_TRANSPARENT, Constants.FMT_LEFT, 10); oOutput.OutputLn("Count of unused objects: " + countUnusedObjects, "Arial", 10, Constants.C_BLACK, Constants.C_TRANSPARENT, Constants.FMT_LEFT, 10);