Profile picture for user gmbandekar

Hello,

Can someone help here. Expected output is Role Name in 1st column which is attached to a Functions and then followed by Fxn name in 2nd column and Fxn description in 3rd column.

Unfortunately after  "l_func[k].getConnectedObjOccs(Constants.ST_ORG_UNIT_1)" It is not accepting any Javafunction

   l_func=ArisData.sort(l_sort,Constants.SORT_GEOMETRIC,g_nLog);
 
     g_outputObject.TableRow();
     var l_funConcat="";
     var l_funcDescConcat="";
     var l_roleUnique="";
     for(var k=0;k<l_func.length;k++)
     {
        l_funConcat=l_funConcat+k+".\t"+l_func[k].getObjDefName(g_nLog)+"\n";
        l_funConcat=l_funcDescConcat+k+".\t"+(l_func[k].ObjDef()).Attribute(Constants.AT_DESC,g_nLog).getValue()+"\n";
    var l_RoleDef=l_func[k].ObjDef();

        g_outputObject.TableRow();
        g_outputObject.TableCellF(l_func[k].getConnectedObjOccs(Constants.ST_ORG_UNIT_1),20,"Template10");
        g_outputObject.TableCellF(l_func[k].getObjDefName(g_nLog),30,"Template10");
     var l_funDef=l_func[k].ObjDef()
        g_outputObject.TableCellF(l_funDef.Attribute(Constants.AT_DESC,g_nLog).getValue(),50,"Template10");
     }

==============================================

With the Above Code I get the below output. How can i get the Role Name in first column

Thanks In Advance

 

by Prateek Pandey
Posted on Fri, 02/28/2014 - 12:58

Hi Gopi,

l_func[k].getConnectedObjOccs(Constants.ST_ORG_UNIT_1) will give you an array of the connected obj occs.

If you are sure that there will be only one role mapped with the function, you can use:

l_func[k].getConnectedObjOccs(Constants.ST_ORG_UNIT_1)[0].getObjDefName(g_nLog) // Fetching the value from 0th location

else you can iterate over the size of the array returned by getConnectedObjOccs.

 

Regards,

Prateek Pandey

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

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