Profile picture for user rllasera


I'm new in Aris scripting and I have a problem copying a model definition to a new folder I just created using de merge object.

I'm using this script:


 var localeID = Context.getSelectedLanguage();
 var mergeComponent = Context.getComponent("Merge");
 var mergeOptions = mergeComponent.createMergeOptions(ArisData.getActiveDatabase());    
 var db = ArisData.openDatabase(sTargetDBName);

  var oSelectedGrp = db.Group(miGrupoPadre,gn_Lang);
  if (oSelectedGrp!= null)
   // Crear nuevo grupo según los paràmetros especificados.                                    
   var oGroup = oSelectedGrp.CreateChildGroup(miGrupo, localeID);      
   // Cargar modelo de orígen.
   // Localizar grupo origen y cargar objeto.
   var miPath=["Peticiones GNF","Petición PT-1435","E200"];
   var oGroupOrigen = db.Group(miPath,gn_Lang);      
   // Cargar modelo a copiar.
   var omodel = oGroupOrigen.ModelListFilter(miModelOrigen,gn_Lang)  
   if (omodel!= null)       
    var result = mergeComponent.createDefCopy(omodel, oGroup);       


The problem is that de model is duplicated to the new folder, but a new folder is added too in the folder, it's the root folder of my model, and I don't know why.


Can somebody help me?


by David van Burik
Posted on Mon, 05/06/2013 - 18:04

I have the same problem.

Additionally ,when I delete the copied root folder, I lose the objects in my Model. This is because the root folder contains a copy of the objects.

I do not know why this happens...., so I am in eager anticipation to any comments on the first question.

Best regards,



Featured achievement

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


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