JM

Hi!!

I´m new in Aris and I´m having a problem with Aris Script. When the report is generated, there is an array that collect all FAD and next, another collect gets the existing clusters. The problem is: the collect is not separating which cluster refers to the current scenario. Does anyone have any suggestions? How I pick up the current scenario?

dtable1(p_output, collect9(collect8(collect7(p_aModel[i].ObjOccListBySymbol(new Array(Constants.ST_SOLAR_VAC_SHORTCUT,Constants.ST_SOLAR_SL_VAC_OCC,Constants.ST_SOLAR_VAC))))))

function collect8(p_array){

var result = new Array();

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

result = result.concat(p_array[i].AssignedModels([Constants.MT_FUNC_ALLOC_DGM]))

}

return ArisData.Unique(result)

}

 

function collect9(p_array){

var result = new Array();

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

p_array[i].SymbolNum() == Constants.ST_SOLAR_VAC)

result = result.concat(p_array[i].ObjOccListBySymbol([Constants.ST_CLST]))

}

return ArisData.Unique(result)

}

function collect7(p_array){

var result = new Array();

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

result.push(p_array[i].ObjDef())

}

return ArisData.Unique(result)

}

 

by Ilya Seletkov
Posted on Sat, 11/02/2013 - 15:29

Hi!

For example, you can constract array of structures. Structure may consist of scenario and array of clusters, which refers to this scenario.  

0

Featured achievement

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