Parent Previous Next

The Role object provides general information about a role in a process instance. These are:


       public class Role


string Name

The name of the role

ReadOnlyCollection<User> Users

The users in the role

void Add(User user)

Add a user to the role

void Remove(User user)

Remove a user from the role

void ClearUsers()

Remove all users from the Role


This sample prints the user names of all roles in the process instance

for role in ProcessInstance.Roles:

   for user in role.Users:

      print user.Name