NT

Hi I'm trying to retrieve all the object attributes in the BPMN model, i have tried looking around in the forum. but no avail in my search with my limited knowledge in this area.

Hoping someone can help me, here is a sample of my report scripting.

I would eventually need someone to show me how to extract all the attributes in a single object, so i could customize which attribute i could put into the report.

 

var oOutput = Context.createOutputObject();     // Output object

var nLocale = Context.getSelectedLanguage();    // Selected database language

 

var aModels = ArisData.getSelectedModels();     // Array of selected models

for (var i = 0; i < aModels.length; i++) {            

var oModel = aModels[i];                    // Current model

var sModelName = oModel.Name(nLocale);      // Name of current model

 

oOutput.OutputLn("Model: " + sModelName, "Arial", 10, Constants.C_BLACK, Constants.C_TRANSPARENT, Constants.FMT_LEFT, 0);

     

var aObjDefs = oModel.ObjDefList();         // All object definitions that have occurrences in the model

for (var j = 0; j < aObjDefs.length; j++) {            

var oObjDef = aObjDefs[i];              // Current object definition

var sObjName = oObjDef.ObjectData(nLocale) //Attribute(Constants.AT_BPMN_ACTIVITY_TYPE , nLocale);   // Name of current object

         

oOutput.OutputLn("Object: " + sObjName, "Arial", 10, Constants.C_BLACK, Constants.C_TRANSPARENT, Constants.FMT_LEFT, 10);

    }    

}

oOutput.WriteReport();

 

by Robert Goldenbaum
Badge for 'Question Solver' achievement
Posted on Fri, 12/15/2017 - 11:28

var sObjName = oObjDef.Attribute(Constants.AT_NAME, nLocale).getValue()

0
by Nicholas Tan Author
Posted on Sun, 12/17/2017 - 14:26

Hi based on this

var sObjName = oObjDef.Attribute(Constants.AT_NAME, nLocale).getValue()

i am guessing that there is Constants, is there a way to see a list of constants?

 

0
by Robert Goldenbaum
Badge for 'Question Solver' achievement
Posted on Mon, 12/18/2017 - 09:04

Yes sure - in the ARIS administration tab - configuration - method...

0
by Pedro Guerrero
Posted on Thu, 01/25/2018 - 21:41

Hi

Just by curiosity, how did you manage to get a model array of selected models? As far as I understand, I'm not allowed to select multiple models in the Architect explorer.

Thank you

Regards

 

0
by Nikita Martyanov
Posted on Fri, 01/26/2018 - 07:56

In reply to by Pedro Guerrero

Hi Pedro,

you can select several models in Explorer mode, but not in the tree (left panel). You can select several models/groups in right panel (you have to select parent directory in the tree before to see list in right panel).

BR, Nikita

0
by Владимир Царев
Posted on Fri, 01/26/2018 - 19:58

In reply to by billie1989

To select multiple models, located in different folders, create an auxiliary folder.

Put the shortcuts of the models you need in it. Then select these shortcuts.

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