BPMSad BPMSad Academy

دریافت فهرست کاربران دارای مجوز ویژه

Original Bizagi title: Low-code Process Automation > Studio Cloud - Authoring environment > Bizagi Studio > Authentication and other security definitions > Case Security > Manage privileges through expressions > Get the privileged user list

اتوماسیون فرایند Low-code / محیط طراحی Studio Cloud / Bizagi Studio / احراز هویت و سایر تعاریف امنیتی / امنیت Case / پرونده / مدیریت مجوزها از طریق Expressionها / دریافت فهرست کاربران دارای مجوز ویژه

In a Purchase Request Process of the example mentioned in Grant case access, we want to show the list of the users with access to the case in the Summary form.

 

In step four of the Process Wizard, select the Activity Actions to create an expression On Exit of the first Activity.

 

CaseSecurity35

 

The expression retrieves the list of privileged users of the case and stores them in the collection UsersCaseAccess.

 

CaseSecurity36

 

var UsersArray = new ArrayList();

// Get the list of privileged users

UsersArray = CHelper.GetCaseAccessUsers(Me.Case.Id);

for(Counter=0; Counter < UsersArray.Count; Counter++)

{

   // Add users to the UsersCaseAccess collection

   var PUser = Me.newCollectionItem("PurchaseRequest.UsersCaseAccess");

   PUser.setXPath("Userwithaccess", UsersArray[Counter]);

}

 

When the case is advanced, the users in the privileged list are displayed in the collection added in the Summary form.

 

CaseSecurity37


Last Updated 1/31/2023 4:30:14 PM