DL

Hi All,

Attached is a report which gives us the details of the type of attributes allowed in a filter on a model/object or a connection. Is there any way to find out or make changes to this report which will gives us the information if this is a custom attribute or an ARIS default attribute.

Regards,

D

 

by Deepti Lad Author
Posted on Thu, 12/06/2012 - 05:21
function getmodeltypes(ocurrentfilter)
{
    g_bgetmodeltype = true;
    
    var nallallowedmodeltypes = ocurrentfilter.ModelTypes(Constants.ARISVIEW_ALL);
    
    if (nallallowedmodeltypes.length == 0) {
        g_ooutfile.OutputLn(getString("TEXT19"), getString("TEXT1"), 10, 0, - 1, 8, 0);
    }
    return nallallowedmodeltypes.sort(sortByModelTypeName);
    
    /************************************************************************************************/

    function sortByModelTypeName(a, b) {
        return StrComp(ocurrentfilter.ModelTypeName(a), ocurrentfilter.ModelTypeName(b));
    }    
}

// ********************************************************************************************************************
// *  Subroutine GetObjTypes																						  *
// *	Subprogram for determining the allowed object types of the current filter.									  *
// ********************************************************************************************************************
// *  Parameter																										  *
// *	oCurrentFilter = Current filter.																			  *
// ********************************************************************************************************************
function getobjtypes(ocurrentfilter)
{
    g_bgetobjtypes = true;

    var nallallowedobjecttypes = ocurrentfilter.ObjTypes();

    return nallallowedobjecttypes.sort(sortByObjTypeName);
    
    /************************************************************************************************/

    function sortByObjTypeName(a, b) {
        return StrComp(ocurrentfilter.ObjTypeName(a), ocurrentfilter.ObjTypeName(b));
    }     
}
0
by Jens Heylmann
Posted on Thu, 12/06/2012 - 14:47

Yes, you can use this method to check if it is a standard or user defined attribute:

 

Report class ArisMetaModel - Method isUserDefinedAttrType

 

isUserDefinedAttrType ( int attrTypeNum )

Returns true, if the specified attribute type number is userdefined.  

This method is also available in Business Publisher Report.     

 

Regards,

Jens

 

0
by Deepti Lad Author
Posted on Wed, 12/12/2012 - 05:02

Thank you Jens, I will try that. Do you have a similar report like that? Can you share it with me at deeptilad@gmail.com

0

Featured achievement

Rookie
Say hello to the ARIS Community! Personalize your community experience by following forums or tags, liking a post or uploading a profile picture.
Recent Unlocks
  • SS
  • MZ
  • Profile picture for user kbiront
  • Profile picture for user Tony Iliev
  • Profile picture for user amandeep.7.singh
  • 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