SO

Hi,
I have two databases on two different servers.
For example server1 with db A and server 2
With db B.

I want to merge all models from db A to db B using script.
Can any one suggest how this can be sone.

Thanks in advance.

by Torsten Haase
Posted on Wed, 05/07/2014 - 14:59

Hi Sunil,

 

if you want to use a report script, you can use the "Merge" report API returned by the following call



Context.getComponent("Merge")



Both databases have to be on the same server.





if you want to use a macro script, you can use the macro Merge API, this is especially helpful in ARIS 7.x to merge data from different servers. You first log into the 2 databases using

var database = Explorer.login(p_serverName, p_dbName, p_userName, p_userPassword, p_dbLang, p_filterId)

afterwards you use

var options = Merge.createMergeOptions()

var mergeMacroResult = Merge.startMerge( sourceElementsFromDb1[], targetDatabase, options)



ARIS 9 does not allow access to other servers than the current.

BR,

Torsten

 

0
by Sunil Oza Author
Posted on Wed, 05/14/2014 - 08:31

In reply to by thaase

Hi Torsten,

 

Thanks for the reply.

As you mentioned this is not allowed in ARIS 9 is there any other feature or workaround which can help me in doing Merge of all models from one db to other on two different servers.

0
by Sunil Oza Author
Posted on Thu, 06/19/2014 - 08:04

Hi Torsten,

var gLang = Context.getSelectedLanguage();

  var entireMethodFilter = <entiremethod guid>;   var srcDb = Explorer.login("servername","KT Session - Test","system","manager",gLang,entireMethodFilter);   var targetDb = Explorer.login("servername","T ArisToVisioABP","system","manager",gLang,entireMethodFilter);   var dbArray = [srcDb,targetDb];     reportInfo = Report.createExecInfo("reportguid", dbArray, Context.getSelectedLanguage()); result = Report.execute(reportInfo, false,true);   after executing this macro in the report when i use  var oDbs = ArisData.getSelectedDatabases(); i am getting only one database from the dbArray which is passed in the macro.   Can you please suggest if this is correct.   Thanks in advance.
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