public void SetCuratorUserRole( long processId, OrganizationItem orgItem )
Set the "Curator" role to the organizational structure item
Syntax
public void SetCuratorUserRole( long processId, OrganizationItem orgItem )
Parameters
- processId
- Type: System Int64
Process ID
- orgItem
- Type: OrganizationItem
Organizational structure item, to set the "Curator" role to. Object. Access path: PublicAPI.Portal.Security.OrganizationItem
Remarks
Examples
//load the process by ID var process = PublicAPI.Processes.WorkflowProcess.Load(3); //load the organizational structure item by ID var orgItem = PublicAPI.Portal.Security.OrganizationItem.Load(3); //set the role PublicAPI.Processes.WorkflowProcess.SetCuratorUserRole(process, orgItem);
See Also