Roles

Parent Previous Next

The Roles object groups objects of type Role together


Syntax

       public class Roles


Members

int Count

The number of records in the list

Role GetRole(string name)

Get the record of the given role name

Role Create(string rolename)

Create a new role. If the role exists, the existing role will be returned

void Delete(string rolename)

Delete a role.



Sample

This sample reads the roles of a process instance


for role in ProcessInstance.Roles:

   print role.Name



This sample creates a role


ProcessInstance.Roles.Create("Manager")