RK

Hi all,

iam currently trying to produce a process manual with the script wizard. I know how to report single objects and multiple attributes. But my goal is to ouput functions and their CONNECTED objects (in my case business rules and capabilities) including attributes in a table.

Any ideas how to achieve that with script or wizard? 

by Fernando Navarro
Posted on Thu, 10/14/2010 - 21:27

Hi Roland,

I'm afraid that there's no way to get connected occurrences through Script Wizard. You should use scripting to achieve this.

1. Use the ObjOcc.getConnectedObjOccs( int symbolType) method. This returns an array of object occurrences connected to the object occurrence having the specific symbol type.

// Gets a list of the events connected to myFunction.
connectedEvents = myFunction.getConnectedObjOccs([Constants.ST_EV]);

2. You can also get the connected objects occurrences finding first the connections between them.

// Gets the outgoing connections of myFunction
connList = myFunction.Cxns(Constants.EDGES_OUT);
// then gets the target object for each connection
for(var i=0; connList.length > i; i++){
   targetOcc = connList[i].TargetObjOcc();
}

 

Hope this helps.

0
by Roland Kment Author
Posted on Fri, 10/15/2010 - 14:25

Hi Fernando,

my scripting experience is rather low, anyway ill give it a try...

Thank you!

0
by Fernando Navarro
Posted on Fri, 10/15/2010 - 17:50

Here's a more extensive example.You can also use the ARIS script help (Help menu in ABA) for further reference.

In this example is assumed that the script is excecuted from an EPC model.

Hope this helps.

// Define a user data type to store the results
__usertype_outStruct = function() {
    this.sModel = "";
    this.sFunc = "";
    this.sSat = "";
 this.__createNew = function() { return new __usertype_outStruct; }
}
function main(){
 var modelList, currModel, funcList, currFunc, satelliteList, currSatellite; // List of variables
 var out = new Array(); // Output array
 var oCurrOut;
 modelList = ArisData.getSelectedModels(); // Gets the list of selected models
 for(var i=0; modelList.length > i; i++){ // For each model in the list
  currModel = modelList[i]; // Gets the current model
  funcList = currModel.ObjOccListBySymbol([Constants.ST_FUNC]); // Gets the list of functions in the model
  funcList = ArisData.sort(funcList,Constants.AT_ID,locale); // Sorts the list by ID
  for(var j=0; funcList.length > j; j++){ // For each function occurrence in the current model
   currFunc = funcList[j];  // Gets the current function occurrence
   satelliteList = currFunc.getConnectedObjOccs(Constants.ST_POS_TYPE); // Gets a list of Position Type symbols connected to the current function occurrence
   for(var k=0; satelliteList.length > k; k++){ // For each satellite
    currSatellite = satelliteList[k]; // Gets the current satellite occurrence
    // Stores data 
    oCurrOut = new __usertype_outStruct();
    oCurrOut.sModel = currModel.Name(locale);
    oCurrOut.sFunc = currFunc.ObjDef().Name(locale);
    oCurrOut.sSat = currSatellite.ObjDef().Name(locale);
    out.push(oCurrOut);  // Stored data is pushed into an array
    
   }
  }
 }
 // At this point you shoud be able to get the out array and use it any way you like in an output document
}
0
by Klaus Schulz
Posted on Fri, 10/15/2010 - 14:29

Hi.

I have seen many people working on a "process manual". Does anyone in the community has a process manual that he/she can provide as a template?

Regards

Klaus

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