Assigning Modeled Roles

Discussions about modeling and usage of organization structures in processes.
Forum rules
Make sure every topic contains information about your LSPS version and if relevant also your server OS, client OS, database name and version, and application server name and version.
ssmelche
 
Posts: 36
Joined: Thu Mar 14, 2013 5:01 pm

Assigning Modeled Roles

Mon Aug 19, 2013 5:18 pm

Can a modeled (parametric) role be assigned to a person using an Expression, or using the Java SDK? I have a modeled role with a project id parameter that I would like to assign to a user when they create a new project.

Maros Bajtos
 
Posts: 145
Joined: Mon Feb 27, 2012 2:52 pm

Re: Assigning Modeled Roles

Tue Aug 20, 2013 10:18 am

There are two options:

1. You can use task from standard library AddPersonToRole
2. You can use API:

Check methods:

com.whitestein.lsps.os.PersonService.getPerson(String)
com.whitestein.lsps.os.dto.Person.addRoleUnitName(RoleUnitName)
com.whitestein.lsps.os.PersonManagementService.updatePerson(Person)

Let me know if you have any other question or you need to see an example.

Return to Modeling of organization structures

Who is online

Users browsing this forum: No registered users and 1 guest