IWFAdminService svc = GetAdminService();
string roleName = ...// for examples, "Users"
string where = ...// for example, "ASSIGNEE_TYPE='User'"
try
{
WFRoleMember[] roleMembers = svc.QueryRoleMembers(roleName, where);
foreach (WFRoleMember member in roleMembers)
{
Console.WriteLine("Assignee = '{0}', Created Date = '{1}'",
member.Assignee,
member.CreatedDate.ToShortDateString());
}
}
catch (Exception ex)
{
Console.WriteLine("Failed! " + ShUtil.GetSoapMessage(ex));
}
/*
This example produces the following results:
Assignee = 'DEMO\CONTROLLER' & Created Date = '9/18/2009'
Assignee = 'DEMO\CFO' & Created Date = '9/18/2009'
*/