Get user properties

<< Click to Display Table of Contents >>

Navigation:  Bizagi Studio > Process wizard > Business Rules > Business rules examples >

Get user properties

Bizagi provides a set of information of Users, called User Properties, that is relevant to each user individually. These include full name, email address, domain, roles, positions, delegated user, among others.

 

You can create additional properties for your users such as date of birth, social security number, marital status, or any other property required for your Processes that have not been provided by default by Bizagi.

 

User properties can be simple data type or can be related with parameter or system entities through single-to-many or multiple-multiple relationship types. You can access this information from the expressions to be used as Process information.

 

Obtain a simple attribute user property

Obtain a user property related to an entity through a single-to-many relationship type

Obtain a user property related to an entity through a multiple-multiple relationship type

 

Obtain a simple data type user property

User properties can be simple data type (i.e identification number, credit card number, nickname). In this case you can access its information directly using Xpath.

 

Example

A User property was defined to store the identification number users. Suppose in a Travel Request Process the identification number of the Requester is needed to booking the flight. The value of this user property can be obtained as follow:

 

RequesterIdNumber = <TravelRequest.Requester.IdentificationNumber>;

 

 

Obtain a user property related to an entity through a single-to-many relationship type

User properties can be related to an entity through a single-to-many relationship type, that is, the property has a single value but this can be selected from a list (i.e country, contract type, office). In this case you can access its information directly using Xpath.

 

Example

A User property was defined to store the type of contract of users. Suppose in a Offboarding Process the contract type of the Employee is needed to calculate their liquidation. The value of this user property can be obtained as follow:

 

TypeofContract = <Offboarding.Employee.TypeofContract>;

 

 

Obtain a user property related to an entity through a multiple-multiple relationship type

User properties can be related to an entity through a multiple-multiple relationship type, that is, the property has multiple values (i.e cities, roles, skills). In this case you have to navigate the object to obtain each value.

 

Example

A User property was defined to store the languages users speak. Suppose in a Help Desk Process the languages an Agent speak are needed in order to evaluate if he/she can assist a ticket. The values of this user property can be obtained as follow:

 

 

AgentLanguages = CHelper.GetValueAsCollection(Me.Context.getXPath("Ticket.Agent.Languages"));

for(var i=0; i<AgentLanguages.Count;i++)

{

Language=AgentLanguages[i].getXPath("Name");

}‚Äč