Profile picture for user edwv

For those who write reports and macro's it's not always easy to determine which objects, symbols and connections are used on a model. Here you find two small reports that can help you in determining that.

testSym

The first report which I call testSym is used to show some object and symbol information from occurrences on a model in a message box.

var nLocale = Context.getSelectedLanguage();

function main()
{
    
    var selmodel=ArisData.getSelectedModels()[0];
   
    var occlist=selmodel.ObjOccList();
    var x="";
    var filter=ArisData.ActiveFilter();
    for(i=0;i<occlist.length;i++)
    {
        var API=filter.getAPIName(Constants.CID_OBJOCC,occlist[i].getSymbol())
        x=x + 
          occlist[i].getObjDefName(nLocale) + " [" + occlist[i].ObjDef().Type() + 
          " / " + occlist[i].SymbolName() + " (" + occlist[i].getSymbol() + ") ], API-name = " + API + "\n" 
    }   
    Dialogs.MsgBox(x);     
}
main();
testCxn

The second report which I call testCxn is used to show some connection information from occurrences on a model in a message box. This one is very helpful (which doesn't make the previous one senseless) since often there are multiple connections with the same name, so which one is the correct one.

function main()
{
    
    var selmodel=ArisData.getSelectedModels()[0];
   
    var cxnocclist=selmodel.CxnOccList ( );
    var x="";
    var filter=ArisData.ActiveFilter()
    for(i=0;i<cxnocclist.length;i++)
    {
        var API=filter.getAPIName(Constants.CID_CXNDEF,cxnocclist[i].CxnDef().TypeNum())
        x=x + 
          cxnocclist[i].CxnDef().ActiveType() + " (" + cxnocclist[i].CxnDef().TypeNum()+ " - " + API + "): " + 
          cxnocclist[i].SourceObjOcc().ObjDef().Name(-1) + " (" + cxnocclist[i].SourceObjOcc().ObjDef().Type(false) + ") -> " + 
          cxnocclist[i].TargetObjOcc().ObjDef().Name(-1) + " (" + cxnocclist[i].TargetObjOcc().ObjDef().Type(false) + ")\n"
    }   
    Dialogs.MsgBox(x);     
}
main();

I hope these two small reports help you in developing your reports

 

Edwin

by Sebastian Stein
Posted on Wed, 03/23/2011 - 16:02

Edwin, thank you very much for this contribution! I'm sure, many ARIS users will appreciate that you shared it!

0

Featured achievement

Genius
You like to help others solve their problems by answering questions.
Recent Unlocks
  • KF
  • KH
  • RG
  • Profile picture for user Vee_ARIS
  • Profile picture for user smarty
  • PacMan

Leaderboard

|
icon-arrow-down icon-arrow-cerulean-left icon-arrow-cerulean-right icon-arrow-down icon-arrow-left icon-arrow-right icon-arrow icon-back icon-close icon-comments icon-correct-answer icon-tick icon-download icon-facebook icon-flag icon-google-plus icon-hamburger icon-in icon-info icon-instagram icon-login-true icon-login icon-mail-notification icon-mail icon-mortarboard icon-newsletter icon-notification icon-pinterest icon-plus icon-rss icon-search icon-share icon-shield icon-snapchat icon-star icon-tutorials icon-twitter icon-universities icon-videos icon-views icon-whatsapp icon-xing icon-youtube icon-jobs icon-heart icon-heart2 aris-express bpm-glossary help-intro help-design Process_Mining_Icon help-publishing help-administration help-dashboarding help-archive help-risk icon-knowledge icon-question icon-events icon-message icon-more icon-pencil forum-icon icon-lock