SPWorkflowWorkflowRoleCreator Class
Creates a WorkflowRole for implementing role-based access to the workflows and their activities.
Namespace:
Microsoft.SharePoint.Workflow
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online