Business Transformation Customer Forum
Register
Unmasking the Reality of Operational Excellence
Register
ARIS Process Mining in action - Live Demo
Register

View all
Profile picture for user RBeddoe

Is there a way in ARIS Script to select objects that are definition copies? I am looking for a method that would return the same collection as though I were using 'Find' in the Explorer in Business Architect with the following parameters:

 

Find what = Objects

Type = (all objects)

Default symbol = Process Interface

 

Rick Beddoe

Cargill Aris Technical Analyst

Minneapolis, MN, USA

by Ilya Seletkov
Posted on Thu, 05/10/2012 - 09:38

Hello!

Try to use the "Find" method of the database object. The definition copies always have the same type and name. For example:

var oDB         = ArisData.getActiveDatabase();
var sName = "Name";
var aObjDefs = oDB.Find(Constants.SEARCH_OBJDEF, Constants.OT_FUNC, Constants.AT_NAME, -1, sName, Constants.SEARCH_CMP_EQUAL);

Hope, this helps.

0
by Rick Beddoe Author
Posted on Thu, 05/10/2012 - 17:42

Thanks Ilya,

I am trying to select ALL objects (not objects of a spcific name) with the symbol type of Process Interface. The find (as well as createSearchItem) don't seem to have the ability to search for objects based on their Default symbol.

Rick Beddoe

Cargill Aris Technical Analyst

Minneapolis, MN, USA

0
by Ilya Seletkov
Posted on Thu, 05/10/2012 - 17:09

You may try to find all objects of the "function" type and then look for those of them which have occurance with symbol "process interface" (even one or only). 

0
by Rick Beddoe Author
Posted on Thu, 05/10/2012 - 17:41

Aha. That's it. I should have known. Sometimes it is hard to see the forest for the trees.

Here's what I did:

 

//oGroup is the selected group
//JSLINQ is from the JSLINQ library

var oDataBase = oGroup.Database();
var aObjDefs = oDataBase.Find(Constants.SEARCH_OBJDEF, Constants.OT_FUNC);
var aPIObjs = JSLINQ(aObjDefs)
                .Where(function(oPIObj){return oPIObj.getDefaultSymbolNum()==94;})
                .Select(function(oPIObj){return oPIObj;})
                .ToArray();

Thanks again for the response Ilya.

Rick Beddoe

Cargill Aris Technical Analyst

Minneapolis, MN, USA

0
by Anosh Mehdi
Posted on Wed, 06/13/2012 - 12:52

Dear Rick,

I am trying to find the Definition copies of 'Events' and 'Functions' so that I can identify those with the Same names.

Can you please share your script? or perhaps provide some guidance on how to write such a report?

Thanks and Regards,

Anosh

 

0
by Rick Beddoe Author
Posted on Wed, 06/13/2012 - 16:30

Hi Anosh,

You would still use the Find function on the database. Create an array of the object types you're looking for:

var oDataBase = oGroup.Database(); 
var aObjDefs = oDataBase.Find(Constants.SEARCH_OBJDEF, [Constants.OT_FUNC,Constants.OT_EVT]);

Rick Beddoe

Cargill Aris Technical Analyst

Minneapolis, MN, USA

0

Featured achievement

Question Solver
Share your expertise and have your answer accepted as best reply.
Recent Unlocks
  • BH
  • Profile picture for user Ivan.Ivanov.softwareag.com
  • Profile picture for user mscheid
  • MS
  • Profile picture for user syarafuddinhilmi
  • 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