Role

Parent Previous Next

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


Syntax

       public class Role


Members

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



Sample

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