I want to make a report that gives the same result as the ARIS functionality of exporting a model or group as an xml file, and allows to import that xml file in another database.


I am trying to make this report but I can't get the file to appear on my computer. This is the code I am using to make the xml export:

    var selectedG = ArisData.getSelectedGroups();
    var xmlExport = Context.getComponent("XMLExport");  
    var options = xmlExport.createDefaultXMLExportOptions(selectedG[0], [g_nloc] );

    options.setZipExport(false);  // No compression
    options.setHierarchyDepth(0); // Assignment level
    options.setRelationDepth(0);  // Connection level
    options.setIsSimpleExport(false); // Minimum export off
    options.setExportUsersAndUsergroups(false); // Users and Usergroups off
    options.setExportCompleteGroupPaths(true); // Complete paths off
    var result = xmlExport.startExport(options);
    var myResult = result.getFileResult();


no file is opened when i run the script, i created the script so it would have output xml and I cant seem to find the problem here

by M. Zschuckelt
Posted on Thu, 02/09/2017 - 08:21

Hello Ana,

apparently you are trying to write a report. Reports are executed on the server. They do not have access to the client file system. You would have to write a macro instead using the macro API.

Regards, M. Zschuckelt


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
  • Profile picture for user frankweise
  • Profile picture for user Henrik Buckler
  • Profile picture for user UffeK
  • SS
  • MZ
  • PacMan


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