Hi, is there an alternative to "Reorganize Database" that shows me "objects and connection definitions that do not have occurrences in any model in the database", without actually deleting them?
In other words, the equivalent of a semantic check on a model, so that I can clean up the orphaned connection definitions myself?
We're using ARIS Advanced.
Thanks
Hello Mark,
here are two reports submitted by the community:
https://ariscommunity.com/users/mark-van-kampen/2011-04-19-report-objects-without-occurences
But at a glimpse this pivotal line of code should be corrected to:
// if(objects[x].OccList().length > 0) // has occurrence!
if(objects[x].OccList().length == 0) // has no occurrence
So you should be careful to check the source code and test it in a safe environment before running it on productive content.
If you want to find more search this
Regards, Martin
Thanks, Martin
The report works if I run it as is (it shows all objects with occurrences). But, if I change the line of code (to show all objects without connections)
if(objects[x].OccList().length > 0)
to:
if(objects[x].OccList().length == 0)
it runs but the output shows as empty. My goal is to find objects that have no connections in a model. Am I reading this right?
Thanks for your help
Hello Mark,
which report did you try?
The first one by looks for object occurrences only.
The second one attached by Michael Hubbard should list Connection_Definitions_Without_Occurrences, but I have not used it.
The question of objects with no connections needs a different approach:
Find objects (by type? any other search criteria?) and check their occurrences for "surrounding" connections with these report API methods: CxnOccList or Cxns
Cf. Script help on your server: /abs/help/en/script/ba/#/home/r_O_ObjOcc_cxnocclist/en/1
Regards, Martin