I have several hundred models that I want to use the Change Management feature of ARIS to document the lifecylce of the models.  From what I can tell, using the out-of-the-box Changement Management function of ARIS I have to select each model one at a time. 

Since it does not look like I can select multiple models at once for Change Mangement, I think the next best solution is to code an ARIS Script to set the require Change Management attributes.  While I'm familiar with ARIS Scripting and have written some simple ones, I'm not an expert.

I've been trying to find in the method documetation for Scrpting, the attributes for Change Management.  Thus far with no success. 

Are the Change Management Attributes, such as the "Remarks", "Responsible", "Status" attributes, available thru ARIS Scripting?  If yes, under what object are these attributes found?

Any guidance will be appreciated.

Jim T


by Ciska de Jager
Posted on Wed, 03/14/2012 - 05:07

Hi Jim,

There is an attribute Constants.AT_HISTORY that contains all the information about change management. To add an entry to this attribute you need to format it in the correct way otherwise your display will be out of sync.

it will be something like this:

function WriteChangeHistory(sproposal, sremark, srequser, srespuser, omodel)
  var nLoc = Context.getSelectedLanguage();
  var c_sstart = "-----------------------------------";
  var suser = "system";
  var sdate = new Date();
  var wdate = new java.util.Date(sdate);
  var sdformat = new java.text.SimpleDateFormat("MMM dd, yyyy HH:mm:ss a");
  var scdate = new java.text.SimpleDateFormat("yy/dd/MM");
  if(srequser == "") {srequser = ArisData.getActiveUser().Name(nLoc);}
  if(srespuser == "") {srespuser = ArisData.getActiveUser().Name(nLoc);}
  if(sremark > "") {
    var shistory = c_sstart+srequser+"  ( "+sdformat.format(wdate)+" )"+"  <1427>"+sproposal+"<1425>  <1429>";
    shistory += sremark+"  <1423>  <1422> <1422|572>  <1426>"+srespuser+"  <1424> "+scdate.format(wdate);
    if(omodel.Attribute(Constants.AT_HISTORY, g_nloc).GetValue(true) > "") {
      shistory = omodel.Attribute(Constants.AT_HISTORY, g_nloc).GetValue(true)+"\n"+shistory;
    omodel.Attribute(Constants.AT_HISTORY, g_nloc).setValue(shistory);


by Jim Thompson Author
Posted on Wed, 03/14/2012 - 13:02

In reply to by tcaro


Thank you for the code fragment.  The sample code looks like it will meet the requirements.

Jim T


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
  • SS
  • MZ
  • Profile picture for user kbiront
  • Profile picture for user Tony Iliev
  • Profile picture for user amandeep.7.singh
  • 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