WE

Hi All,

How do I implement versioning in ARIS 9 using scripting.

I used the following to add a new version, after a model has been updated in a merged database, but I get an error when the version part is done.

My code:

    var compVersioning = Context.getComponent("Versioning");

    var relID = "Version " + rID

    var compVersioningOptions = compVersioning.createOptions();

    compVersioningOptions.setRecurseChildGroups(true);

    var result = compVersioning.archive(model, relID, compVersioningOptions, true);

The rest of actually comparing dates/changes, and the actual merge works great, but when the version is added, I get the following error:

"Can't find method com.aris.modeling.server.bl.components.versioning.AversioningScriptInterface.archive(com.aris.modeling.server.number.com.aris.modeling.server.bl.components.versioning.AversioningScriptInterface$AmyVersioningOpti....

I suggested using an attribute for the versioning, but I'm not sure how this will work when comparing models.

Any ideas or suggestions would be greatly appreciated.

Thanks,

Willem

by Martin Schröder
Badge for 'Contributor' achievement
Posted on Mon, 09/11/2017 - 19:07

Hello Willem,

according to this post your parameter in compVersioning.archive(model, ...

may be the cause.

Apart from this I am wondering why you set

compVersioningOptions.setRecurseChildGroups(true);

if you want to version specified models and not a whole group.

Regards, Martin

0
by Willem Engelbrecht Author
Posted on Tue, 09/12/2017 - 10:08

Hi Martin,

Thanks for your reply.

So I went through my code again, and noticed that the model that I'm trying to update is not in an array, I changed it, and it worked.

Regarding the setRecurseChildGroups(true), was actually a mistype....

Thanks again,

Willem

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