JL

Dear all,

while testing some of our custom scripts made under v7.2 in the newly v9.6, I had the following situation:



- While testing if an object is locked, the getLockInfo returns always null..

The code runs ok on 7.2, but not on 9.6. - I didn't found any explanation on the script help or either in the documentation...



Here is the code:

 

function objectIsLocked(oObjDef){
/***********************************************************************
 * Checks if a specific Object is locked
 * @param {ARISObject} oObjDef - The ARIS Object to check
 ***********************************************************************/

	var reportcomponentLocking = Context.getComponent("Locking");	
	var oUser = ArisData.ActiveUser();
    var oLockInfo = reportcomponentLocking.getLockInfo(oObjDef);
    var nLockState = oLockInfo.getLockState();
    if (nLockState ==Constants.LOCKING_STATE_UNLOCKED){
        return false;
    }
    else{   
        var sLockOwner = oLockInfo.getLockOwner();
        if (oUser.Attribute(Constants.AT_NAME_LGINDEP, g_nLoc).GetValue(true).equals(sLockOwner)){
            return false
        }
        else{
            return true;
        }
    }
}

What happened to getLockInfo on v9.6 ? Is it a bug ?

Thanks in advance.

 

by Francois Du Toit
Posted on Fri, 07/25/2014 - 12:15

Hi,

I have also used this in 7, will test in 9 and let you know if I find the same effect. I think you should register an issue with on Empower too. Please share any findings you might have.

Thank you,
Francois

0
by Jose Louro Author
Posted on Thu, 10/30/2014 - 10:40

Dear All,



Just to inform that ARIS 9.7 readme.txt

says that this issue (identified as 5152932 BLUE-5537 ) is now fixed.



José LOURO

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