WE

Hi Everyone,

Busy with a macro in ARIS10 SR11. The macro start on the event Close model, it checks the AT_STATE_1 attribute, and if the value corresponds with "Complete" it kicks of the QA script. If errors are found, the model can't be closed. I want to change the AT_STATE_1 attribute of the model to "In process" using the macro after the test have completed, but Designer.setAttribute(......) gives me an error and Designer.setAttributePersisitent return the error with the following "???". How do I change the model attribute with the macro?

Any ideas....

Thanks, 

Willem

by Torsten Haase
Posted on Fri, 10/23/2020 - 14:07

Hi Willem,

some attributes do not contain a simple text value. The attribute AT_STATE_1 is an attribute of type "values". In the macro interface of the Designer, the setter method does not accept the (localized) string value, but only the predefined constant for the new value. You can lookup these values via
Administration/Configuration/Method/Attribute types/Status (the one with API name AT_STATE_2): diplay its properties (context menu "Edit") and choose tab "Values and symbols". In the last column you see all valid value type numbers:
AVT_IN_PROC
AVT_COMPLETE
AVT_RELEASED
AVT_LAST_CHG
AVT_REENG

If you use these constants, setting the attribute works as expected:

Designer.setAttributePersistent(selection[0], Constants.AT_STATE_1, Constants.AVT_RELEASED /*"Released"*/, null )

BR, Torsten

0
by Willem Engelbrecht Author
Posted on Thu, 02/04/2021 - 10:30

Torsten, dorry for only replying now.

Thanks for your input, will try shortly.

Regards,

Willem

0

Featured achievement

Question Solver
Share your expertise and have your answer accepted as best reply.
Recent Unlocks
  • CR
  • BH
  • Profile picture for user Ivan.Ivanov.softwareag.com
  • Profile picture for user mscheid
  • MS
  • PacMan

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