YD

Hello Community,

I would like to know if there is a function for report or macro that can check whether the selected model/object is locked or not?

Thanks in advance! 

by Kay Fischbach
Posted on Thu, 03/21/2019 - 13:44

(I'm using ARIS 10.0.3 - mentioned methods may be unavailable in other ARIS versions, or function in a different way)

For Reports:

  • The simplest way is probably to just use the .getLockOwner() Model-object-method, and check whether the returned String == null (null means there is no lock, because there is no lock owner). Available for models and object definitions.
  • Another option is to load the "Locking" component (Context.getComponent("Locking")), and use it to determine the lock state of the model/object definition. You can find information about that in the ARIS Script documentation > Contents tab > ARIS Script > Methods for reports and semantic checks > Global Objects > report component interfaces > Locking > all the sub-pages of Locking. Specifically you'd use a method from the Locking interface to get a LockInfo object, and then use a method from the LockInfo class to determine the lock state of the object

For Macros:

  • For what you want to do I don't think there is a way around the Locking macro component interface. You don't have to load components in macros, so it's a bit easier. You'd just use Locking.getLockInfo(objectToCheck).getLockState() ==  Constants.LOCKING_STATE_UNLOCKED to check the state of the object you want to check
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